The flag to mark dead tuples is nowadays called LP_DEAD, not LP_DELETE.
[PostgreSQL.git] / configure
blob063a6de40e695a4262502ab976665cfa6916e318
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for PostgreSQL 8.4devel.
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-2008, 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.4devel'
580 PACKAGE_STRING='PostgreSQL 8.4devel'
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
747 OSSP_UUID_LIBS
748 HAVE_IPV6
749 LIBOBJS
750 acx_pthread_config
751 PTHREAD_CC
752 PTHREAD_LIBS
753 PTHREAD_CFLAGS
754 LDAP_LIBS_FE
755 LDAP_LIBS_BE
756 HAVE_POSIX_SIGNALS
757 MSGFMT
758 MSGMERGE
759 XGETTEXT
760 TCLSH
761 TCL_CONFIG_SH
762 TCL_INCLUDE_SPEC
763 TCL_LIB_FILE
764 TCL_LIBS
765 TCL_LIB_SPEC
766 TCL_SHARED_BUILD
767 TCL_SHLIB_LD_LIBS
768 NSGMLS
769 JADE
770 have_docbook
771 DOCBOOKSTYLE
772 COLLATEINDEX
773 SGMLSPL
774 DOCBOOK2MAN
775 vpath_build
776 LTLIBOBJS'
777 ac_subst_files=''
778 ac_precious_vars='build_alias
779 host_alias
780 target_alias
782 CFLAGS
783 LDFLAGS
784 LIBS
785 CPPFLAGS
787 LDFLAGS_SL
788 DOCBOOKSTYLE'
791 # Initialize some variables set by options.
792 ac_init_help=
793 ac_init_version=false
794 # The variables have the same names as the options, with
795 # dashes changed to underlines.
796 cache_file=/dev/null
797 exec_prefix=NONE
798 no_create=
799 no_recursion=
800 prefix=NONE
801 program_prefix=NONE
802 program_suffix=NONE
803 program_transform_name=s,x,x,
804 silent=
805 site=
806 srcdir=
807 verbose=
808 x_includes=NONE
809 x_libraries=NONE
811 # Installation directory options.
812 # These are left unexpanded so users can "make install exec_prefix=/foo"
813 # and all the variables that are supposed to be based on exec_prefix
814 # by default will actually change.
815 # Use braces instead of parens because sh, perl, etc. also accept them.
816 # (The list follows the same order as the GNU Coding Standards.)
817 bindir='${exec_prefix}/bin'
818 sbindir='${exec_prefix}/sbin'
819 libexecdir='${exec_prefix}/libexec'
820 datarootdir='${prefix}/share'
821 datadir='${datarootdir}'
822 sysconfdir='${prefix}/etc'
823 sharedstatedir='${prefix}/com'
824 localstatedir='${prefix}/var'
825 includedir='${prefix}/include'
826 oldincludedir='/usr/include'
827 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
828 infodir='${datarootdir}/info'
829 htmldir='${docdir}'
830 dvidir='${docdir}'
831 pdfdir='${docdir}'
832 psdir='${docdir}'
833 libdir='${exec_prefix}/lib'
834 localedir='${datarootdir}/locale'
835 mandir='${datarootdir}/man'
837 ac_prev=
838 ac_dashdash=
839 for ac_option
841 # If the previous option needs an argument, assign it.
842 if test -n "$ac_prev"; then
843 eval $ac_prev=\$ac_option
844 ac_prev=
845 continue
848 case $ac_option in
849 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
850 *) ac_optarg=yes ;;
851 esac
853 # Accept the important Cygnus configure options, so we can diagnose typos.
855 case $ac_dashdash$ac_option in
857 ac_dashdash=yes ;;
859 -bindir | --bindir | --bindi | --bind | --bin | --bi)
860 ac_prev=bindir ;;
861 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
862 bindir=$ac_optarg ;;
864 -build | --build | --buil | --bui | --bu)
865 ac_prev=build_alias ;;
866 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
867 build_alias=$ac_optarg ;;
869 -cache-file | --cache-file | --cache-fil | --cache-fi \
870 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
871 ac_prev=cache_file ;;
872 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
873 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
874 cache_file=$ac_optarg ;;
876 --config-cache | -C)
877 cache_file=config.cache ;;
879 -datadir | --datadir | --datadi | --datad)
880 ac_prev=datadir ;;
881 -datadir=* | --datadir=* | --datadi=* | --datad=*)
882 datadir=$ac_optarg ;;
884 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
885 | --dataroo | --dataro | --datar)
886 ac_prev=datarootdir ;;
887 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
888 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
889 datarootdir=$ac_optarg ;;
891 -disable-* | --disable-*)
892 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
893 # Reject names that are not valid shell variable names.
894 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
895 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
896 { (exit 1); exit 1; }; }
897 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
898 eval enable_$ac_feature=no ;;
900 -docdir | --docdir | --docdi | --doc | --do)
901 ac_prev=docdir ;;
902 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
903 docdir=$ac_optarg ;;
905 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
906 ac_prev=dvidir ;;
907 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
908 dvidir=$ac_optarg ;;
910 -enable-* | --enable-*)
911 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
912 # Reject names that are not valid shell variable names.
913 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
914 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
915 { (exit 1); exit 1; }; }
916 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
917 eval enable_$ac_feature=\$ac_optarg ;;
919 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
920 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
921 | --exec | --exe | --ex)
922 ac_prev=exec_prefix ;;
923 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
924 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
925 | --exec=* | --exe=* | --ex=*)
926 exec_prefix=$ac_optarg ;;
928 -gas | --gas | --ga | --g)
929 # Obsolete; use --with-gas.
930 with_gas=yes ;;
932 -help | --help | --hel | --he | -h)
933 ac_init_help=long ;;
934 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
935 ac_init_help=recursive ;;
936 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
937 ac_init_help=short ;;
939 -host | --host | --hos | --ho)
940 ac_prev=host_alias ;;
941 -host=* | --host=* | --hos=* | --ho=*)
942 host_alias=$ac_optarg ;;
944 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
945 ac_prev=htmldir ;;
946 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
947 | --ht=*)
948 htmldir=$ac_optarg ;;
950 -includedir | --includedir | --includedi | --included | --include \
951 | --includ | --inclu | --incl | --inc)
952 ac_prev=includedir ;;
953 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
954 | --includ=* | --inclu=* | --incl=* | --inc=*)
955 includedir=$ac_optarg ;;
957 -infodir | --infodir | --infodi | --infod | --info | --inf)
958 ac_prev=infodir ;;
959 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
960 infodir=$ac_optarg ;;
962 -libdir | --libdir | --libdi | --libd)
963 ac_prev=libdir ;;
964 -libdir=* | --libdir=* | --libdi=* | --libd=*)
965 libdir=$ac_optarg ;;
967 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
968 | --libexe | --libex | --libe)
969 ac_prev=libexecdir ;;
970 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
971 | --libexe=* | --libex=* | --libe=*)
972 libexecdir=$ac_optarg ;;
974 -localedir | --localedir | --localedi | --localed | --locale)
975 ac_prev=localedir ;;
976 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
977 localedir=$ac_optarg ;;
979 -localstatedir | --localstatedir | --localstatedi | --localstated \
980 | --localstate | --localstat | --localsta | --localst | --locals)
981 ac_prev=localstatedir ;;
982 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
983 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
984 localstatedir=$ac_optarg ;;
986 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
987 ac_prev=mandir ;;
988 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
989 mandir=$ac_optarg ;;
991 -nfp | --nfp | --nf)
992 # Obsolete; use --without-fp.
993 with_fp=no ;;
995 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
996 | --no-cr | --no-c | -n)
997 no_create=yes ;;
999 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1000 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1001 no_recursion=yes ;;
1003 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1004 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1005 | --oldin | --oldi | --old | --ol | --o)
1006 ac_prev=oldincludedir ;;
1007 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1008 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1009 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1010 oldincludedir=$ac_optarg ;;
1012 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1013 ac_prev=prefix ;;
1014 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1015 prefix=$ac_optarg ;;
1017 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1018 | --program-pre | --program-pr | --program-p)
1019 ac_prev=program_prefix ;;
1020 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1021 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1022 program_prefix=$ac_optarg ;;
1024 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1025 | --program-suf | --program-su | --program-s)
1026 ac_prev=program_suffix ;;
1027 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1028 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1029 program_suffix=$ac_optarg ;;
1031 -program-transform-name | --program-transform-name \
1032 | --program-transform-nam | --program-transform-na \
1033 | --program-transform-n | --program-transform- \
1034 | --program-transform | --program-transfor \
1035 | --program-transfo | --program-transf \
1036 | --program-trans | --program-tran \
1037 | --progr-tra | --program-tr | --program-t)
1038 ac_prev=program_transform_name ;;
1039 -program-transform-name=* | --program-transform-name=* \
1040 | --program-transform-nam=* | --program-transform-na=* \
1041 | --program-transform-n=* | --program-transform-=* \
1042 | --program-transform=* | --program-transfor=* \
1043 | --program-transfo=* | --program-transf=* \
1044 | --program-trans=* | --program-tran=* \
1045 | --progr-tra=* | --program-tr=* | --program-t=*)
1046 program_transform_name=$ac_optarg ;;
1048 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1049 ac_prev=pdfdir ;;
1050 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1051 pdfdir=$ac_optarg ;;
1053 -psdir | --psdir | --psdi | --psd | --ps)
1054 ac_prev=psdir ;;
1055 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1056 psdir=$ac_optarg ;;
1058 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1059 | -silent | --silent | --silen | --sile | --sil)
1060 silent=yes ;;
1062 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1063 ac_prev=sbindir ;;
1064 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1065 | --sbi=* | --sb=*)
1066 sbindir=$ac_optarg ;;
1068 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1069 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1070 | --sharedst | --shareds | --shared | --share | --shar \
1071 | --sha | --sh)
1072 ac_prev=sharedstatedir ;;
1073 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1074 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1075 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1076 | --sha=* | --sh=*)
1077 sharedstatedir=$ac_optarg ;;
1079 -site | --site | --sit)
1080 ac_prev=site ;;
1081 -site=* | --site=* | --sit=*)
1082 site=$ac_optarg ;;
1084 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1085 ac_prev=srcdir ;;
1086 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1087 srcdir=$ac_optarg ;;
1089 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1090 | --syscon | --sysco | --sysc | --sys | --sy)
1091 ac_prev=sysconfdir ;;
1092 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1093 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1094 sysconfdir=$ac_optarg ;;
1096 -target | --target | --targe | --targ | --tar | --ta | --t)
1097 ac_prev=target_alias ;;
1098 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1099 target_alias=$ac_optarg ;;
1101 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1102 verbose=yes ;;
1104 -version | --version | --versio | --versi | --vers | -V)
1105 ac_init_version=: ;;
1107 -with-* | --with-*)
1108 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1109 # Reject names that are not valid shell variable names.
1110 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1111 { echo "$as_me: error: invalid package name: $ac_package" >&2
1112 { (exit 1); exit 1; }; }
1113 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1114 eval with_$ac_package=\$ac_optarg ;;
1116 -without-* | --without-*)
1117 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1120 { echo "$as_me: error: invalid package name: $ac_package" >&2
1121 { (exit 1); exit 1; }; }
1122 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1123 eval with_$ac_package=no ;;
1125 --x)
1126 # Obsolete; use --with-x.
1127 with_x=yes ;;
1129 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1130 | --x-incl | --x-inc | --x-in | --x-i)
1131 ac_prev=x_includes ;;
1132 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1133 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1134 x_includes=$ac_optarg ;;
1136 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1137 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1138 ac_prev=x_libraries ;;
1139 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1140 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1141 x_libraries=$ac_optarg ;;
1143 -*) { echo "$as_me: error: unrecognized option: $ac_option
1144 Try \`$0 --help' for more information." >&2
1145 { (exit 1); exit 1; }; }
1148 *=*)
1149 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1152 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1153 { (exit 1); exit 1; }; }
1154 eval $ac_envvar=\$ac_optarg
1155 export $ac_envvar ;;
1158 # FIXME: should be removed in autoconf 3.0.
1159 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1160 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1161 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1162 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1165 esac
1166 done
1168 if test -n "$ac_prev"; then
1169 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1170 { echo "$as_me: error: missing argument to $ac_option" >&2
1171 { (exit 1); exit 1; }; }
1174 # Be sure to have absolute directory names.
1175 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1176 datadir sysconfdir sharedstatedir localstatedir includedir \
1177 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1178 libdir localedir mandir
1180 eval ac_val=\$$ac_var
1181 case $ac_val in
1182 [\\/$]* | ?:[\\/]* ) continue;;
1183 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1184 esac
1185 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1186 { (exit 1); exit 1; }; }
1187 done
1189 # There might be people who depend on the old broken behavior: `$host'
1190 # used to hold the argument of --host etc.
1191 # FIXME: To remove some day.
1192 build=$build_alias
1193 host=$host_alias
1194 target=$target_alias
1196 # FIXME: To remove some day.
1197 if test "x$host_alias" != x; then
1198 if test "x$build_alias" = x; then
1199 cross_compiling=maybe
1200 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1201 If a cross compiler is detected then cross compile mode will be used." >&2
1202 elif test "x$build_alias" != "x$host_alias"; then
1203 cross_compiling=yes
1207 ac_tool_prefix=
1208 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1210 test "$silent" = yes && exec 6>/dev/null
1213 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1214 ac_ls_di=`ls -di .` &&
1215 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1216 { echo "$as_me: error: Working directory cannot be determined" >&2
1217 { (exit 1); exit 1; }; }
1218 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1219 { echo "$as_me: error: pwd does not report name of working directory" >&2
1220 { (exit 1); exit 1; }; }
1223 # Find the source files, if location was not specified.
1224 if test -z "$srcdir"; then
1225 ac_srcdir_defaulted=yes
1226 # Try the directory containing this script, then the parent directory.
1227 ac_confdir=`$as_dirname -- "$0" ||
1228 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1229 X"$0" : 'X\(//\)[^/]' \| \
1230 X"$0" : 'X\(//\)$' \| \
1231 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1232 echo X"$0" |
1233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1234 s//\1/
1237 /^X\(\/\/\)[^/].*/{
1238 s//\1/
1241 /^X\(\/\/\)$/{
1242 s//\1/
1245 /^X\(\/\).*/{
1246 s//\1/
1249 s/.*/./; q'`
1250 srcdir=$ac_confdir
1251 if test ! -r "$srcdir/$ac_unique_file"; then
1252 srcdir=..
1254 else
1255 ac_srcdir_defaulted=no
1257 if test ! -r "$srcdir/$ac_unique_file"; then
1258 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1259 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1260 { (exit 1); exit 1; }; }
1262 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1263 ac_abs_confdir=`(
1264 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1265 { (exit 1); exit 1; }; }
1266 pwd)`
1267 # When building in place, set srcdir=.
1268 if test "$ac_abs_confdir" = "$ac_pwd"; then
1269 srcdir=.
1271 # Remove unnecessary trailing slashes from srcdir.
1272 # Double slashes in file names in object file debugging info
1273 # mess up M-x gdb in Emacs.
1274 case $srcdir in
1275 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1276 esac
1277 for ac_var in $ac_precious_vars; do
1278 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1279 eval ac_env_${ac_var}_value=\$${ac_var}
1280 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1281 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1282 done
1285 # Report the --help message.
1287 if test "$ac_init_help" = "long"; then
1288 # Omit some internal or obsolete options to make the list less imposing.
1289 # This message is too long to be a string in the A/UX 3.1 sh.
1290 cat <<_ACEOF
1291 \`configure' configures PostgreSQL 8.4devel to adapt to many kinds of systems.
1293 Usage: $0 [OPTION]... [VAR=VALUE]...
1295 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1296 VAR=VALUE. See below for descriptions of some of the useful variables.
1298 Defaults for the options are specified in brackets.
1300 Configuration:
1301 -h, --help display this help and exit
1302 --help=short display options specific to this package
1303 --help=recursive display the short help of all the included packages
1304 -V, --version display version information and exit
1305 -q, --quiet, --silent do not print \`checking...' messages
1306 --cache-file=FILE cache test results in FILE [disabled]
1307 -C, --config-cache alias for \`--cache-file=config.cache'
1308 -n, --no-create do not create output files
1309 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1311 Installation directories:
1312 --prefix=PREFIX install architecture-independent files in PREFIX
1313 [$ac_default_prefix]
1314 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1315 [PREFIX]
1317 By default, \`make install' will install all the files in
1318 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1319 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1320 for instance \`--prefix=\$HOME'.
1322 For better control, use the options below.
1324 Fine tuning of the installation directories:
1325 --bindir=DIR user executables [EPREFIX/bin]
1326 --sbindir=DIR system admin executables [EPREFIX/sbin]
1327 --libexecdir=DIR program executables [EPREFIX/libexec]
1328 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1329 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1330 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1331 --libdir=DIR object code libraries [EPREFIX/lib]
1332 --includedir=DIR C header files [PREFIX/include]
1333 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1334 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1335 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1336 --infodir=DIR info documentation [DATAROOTDIR/info]
1337 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1338 --mandir=DIR man documentation [DATAROOTDIR/man]
1339 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1340 --htmldir=DIR html documentation [DOCDIR]
1341 --dvidir=DIR dvi documentation [DOCDIR]
1342 --pdfdir=DIR pdf documentation [DOCDIR]
1343 --psdir=DIR ps documentation [DOCDIR]
1344 _ACEOF
1346 cat <<\_ACEOF
1348 System types:
1349 --build=BUILD configure for building on BUILD [guessed]
1350 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1351 _ACEOF
1354 if test -n "$ac_init_help"; then
1355 case $ac_init_help in
1356 short | recursive ) echo "Configuration of PostgreSQL 8.4devel:";;
1357 esac
1358 cat <<\_ACEOF
1360 Optional Features:
1361 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1362 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1363 --disable-integer-datetimes
1364 disable 64-bit integer date/time support
1365 --enable-nls[=LANGUAGES]
1366 enable Native Language Support
1367 --disable-shared do not build shared libraries
1368 --disable-rpath do not embed shared library search path in
1369 executables
1370 --disable-spinlocks do not use spinlocks
1371 --enable-debug build with debugging symbols (-g)
1372 --enable-profiling build with profiling enabled
1373 --enable-coverage build with coverage testing instrumentation
1374 --enable-dtrace build with DTrace support
1375 --enable-depend turn on automatic dependency tracking
1376 --enable-cassert enable assertion checks (for debugging)
1377 --enable-thread-safety make client libraries thread-safe
1378 --enable-thread-safety-force
1379 force thread-safety despite thread test failure
1380 --disable-float4-byval disable float4 passed by value
1381 --disable-float8-byval disable float8 passed by value
1382 --disable-largefile omit support for large files
1384 Optional Packages:
1385 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1386 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1387 --with-template=NAME override operating system template
1388 --with-includes=DIRS look for additional header files in DIRS
1389 --with-libraries=DIRS look for additional libraries in DIRS
1390 --with-libs=DIRS alternative spelling of --with-libraries
1391 --with-pgport=PORTNUM set default port number [5432]
1392 --with-blocksize=BLOCKSIZE
1393 set table block size in kB [8]
1394 --with-segsize=SEGSIZE set table segment size in GB [1]
1395 --with-wal-blocksize=BLOCKSIZE
1396 set WAL block size in kB [8]
1397 --with-wal-segsize=SEGSIZE
1398 set WAL segment size in MB [16]
1399 --with-CC=CMD set compiler (deprecated)
1400 --with-tcl build Tcl modules (PL/Tcl)
1401 --with-tclconfig=DIR tclConfig.sh is in DIR
1402 --with-perl build Perl modules (PL/Perl)
1403 --with-python build Python modules (PL/Python)
1404 --with-gssapi build with GSSAPI support
1405 --with-krb5 build with Kerberos 5 support
1406 --with-krb-srvnam=NAME default service principal name in Kerberos
1407 [postgres]
1408 --with-pam build with PAM support
1409 --with-ldap build with LDAP support
1410 --with-bonjour build with Bonjour support
1411 --with-openssl build with OpenSSL support
1412 --without-readline do not use GNU Readline nor BSD Libedit for editing
1413 --with-libedit-preferred
1414 prefer BSD Libedit over GNU Readline
1415 --with-ossp-uuid use OSSP UUID library when building
1416 contrib/uuid-ossp
1417 --with-libxml build with XML support
1418 --with-libxslt use XSLT support when building contrib/xml2
1419 --with-system-tzdata=DIR
1420 use system time zone data in DIR
1421 --without-zlib do not use Zlib
1422 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1424 Some influential environment variables:
1425 CC C compiler command
1426 CFLAGS C compiler flags
1427 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1428 nonstandard directory <lib dir>
1429 LIBS libraries to pass to the linker, e.g. -l<library>
1430 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1431 you have headers in a nonstandard directory <include dir>
1432 CPP C preprocessor
1433 LDFLAGS_SL
1434 DOCBOOKSTYLE
1435 location of DocBook stylesheets
1437 Use these variables to override the choices made by `configure' or to help
1438 it to find libraries and programs with nonstandard names/locations.
1440 Report bugs to <pgsql-bugs@postgresql.org>.
1441 _ACEOF
1442 ac_status=$?
1445 if test "$ac_init_help" = "recursive"; then
1446 # If there are subdirs, report their specific --help.
1447 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1448 test -d "$ac_dir" || continue
1449 ac_builddir=.
1451 case "$ac_dir" in
1452 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1454 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1455 # A ".." for each directory in $ac_dir_suffix.
1456 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1457 case $ac_top_builddir_sub in
1458 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1459 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1460 esac ;;
1461 esac
1462 ac_abs_top_builddir=$ac_pwd
1463 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1464 # for backward compatibility:
1465 ac_top_builddir=$ac_top_build_prefix
1467 case $srcdir in
1468 .) # We are building in place.
1469 ac_srcdir=.
1470 ac_top_srcdir=$ac_top_builddir_sub
1471 ac_abs_top_srcdir=$ac_pwd ;;
1472 [\\/]* | ?:[\\/]* ) # Absolute name.
1473 ac_srcdir=$srcdir$ac_dir_suffix;
1474 ac_top_srcdir=$srcdir
1475 ac_abs_top_srcdir=$srcdir ;;
1476 *) # Relative name.
1477 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1478 ac_top_srcdir=$ac_top_build_prefix$srcdir
1479 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1480 esac
1481 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1483 cd "$ac_dir" || { ac_status=$?; continue; }
1484 # Check for guested configure.
1485 if test -f "$ac_srcdir/configure.gnu"; then
1486 echo &&
1487 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1488 elif test -f "$ac_srcdir/configure"; then
1489 echo &&
1490 $SHELL "$ac_srcdir/configure" --help=recursive
1491 else
1492 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1493 fi || ac_status=$?
1494 cd "$ac_pwd" || { ac_status=$?; break; }
1495 done
1498 test -n "$ac_init_help" && exit $ac_status
1499 if $ac_init_version; then
1500 cat <<\_ACEOF
1501 PostgreSQL configure 8.4devel
1502 generated by GNU Autoconf 2.61
1504 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1505 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1506 This configure script is free software; the Free Software Foundation
1507 gives unlimited permission to copy, distribute and modify it.
1509 Copyright (c) 1996-2008, PostgreSQL Global Development Group
1510 _ACEOF
1511 exit
1513 cat >config.log <<_ACEOF
1514 This file contains any messages produced by compilers while
1515 running configure, to aid debugging if configure makes a mistake.
1517 It was created by PostgreSQL $as_me 8.4devel, which was
1518 generated by GNU Autoconf 2.61. Invocation command line was
1520 $ $0 $@
1522 _ACEOF
1523 exec 5>>config.log
1525 cat <<_ASUNAME
1526 ## --------- ##
1527 ## Platform. ##
1528 ## --------- ##
1530 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1531 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1532 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1533 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1534 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1536 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1537 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1539 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1540 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1541 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1542 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1543 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1544 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1545 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1547 _ASUNAME
1549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1550 for as_dir in $PATH
1552 IFS=$as_save_IFS
1553 test -z "$as_dir" && as_dir=.
1554 echo "PATH: $as_dir"
1555 done
1556 IFS=$as_save_IFS
1558 } >&5
1560 cat >&5 <<_ACEOF
1563 ## ----------- ##
1564 ## Core tests. ##
1565 ## ----------- ##
1567 _ACEOF
1570 # Keep a trace of the command line.
1571 # Strip out --no-create and --no-recursion so they do not pile up.
1572 # Strip out --silent because we don't want to record it for future runs.
1573 # Also quote any args containing shell meta-characters.
1574 # Make two passes to allow for proper duplicate-argument suppression.
1575 ac_configure_args=
1576 ac_configure_args0=
1577 ac_configure_args1=
1578 ac_must_keep_next=false
1579 for ac_pass in 1 2
1581 for ac_arg
1583 case $ac_arg in
1584 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1585 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1586 | -silent | --silent | --silen | --sile | --sil)
1587 continue ;;
1588 *\'*)
1589 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1590 esac
1591 case $ac_pass in
1592 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1594 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1595 if test $ac_must_keep_next = true; then
1596 ac_must_keep_next=false # Got value, back to normal.
1597 else
1598 case $ac_arg in
1599 *=* | --config-cache | -C | -disable-* | --disable-* \
1600 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1601 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1602 | -with-* | --with-* | -without-* | --without-* | --x)
1603 case "$ac_configure_args0 " in
1604 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1605 esac
1607 -* ) ac_must_keep_next=true ;;
1608 esac
1610 ac_configure_args="$ac_configure_args '$ac_arg'"
1612 esac
1613 done
1614 done
1615 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1616 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1618 # When interrupted or exit'd, cleanup temporary files, and complete
1619 # config.log. We remove comments because anyway the quotes in there
1620 # would cause problems or look ugly.
1621 # WARNING: Use '\'' to represent an apostrophe within the trap.
1622 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1623 trap 'exit_status=$?
1624 # Save into config.log some information that might help in debugging.
1626 echo
1628 cat <<\_ASBOX
1629 ## ---------------- ##
1630 ## Cache variables. ##
1631 ## ---------------- ##
1632 _ASBOX
1633 echo
1634 # The following way of writing the cache mishandles newlines in values,
1636 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1637 eval ac_val=\$$ac_var
1638 case $ac_val in #(
1639 *${as_nl}*)
1640 case $ac_var in #(
1641 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1642 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1643 esac
1644 case $ac_var in #(
1645 _ | IFS | as_nl) ;; #(
1646 *) $as_unset $ac_var ;;
1647 esac ;;
1648 esac
1649 done
1650 (set) 2>&1 |
1651 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1652 *${as_nl}ac_space=\ *)
1653 sed -n \
1654 "s/'\''/'\''\\\\'\'''\''/g;
1655 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1656 ;; #(
1658 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1660 esac |
1661 sort
1663 echo
1665 cat <<\_ASBOX
1666 ## ----------------- ##
1667 ## Output variables. ##
1668 ## ----------------- ##
1669 _ASBOX
1670 echo
1671 for ac_var in $ac_subst_vars
1673 eval ac_val=\$$ac_var
1674 case $ac_val in
1675 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1676 esac
1677 echo "$ac_var='\''$ac_val'\''"
1678 done | sort
1679 echo
1681 if test -n "$ac_subst_files"; then
1682 cat <<\_ASBOX
1683 ## ------------------- ##
1684 ## File substitutions. ##
1685 ## ------------------- ##
1686 _ASBOX
1687 echo
1688 for ac_var in $ac_subst_files
1690 eval ac_val=\$$ac_var
1691 case $ac_val in
1692 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1693 esac
1694 echo "$ac_var='\''$ac_val'\''"
1695 done | sort
1696 echo
1699 if test -s confdefs.h; then
1700 cat <<\_ASBOX
1701 ## ----------- ##
1702 ## confdefs.h. ##
1703 ## ----------- ##
1704 _ASBOX
1705 echo
1706 cat confdefs.h
1707 echo
1709 test "$ac_signal" != 0 &&
1710 echo "$as_me: caught signal $ac_signal"
1711 echo "$as_me: exit $exit_status"
1712 } >&5
1713 rm -f core *.core core.conftest.* &&
1714 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1715 exit $exit_status
1717 for ac_signal in 1 2 13 15; do
1718 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1719 done
1720 ac_signal=0
1722 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1723 rm -f -r conftest* confdefs.h
1725 # Predefined preprocessor variables.
1727 cat >>confdefs.h <<_ACEOF
1728 #define PACKAGE_NAME "$PACKAGE_NAME"
1729 _ACEOF
1732 cat >>confdefs.h <<_ACEOF
1733 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1734 _ACEOF
1737 cat >>confdefs.h <<_ACEOF
1738 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1739 _ACEOF
1742 cat >>confdefs.h <<_ACEOF
1743 #define PACKAGE_STRING "$PACKAGE_STRING"
1744 _ACEOF
1747 cat >>confdefs.h <<_ACEOF
1748 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1749 _ACEOF
1752 # Let the site file select an alternate cache file if it wants to.
1753 # Prefer explicitly selected file to automatically selected ones.
1754 if test -n "$CONFIG_SITE"; then
1755 set x "$CONFIG_SITE"
1756 elif test "x$prefix" != xNONE; then
1757 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1758 else
1759 set x "$ac_default_prefix/share/config.site" \
1760 "$ac_default_prefix/etc/config.site"
1762 shift
1763 for ac_site_file
1765 if test -r "$ac_site_file"; then
1766 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1767 echo "$as_me: loading site script $ac_site_file" >&6;}
1768 sed 's/^/| /' "$ac_site_file" >&5
1769 . "$ac_site_file"
1771 done
1773 if test -r "$cache_file"; then
1774 # Some versions of bash will fail to source /dev/null (special
1775 # files actually), so we avoid doing that.
1776 if test -f "$cache_file"; then
1777 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1778 echo "$as_me: loading cache $cache_file" >&6;}
1779 case $cache_file in
1780 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1781 *) . "./$cache_file";;
1782 esac
1784 else
1785 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1786 echo "$as_me: creating cache $cache_file" >&6;}
1787 >$cache_file
1790 # Check that the precious variables saved in the cache have kept the same
1791 # value.
1792 ac_cache_corrupted=false
1793 for ac_var in $ac_precious_vars; do
1794 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1795 eval ac_new_set=\$ac_env_${ac_var}_set
1796 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1797 eval ac_new_val=\$ac_env_${ac_var}_value
1798 case $ac_old_set,$ac_new_set in
1799 set,)
1800 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1801 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1802 ac_cache_corrupted=: ;;
1803 ,set)
1804 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1805 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1806 ac_cache_corrupted=: ;;
1807 ,);;
1809 if test "x$ac_old_val" != "x$ac_new_val"; then
1810 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1811 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1812 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1813 echo "$as_me: former value: $ac_old_val" >&2;}
1814 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1815 echo "$as_me: current value: $ac_new_val" >&2;}
1816 ac_cache_corrupted=:
1817 fi;;
1818 esac
1819 # Pass precious variables to config.status.
1820 if test "$ac_new_set" = set; then
1821 case $ac_new_val in
1822 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1823 *) ac_arg=$ac_var=$ac_new_val ;;
1824 esac
1825 case " $ac_configure_args " in
1826 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1827 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1828 esac
1830 done
1831 if $ac_cache_corrupted; then
1832 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1833 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1834 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1835 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1836 { (exit 1); exit 1; }; }
1863 ac_ext=c
1864 ac_cpp='$CPP $CPPFLAGS'
1865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1874 ac_aux_dir=
1875 for ac_dir in config "$srcdir"/config; do
1876 if test -f "$ac_dir/install-sh"; then
1877 ac_aux_dir=$ac_dir
1878 ac_install_sh="$ac_aux_dir/install-sh -c"
1879 break
1880 elif test -f "$ac_dir/install.sh"; then
1881 ac_aux_dir=$ac_dir
1882 ac_install_sh="$ac_aux_dir/install.sh -c"
1883 break
1884 elif test -f "$ac_dir/shtool"; then
1885 ac_aux_dir=$ac_dir
1886 ac_install_sh="$ac_aux_dir/shtool install -c"
1887 break
1889 done
1890 if test -z "$ac_aux_dir"; then
1891 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1892 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1893 { (exit 1); exit 1; }; }
1896 # These three variables are undocumented and unsupported,
1897 # and are intended to be withdrawn in a future Autoconf release.
1898 # They can cause serious problems if a builder's source tree is in a directory
1899 # whose full name contains unusual characters.
1900 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1901 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1902 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1906 configure_args=$ac_configure_args
1910 cat >>confdefs.h <<_ACEOF
1911 #define PG_VERSION "$PACKAGE_VERSION"
1912 _ACEOF
1914 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
1917 cat >>confdefs.h <<_ACEOF
1918 #define PG_MAJORVERSION "$PG_MAJORVERSION"
1919 _ACEOF
1922 # Make sure we can run config.sub.
1923 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1924 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1925 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1926 { (exit 1); exit 1; }; }
1928 { echo "$as_me:$LINENO: checking build system type" >&5
1929 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1930 if test "${ac_cv_build+set}" = set; then
1931 echo $ECHO_N "(cached) $ECHO_C" >&6
1932 else
1933 ac_build_alias=$build_alias
1934 test "x$ac_build_alias" = x &&
1935 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1936 test "x$ac_build_alias" = x &&
1937 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1938 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1939 { (exit 1); exit 1; }; }
1940 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1941 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1942 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1943 { (exit 1); exit 1; }; }
1946 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1947 echo "${ECHO_T}$ac_cv_build" >&6; }
1948 case $ac_cv_build in
1949 *-*-*) ;;
1950 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1951 echo "$as_me: error: invalid value of canonical build" >&2;}
1952 { (exit 1); exit 1; }; };;
1953 esac
1954 build=$ac_cv_build
1955 ac_save_IFS=$IFS; IFS='-'
1956 set x $ac_cv_build
1957 shift
1958 build_cpu=$1
1959 build_vendor=$2
1960 shift; shift
1961 # Remember, the first character of IFS is used to create $*,
1962 # except with old shells:
1963 build_os=$*
1964 IFS=$ac_save_IFS
1965 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1968 { echo "$as_me:$LINENO: checking host system type" >&5
1969 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1970 if test "${ac_cv_host+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1972 else
1973 if test "x$host_alias" = x; then
1974 ac_cv_host=$ac_cv_build
1975 else
1976 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1977 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1978 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1979 { (exit 1); exit 1; }; }
1983 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1984 echo "${ECHO_T}$ac_cv_host" >&6; }
1985 case $ac_cv_host in
1986 *-*-*) ;;
1987 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1988 echo "$as_me: error: invalid value of canonical host" >&2;}
1989 { (exit 1); exit 1; }; };;
1990 esac
1991 host=$ac_cv_host
1992 ac_save_IFS=$IFS; IFS='-'
1993 set x $ac_cv_host
1994 shift
1995 host_cpu=$1
1996 host_vendor=$2
1997 shift; shift
1998 # Remember, the first character of IFS is used to create $*,
1999 # except with old shells:
2000 host_os=$*
2001 IFS=$ac_save_IFS
2002 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2006 template=
2007 { echo "$as_me:$LINENO: checking which template to use" >&5
2008 echo $ECHO_N "checking which template to use... $ECHO_C" >&6; }
2011 pgac_args="$pgac_args with_template"
2014 # Check whether --with-template was given.
2015 if test "${with_template+set}" = set; then
2016 withval=$with_template;
2017 case $withval in
2018 yes)
2019 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2020 echo "$as_me: error: argument required for --with-template option" >&2;}
2021 { (exit 1); exit 1; }; }
2024 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2025 echo "$as_me: error: argument required for --with-template option" >&2;}
2026 { (exit 1); exit 1; }; }
2030 case $withval in
2031 list) echo; ls "$srcdir/src/template"; exit;;
2032 *) if test -f "$srcdir/src/template/$with_template" ; then
2033 template=$withval
2034 else
2035 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2036 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2037 { (exit 1); exit 1; }; }
2038 fi;;
2039 esac
2042 esac
2044 else
2046 # --with-template not given
2048 case $host_os in
2049 aix*) template=aix ;;
2050 bsdi*) template=bsdi ;;
2051 cygwin*) template=cygwin ;;
2052 darwin*) template=darwin ;;
2053 dgux*) template=dgux ;;
2054 freebsd*) template=freebsd ;;
2055 hpux*) template=hpux ;;
2056 irix*) template=irix ;;
2057 linux*|gnu*|k*bsd*-gnu)
2058 template=linux ;;
2059 mingw*) template=win32 ;;
2060 netbsd*) template=netbsd ;;
2061 nextstep*) template=nextstep ;;
2062 openbsd*) template=openbsd ;;
2063 osf*) template=osf ;;
2064 sco*) template=sco ;;
2065 solaris*) template=solaris ;;
2066 sunos*) template=sunos4 ;;
2067 sysv4.2*)
2068 case $host_vendor in
2069 univel) template=univel ;;
2070 esac ;;
2071 sysv4*) template=svr4 ;;
2072 sysv5*) template=unixware ;;
2073 ultrix*) template=ultrix4 ;;
2074 esac
2076 if test x"$template" = x"" ; then
2077 { { echo "$as_me:$LINENO: error:
2078 *******************************************************************
2079 PostgreSQL has apparently not been ported to your platform yet.
2080 To try a manual configuration, look into the src/template directory
2081 for a similar platform and use the '--with-template=' option.
2083 Please also contact <pgsql-ports@postgresql.org> to see about
2084 rectifying this. Include the above 'checking host system type...'
2085 line.
2086 *******************************************************************
2087 " >&5
2088 echo "$as_me: error:
2089 *******************************************************************
2090 PostgreSQL has apparently not been ported to your platform yet.
2091 To try a manual configuration, look into the src/template directory
2092 for a similar platform and use the '--with-template=' option.
2094 Please also contact <pgsql-ports@postgresql.org> to see about
2095 rectifying this. Include the above 'checking host system type...'
2096 line.
2097 *******************************************************************
2098 " >&2;}
2099 { (exit 1); exit 1; }; }
2107 { echo "$as_me:$LINENO: result: $template" >&5
2108 echo "${ECHO_T}$template" >&6; }
2110 PORTNAME=$template
2113 # Initialize default assumption that we do not need separate assembly code
2114 # for TAS (test-and-set). This can be overridden by the template file
2115 # when it's executed.
2116 need_tas=no
2117 tas_file=dummy.s
2122 ## Command line options
2126 # Add non-standard directories to the include path
2129 pgac_args="$pgac_args with_includes"
2132 # Check whether --with-includes was given.
2133 if test "${with_includes+set}" = set; then
2134 withval=$with_includes;
2135 case $withval in
2136 yes)
2137 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2138 echo "$as_me: error: argument required for --with-includes option" >&2;}
2139 { (exit 1); exit 1; }; }
2142 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2143 echo "$as_me: error: argument required for --with-includes option" >&2;}
2144 { (exit 1); exit 1; }; }
2149 esac
2157 # Add non-standard directories to the library search path
2160 pgac_args="$pgac_args with_libraries"
2163 # Check whether --with-libraries was given.
2164 if test "${with_libraries+set}" = set; then
2165 withval=$with_libraries;
2166 case $withval in
2167 yes)
2168 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2169 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2170 { (exit 1); exit 1; }; }
2173 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2174 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2175 { (exit 1); exit 1; }; }
2178 LIBRARY_DIRS=$withval
2180 esac
2187 pgac_args="$pgac_args with_libs"
2190 # Check whether --with-libs was given.
2191 if test "${with_libs+set}" = set; then
2192 withval=$with_libs;
2193 case $withval in
2194 yes)
2195 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2196 echo "$as_me: error: argument required for --with-libs option" >&2;}
2197 { (exit 1); exit 1; }; }
2200 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2201 echo "$as_me: error: argument required for --with-libs option" >&2;}
2202 { (exit 1); exit 1; }; }
2205 LIBRARY_DIRS=$withval
2207 esac
2215 # 64-bit integer date/time storage: enabled by default.
2217 { echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2218 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6; }
2220 pgac_args="$pgac_args enable_integer_datetimes"
2222 # Check whether --enable-integer-datetimes was given.
2223 if test "${enable_integer_datetimes+set}" = set; then
2224 enableval=$enable_integer_datetimes;
2225 case $enableval in
2226 yes)
2228 cat >>confdefs.h <<\_ACEOF
2229 #define USE_INTEGER_DATETIMES 1
2230 _ACEOF
2237 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2238 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2239 { (exit 1); exit 1; }; }
2241 esac
2243 else
2244 enable_integer_datetimes=yes
2246 cat >>confdefs.h <<\_ACEOF
2247 #define USE_INTEGER_DATETIMES 1
2248 _ACEOF
2253 { echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2254 echo "${ECHO_T}$enable_integer_datetimes" >&6; }
2258 # NLS
2260 { echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2261 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6; }
2263 pgac_args="$pgac_args enable_nls"
2265 # Check whether --enable-nls was given.
2266 if test "${enable_nls+set}" = set; then
2267 enableval=$enable_nls;
2268 case $enableval in
2269 yes)
2276 enable_nls=yes
2277 WANTED_LANGUAGES=$enableval
2279 esac
2281 else
2282 enable_nls=no
2287 if test "$enable_nls" = yes; then
2289 cat >>confdefs.h <<\_ACEOF
2290 #define ENABLE_NLS 1
2291 _ACEOF
2295 { echo "$as_me:$LINENO: result: $enable_nls" >&5
2296 echo "${ECHO_T}$enable_nls" >&6; }
2301 # Default port number (--with-pgport), default 5432
2303 { echo "$as_me:$LINENO: checking for default port number" >&5
2304 echo $ECHO_N "checking for default port number... $ECHO_C" >&6; }
2306 pgac_args="$pgac_args with_pgport"
2309 # Check whether --with-pgport was given.
2310 if test "${with_pgport+set}" = set; then
2311 withval=$with_pgport;
2312 case $withval in
2313 yes)
2314 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2315 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2316 { (exit 1); exit 1; }; }
2319 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2320 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2321 { (exit 1); exit 1; }; }
2324 default_port=$withval
2326 esac
2328 else
2329 default_port=5432
2333 { echo "$as_me:$LINENO: result: $default_port" >&5
2334 echo "${ECHO_T}$default_port" >&6; }
2335 # Need both of these because some places want an integer and some a string
2337 cat >>confdefs.h <<_ACEOF
2338 #define DEF_PGPORT ${default_port}
2339 _ACEOF
2342 cat >>confdefs.h <<_ACEOF
2343 #define DEF_PGPORT_STR "${default_port}"
2344 _ACEOF
2349 # Option to disable shared libraries
2352 pgac_args="$pgac_args enable_shared"
2354 # Check whether --enable-shared was given.
2355 if test "${enable_shared+set}" = set; then
2356 enableval=$enable_shared;
2357 case $enableval in
2358 yes)
2365 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2366 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2367 { (exit 1); exit 1; }; }
2369 esac
2371 else
2372 enable_shared=yes
2380 # '-rpath'-like feature can be disabled
2383 pgac_args="$pgac_args enable_rpath"
2385 # Check whether --enable-rpath was given.
2386 if test "${enable_rpath+set}" = set; then
2387 enableval=$enable_rpath;
2388 case $enableval in
2389 yes)
2396 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2397 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2398 { (exit 1); exit 1; }; }
2400 esac
2402 else
2403 enable_rpath=yes
2411 # Spinlocks
2414 pgac_args="$pgac_args enable_spinlocks"
2416 # Check whether --enable-spinlocks was given.
2417 if test "${enable_spinlocks+set}" = set; then
2418 enableval=$enable_spinlocks;
2419 case $enableval in
2420 yes)
2427 { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2428 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2429 { (exit 1); exit 1; }; }
2431 esac
2433 else
2434 enable_spinlocks=yes
2441 # --enable-debug adds -g to compiler flags
2444 pgac_args="$pgac_args enable_debug"
2446 # Check whether --enable-debug was given.
2447 if test "${enable_debug+set}" = set; then
2448 enableval=$enable_debug;
2449 case $enableval in
2450 yes)
2457 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2458 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2459 { (exit 1); exit 1; }; }
2461 esac
2463 else
2464 enable_debug=no
2472 # --enable-profiling enables gcc profiling
2475 pgac_args="$pgac_args enable_profiling"
2477 # Check whether --enable-profiling was given.
2478 if test "${enable_profiling+set}" = set; then
2479 enableval=$enable_profiling;
2480 case $enableval in
2481 yes)
2488 { { echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2489 echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2490 { (exit 1); exit 1; }; }
2492 esac
2494 else
2495 enable_profiling=no
2503 # --enable-coverage enables generation of code coverage metrics with gcov
2506 pgac_args="$pgac_args enable_coverage"
2508 # Check whether --enable-coverage was given.
2509 if test "${enable_coverage+set}" = set; then
2510 enableval=$enable_coverage;
2511 case $enableval in
2512 yes)
2513 for ac_prog in gcov
2515 # Extract the first word of "$ac_prog", so it can be a program name with args.
2516 set dummy $ac_prog; ac_word=$2
2517 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2519 if test "${ac_cv_prog_GCOV+set}" = set; then
2520 echo $ECHO_N "(cached) $ECHO_C" >&6
2521 else
2522 if test -n "$GCOV"; then
2523 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2524 else
2525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 for as_dir in $PATH
2528 IFS=$as_save_IFS
2529 test -z "$as_dir" && as_dir=.
2530 for ac_exec_ext in '' $ac_executable_extensions; do
2531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2532 ac_cv_prog_GCOV="$ac_prog"
2533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2534 break 2
2536 done
2537 done
2538 IFS=$as_save_IFS
2542 GCOV=$ac_cv_prog_GCOV
2543 if test -n "$GCOV"; then
2544 { echo "$as_me:$LINENO: result: $GCOV" >&5
2545 echo "${ECHO_T}$GCOV" >&6; }
2546 else
2547 { echo "$as_me:$LINENO: result: no" >&5
2548 echo "${ECHO_T}no" >&6; }
2552 test -n "$GCOV" && break
2553 done
2555 if test -z "$GCOV"; then
2556 { { echo "$as_me:$LINENO: error: gcov not found" >&5
2557 echo "$as_me: error: gcov not found" >&2;}
2558 { (exit 1); exit 1; }; }
2560 for ac_prog in lcov
2562 # Extract the first word of "$ac_prog", so it can be a program name with args.
2563 set dummy $ac_prog; ac_word=$2
2564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2566 if test "${ac_cv_prog_LCOV+set}" = set; then
2567 echo $ECHO_N "(cached) $ECHO_C" >&6
2568 else
2569 if test -n "$LCOV"; then
2570 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2571 else
2572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573 for as_dir in $PATH
2575 IFS=$as_save_IFS
2576 test -z "$as_dir" && as_dir=.
2577 for ac_exec_ext in '' $ac_executable_extensions; do
2578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2579 ac_cv_prog_LCOV="$ac_prog"
2580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2581 break 2
2583 done
2584 done
2585 IFS=$as_save_IFS
2589 LCOV=$ac_cv_prog_LCOV
2590 if test -n "$LCOV"; then
2591 { echo "$as_me:$LINENO: result: $LCOV" >&5
2592 echo "${ECHO_T}$LCOV" >&6; }
2593 else
2594 { echo "$as_me:$LINENO: result: no" >&5
2595 echo "${ECHO_T}no" >&6; }
2599 test -n "$LCOV" && break
2600 done
2602 if test -z "$LCOV"; then
2603 { { echo "$as_me:$LINENO: error: lcov not found" >&5
2604 echo "$as_me: error: lcov not found" >&2;}
2605 { (exit 1); exit 1; }; }
2607 for ac_prog in genhtml
2609 # Extract the first word of "$ac_prog", so it can be a program name with args.
2610 set dummy $ac_prog; ac_word=$2
2611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2613 if test "${ac_cv_prog_GENHTML+set}" = set; then
2614 echo $ECHO_N "(cached) $ECHO_C" >&6
2615 else
2616 if test -n "$GENHTML"; then
2617 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2618 else
2619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620 for as_dir in $PATH
2622 IFS=$as_save_IFS
2623 test -z "$as_dir" && as_dir=.
2624 for ac_exec_ext in '' $ac_executable_extensions; do
2625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2626 ac_cv_prog_GENHTML="$ac_prog"
2627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2628 break 2
2630 done
2631 done
2632 IFS=$as_save_IFS
2636 GENHTML=$ac_cv_prog_GENHTML
2637 if test -n "$GENHTML"; then
2638 { echo "$as_me:$LINENO: result: $GENHTML" >&5
2639 echo "${ECHO_T}$GENHTML" >&6; }
2640 else
2641 { echo "$as_me:$LINENO: result: no" >&5
2642 echo "${ECHO_T}no" >&6; }
2646 test -n "$GENHTML" && break
2647 done
2649 if test -z "$GENHTML"; then
2650 { { echo "$as_me:$LINENO: error: genhtml not found" >&5
2651 echo "$as_me: error: genhtml not found" >&2;}
2652 { (exit 1); exit 1; }; }
2659 { { echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2660 echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2661 { (exit 1); exit 1; }; }
2663 esac
2665 else
2666 enable_coverage=no
2674 # DTrace
2677 pgac_args="$pgac_args enable_dtrace"
2679 # Check whether --enable-dtrace was given.
2680 if test "${enable_dtrace+set}" = set; then
2681 enableval=$enable_dtrace;
2682 case $enableval in
2683 yes)
2685 cat >>confdefs.h <<\_ACEOF
2686 #define ENABLE_DTRACE 1
2687 _ACEOF
2689 for ac_prog in dtrace
2691 # Extract the first word of "$ac_prog", so it can be a program name with args.
2692 set dummy $ac_prog; ac_word=$2
2693 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2695 if test "${ac_cv_prog_DTRACE+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2697 else
2698 if test -n "$DTRACE"; then
2699 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2700 else
2701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702 for as_dir in $PATH
2704 IFS=$as_save_IFS
2705 test -z "$as_dir" && as_dir=.
2706 for ac_exec_ext in '' $ac_executable_extensions; do
2707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2708 ac_cv_prog_DTRACE="$ac_prog"
2709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2710 break 2
2712 done
2713 done
2714 IFS=$as_save_IFS
2718 DTRACE=$ac_cv_prog_DTRACE
2719 if test -n "$DTRACE"; then
2720 { echo "$as_me:$LINENO: result: $DTRACE" >&5
2721 echo "${ECHO_T}$DTRACE" >&6; }
2722 else
2723 { echo "$as_me:$LINENO: result: no" >&5
2724 echo "${ECHO_T}no" >&6; }
2728 test -n "$DTRACE" && break
2729 done
2731 if test -z "$DTRACE"; then
2732 { { echo "$as_me:$LINENO: error: dtrace not found" >&5
2733 echo "$as_me: error: dtrace not found" >&2;}
2734 { (exit 1); exit 1; }; }
2742 { { echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2743 echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2744 { (exit 1); exit 1; }; }
2746 esac
2748 else
2749 enable_dtrace=no
2757 # Block size
2759 { echo "$as_me:$LINENO: checking for block size" >&5
2760 echo $ECHO_N "checking for block size... $ECHO_C" >&6; }
2762 pgac_args="$pgac_args with_blocksize"
2765 # Check whether --with-blocksize was given.
2766 if test "${with_blocksize+set}" = set; then
2767 withval=$with_blocksize;
2768 case $withval in
2769 yes)
2770 { { echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2771 echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2772 { (exit 1); exit 1; }; }
2775 { { echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2776 echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2777 { (exit 1); exit 1; }; }
2780 blocksize=$withval
2782 esac
2784 else
2785 blocksize=8
2789 case ${blocksize} in
2790 1) BLCKSZ=1024;;
2791 2) BLCKSZ=2048;;
2792 4) BLCKSZ=4096;;
2793 8) BLCKSZ=8192;;
2794 16) BLCKSZ=16384;;
2795 32) BLCKSZ=32768;;
2796 *) { { echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2797 echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2798 { (exit 1); exit 1; }; }
2799 esac
2800 { echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2801 echo "${ECHO_T}${blocksize}kB" >&6; }
2804 cat >>confdefs.h <<_ACEOF
2805 #define BLCKSZ ${BLCKSZ}
2806 _ACEOF
2810 # Relation segment size
2812 { echo "$as_me:$LINENO: checking for segment size" >&5
2813 echo $ECHO_N "checking for segment size... $ECHO_C" >&6; }
2815 pgac_args="$pgac_args with_segsize"
2818 # Check whether --with-segsize was given.
2819 if test "${with_segsize+set}" = set; then
2820 withval=$with_segsize;
2821 case $withval in
2822 yes)
2823 { { echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2824 echo "$as_me: error: argument required for --with-segsize option" >&2;}
2825 { (exit 1); exit 1; }; }
2828 { { echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2829 echo "$as_me: error: argument required for --with-segsize option" >&2;}
2830 { (exit 1); exit 1; }; }
2833 segsize=$withval
2835 esac
2837 else
2838 segsize=1
2842 # this expression is set up to avoid unnecessary integer overflow
2843 # blocksize is already guaranteed to be a factor of 1024
2844 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2845 test $? -eq 0 || exit 1
2846 { echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2847 echo "${ECHO_T}${segsize}GB" >&6; }
2850 cat >>confdefs.h <<_ACEOF
2851 #define RELSEG_SIZE ${RELSEG_SIZE}
2852 _ACEOF
2856 # WAL block size
2858 { echo "$as_me:$LINENO: checking for WAL block size" >&5
2859 echo $ECHO_N "checking for WAL block size... $ECHO_C" >&6; }
2861 pgac_args="$pgac_args with_wal_blocksize"
2864 # Check whether --with-wal-blocksize was given.
2865 if test "${with_wal_blocksize+set}" = set; then
2866 withval=$with_wal_blocksize;
2867 case $withval in
2868 yes)
2869 { { echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2870 echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2871 { (exit 1); exit 1; }; }
2874 { { echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2875 echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2876 { (exit 1); exit 1; }; }
2879 wal_blocksize=$withval
2881 esac
2883 else
2884 wal_blocksize=8
2888 case ${wal_blocksize} in
2889 1) XLOG_BLCKSZ=1024;;
2890 2) XLOG_BLCKSZ=2048;;
2891 4) XLOG_BLCKSZ=4096;;
2892 8) XLOG_BLCKSZ=8192;;
2893 16) XLOG_BLCKSZ=16384;;
2894 32) XLOG_BLCKSZ=32768;;
2895 64) XLOG_BLCKSZ=65536;;
2896 *) { { echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
2897 echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2898 { (exit 1); exit 1; }; }
2899 esac
2900 { echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
2901 echo "${ECHO_T}${wal_blocksize}kB" >&6; }
2904 cat >>confdefs.h <<_ACEOF
2905 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
2906 _ACEOF
2910 # WAL segment size
2912 { echo "$as_me:$LINENO: checking for WAL segment size" >&5
2913 echo $ECHO_N "checking for WAL segment size... $ECHO_C" >&6; }
2915 pgac_args="$pgac_args with_wal_segsize"
2918 # Check whether --with-wal-segsize was given.
2919 if test "${with_wal_segsize+set}" = set; then
2920 withval=$with_wal_segsize;
2921 case $withval in
2922 yes)
2923 { { echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
2924 echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
2925 { (exit 1); exit 1; }; }
2928 { { echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
2929 echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
2930 { (exit 1); exit 1; }; }
2933 wal_segsize=$withval
2935 esac
2937 else
2938 wal_segsize=16
2942 case ${wal_segsize} in
2943 1) ;;
2944 2) ;;
2945 4) ;;
2946 8) ;;
2947 16) ;;
2948 32) ;;
2949 64) ;;
2950 *) { { echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
2951 echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2952 { (exit 1); exit 1; }; }
2953 esac
2954 { echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
2955 echo "${ECHO_T}${wal_segsize}MB" >&6; }
2958 cat >>confdefs.h <<_ACEOF
2959 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
2960 _ACEOF
2964 # C compiler
2967 # For historical reasons you can also use --with-CC to specify the C compiler
2968 # to use, although the standard way to do this is to set the CC environment
2969 # variable.
2971 pgac_args="$pgac_args with_CC"
2974 # Check whether --with-CC was given.
2975 if test "${with_CC+set}" = set; then
2976 withval=$with_CC;
2977 case $withval in
2978 yes)
2979 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2980 echo "$as_me: error: argument required for --with-CC option" >&2;}
2981 { (exit 1); exit 1; }; }
2984 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2985 echo "$as_me: error: argument required for --with-CC option" >&2;}
2986 { (exit 1); exit 1; }; }
2989 CC=$with_CC
2991 esac
2997 case $template in
2998 aix) pgac_cc_list="gcc xlc";;
2999 irix) pgac_cc_list="cc";; # no gcc
3000 *) pgac_cc_list="gcc cc";;
3001 esac
3003 ac_ext=c
3004 ac_cpp='$CPP $CPPFLAGS'
3005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3008 if test -n "$ac_tool_prefix"; then
3009 for ac_prog in $pgac_cc_list
3011 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3012 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3015 if test "${ac_cv_prog_CC+set}" = set; then
3016 echo $ECHO_N "(cached) $ECHO_C" >&6
3017 else
3018 if test -n "$CC"; then
3019 ac_cv_prog_CC="$CC" # Let the user override the test.
3020 else
3021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3022 for as_dir in $PATH
3024 IFS=$as_save_IFS
3025 test -z "$as_dir" && as_dir=.
3026 for ac_exec_ext in '' $ac_executable_extensions; do
3027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3028 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3030 break 2
3032 done
3033 done
3034 IFS=$as_save_IFS
3038 CC=$ac_cv_prog_CC
3039 if test -n "$CC"; then
3040 { echo "$as_me:$LINENO: result: $CC" >&5
3041 echo "${ECHO_T}$CC" >&6; }
3042 else
3043 { echo "$as_me:$LINENO: result: no" >&5
3044 echo "${ECHO_T}no" >&6; }
3048 test -n "$CC" && break
3049 done
3051 if test -z "$CC"; then
3052 ac_ct_CC=$CC
3053 for ac_prog in $pgac_cc_list
3055 # Extract the first word of "$ac_prog", so it can be a program name with args.
3056 set dummy $ac_prog; ac_word=$2
3057 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3059 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3060 echo $ECHO_N "(cached) $ECHO_C" >&6
3061 else
3062 if test -n "$ac_ct_CC"; then
3063 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3064 else
3065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3066 for as_dir in $PATH
3068 IFS=$as_save_IFS
3069 test -z "$as_dir" && as_dir=.
3070 for ac_exec_ext in '' $ac_executable_extensions; do
3071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3072 ac_cv_prog_ac_ct_CC="$ac_prog"
3073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3074 break 2
3076 done
3077 done
3078 IFS=$as_save_IFS
3082 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3083 if test -n "$ac_ct_CC"; then
3084 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3085 echo "${ECHO_T}$ac_ct_CC" >&6; }
3086 else
3087 { echo "$as_me:$LINENO: result: no" >&5
3088 echo "${ECHO_T}no" >&6; }
3092 test -n "$ac_ct_CC" && break
3093 done
3095 if test "x$ac_ct_CC" = x; then
3096 CC=""
3097 else
3098 case $cross_compiling:$ac_tool_warned in
3099 yes:)
3100 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3101 whose name does not start with the host triplet. If you think this
3102 configuration is useful to you, please write to autoconf@gnu.org." >&5
3103 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3104 whose name does not start with the host triplet. If you think this
3105 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3106 ac_tool_warned=yes ;;
3107 esac
3108 CC=$ac_ct_CC
3113 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3114 See \`config.log' for more details." >&5
3115 echo "$as_me: error: no acceptable C compiler found in \$PATH
3116 See \`config.log' for more details." >&2;}
3117 { (exit 1); exit 1; }; }
3119 # Provide some information about the compiler.
3120 echo "$as_me:$LINENO: checking for C compiler version" >&5
3121 ac_compiler=`set X $ac_compile; echo $2`
3122 { (ac_try="$ac_compiler --version >&5"
3123 case "(($ac_try" in
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3126 esac
3127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128 (eval "$ac_compiler --version >&5") 2>&5
3129 ac_status=$?
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); }
3132 { (ac_try="$ac_compiler -v >&5"
3133 case "(($ac_try" in
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3136 esac
3137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138 (eval "$ac_compiler -v >&5") 2>&5
3139 ac_status=$?
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }
3142 { (ac_try="$ac_compiler -V >&5"
3143 case "(($ac_try" in
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3146 esac
3147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148 (eval "$ac_compiler -V >&5") 2>&5
3149 ac_status=$?
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); }
3153 cat >conftest.$ac_ext <<_ACEOF
3154 /* confdefs.h. */
3155 _ACEOF
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h. */
3161 main ()
3165 return 0;
3167 _ACEOF
3168 ac_clean_files_save=$ac_clean_files
3169 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3170 # Try to create an executable without -o first, disregard a.out.
3171 # It will help us diagnose broken compilers, and finding out an intuition
3172 # of exeext.
3173 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3174 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3175 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3177 # List of possible output files, starting from the most likely.
3178 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3179 # only as a last resort. b.out is created by i960 compilers.
3180 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3182 # The IRIX 6 linker writes into existing files which may not be
3183 # executable, retaining their permissions. Remove them first so a
3184 # subsequent execution test works.
3185 ac_rmfiles=
3186 for ac_file in $ac_files
3188 case $ac_file in
3189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3190 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3191 esac
3192 done
3193 rm -f $ac_rmfiles
3195 if { (ac_try="$ac_link_default"
3196 case "(($ac_try" in
3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198 *) ac_try_echo=$ac_try;;
3199 esac
3200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3201 (eval "$ac_link_default") 2>&5
3202 ac_status=$?
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); }; then
3205 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3206 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3207 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3208 # so that the user can short-circuit this test for compilers unknown to
3209 # Autoconf.
3210 for ac_file in $ac_files ''
3212 test -f "$ac_file" || continue
3213 case $ac_file in
3214 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3216 [ab].out )
3217 # We found the default executable, but exeext='' is most
3218 # certainly right.
3219 break;;
3220 *.* )
3221 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3222 then :; else
3223 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3225 # We set ac_cv_exeext here because the later test for it is not
3226 # safe: cross compilers may not add the suffix if given an `-o'
3227 # argument, so we may need to know it at that point already.
3228 # Even if this section looks crufty: it has the advantage of
3229 # actually working.
3230 break;;
3232 break;;
3233 esac
3234 done
3235 test "$ac_cv_exeext" = no && ac_cv_exeext=
3237 else
3238 ac_file=''
3241 { echo "$as_me:$LINENO: result: $ac_file" >&5
3242 echo "${ECHO_T}$ac_file" >&6; }
3243 if test -z "$ac_file"; then
3244 echo "$as_me: failed program was:" >&5
3245 sed 's/^/| /' conftest.$ac_ext >&5
3247 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3248 See \`config.log' for more details." >&5
3249 echo "$as_me: error: C compiler cannot create executables
3250 See \`config.log' for more details." >&2;}
3251 { (exit 77); exit 77; }; }
3254 ac_exeext=$ac_cv_exeext
3256 # Check that the compiler produces executables we can run. If not, either
3257 # the compiler is broken, or we cross compile.
3258 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3259 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3260 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3261 # If not cross compiling, check that we can run a simple program.
3262 if test "$cross_compiling" != yes; then
3263 if { ac_try='./$ac_file'
3264 { (case "(($ac_try" in
3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3267 esac
3268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3269 (eval "$ac_try") 2>&5
3270 ac_status=$?
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); }; }; then
3273 cross_compiling=no
3274 else
3275 if test "$cross_compiling" = maybe; then
3276 cross_compiling=yes
3277 else
3278 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3279 If you meant to cross compile, use \`--host'.
3280 See \`config.log' for more details." >&5
3281 echo "$as_me: error: cannot run C compiled programs.
3282 If you meant to cross compile, use \`--host'.
3283 See \`config.log' for more details." >&2;}
3284 { (exit 1); exit 1; }; }
3288 { echo "$as_me:$LINENO: result: yes" >&5
3289 echo "${ECHO_T}yes" >&6; }
3291 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3292 ac_clean_files=$ac_clean_files_save
3293 # Check that the compiler produces executables we can run. If not, either
3294 # the compiler is broken, or we cross compile.
3295 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3296 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3297 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3298 echo "${ECHO_T}$cross_compiling" >&6; }
3300 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3301 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3302 if { (ac_try="$ac_link"
3303 case "(($ac_try" in
3304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305 *) ac_try_echo=$ac_try;;
3306 esac
3307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3308 (eval "$ac_link") 2>&5
3309 ac_status=$?
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); }; then
3312 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3313 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3314 # work properly (i.e., refer to `conftest.exe'), while it won't with
3315 # `rm'.
3316 for ac_file in conftest.exe conftest conftest.*; do
3317 test -f "$ac_file" || continue
3318 case $ac_file in
3319 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3320 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3321 break;;
3322 * ) break;;
3323 esac
3324 done
3325 else
3326 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3327 See \`config.log' for more details." >&5
3328 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3329 See \`config.log' for more details." >&2;}
3330 { (exit 1); exit 1; }; }
3333 rm -f conftest$ac_cv_exeext
3334 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3335 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3337 rm -f conftest.$ac_ext
3338 EXEEXT=$ac_cv_exeext
3339 ac_exeext=$EXEEXT
3340 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3341 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3342 if test "${ac_cv_objext+set}" = set; then
3343 echo $ECHO_N "(cached) $ECHO_C" >&6
3344 else
3345 cat >conftest.$ac_ext <<_ACEOF
3346 /* confdefs.h. */
3347 _ACEOF
3348 cat confdefs.h >>conftest.$ac_ext
3349 cat >>conftest.$ac_ext <<_ACEOF
3350 /* end confdefs.h. */
3353 main ()
3357 return 0;
3359 _ACEOF
3360 rm -f conftest.o conftest.obj
3361 if { (ac_try="$ac_compile"
3362 case "(($ac_try" in
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3365 esac
3366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3367 (eval "$ac_compile") 2>&5
3368 ac_status=$?
3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); }; then
3371 for ac_file in conftest.o conftest.obj conftest.*; do
3372 test -f "$ac_file" || continue;
3373 case $ac_file in
3374 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3375 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3376 break;;
3377 esac
3378 done
3379 else
3380 echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3383 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3384 See \`config.log' for more details." >&5
3385 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3386 See \`config.log' for more details." >&2;}
3387 { (exit 1); exit 1; }; }
3390 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3392 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3393 echo "${ECHO_T}$ac_cv_objext" >&6; }
3394 OBJEXT=$ac_cv_objext
3395 ac_objext=$OBJEXT
3396 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3397 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3398 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3399 echo $ECHO_N "(cached) $ECHO_C" >&6
3400 else
3401 cat >conftest.$ac_ext <<_ACEOF
3402 /* confdefs.h. */
3403 _ACEOF
3404 cat confdefs.h >>conftest.$ac_ext
3405 cat >>conftest.$ac_ext <<_ACEOF
3406 /* end confdefs.h. */
3409 main ()
3411 #ifndef __GNUC__
3412 choke me
3413 #endif
3416 return 0;
3418 _ACEOF
3419 rm -f conftest.$ac_objext
3420 if { (ac_try="$ac_compile"
3421 case "(($ac_try" in
3422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423 *) ac_try_echo=$ac_try;;
3424 esac
3425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3426 (eval "$ac_compile") 2>conftest.er1
3427 ac_status=$?
3428 grep -v '^ *+' conftest.er1 >conftest.err
3429 rm -f conftest.er1
3430 cat conftest.err >&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); } && {
3433 test -z "$ac_c_werror_flag" ||
3434 test ! -s conftest.err
3435 } && test -s conftest.$ac_objext; then
3436 ac_compiler_gnu=yes
3437 else
3438 echo "$as_me: failed program was:" >&5
3439 sed 's/^/| /' conftest.$ac_ext >&5
3441 ac_compiler_gnu=no
3444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3445 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3448 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3449 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3450 GCC=`test $ac_compiler_gnu = yes && echo yes`
3451 ac_test_CFLAGS=${CFLAGS+set}
3452 ac_save_CFLAGS=$CFLAGS
3453 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3454 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3455 if test "${ac_cv_prog_cc_g+set}" = set; then
3456 echo $ECHO_N "(cached) $ECHO_C" >&6
3457 else
3458 ac_save_c_werror_flag=$ac_c_werror_flag
3459 ac_c_werror_flag=yes
3460 ac_cv_prog_cc_g=no
3461 CFLAGS="-g"
3462 cat >conftest.$ac_ext <<_ACEOF
3463 /* confdefs.h. */
3464 _ACEOF
3465 cat confdefs.h >>conftest.$ac_ext
3466 cat >>conftest.$ac_ext <<_ACEOF
3467 /* end confdefs.h. */
3470 main ()
3474 return 0;
3476 _ACEOF
3477 rm -f conftest.$ac_objext
3478 if { (ac_try="$ac_compile"
3479 case "(($ac_try" in
3480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481 *) ac_try_echo=$ac_try;;
3482 esac
3483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3484 (eval "$ac_compile") 2>conftest.er1
3485 ac_status=$?
3486 grep -v '^ *+' conftest.er1 >conftest.err
3487 rm -f conftest.er1
3488 cat conftest.err >&5
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); } && {
3491 test -z "$ac_c_werror_flag" ||
3492 test ! -s conftest.err
3493 } && test -s conftest.$ac_objext; then
3494 ac_cv_prog_cc_g=yes
3495 else
3496 echo "$as_me: failed program was:" >&5
3497 sed 's/^/| /' conftest.$ac_ext >&5
3499 CFLAGS=""
3500 cat >conftest.$ac_ext <<_ACEOF
3501 /* confdefs.h. */
3502 _ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h. */
3508 main ()
3512 return 0;
3514 _ACEOF
3515 rm -f conftest.$ac_objext
3516 if { (ac_try="$ac_compile"
3517 case "(($ac_try" in
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3520 esac
3521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3522 (eval "$ac_compile") 2>conftest.er1
3523 ac_status=$?
3524 grep -v '^ *+' conftest.er1 >conftest.err
3525 rm -f conftest.er1
3526 cat conftest.err >&5
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); } && {
3529 test -z "$ac_c_werror_flag" ||
3530 test ! -s conftest.err
3531 } && test -s conftest.$ac_objext; then
3533 else
3534 echo "$as_me: failed program was:" >&5
3535 sed 's/^/| /' conftest.$ac_ext >&5
3537 ac_c_werror_flag=$ac_save_c_werror_flag
3538 CFLAGS="-g"
3539 cat >conftest.$ac_ext <<_ACEOF
3540 /* confdefs.h. */
3541 _ACEOF
3542 cat confdefs.h >>conftest.$ac_ext
3543 cat >>conftest.$ac_ext <<_ACEOF
3544 /* end confdefs.h. */
3547 main ()
3551 return 0;
3553 _ACEOF
3554 rm -f conftest.$ac_objext
3555 if { (ac_try="$ac_compile"
3556 case "(($ac_try" in
3557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558 *) ac_try_echo=$ac_try;;
3559 esac
3560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3561 (eval "$ac_compile") 2>conftest.er1
3562 ac_status=$?
3563 grep -v '^ *+' conftest.er1 >conftest.err
3564 rm -f conftest.er1
3565 cat conftest.err >&5
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); } && {
3568 test -z "$ac_c_werror_flag" ||
3569 test ! -s conftest.err
3570 } && test -s conftest.$ac_objext; then
3571 ac_cv_prog_cc_g=yes
3572 else
3573 echo "$as_me: failed program was:" >&5
3574 sed 's/^/| /' conftest.$ac_ext >&5
3579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3586 ac_c_werror_flag=$ac_save_c_werror_flag
3588 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3589 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3590 if test "$ac_test_CFLAGS" = set; then
3591 CFLAGS=$ac_save_CFLAGS
3592 elif test $ac_cv_prog_cc_g = yes; then
3593 if test "$GCC" = yes; then
3594 CFLAGS="-g -O2"
3595 else
3596 CFLAGS="-g"
3598 else
3599 if test "$GCC" = yes; then
3600 CFLAGS="-O2"
3601 else
3602 CFLAGS=
3605 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3606 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3607 if test "${ac_cv_prog_cc_c89+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3609 else
3610 ac_cv_prog_cc_c89=no
3611 ac_save_CC=$CC
3612 cat >conftest.$ac_ext <<_ACEOF
3613 /* confdefs.h. */
3614 _ACEOF
3615 cat confdefs.h >>conftest.$ac_ext
3616 cat >>conftest.$ac_ext <<_ACEOF
3617 /* end confdefs.h. */
3618 #include <stdarg.h>
3619 #include <stdio.h>
3620 #include <sys/types.h>
3621 #include <sys/stat.h>
3622 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3623 struct buf { int x; };
3624 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3625 static char *e (p, i)
3626 char **p;
3627 int i;
3629 return p[i];
3631 static char *f (char * (*g) (char **, int), char **p, ...)
3633 char *s;
3634 va_list v;
3635 va_start (v,p);
3636 s = g (p, va_arg (v,int));
3637 va_end (v);
3638 return s;
3641 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3642 function prototypes and stuff, but not '\xHH' hex character constants.
3643 These don't provoke an error unfortunately, instead are silently treated
3644 as 'x'. The following induces an error, until -std is added to get
3645 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3646 array size at least. It's necessary to write '\x00'==0 to get something
3647 that's true only with -std. */
3648 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3650 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3651 inside strings and character constants. */
3652 #define FOO(x) 'x'
3653 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3655 int test (int i, double x);
3656 struct s1 {int (*f) (int a);};
3657 struct s2 {int (*f) (double a);};
3658 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3659 int argc;
3660 char **argv;
3662 main ()
3664 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3666 return 0;
3668 _ACEOF
3669 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3670 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3672 CC="$ac_save_CC $ac_arg"
3673 rm -f conftest.$ac_objext
3674 if { (ac_try="$ac_compile"
3675 case "(($ac_try" in
3676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3677 *) ac_try_echo=$ac_try;;
3678 esac
3679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3680 (eval "$ac_compile") 2>conftest.er1
3681 ac_status=$?
3682 grep -v '^ *+' conftest.er1 >conftest.err
3683 rm -f conftest.er1
3684 cat conftest.err >&5
3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686 (exit $ac_status); } && {
3687 test -z "$ac_c_werror_flag" ||
3688 test ! -s conftest.err
3689 } && test -s conftest.$ac_objext; then
3690 ac_cv_prog_cc_c89=$ac_arg
3691 else
3692 echo "$as_me: failed program was:" >&5
3693 sed 's/^/| /' conftest.$ac_ext >&5
3698 rm -f core conftest.err conftest.$ac_objext
3699 test "x$ac_cv_prog_cc_c89" != "xno" && break
3700 done
3701 rm -f conftest.$ac_ext
3702 CC=$ac_save_CC
3705 # AC_CACHE_VAL
3706 case "x$ac_cv_prog_cc_c89" in
3708 { echo "$as_me:$LINENO: result: none needed" >&5
3709 echo "${ECHO_T}none needed" >&6; } ;;
3710 xno)
3711 { echo "$as_me:$LINENO: result: unsupported" >&5
3712 echo "${ECHO_T}unsupported" >&6; } ;;
3714 CC="$CC $ac_cv_prog_cc_c89"
3715 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3716 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3717 esac
3720 ac_ext=c
3721 ac_cpp='$CPP $CPPFLAGS'
3722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3727 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3728 # but has idiosyncrasies of its own. We assume icc will define
3729 # __INTEL_COMPILER regardless of CFLAGS.
3731 cat >conftest.$ac_ext <<_ACEOF
3732 /* confdefs.h. */
3733 _ACEOF
3734 cat confdefs.h >>conftest.$ac_ext
3735 cat >>conftest.$ac_ext <<_ACEOF
3736 /* end confdefs.h. */
3739 main ()
3741 #ifndef __INTEL_COMPILER
3742 choke me
3743 #endif
3745 return 0;
3747 _ACEOF
3748 rm -f conftest.$ac_objext
3749 if { (ac_try="$ac_compile"
3750 case "(($ac_try" in
3751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3752 *) ac_try_echo=$ac_try;;
3753 esac
3754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3755 (eval "$ac_compile") 2>conftest.er1
3756 ac_status=$?
3757 grep -v '^ *+' conftest.er1 >conftest.err
3758 rm -f conftest.er1
3759 cat conftest.err >&5
3760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761 (exit $ac_status); } && {
3762 test -z "$ac_c_werror_flag" ||
3763 test ! -s conftest.err
3764 } && test -s conftest.$ac_objext; then
3765 ICC=yes
3766 else
3767 echo "$as_me: failed program was:" >&5
3768 sed 's/^/| /' conftest.$ac_ext >&5
3770 ICC=no
3773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3775 # Check if it's Sun Studio compiler. We assume that
3776 # __SUNPRO_C will be defined for Sun Studio compilers
3777 cat >conftest.$ac_ext <<_ACEOF
3778 /* confdefs.h. */
3779 _ACEOF
3780 cat confdefs.h >>conftest.$ac_ext
3781 cat >>conftest.$ac_ext <<_ACEOF
3782 /* end confdefs.h. */
3785 main ()
3787 #ifndef __SUNPRO_C
3788 choke me
3789 #endif
3791 return 0;
3793 _ACEOF
3794 rm -f conftest.$ac_objext
3795 if { (ac_try="$ac_compile"
3796 case "(($ac_try" in
3797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3798 *) ac_try_echo=$ac_try;;
3799 esac
3800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3801 (eval "$ac_compile") 2>conftest.er1
3802 ac_status=$?
3803 grep -v '^ *+' conftest.er1 >conftest.err
3804 rm -f conftest.er1
3805 cat conftest.err >&5
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); } && {
3808 test -z "$ac_c_werror_flag" ||
3809 test ! -s conftest.err
3810 } && test -s conftest.$ac_objext; then
3811 SUN_STUDIO_CC=yes
3812 else
3813 echo "$as_me: failed program was:" >&5
3814 sed 's/^/| /' conftest.$ac_ext >&5
3816 SUN_STUDIO_CC=no
3819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3823 unset CFLAGS
3826 # Read the template
3828 . "$srcdir/src/template/$template" || exit
3830 # CFLAGS are selected so:
3831 # If the user specifies something in the environment, that is used.
3832 # else: If the template file set something, that is used.
3833 # else: If coverage was enabled, don't set anything.
3834 # else: If the compiler is GCC, then we use -O2.
3835 # else: If the compiler is something else, then we use -O.
3837 if test "$ac_env_CFLAGS_set" = set; then
3838 CFLAGS=$ac_env_CFLAGS_value
3839 elif test "${CFLAGS+set}" = set; then
3840 : # (keep what template set)
3841 elif test "$enable_coverage" = yes; then
3842 : # no optimization by default
3843 elif test "$GCC" = yes; then
3844 CFLAGS="-O2"
3845 else
3846 # if the user selected debug mode, don't use -O
3847 if test "$enable_debug" != yes; then
3848 CFLAGS="-O"
3852 # Some versions of GCC support some additional useful warning flags.
3853 # Check whether they are supported, and add them to CFLAGS if so.
3854 # ICC pretends to be GCC but it's lying; it doesn't support these options.
3856 if test "$GCC" = yes -a "$ICC" = no; then
3857 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
3858 # These work in some but not all gcc versions
3859 { echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
3860 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6; }
3861 pgac_save_CFLAGS=$CFLAGS
3862 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
3863 cat >conftest.$ac_ext <<_ACEOF
3864 /* confdefs.h. */
3865 _ACEOF
3866 cat confdefs.h >>conftest.$ac_ext
3867 cat >>conftest.$ac_ext <<_ACEOF
3868 /* end confdefs.h. */
3871 main ()
3875 return 0;
3877 _ACEOF
3878 rm -f conftest.$ac_objext
3879 if { (ac_try="$ac_compile"
3880 case "(($ac_try" in
3881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3882 *) ac_try_echo=$ac_try;;
3883 esac
3884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3885 (eval "$ac_compile") 2>conftest.er1
3886 ac_status=$?
3887 grep -v '^ *+' conftest.er1 >conftest.err
3888 rm -f conftest.er1
3889 cat conftest.err >&5
3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891 (exit $ac_status); } && {
3892 test -z "$ac_c_werror_flag" ||
3893 test ! -s conftest.err
3894 } && test -s conftest.$ac_objext; then
3895 { echo "$as_me:$LINENO: result: yes" >&5
3896 echo "${ECHO_T}yes" >&6; }
3897 else
3898 echo "$as_me: failed program was:" >&5
3899 sed 's/^/| /' conftest.$ac_ext >&5
3901 CFLAGS="$pgac_save_CFLAGS"
3902 { echo "$as_me:$LINENO: result: no" >&5
3903 echo "${ECHO_T}no" >&6; }
3906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3908 { echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
3909 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6; }
3910 pgac_save_CFLAGS=$CFLAGS
3911 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
3912 cat >conftest.$ac_ext <<_ACEOF
3913 /* confdefs.h. */
3914 _ACEOF
3915 cat confdefs.h >>conftest.$ac_ext
3916 cat >>conftest.$ac_ext <<_ACEOF
3917 /* end confdefs.h. */
3920 main ()
3924 return 0;
3926 _ACEOF
3927 rm -f conftest.$ac_objext
3928 if { (ac_try="$ac_compile"
3929 case "(($ac_try" in
3930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3931 *) ac_try_echo=$ac_try;;
3932 esac
3933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3934 (eval "$ac_compile") 2>conftest.er1
3935 ac_status=$?
3936 grep -v '^ *+' conftest.er1 >conftest.err
3937 rm -f conftest.er1
3938 cat conftest.err >&5
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); } && {
3941 test -z "$ac_c_werror_flag" ||
3942 test ! -s conftest.err
3943 } && test -s conftest.$ac_objext; then
3944 { echo "$as_me:$LINENO: result: yes" >&5
3945 echo "${ECHO_T}yes" >&6; }
3946 else
3947 echo "$as_me: failed program was:" >&5
3948 sed 's/^/| /' conftest.$ac_ext >&5
3950 CFLAGS="$pgac_save_CFLAGS"
3951 { echo "$as_me:$LINENO: result: no" >&5
3952 echo "${ECHO_T}no" >&6; }
3955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3957 # Disable strict-aliasing rules; needed for gcc 3.3+
3958 { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3959 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
3960 pgac_save_CFLAGS=$CFLAGS
3961 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
3962 cat >conftest.$ac_ext <<_ACEOF
3963 /* confdefs.h. */
3964 _ACEOF
3965 cat confdefs.h >>conftest.$ac_ext
3966 cat >>conftest.$ac_ext <<_ACEOF
3967 /* end confdefs.h. */
3970 main ()
3974 return 0;
3976 _ACEOF
3977 rm -f conftest.$ac_objext
3978 if { (ac_try="$ac_compile"
3979 case "(($ac_try" in
3980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3981 *) ac_try_echo=$ac_try;;
3982 esac
3983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3984 (eval "$ac_compile") 2>conftest.er1
3985 ac_status=$?
3986 grep -v '^ *+' conftest.er1 >conftest.err
3987 rm -f conftest.er1
3988 cat conftest.err >&5
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); } && {
3991 test -z "$ac_c_werror_flag" ||
3992 test ! -s conftest.err
3993 } && test -s conftest.$ac_objext; then
3994 { echo "$as_me:$LINENO: result: yes" >&5
3995 echo "${ECHO_T}yes" >&6; }
3996 else
3997 echo "$as_me: failed program was:" >&5
3998 sed 's/^/| /' conftest.$ac_ext >&5
4000 CFLAGS="$pgac_save_CFLAGS"
4001 { echo "$as_me:$LINENO: result: no" >&5
4002 echo "${ECHO_T}no" >&6; }
4005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4007 # Disable optimizations that assume no overflow; needed for gcc 4.3+
4008 { echo "$as_me:$LINENO: checking if $CC supports -fwrapv" >&5
4009 echo $ECHO_N "checking if $CC supports -fwrapv... $ECHO_C" >&6; }
4010 pgac_save_CFLAGS=$CFLAGS
4011 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4012 cat >conftest.$ac_ext <<_ACEOF
4013 /* confdefs.h. */
4014 _ACEOF
4015 cat confdefs.h >>conftest.$ac_ext
4016 cat >>conftest.$ac_ext <<_ACEOF
4017 /* end confdefs.h. */
4020 main ()
4024 return 0;
4026 _ACEOF
4027 rm -f conftest.$ac_objext
4028 if { (ac_try="$ac_compile"
4029 case "(($ac_try" in
4030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4031 *) ac_try_echo=$ac_try;;
4032 esac
4033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4034 (eval "$ac_compile") 2>conftest.er1
4035 ac_status=$?
4036 grep -v '^ *+' conftest.er1 >conftest.err
4037 rm -f conftest.er1
4038 cat conftest.err >&5
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); } && {
4041 test -z "$ac_c_werror_flag" ||
4042 test ! -s conftest.err
4043 } && test -s conftest.$ac_objext; then
4044 { echo "$as_me:$LINENO: result: yes" >&5
4045 echo "${ECHO_T}yes" >&6; }
4046 else
4047 echo "$as_me: failed program was:" >&5
4048 sed 's/^/| /' conftest.$ac_ext >&5
4050 CFLAGS="$pgac_save_CFLAGS"
4051 { echo "$as_me:$LINENO: result: no" >&5
4052 echo "${ECHO_T}no" >&6; }
4055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4057 elif test "$ICC" = yes; then
4058 # Intel's compiler has a bug/misoptimization in checking for
4059 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4060 { echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
4061 echo $ECHO_N "checking if $CC supports -mp1... $ECHO_C" >&6; }
4062 pgac_save_CFLAGS=$CFLAGS
4063 CFLAGS="$pgac_save_CFLAGS -mp1"
4064 cat >conftest.$ac_ext <<_ACEOF
4065 /* confdefs.h. */
4066 _ACEOF
4067 cat confdefs.h >>conftest.$ac_ext
4068 cat >>conftest.$ac_ext <<_ACEOF
4069 /* end confdefs.h. */
4072 main ()
4076 return 0;
4078 _ACEOF
4079 rm -f conftest.$ac_objext
4080 if { (ac_try="$ac_compile"
4081 case "(($ac_try" in
4082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4083 *) ac_try_echo=$ac_try;;
4084 esac
4085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4086 (eval "$ac_compile") 2>conftest.er1
4087 ac_status=$?
4088 grep -v '^ *+' conftest.er1 >conftest.err
4089 rm -f conftest.er1
4090 cat conftest.err >&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); } && {
4093 test -z "$ac_c_werror_flag" ||
4094 test ! -s conftest.err
4095 } && test -s conftest.$ac_objext; then
4096 { echo "$as_me:$LINENO: result: yes" >&5
4097 echo "${ECHO_T}yes" >&6; }
4098 else
4099 echo "$as_me: failed program was:" >&5
4100 sed 's/^/| /' conftest.$ac_ext >&5
4102 CFLAGS="$pgac_save_CFLAGS"
4103 { echo "$as_me:$LINENO: result: no" >&5
4104 echo "${ECHO_T}no" >&6; }
4107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4109 # Make sure strict aliasing is off (though this is said to be the default)
4110 { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
4111 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
4112 pgac_save_CFLAGS=$CFLAGS
4113 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4114 cat >conftest.$ac_ext <<_ACEOF
4115 /* confdefs.h. */
4116 _ACEOF
4117 cat confdefs.h >>conftest.$ac_ext
4118 cat >>conftest.$ac_ext <<_ACEOF
4119 /* end confdefs.h. */
4122 main ()
4126 return 0;
4128 _ACEOF
4129 rm -f conftest.$ac_objext
4130 if { (ac_try="$ac_compile"
4131 case "(($ac_try" in
4132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4133 *) ac_try_echo=$ac_try;;
4134 esac
4135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4136 (eval "$ac_compile") 2>conftest.er1
4137 ac_status=$?
4138 grep -v '^ *+' conftest.er1 >conftest.err
4139 rm -f conftest.er1
4140 cat conftest.err >&5
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); } && {
4143 test -z "$ac_c_werror_flag" ||
4144 test ! -s conftest.err
4145 } && test -s conftest.$ac_objext; then
4146 { echo "$as_me:$LINENO: result: yes" >&5
4147 echo "${ECHO_T}yes" >&6; }
4148 else
4149 echo "$as_me: failed program was:" >&5
4150 sed 's/^/| /' conftest.$ac_ext >&5
4152 CFLAGS="$pgac_save_CFLAGS"
4153 { echo "$as_me:$LINENO: result: no" >&5
4154 echo "${ECHO_T}no" >&6; }
4157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4159 elif test x"${CC}" = x"xlc"; then
4160 # AIX xlc has to have strict aliasing turned off too
4161 { echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
4162 echo $ECHO_N "checking if $CC supports -qnoansialias... $ECHO_C" >&6; }
4163 pgac_save_CFLAGS=$CFLAGS
4164 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4165 cat >conftest.$ac_ext <<_ACEOF
4166 /* confdefs.h. */
4167 _ACEOF
4168 cat confdefs.h >>conftest.$ac_ext
4169 cat >>conftest.$ac_ext <<_ACEOF
4170 /* end confdefs.h. */
4173 main ()
4177 return 0;
4179 _ACEOF
4180 rm -f conftest.$ac_objext
4181 if { (ac_try="$ac_compile"
4182 case "(($ac_try" in
4183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184 *) ac_try_echo=$ac_try;;
4185 esac
4186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4187 (eval "$ac_compile") 2>conftest.er1
4188 ac_status=$?
4189 grep -v '^ *+' conftest.er1 >conftest.err
4190 rm -f conftest.er1
4191 cat conftest.err >&5
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); } && {
4194 test -z "$ac_c_werror_flag" ||
4195 test ! -s conftest.err
4196 } && test -s conftest.$ac_objext; then
4197 { echo "$as_me:$LINENO: result: yes" >&5
4198 echo "${ECHO_T}yes" >&6; }
4199 else
4200 echo "$as_me: failed program was:" >&5
4201 sed 's/^/| /' conftest.$ac_ext >&5
4203 CFLAGS="$pgac_save_CFLAGS"
4204 { echo "$as_me:$LINENO: result: no" >&5
4205 echo "${ECHO_T}no" >&6; }
4208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4212 # supply -g if --enable-debug
4213 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4214 CFLAGS="$CFLAGS -g"
4217 # enable code coverage if --enable-coverage
4218 if test "$enable_coverage" = yes; then
4219 if test "$GCC" = yes; then
4220 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4221 else
4222 { { echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4223 echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4224 { (exit 1); exit 1; }; }
4228 # enable profiling if --enable-profiling
4229 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4230 if test "$GCC" = yes; then
4232 cat >>confdefs.h <<\_ACEOF
4233 #define PROFILE_PID_DIR 1
4234 _ACEOF
4236 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4237 else
4238 { { echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4239 echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4240 { (exit 1); exit 1; }; }
4244 # We already have this in Makefile.win32, but configure needs it too
4245 if test "$PORTNAME" = "win32"; then
4246 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4249 # Check if the compiler still works with the template settings
4250 { echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4251 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6; }
4252 cat >conftest.$ac_ext <<_ACEOF
4253 /* confdefs.h. */
4254 _ACEOF
4255 cat confdefs.h >>conftest.$ac_ext
4256 cat >>conftest.$ac_ext <<_ACEOF
4257 /* end confdefs.h. */
4260 main ()
4262 return 0;
4264 return 0;
4266 _ACEOF
4267 rm -f conftest.$ac_objext conftest$ac_exeext
4268 if { (ac_try="$ac_link"
4269 case "(($ac_try" in
4270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271 *) ac_try_echo=$ac_try;;
4272 esac
4273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4274 (eval "$ac_link") 2>conftest.er1
4275 ac_status=$?
4276 grep -v '^ *+' conftest.er1 >conftest.err
4277 rm -f conftest.er1
4278 cat conftest.err >&5
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); } && {
4281 test -z "$ac_c_werror_flag" ||
4282 test ! -s conftest.err
4283 } && test -s conftest$ac_exeext &&
4284 $as_test_x conftest$ac_exeext; then
4285 { echo "$as_me:$LINENO: result: yes" >&5
4286 echo "${ECHO_T}yes" >&6; }
4287 else
4288 echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.$ac_ext >&5
4291 { echo "$as_me:$LINENO: result: no" >&5
4292 echo "${ECHO_T}no" >&6; }
4293 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
4294 echo "$as_me: error: cannot proceed" >&2;}
4295 { (exit 1); exit 1; }; }
4298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4299 conftest$ac_exeext conftest.$ac_ext
4301 # Defend against gcc -ffast-math
4302 if test "$GCC" = yes; then
4303 cat >conftest.$ac_ext <<_ACEOF
4304 /* confdefs.h. */
4305 _ACEOF
4306 cat confdefs.h >>conftest.$ac_ext
4307 cat >>conftest.$ac_ext <<_ACEOF
4308 /* end confdefs.h. */
4311 main ()
4313 #ifdef __FAST_MATH__
4314 choke me
4315 #endif
4317 return 0;
4319 _ACEOF
4320 rm -f conftest.$ac_objext
4321 if { (ac_try="$ac_compile"
4322 case "(($ac_try" in
4323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4324 *) ac_try_echo=$ac_try;;
4325 esac
4326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4327 (eval "$ac_compile") 2>conftest.er1
4328 ac_status=$?
4329 grep -v '^ *+' conftest.er1 >conftest.err
4330 rm -f conftest.er1
4331 cat conftest.err >&5
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); } && {
4334 test -z "$ac_c_werror_flag" ||
4335 test ! -s conftest.err
4336 } && test -s conftest.$ac_objext; then
4338 else
4339 echo "$as_me: failed program was:" >&5
4340 sed 's/^/| /' conftest.$ac_ext >&5
4342 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4343 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4344 { (exit 1); exit 1; }; }
4347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4350 ac_ext=c
4351 ac_cpp='$CPP $CPPFLAGS'
4352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4355 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4356 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4357 # On Suns, sometimes $CPP names a directory.
4358 if test -n "$CPP" && test -d "$CPP"; then
4359 CPP=
4361 if test -z "$CPP"; then
4362 if test "${ac_cv_prog_CPP+set}" = set; then
4363 echo $ECHO_N "(cached) $ECHO_C" >&6
4364 else
4365 # Double quotes because CPP needs to be expanded
4366 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4368 ac_preproc_ok=false
4369 for ac_c_preproc_warn_flag in '' yes
4371 # Use a header file that comes with gcc, so configuring glibc
4372 # with a fresh cross-compiler works.
4373 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4374 # <limits.h> exists even on freestanding compilers.
4375 # On the NeXT, cc -E runs the code through the compiler's parser,
4376 # not just through cpp. "Syntax error" is here to catch this case.
4377 cat >conftest.$ac_ext <<_ACEOF
4378 /* confdefs.h. */
4379 _ACEOF
4380 cat confdefs.h >>conftest.$ac_ext
4381 cat >>conftest.$ac_ext <<_ACEOF
4382 /* end confdefs.h. */
4383 #ifdef __STDC__
4384 # include <limits.h>
4385 #else
4386 # include <assert.h>
4387 #endif
4388 Syntax error
4389 _ACEOF
4390 if { (ac_try="$ac_cpp conftest.$ac_ext"
4391 case "(($ac_try" in
4392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4393 *) ac_try_echo=$ac_try;;
4394 esac
4395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4396 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4397 ac_status=$?
4398 grep -v '^ *+' conftest.er1 >conftest.err
4399 rm -f conftest.er1
4400 cat conftest.err >&5
4401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402 (exit $ac_status); } >/dev/null && {
4403 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4404 test ! -s conftest.err
4405 }; then
4407 else
4408 echo "$as_me: failed program was:" >&5
4409 sed 's/^/| /' conftest.$ac_ext >&5
4411 # Broken: fails on valid input.
4412 continue
4415 rm -f conftest.err conftest.$ac_ext
4417 # OK, works on sane cases. Now check whether nonexistent headers
4418 # can be detected and how.
4419 cat >conftest.$ac_ext <<_ACEOF
4420 /* confdefs.h. */
4421 _ACEOF
4422 cat confdefs.h >>conftest.$ac_ext
4423 cat >>conftest.$ac_ext <<_ACEOF
4424 /* end confdefs.h. */
4425 #include <ac_nonexistent.h>
4426 _ACEOF
4427 if { (ac_try="$ac_cpp conftest.$ac_ext"
4428 case "(($ac_try" in
4429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4430 *) ac_try_echo=$ac_try;;
4431 esac
4432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4434 ac_status=$?
4435 grep -v '^ *+' conftest.er1 >conftest.err
4436 rm -f conftest.er1
4437 cat conftest.err >&5
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); } >/dev/null && {
4440 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4441 test ! -s conftest.err
4442 }; then
4443 # Broken: success on invalid input.
4444 continue
4445 else
4446 echo "$as_me: failed program was:" >&5
4447 sed 's/^/| /' conftest.$ac_ext >&5
4449 # Passes both tests.
4450 ac_preproc_ok=:
4451 break
4454 rm -f conftest.err conftest.$ac_ext
4456 done
4457 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4458 rm -f conftest.err conftest.$ac_ext
4459 if $ac_preproc_ok; then
4460 break
4463 done
4464 ac_cv_prog_CPP=$CPP
4467 CPP=$ac_cv_prog_CPP
4468 else
4469 ac_cv_prog_CPP=$CPP
4471 { echo "$as_me:$LINENO: result: $CPP" >&5
4472 echo "${ECHO_T}$CPP" >&6; }
4473 ac_preproc_ok=false
4474 for ac_c_preproc_warn_flag in '' yes
4476 # Use a header file that comes with gcc, so configuring glibc
4477 # with a fresh cross-compiler works.
4478 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4479 # <limits.h> exists even on freestanding compilers.
4480 # On the NeXT, cc -E runs the code through the compiler's parser,
4481 # not just through cpp. "Syntax error" is here to catch this case.
4482 cat >conftest.$ac_ext <<_ACEOF
4483 /* confdefs.h. */
4484 _ACEOF
4485 cat confdefs.h >>conftest.$ac_ext
4486 cat >>conftest.$ac_ext <<_ACEOF
4487 /* end confdefs.h. */
4488 #ifdef __STDC__
4489 # include <limits.h>
4490 #else
4491 # include <assert.h>
4492 #endif
4493 Syntax error
4494 _ACEOF
4495 if { (ac_try="$ac_cpp conftest.$ac_ext"
4496 case "(($ac_try" in
4497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4498 *) ac_try_echo=$ac_try;;
4499 esac
4500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4501 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4502 ac_status=$?
4503 grep -v '^ *+' conftest.er1 >conftest.err
4504 rm -f conftest.er1
4505 cat conftest.err >&5
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); } >/dev/null && {
4508 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4509 test ! -s conftest.err
4510 }; then
4512 else
4513 echo "$as_me: failed program was:" >&5
4514 sed 's/^/| /' conftest.$ac_ext >&5
4516 # Broken: fails on valid input.
4517 continue
4520 rm -f conftest.err conftest.$ac_ext
4522 # OK, works on sane cases. Now check whether nonexistent headers
4523 # can be detected and how.
4524 cat >conftest.$ac_ext <<_ACEOF
4525 /* confdefs.h. */
4526 _ACEOF
4527 cat confdefs.h >>conftest.$ac_ext
4528 cat >>conftest.$ac_ext <<_ACEOF
4529 /* end confdefs.h. */
4530 #include <ac_nonexistent.h>
4531 _ACEOF
4532 if { (ac_try="$ac_cpp conftest.$ac_ext"
4533 case "(($ac_try" in
4534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4535 *) ac_try_echo=$ac_try;;
4536 esac
4537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4538 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4539 ac_status=$?
4540 grep -v '^ *+' conftest.er1 >conftest.err
4541 rm -f conftest.er1
4542 cat conftest.err >&5
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); } >/dev/null && {
4545 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4546 test ! -s conftest.err
4547 }; then
4548 # Broken: success on invalid input.
4549 continue
4550 else
4551 echo "$as_me: failed program was:" >&5
4552 sed 's/^/| /' conftest.$ac_ext >&5
4554 # Passes both tests.
4555 ac_preproc_ok=:
4556 break
4559 rm -f conftest.err conftest.$ac_ext
4561 done
4562 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4563 rm -f conftest.err conftest.$ac_ext
4564 if $ac_preproc_ok; then
4566 else
4567 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4568 See \`config.log' for more details." >&5
4569 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4570 See \`config.log' for more details." >&2;}
4571 { (exit 1); exit 1; }; }
4574 ac_ext=c
4575 ac_cpp='$CPP $CPPFLAGS'
4576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4582 # Create compiler version string
4583 if test x"$GCC" = x"yes" ; then
4584 cc_string="GCC `${CC} --version | sed q`"
4585 else
4586 cc_string=$CC
4589 cat >>confdefs.h <<_ACEOF
4590 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
4591 _ACEOF
4596 # Set up TAS assembly code if needed; the template file has now had its
4597 # chance to request this.
4599 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
4602 if test "$need_tas" = yes ; then
4603 TAS=tas.o
4604 else
4605 TAS=""
4611 # Automatic dependency tracking
4614 pgac_args="$pgac_args enable_depend"
4616 # Check whether --enable-depend was given.
4617 if test "${enable_depend+set}" = set; then
4618 enableval=$enable_depend;
4619 case $enableval in
4620 yes)
4621 autodepend=yes
4627 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
4628 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
4629 { (exit 1); exit 1; }; }
4631 esac
4633 else
4634 enable_depend=no
4643 # Enable assert checks
4646 pgac_args="$pgac_args enable_cassert"
4648 # Check whether --enable-cassert was given.
4649 if test "${enable_cassert+set}" = set; then
4650 enableval=$enable_cassert;
4651 case $enableval in
4652 yes)
4654 cat >>confdefs.h <<\_ACEOF
4655 #define USE_ASSERT_CHECKING 1
4656 _ACEOF
4663 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
4664 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
4665 { (exit 1); exit 1; }; }
4667 esac
4669 else
4670 enable_cassert=no
4678 # Include directories
4680 ac_save_IFS=$IFS
4681 IFS="${IFS}${PATH_SEPARATOR}"
4682 # SRCH_INC comes from the template file
4683 for dir in $with_includes $SRCH_INC; do
4684 if test -d "$dir"; then
4685 INCLUDES="$INCLUDES -I$dir"
4686 else
4687 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
4688 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
4690 done
4691 IFS=$ac_save_IFS
4696 # Library directories
4698 ac_save_IFS=$IFS
4699 IFS="${IFS}${PATH_SEPARATOR}"
4700 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
4701 for dir in $LIBRARY_DIRS $SRCH_LIB; do
4702 if test -d "$dir"; then
4703 LIBDIRS="$LIBDIRS -L$dir"
4704 else
4705 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
4706 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
4708 done
4709 IFS=$ac_save_IFS
4712 # Enable thread-safe client libraries
4714 { echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
4715 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6; }
4716 if test "$PORTNAME" != "win32"; then
4718 pgac_args="$pgac_args enable_thread_safety"
4720 # Check whether --enable-thread-safety was given.
4721 if test "${enable_thread_safety+set}" = set; then
4722 enableval=$enable_thread_safety;
4723 case $enableval in
4724 yes)
4731 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4732 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4733 { (exit 1); exit 1; }; }
4735 esac
4737 else
4738 enable_thread_safety=no
4743 else
4744 # Win32 should always use threads
4746 pgac_args="$pgac_args enable_thread_safety"
4748 # Check whether --enable-thread-safety was given.
4749 if test "${enable_thread_safety+set}" = set; then
4750 enableval=$enable_thread_safety;
4751 case $enableval in
4752 yes)
4759 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4760 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4761 { (exit 1); exit 1; }; }
4763 esac
4765 else
4766 enable_thread_safety=yes
4774 pgac_args="$pgac_args enable_thread_safety_force"
4776 # Check whether --enable-thread-safety-force was given.
4777 if test "${enable_thread_safety_force+set}" = set; then
4778 enableval=$enable_thread_safety_force;
4779 case $enableval in
4780 yes)
4787 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
4788 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
4789 { (exit 1); exit 1; }; }
4791 esac
4793 else
4794 enable_thread_safety_force=no
4799 if test "$enable_thread_safety" = yes -o \
4800 "$enable_thread_safety_force" = yes; then
4801 enable_thread_safety="yes" # for 'force'
4803 cat >>confdefs.h <<\_ACEOF
4804 #define ENABLE_THREAD_SAFETY 1
4805 _ACEOF
4808 { echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
4809 echo "${ECHO_T}$enable_thread_safety" >&6; }
4813 # Optionally build Tcl modules (PL/Tcl)
4815 { echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
4816 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6; }
4818 pgac_args="$pgac_args with_tcl"
4821 # Check whether --with-tcl was given.
4822 if test "${with_tcl+set}" = set; then
4823 withval=$with_tcl;
4824 case $withval in
4825 yes)
4832 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
4833 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
4834 { (exit 1); exit 1; }; }
4836 esac
4838 else
4839 with_tcl=no
4844 { echo "$as_me:$LINENO: result: $with_tcl" >&5
4845 echo "${ECHO_T}$with_tcl" >&6; }
4848 # We see if the path to the Tcl/Tk configuration scripts is specified.
4849 # This will override the use of tclsh to find the paths to search.
4852 pgac_args="$pgac_args with_tclconfig"
4855 # Check whether --with-tclconfig was given.
4856 if test "${with_tclconfig+set}" = set; then
4857 withval=$with_tclconfig;
4858 case $withval in
4859 yes)
4860 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4861 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4862 { (exit 1); exit 1; }; }
4865 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4866 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4867 { (exit 1); exit 1; }; }
4872 esac
4879 # Optionally build Perl modules (PL/Perl)
4881 { echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
4882 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6; }
4884 pgac_args="$pgac_args with_perl"
4887 # Check whether --with-perl was given.
4888 if test "${with_perl+set}" = set; then
4889 withval=$with_perl;
4890 case $withval in
4891 yes)
4898 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
4899 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
4900 { (exit 1); exit 1; }; }
4902 esac
4904 else
4905 with_perl=no
4910 { echo "$as_me:$LINENO: result: $with_perl" >&5
4911 echo "${ECHO_T}$with_perl" >&6; }
4915 # Optionally build Python modules (PL/Python)
4917 { echo "$as_me:$LINENO: checking whether to build Python modules" >&5
4918 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6; }
4920 pgac_args="$pgac_args with_python"
4923 # Check whether --with-python was given.
4924 if test "${with_python+set}" = set; then
4925 withval=$with_python;
4926 case $withval in
4927 yes)
4934 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
4935 echo "$as_me: error: no argument expected for --with-python option" >&2;}
4936 { (exit 1); exit 1; }; }
4938 esac
4940 else
4941 with_python=no
4946 { echo "$as_me:$LINENO: result: $with_python" >&5
4947 echo "${ECHO_T}$with_python" >&6; }
4951 # GSSAPI
4953 { echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
4954 echo $ECHO_N "checking whether to build with GSSAPI support... $ECHO_C" >&6; }
4956 pgac_args="$pgac_args with_gssapi"
4959 # Check whether --with-gssapi was given.
4960 if test "${with_gssapi+set}" = set; then
4961 withval=$with_gssapi;
4962 case $withval in
4963 yes)
4966 cat >>confdefs.h <<\_ACEOF
4967 #define ENABLE_GSS 1
4968 _ACEOF
4970 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
4977 { { echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
4978 echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
4979 { (exit 1); exit 1; }; }
4981 esac
4983 else
4984 with_gssapi=no
4989 { echo "$as_me:$LINENO: result: $with_gssapi" >&5
4990 echo "${ECHO_T}$with_gssapi" >&6; }
4994 # Kerberos 5
4996 { echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
4997 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6; }
4999 pgac_args="$pgac_args with_krb5"
5002 # Check whether --with-krb5 was given.
5003 if test "${with_krb5+set}" = set; then
5004 withval=$with_krb5;
5005 case $withval in
5006 yes)
5009 cat >>confdefs.h <<\_ACEOF
5010 #define KRB5 1
5011 _ACEOF
5013 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5020 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5021 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5022 { (exit 1); exit 1; }; }
5024 esac
5026 else
5027 with_krb5=no
5032 { echo "$as_me:$LINENO: result: $with_krb5" >&5
5033 echo "${ECHO_T}$with_krb5" >&6; }
5041 # Kerberos configuration parameters
5044 pgac_args="$pgac_args with_krb_srvnam"
5047 # Check whether --with-krb-srvnam was given.
5048 if test "${with_krb_srvnam+set}" = set; then
5049 withval=$with_krb_srvnam;
5050 case $withval in
5051 yes)
5052 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5053 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5054 { (exit 1); exit 1; }; }
5057 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5058 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5059 { (exit 1); exit 1; }; }
5064 esac
5066 else
5067 with_krb_srvnam="postgres"
5072 cat >>confdefs.h <<_ACEOF
5073 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5074 _ACEOF
5079 # PAM
5081 { echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5082 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6; }
5084 pgac_args="$pgac_args with_pam"
5087 # Check whether --with-pam was given.
5088 if test "${with_pam+set}" = set; then
5089 withval=$with_pam;
5090 case $withval in
5091 yes)
5093 cat >>confdefs.h <<\_ACEOF
5094 #define USE_PAM 1
5095 _ACEOF
5102 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5103 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5104 { (exit 1); exit 1; }; }
5106 esac
5108 else
5109 with_pam=no
5114 { echo "$as_me:$LINENO: result: $with_pam" >&5
5115 echo "${ECHO_T}$with_pam" >&6; }
5120 # LDAP
5122 { echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5123 echo $ECHO_N "checking whether to build with LDAP support... $ECHO_C" >&6; }
5125 pgac_args="$pgac_args with_ldap"
5128 # Check whether --with-ldap was given.
5129 if test "${with_ldap+set}" = set; then
5130 withval=$with_ldap;
5131 case $withval in
5132 yes)
5134 cat >>confdefs.h <<\_ACEOF
5135 #define USE_LDAP 1
5136 _ACEOF
5143 { { echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5144 echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5145 { (exit 1); exit 1; }; }
5147 esac
5149 else
5150 with_ldap=no
5155 { echo "$as_me:$LINENO: result: $with_ldap" >&5
5156 echo "${ECHO_T}$with_ldap" >&6; }
5161 # Bonjour
5163 { echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5164 echo $ECHO_N "checking whether to build with Bonjour support... $ECHO_C" >&6; }
5166 pgac_args="$pgac_args with_bonjour"
5169 # Check whether --with-bonjour was given.
5170 if test "${with_bonjour+set}" = set; then
5171 withval=$with_bonjour;
5172 case $withval in
5173 yes)
5175 cat >>confdefs.h <<\_ACEOF
5176 #define USE_BONJOUR 1
5177 _ACEOF
5184 { { echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5185 echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5186 { (exit 1); exit 1; }; }
5188 esac
5190 else
5191 with_bonjour=no
5196 { echo "$as_me:$LINENO: result: $with_bonjour" >&5
5197 echo "${ECHO_T}$with_bonjour" >&6; }
5202 # OpenSSL
5204 { echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5205 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6; }
5207 pgac_args="$pgac_args with_openssl"
5210 # Check whether --with-openssl was given.
5211 if test "${with_openssl+set}" = set; then
5212 withval=$with_openssl;
5213 case $withval in
5214 yes)
5216 cat >>confdefs.h <<\_ACEOF
5217 #define USE_SSL 1
5218 _ACEOF
5225 { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5226 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5227 { (exit 1); exit 1; }; }
5229 esac
5231 else
5232 with_openssl=no
5237 { echo "$as_me:$LINENO: result: $with_openssl" >&5
5238 echo "${ECHO_T}$with_openssl" >&6; }
5243 # Readline
5246 pgac_args="$pgac_args with_readline"
5249 # Check whether --with-readline was given.
5250 if test "${with_readline+set}" = set; then
5251 withval=$with_readline;
5252 case $withval in
5253 yes)
5260 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5261 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5262 { (exit 1); exit 1; }; }
5264 esac
5266 else
5267 with_readline=yes
5272 # readline on MinGW has problems with backslashes in psql and other bugs.
5273 # This is particularly a problem with non-US code pages.
5274 # Therefore disable its use until we understand the cause. 2004-07-20
5275 if test "$PORTNAME" = "win32"; then
5276 if test "$with_readline" = yes; then
5277 { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5278 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5279 with_readline=no
5285 # Prefer libedit
5288 pgac_args="$pgac_args with_libedit_preferred"
5291 # Check whether --with-libedit-preferred was given.
5292 if test "${with_libedit_preferred+set}" = set; then
5293 withval=$with_libedit_preferred;
5294 case $withval in
5295 yes)
5302 { { echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5303 echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5304 { (exit 1); exit 1; }; }
5306 esac
5308 else
5309 with_libedit_preferred=no
5317 # OSSP UUID library
5320 pgac_args="$pgac_args with_ossp_uuid"
5323 # Check whether --with-ossp-uuid was given.
5324 if test "${with_ossp_uuid+set}" = set; then
5325 withval=$with_ossp_uuid;
5326 case $withval in
5327 yes)
5334 { { echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5335 echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5336 { (exit 1); exit 1; }; }
5338 esac
5340 else
5341 with_ossp_uuid=no
5350 # XML
5353 pgac_args="$pgac_args with_libxml"
5356 # Check whether --with-libxml was given.
5357 if test "${with_libxml+set}" = set; then
5358 withval=$with_libxml;
5359 case $withval in
5360 yes)
5362 cat >>confdefs.h <<\_ACEOF
5363 #define USE_LIBXML 1
5364 _ACEOF
5371 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5372 echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5373 { (exit 1); exit 1; }; }
5375 esac
5377 else
5378 with_libxml=no
5384 if test "$with_libxml" = yes ; then
5385 for ac_prog in xml2-config
5387 # Extract the first word of "$ac_prog", so it can be a program name with args.
5388 set dummy $ac_prog; ac_word=$2
5389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5391 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5392 echo $ECHO_N "(cached) $ECHO_C" >&6
5393 else
5394 if test -n "$XML2_CONFIG"; then
5395 ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5396 else
5397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398 for as_dir in $PATH
5400 IFS=$as_save_IFS
5401 test -z "$as_dir" && as_dir=.
5402 for ac_exec_ext in '' $ac_executable_extensions; do
5403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5404 ac_cv_prog_XML2_CONFIG="$ac_prog"
5405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5406 break 2
5408 done
5409 done
5410 IFS=$as_save_IFS
5414 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5415 if test -n "$XML2_CONFIG"; then
5416 { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5417 echo "${ECHO_T}$XML2_CONFIG" >&6; }
5418 else
5419 { echo "$as_me:$LINENO: result: no" >&5
5420 echo "${ECHO_T}no" >&6; }
5424 test -n "$XML2_CONFIG" && break
5425 done
5427 if test -n "$XML2_CONFIG"; then
5428 for pgac_option in `$XML2_CONFIG --cflags`; do
5429 case $pgac_option in
5430 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5431 esac
5432 done
5433 for pgac_option in `$XML2_CONFIG --libs`; do
5434 case $pgac_option in
5435 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5436 esac
5437 done
5444 # XSLT
5447 pgac_args="$pgac_args with_libxslt"
5450 # Check whether --with-libxslt was given.
5451 if test "${with_libxslt+set}" = set; then
5452 withval=$with_libxslt;
5453 case $withval in
5454 yes)
5456 cat >>confdefs.h <<\_ACEOF
5457 #define USE_LIBXSLT 1
5458 _ACEOF
5465 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5466 echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5467 { (exit 1); exit 1; }; }
5469 esac
5471 else
5472 with_libxslt=no
5482 # tzdata
5485 pgac_args="$pgac_args with_system_tzdata"
5488 # Check whether --with-system-tzdata was given.
5489 if test "${with_system_tzdata+set}" = set; then
5490 withval=$with_system_tzdata;
5491 case $withval in
5492 yes)
5493 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5494 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5495 { (exit 1); exit 1; }; }
5498 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5499 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5500 { (exit 1); exit 1; }; }
5505 esac
5513 # Zlib
5516 pgac_args="$pgac_args with_zlib"
5519 # Check whether --with-zlib was given.
5520 if test "${with_zlib+set}" = set; then
5521 withval=$with_zlib;
5522 case $withval in
5523 yes)
5530 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5531 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5532 { (exit 1); exit 1; }; }
5534 esac
5536 else
5537 with_zlib=yes
5545 # Elf
5548 # Assume system is ELF if it predefines __ELF__ as 1,
5549 # otherwise believe host_os based default.
5550 case $host_os in
5551 freebsd1*|freebsd2*) elf=no;;
5552 freebsd3*|freebsd4*) elf=yes;;
5553 esac
5556 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5557 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5558 if test "${ac_cv_path_GREP+set}" = set; then
5559 echo $ECHO_N "(cached) $ECHO_C" >&6
5560 else
5561 # Extract the first word of "grep ggrep" to use in msg output
5562 if test -z "$GREP"; then
5563 set dummy grep ggrep; ac_prog_name=$2
5564 if test "${ac_cv_path_GREP+set}" = set; then
5565 echo $ECHO_N "(cached) $ECHO_C" >&6
5566 else
5567 ac_path_GREP_found=false
5568 # Loop through the user's path and test for each of PROGNAME-LIST
5569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5570 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5572 IFS=$as_save_IFS
5573 test -z "$as_dir" && as_dir=.
5574 for ac_prog in grep ggrep; do
5575 for ac_exec_ext in '' $ac_executable_extensions; do
5576 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5577 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5578 # Check for GNU ac_path_GREP and select it if it is found.
5579 # Check for GNU $ac_path_GREP
5580 case `"$ac_path_GREP" --version 2>&1` in
5581 *GNU*)
5582 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5584 ac_count=0
5585 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5586 while :
5588 cat "conftest.in" "conftest.in" >"conftest.tmp"
5589 mv "conftest.tmp" "conftest.in"
5590 cp "conftest.in" "conftest.nl"
5591 echo 'GREP' >> "conftest.nl"
5592 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5593 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5594 ac_count=`expr $ac_count + 1`
5595 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5596 # Best one so far, save it but keep looking for a better one
5597 ac_cv_path_GREP="$ac_path_GREP"
5598 ac_path_GREP_max=$ac_count
5600 # 10*(2^10) chars as input seems more than enough
5601 test $ac_count -gt 10 && break
5602 done
5603 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5604 esac
5607 $ac_path_GREP_found && break 3
5608 done
5609 done
5611 done
5612 IFS=$as_save_IFS
5617 GREP="$ac_cv_path_GREP"
5618 if test -z "$GREP"; then
5619 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5620 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5621 { (exit 1); exit 1; }; }
5624 else
5625 ac_cv_path_GREP=$GREP
5630 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5631 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5632 GREP="$ac_cv_path_GREP"
5635 { echo "$as_me:$LINENO: checking for egrep" >&5
5636 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5637 if test "${ac_cv_path_EGREP+set}" = set; then
5638 echo $ECHO_N "(cached) $ECHO_C" >&6
5639 else
5640 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5641 then ac_cv_path_EGREP="$GREP -E"
5642 else
5643 # Extract the first word of "egrep" to use in msg output
5644 if test -z "$EGREP"; then
5645 set dummy egrep; ac_prog_name=$2
5646 if test "${ac_cv_path_EGREP+set}" = set; then
5647 echo $ECHO_N "(cached) $ECHO_C" >&6
5648 else
5649 ac_path_EGREP_found=false
5650 # Loop through the user's path and test for each of PROGNAME-LIST
5651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5654 IFS=$as_save_IFS
5655 test -z "$as_dir" && as_dir=.
5656 for ac_prog in egrep; do
5657 for ac_exec_ext in '' $ac_executable_extensions; do
5658 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5659 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5660 # Check for GNU ac_path_EGREP and select it if it is found.
5661 # Check for GNU $ac_path_EGREP
5662 case `"$ac_path_EGREP" --version 2>&1` in
5663 *GNU*)
5664 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5666 ac_count=0
5667 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5668 while :
5670 cat "conftest.in" "conftest.in" >"conftest.tmp"
5671 mv "conftest.tmp" "conftest.in"
5672 cp "conftest.in" "conftest.nl"
5673 echo 'EGREP' >> "conftest.nl"
5674 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5675 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5676 ac_count=`expr $ac_count + 1`
5677 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5678 # Best one so far, save it but keep looking for a better one
5679 ac_cv_path_EGREP="$ac_path_EGREP"
5680 ac_path_EGREP_max=$ac_count
5682 # 10*(2^10) chars as input seems more than enough
5683 test $ac_count -gt 10 && break
5684 done
5685 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5686 esac
5689 $ac_path_EGREP_found && break 3
5690 done
5691 done
5693 done
5694 IFS=$as_save_IFS
5699 EGREP="$ac_cv_path_EGREP"
5700 if test -z "$EGREP"; then
5701 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5702 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5703 { (exit 1); exit 1; }; }
5706 else
5707 ac_cv_path_EGREP=$EGREP
5713 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5714 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5715 EGREP="$ac_cv_path_EGREP"
5718 cat >conftest.$ac_ext <<_ACEOF
5719 /* confdefs.h. */
5720 _ACEOF
5721 cat confdefs.h >>conftest.$ac_ext
5722 cat >>conftest.$ac_ext <<_ACEOF
5723 /* end confdefs.h. */
5724 #if __ELF__
5726 #endif
5728 _ACEOF
5729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5730 $EGREP "yes" >/dev/null 2>&1; then
5731 ELF_SYS=true
5732 else
5733 if test "X$elf" = "Xyes" ; then
5734 ELF_SYS=true
5735 else
5736 ELF_SYS=
5739 rm -f conftest*
5744 # Assignments
5747 CPPFLAGS="$CPPFLAGS $INCLUDES"
5748 LDFLAGS="$LDFLAGS $LIBDIRS"
5753 # Check whether --with-gnu-ld was given.
5754 if test "${with_gnu_ld+set}" = set; then
5755 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5756 else
5757 with_gnu_ld=no
5760 ac_prog=ld
5761 if test "$GCC" = yes; then
5762 # Check if gcc -print-prog-name=ld gives a path.
5763 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5764 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
5765 case $host in
5766 *-*-mingw*)
5767 # gcc leaves a trailing carriage return which upsets mingw
5768 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5770 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5771 esac
5772 case "$ac_prog" in
5773 # Accept absolute paths.
5774 [\\/]* | [A-Za-z]:[\\/]*)
5775 re_direlt='/[^/][^/]*/\.\./'
5776 # Canonicalize the path of ld
5777 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5778 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5779 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5780 done
5781 test -z "$LD" && LD="$ac_prog"
5784 # If it fails, then pretend we aren't using GCC.
5785 ac_prog=ld
5788 # If it is relative, then search for the first ld in PATH.
5789 with_gnu_ld=unknown
5791 esac
5792 elif test "$with_gnu_ld" = yes; then
5793 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5794 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5795 else
5796 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5797 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5799 if test "${ac_cv_path_LD+set}" = set; then
5800 echo $ECHO_N "(cached) $ECHO_C" >&6
5801 else
5802 if test -z "$LD"; then
5803 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5804 for ac_dir in $PATH; do
5805 test -z "$ac_dir" && ac_dir=.
5806 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5807 ac_cv_path_LD="$ac_dir/$ac_prog"
5808 # Check to see if the program is GNU ld. I'd rather use --version,
5809 # but apparently some GNU ld's only accept -v.
5810 # Break only if it was the GNU/non-GNU ld that we prefer.
5811 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5812 test "$with_gnu_ld" != no && break
5813 else
5814 test "$with_gnu_ld" != yes && break
5817 done
5818 IFS="$ac_save_ifs"
5819 else
5820 ac_cv_path_LD="$LD" # Let the user override the test with a path.
5824 LD="$ac_cv_path_LD"
5825 if test -n "$LD"; then
5826 { echo "$as_me:$LINENO: result: $LD" >&5
5827 echo "${ECHO_T}$LD" >&6; }
5828 else
5829 { echo "$as_me:$LINENO: result: no" >&5
5830 echo "${ECHO_T}no" >&6; }
5832 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5833 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5834 { (exit 1); exit 1; }; }
5835 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5836 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5837 if test "${ac_cv_prog_gnu_ld+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
5839 else
5840 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5841 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5842 ac_cv_prog_gnu_ld=yes
5843 else
5844 ac_cv_prog_gnu_ld=no
5847 { echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
5848 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6; }
5849 with_gnu_ld=$ac_cv_prog_gnu_ld
5854 case $host_os in sysv5*)
5855 { echo "$as_me:$LINENO: checking whether ld -R works" >&5
5856 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6; }
5857 if test "${pgac_cv_prog_ld_R+set}" = set; then
5858 echo $ECHO_N "(cached) $ECHO_C" >&6
5859 else
5861 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
5862 cat >conftest.$ac_ext <<_ACEOF
5863 /* confdefs.h. */
5864 _ACEOF
5865 cat confdefs.h >>conftest.$ac_ext
5866 cat >>conftest.$ac_ext <<_ACEOF
5867 /* end confdefs.h. */
5870 main ()
5874 return 0;
5876 _ACEOF
5877 rm -f conftest.$ac_objext conftest$ac_exeext
5878 if { (ac_try="$ac_link"
5879 case "(($ac_try" in
5880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5881 *) ac_try_echo=$ac_try;;
5882 esac
5883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5884 (eval "$ac_link") 2>conftest.er1
5885 ac_status=$?
5886 grep -v '^ *+' conftest.er1 >conftest.err
5887 rm -f conftest.er1
5888 cat conftest.err >&5
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); } && {
5891 test -z "$ac_c_werror_flag" ||
5892 test ! -s conftest.err
5893 } && test -s conftest$ac_exeext &&
5894 $as_test_x conftest$ac_exeext; then
5895 pgac_cv_prog_ld_R=yes
5896 else
5897 echo "$as_me: failed program was:" >&5
5898 sed 's/^/| /' conftest.$ac_ext >&5
5900 pgac_cv_prog_ld_R=no
5903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5904 conftest$ac_exeext conftest.$ac_ext
5905 LDFLAGS=$pgac_save_LDFLAGS
5908 { echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
5909 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6; }
5910 ld_R_works=$pgac_cv_prog_ld_R
5912 esac
5913 if test -n "$ac_tool_prefix"; then
5914 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5915 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5916 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5918 if test "${ac_cv_prog_RANLIB+set}" = set; then
5919 echo $ECHO_N "(cached) $ECHO_C" >&6
5920 else
5921 if test -n "$RANLIB"; then
5922 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5923 else
5924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925 for as_dir in $PATH
5927 IFS=$as_save_IFS
5928 test -z "$as_dir" && as_dir=.
5929 for ac_exec_ext in '' $ac_executable_extensions; do
5930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5931 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5933 break 2
5935 done
5936 done
5937 IFS=$as_save_IFS
5941 RANLIB=$ac_cv_prog_RANLIB
5942 if test -n "$RANLIB"; then
5943 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5944 echo "${ECHO_T}$RANLIB" >&6; }
5945 else
5946 { echo "$as_me:$LINENO: result: no" >&5
5947 echo "${ECHO_T}no" >&6; }
5952 if test -z "$ac_cv_prog_RANLIB"; then
5953 ac_ct_RANLIB=$RANLIB
5954 # Extract the first word of "ranlib", so it can be a program name with args.
5955 set dummy ranlib; ac_word=$2
5956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5958 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5959 echo $ECHO_N "(cached) $ECHO_C" >&6
5960 else
5961 if test -n "$ac_ct_RANLIB"; then
5962 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5963 else
5964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965 for as_dir in $PATH
5967 IFS=$as_save_IFS
5968 test -z "$as_dir" && as_dir=.
5969 for ac_exec_ext in '' $ac_executable_extensions; do
5970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5971 ac_cv_prog_ac_ct_RANLIB="ranlib"
5972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5973 break 2
5975 done
5976 done
5977 IFS=$as_save_IFS
5981 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5982 if test -n "$ac_ct_RANLIB"; then
5983 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5984 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5985 else
5986 { echo "$as_me:$LINENO: result: no" >&5
5987 echo "${ECHO_T}no" >&6; }
5990 if test "x$ac_ct_RANLIB" = x; then
5991 RANLIB=":"
5992 else
5993 case $cross_compiling:$ac_tool_warned in
5994 yes:)
5995 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5996 whose name does not start with the host triplet. If you think this
5997 configuration is useful to you, please write to autoconf@gnu.org." >&5
5998 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5999 whose name does not start with the host triplet. If you think this
6000 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6001 ac_tool_warned=yes ;;
6002 esac
6003 RANLIB=$ac_ct_RANLIB
6005 else
6006 RANLIB="$ac_cv_prog_RANLIB"
6010 if test -n "$ac_tool_prefix"; then
6011 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6012 set dummy ${ac_tool_prefix}strip; ac_word=$2
6013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6015 if test "${ac_cv_prog_STRIP+set}" = set; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
6017 else
6018 if test -n "$STRIP"; then
6019 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6020 else
6021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022 for as_dir in $PATH
6024 IFS=$as_save_IFS
6025 test -z "$as_dir" && as_dir=.
6026 for ac_exec_ext in '' $ac_executable_extensions; do
6027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6028 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6030 break 2
6032 done
6033 done
6034 IFS=$as_save_IFS
6038 STRIP=$ac_cv_prog_STRIP
6039 if test -n "$STRIP"; then
6040 { echo "$as_me:$LINENO: result: $STRIP" >&5
6041 echo "${ECHO_T}$STRIP" >&6; }
6042 else
6043 { echo "$as_me:$LINENO: result: no" >&5
6044 echo "${ECHO_T}no" >&6; }
6049 if test -z "$ac_cv_prog_STRIP"; then
6050 ac_ct_STRIP=$STRIP
6051 # Extract the first word of "strip", so it can be a program name with args.
6052 set dummy strip; ac_word=$2
6053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6055 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6056 echo $ECHO_N "(cached) $ECHO_C" >&6
6057 else
6058 if test -n "$ac_ct_STRIP"; then
6059 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6060 else
6061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062 for as_dir in $PATH
6064 IFS=$as_save_IFS
6065 test -z "$as_dir" && as_dir=.
6066 for ac_exec_ext in '' $ac_executable_extensions; do
6067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6068 ac_cv_prog_ac_ct_STRIP="strip"
6069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6070 break 2
6072 done
6073 done
6074 IFS=$as_save_IFS
6078 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6079 if test -n "$ac_ct_STRIP"; then
6080 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6081 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6082 else
6083 { echo "$as_me:$LINENO: result: no" >&5
6084 echo "${ECHO_T}no" >&6; }
6087 if test "x$ac_ct_STRIP" = x; then
6088 STRIP=":"
6089 else
6090 case $cross_compiling:$ac_tool_warned in
6091 yes:)
6092 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6093 whose name does not start with the host triplet. If you think this
6094 configuration is useful to you, please write to autoconf@gnu.org." >&5
6095 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6096 whose name does not start with the host triplet. If you think this
6097 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6098 ac_tool_warned=yes ;;
6099 esac
6100 STRIP=$ac_ct_STRIP
6102 else
6103 STRIP="$ac_cv_prog_STRIP"
6107 { echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6108 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6; }
6109 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6110 STRIP_STATIC_LIB="$STRIP -x"
6111 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6112 { echo "$as_me:$LINENO: result: yes" >&5
6113 echo "${ECHO_T}yes" >&6; }
6114 else
6115 STRIP_STATIC_LIB=:
6116 STRIP_SHARED_LIB=:
6117 { echo "$as_me:$LINENO: result: no" >&5
6118 echo "${ECHO_T}no" >&6; }
6123 if test -n "$ac_tool_prefix"; then
6124 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6125 set dummy ${ac_tool_prefix}ar; ac_word=$2
6126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6128 if test "${ac_cv_prog_AR+set}" = set; then
6129 echo $ECHO_N "(cached) $ECHO_C" >&6
6130 else
6131 if test -n "$AR"; then
6132 ac_cv_prog_AR="$AR" # Let the user override the test.
6133 else
6134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135 for as_dir in $PATH
6137 IFS=$as_save_IFS
6138 test -z "$as_dir" && as_dir=.
6139 for ac_exec_ext in '' $ac_executable_extensions; do
6140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6141 ac_cv_prog_AR="${ac_tool_prefix}ar"
6142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6143 break 2
6145 done
6146 done
6147 IFS=$as_save_IFS
6151 AR=$ac_cv_prog_AR
6152 if test -n "$AR"; then
6153 { echo "$as_me:$LINENO: result: $AR" >&5
6154 echo "${ECHO_T}$AR" >&6; }
6155 else
6156 { echo "$as_me:$LINENO: result: no" >&5
6157 echo "${ECHO_T}no" >&6; }
6162 if test -z "$ac_cv_prog_AR"; then
6163 ac_ct_AR=$AR
6164 # Extract the first word of "ar", so it can be a program name with args.
6165 set dummy ar; ac_word=$2
6166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6168 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6169 echo $ECHO_N "(cached) $ECHO_C" >&6
6170 else
6171 if test -n "$ac_ct_AR"; then
6172 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6173 else
6174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6175 for as_dir in $PATH
6177 IFS=$as_save_IFS
6178 test -z "$as_dir" && as_dir=.
6179 for ac_exec_ext in '' $ac_executable_extensions; do
6180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6181 ac_cv_prog_ac_ct_AR="ar"
6182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6183 break 2
6185 done
6186 done
6187 IFS=$as_save_IFS
6191 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6192 if test -n "$ac_ct_AR"; then
6193 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6194 echo "${ECHO_T}$ac_ct_AR" >&6; }
6195 else
6196 { echo "$as_me:$LINENO: result: no" >&5
6197 echo "${ECHO_T}no" >&6; }
6200 if test "x$ac_ct_AR" = x; then
6201 AR="ar"
6202 else
6203 case $cross_compiling:$ac_tool_warned in
6204 yes:)
6205 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6206 whose name does not start with the host triplet. If you think this
6207 configuration is useful to you, please write to autoconf@gnu.org." >&5
6208 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6209 whose name does not start with the host triplet. If you think this
6210 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6211 ac_tool_warned=yes ;;
6212 esac
6213 AR=$ac_ct_AR
6215 else
6216 AR="$ac_cv_prog_AR"
6219 if test "$PORTNAME" = "win32"; then
6220 if test -n "$ac_tool_prefix"; then
6221 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6222 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6223 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6225 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6226 echo $ECHO_N "(cached) $ECHO_C" >&6
6227 else
6228 if test -n "$DLLTOOL"; then
6229 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6230 else
6231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232 for as_dir in $PATH
6234 IFS=$as_save_IFS
6235 test -z "$as_dir" && as_dir=.
6236 for ac_exec_ext in '' $ac_executable_extensions; do
6237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6238 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6240 break 2
6242 done
6243 done
6244 IFS=$as_save_IFS
6248 DLLTOOL=$ac_cv_prog_DLLTOOL
6249 if test -n "$DLLTOOL"; then
6250 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6251 echo "${ECHO_T}$DLLTOOL" >&6; }
6252 else
6253 { echo "$as_me:$LINENO: result: no" >&5
6254 echo "${ECHO_T}no" >&6; }
6259 if test -z "$ac_cv_prog_DLLTOOL"; then
6260 ac_ct_DLLTOOL=$DLLTOOL
6261 # Extract the first word of "dlltool", so it can be a program name with args.
6262 set dummy dlltool; ac_word=$2
6263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6265 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6266 echo $ECHO_N "(cached) $ECHO_C" >&6
6267 else
6268 if test -n "$ac_ct_DLLTOOL"; then
6269 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6270 else
6271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6272 for as_dir in $PATH
6274 IFS=$as_save_IFS
6275 test -z "$as_dir" && as_dir=.
6276 for ac_exec_ext in '' $ac_executable_extensions; do
6277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6278 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6280 break 2
6282 done
6283 done
6284 IFS=$as_save_IFS
6288 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6289 if test -n "$ac_ct_DLLTOOL"; then
6290 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6291 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
6292 else
6293 { echo "$as_me:$LINENO: result: no" >&5
6294 echo "${ECHO_T}no" >&6; }
6297 if test "x$ac_ct_DLLTOOL" = x; then
6298 DLLTOOL="dlltool"
6299 else
6300 case $cross_compiling:$ac_tool_warned in
6301 yes:)
6302 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6303 whose name does not start with the host triplet. If you think this
6304 configuration is useful to you, please write to autoconf@gnu.org." >&5
6305 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6306 whose name does not start with the host triplet. If you think this
6307 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6308 ac_tool_warned=yes ;;
6309 esac
6310 DLLTOOL=$ac_ct_DLLTOOL
6312 else
6313 DLLTOOL="$ac_cv_prog_DLLTOOL"
6316 if test -n "$ac_tool_prefix"; then
6317 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6318 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6321 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6322 echo $ECHO_N "(cached) $ECHO_C" >&6
6323 else
6324 if test -n "$DLLWRAP"; then
6325 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6326 else
6327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328 for as_dir in $PATH
6330 IFS=$as_save_IFS
6331 test -z "$as_dir" && as_dir=.
6332 for ac_exec_ext in '' $ac_executable_extensions; do
6333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6334 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6336 break 2
6338 done
6339 done
6340 IFS=$as_save_IFS
6344 DLLWRAP=$ac_cv_prog_DLLWRAP
6345 if test -n "$DLLWRAP"; then
6346 { echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6347 echo "${ECHO_T}$DLLWRAP" >&6; }
6348 else
6349 { echo "$as_me:$LINENO: result: no" >&5
6350 echo "${ECHO_T}no" >&6; }
6355 if test -z "$ac_cv_prog_DLLWRAP"; then
6356 ac_ct_DLLWRAP=$DLLWRAP
6357 # Extract the first word of "dllwrap", so it can be a program name with args.
6358 set dummy dllwrap; ac_word=$2
6359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6361 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6362 echo $ECHO_N "(cached) $ECHO_C" >&6
6363 else
6364 if test -n "$ac_ct_DLLWRAP"; then
6365 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6366 else
6367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6368 for as_dir in $PATH
6370 IFS=$as_save_IFS
6371 test -z "$as_dir" && as_dir=.
6372 for ac_exec_ext in '' $ac_executable_extensions; do
6373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6374 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6376 break 2
6378 done
6379 done
6380 IFS=$as_save_IFS
6384 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6385 if test -n "$ac_ct_DLLWRAP"; then
6386 { echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6387 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6; }
6388 else
6389 { echo "$as_me:$LINENO: result: no" >&5
6390 echo "${ECHO_T}no" >&6; }
6393 if test "x$ac_ct_DLLWRAP" = x; then
6394 DLLWRAP="dllwrap"
6395 else
6396 case $cross_compiling:$ac_tool_warned in
6397 yes:)
6398 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6399 whose name does not start with the host triplet. If you think this
6400 configuration is useful to you, please write to autoconf@gnu.org." >&5
6401 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6402 whose name does not start with the host triplet. If you think this
6403 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6404 ac_tool_warned=yes ;;
6405 esac
6406 DLLWRAP=$ac_ct_DLLWRAP
6408 else
6409 DLLWRAP="$ac_cv_prog_DLLWRAP"
6412 if test -n "$ac_tool_prefix"; then
6413 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6414 set dummy ${ac_tool_prefix}windres; ac_word=$2
6415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6417 if test "${ac_cv_prog_WINDRES+set}" = set; then
6418 echo $ECHO_N "(cached) $ECHO_C" >&6
6419 else
6420 if test -n "$WINDRES"; then
6421 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6422 else
6423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424 for as_dir in $PATH
6426 IFS=$as_save_IFS
6427 test -z "$as_dir" && as_dir=.
6428 for ac_exec_ext in '' $ac_executable_extensions; do
6429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6430 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6432 break 2
6434 done
6435 done
6436 IFS=$as_save_IFS
6440 WINDRES=$ac_cv_prog_WINDRES
6441 if test -n "$WINDRES"; then
6442 { echo "$as_me:$LINENO: result: $WINDRES" >&5
6443 echo "${ECHO_T}$WINDRES" >&6; }
6444 else
6445 { echo "$as_me:$LINENO: result: no" >&5
6446 echo "${ECHO_T}no" >&6; }
6451 if test -z "$ac_cv_prog_WINDRES"; then
6452 ac_ct_WINDRES=$WINDRES
6453 # Extract the first word of "windres", so it can be a program name with args.
6454 set dummy windres; ac_word=$2
6455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6457 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6458 echo $ECHO_N "(cached) $ECHO_C" >&6
6459 else
6460 if test -n "$ac_ct_WINDRES"; then
6461 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6462 else
6463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6464 for as_dir in $PATH
6466 IFS=$as_save_IFS
6467 test -z "$as_dir" && as_dir=.
6468 for ac_exec_ext in '' $ac_executable_extensions; do
6469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6470 ac_cv_prog_ac_ct_WINDRES="windres"
6471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6472 break 2
6474 done
6475 done
6476 IFS=$as_save_IFS
6480 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6481 if test -n "$ac_ct_WINDRES"; then
6482 { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6483 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
6484 else
6485 { echo "$as_me:$LINENO: result: no" >&5
6486 echo "${ECHO_T}no" >&6; }
6489 if test "x$ac_ct_WINDRES" = x; then
6490 WINDRES="windres"
6491 else
6492 case $cross_compiling:$ac_tool_warned in
6493 yes:)
6494 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6495 whose name does not start with the host triplet. If you think this
6496 configuration is useful to you, please write to autoconf@gnu.org." >&5
6497 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6498 whose name does not start with the host triplet. If you think this
6499 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6500 ac_tool_warned=yes ;;
6501 esac
6502 WINDRES=$ac_ct_WINDRES
6504 else
6505 WINDRES="$ac_cv_prog_WINDRES"
6510 # Extract the first word of "tar", so it can be a program name with args.
6511 set dummy tar; ac_word=$2
6512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6514 if test "${ac_cv_path_TAR+set}" = set; then
6515 echo $ECHO_N "(cached) $ECHO_C" >&6
6516 else
6517 case $TAR in
6518 [\\/]* | ?:[\\/]*)
6519 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6523 for as_dir in $PATH
6525 IFS=$as_save_IFS
6526 test -z "$as_dir" && as_dir=.
6527 for ac_exec_ext in '' $ac_executable_extensions; do
6528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6529 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6531 break 2
6533 done
6534 done
6535 IFS=$as_save_IFS
6538 esac
6540 TAR=$ac_cv_path_TAR
6541 if test -n "$TAR"; then
6542 { echo "$as_me:$LINENO: result: $TAR" >&5
6543 echo "${ECHO_T}$TAR" >&6; }
6544 else
6545 { echo "$as_me:$LINENO: result: no" >&5
6546 echo "${ECHO_T}no" >&6; }
6550 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6551 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6552 LN_S=$as_ln_s
6553 if test "$LN_S" = "ln -s"; then
6554 { echo "$as_me:$LINENO: result: yes" >&5
6555 echo "${ECHO_T}yes" >&6; }
6556 else
6557 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6558 echo "${ECHO_T}no, using $LN_S" >&6; }
6561 for ac_prog in gawk mawk nawk awk
6563 # Extract the first word of "$ac_prog", so it can be a program name with args.
6564 set dummy $ac_prog; ac_word=$2
6565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6567 if test "${ac_cv_prog_AWK+set}" = set; then
6568 echo $ECHO_N "(cached) $ECHO_C" >&6
6569 else
6570 if test -n "$AWK"; then
6571 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6572 else
6573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6574 for as_dir in $PATH
6576 IFS=$as_save_IFS
6577 test -z "$as_dir" && as_dir=.
6578 for ac_exec_ext in '' $ac_executable_extensions; do
6579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6580 ac_cv_prog_AWK="$ac_prog"
6581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6582 break 2
6584 done
6585 done
6586 IFS=$as_save_IFS
6590 AWK=$ac_cv_prog_AWK
6591 if test -n "$AWK"; then
6592 { echo "$as_me:$LINENO: result: $AWK" >&5
6593 echo "${ECHO_T}$AWK" >&6; }
6594 else
6595 { echo "$as_me:$LINENO: result: no" >&5
6596 echo "${ECHO_T}no" >&6; }
6600 test -n "$AWK" && break
6601 done
6604 # Let the user override the search
6605 if test -z "$BISON"; then
6606 for ac_prog in bison
6608 # Extract the first word of "$ac_prog", so it can be a program name with args.
6609 set dummy $ac_prog; ac_word=$2
6610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6612 if test "${ac_cv_prog_BISON+set}" = set; then
6613 echo $ECHO_N "(cached) $ECHO_C" >&6
6614 else
6615 if test -n "$BISON"; then
6616 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6617 else
6618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6619 for as_dir in $PATH
6621 IFS=$as_save_IFS
6622 test -z "$as_dir" && as_dir=.
6623 for ac_exec_ext in '' $ac_executable_extensions; do
6624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6625 ac_cv_prog_BISON="$ac_prog"
6626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6627 break 2
6629 done
6630 done
6631 IFS=$as_save_IFS
6635 BISON=$ac_cv_prog_BISON
6636 if test -n "$BISON"; then
6637 { echo "$as_me:$LINENO: result: $BISON" >&5
6638 echo "${ECHO_T}$BISON" >&6; }
6639 else
6640 { echo "$as_me:$LINENO: result: no" >&5
6641 echo "${ECHO_T}no" >&6; }
6645 test -n "$BISON" && break
6646 done
6650 if test "$BISON"; then
6651 pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
6652 { echo "$as_me:$LINENO: using $pgac_bison_version" >&5
6653 echo "$as_me: using $pgac_bison_version" >&6;}
6654 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
6655 then
6656 { echo "$as_me:$LINENO: WARNING:
6657 *** The installed version of Bison is too old to use with PostgreSQL.
6658 *** Bison version 1.875 or later is required." >&5
6659 echo "$as_me: WARNING:
6660 *** The installed version of Bison is too old to use with PostgreSQL.
6661 *** Bison version 1.875 or later is required." >&2;}
6662 BISON=""
6666 if test -z "$BISON"; then
6667 { echo "$as_me:$LINENO: WARNING:
6668 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6669 *** change any of the parser definition files. You can obtain Bison from
6670 *** a GNU mirror site. (If you are using the official distribution of
6671 *** PostgreSQL then you do not need to worry about this, because the Bison
6672 *** output is pre-generated.)" >&5
6673 echo "$as_me: WARNING:
6674 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6675 *** change any of the parser definition files. You can obtain Bison from
6676 *** a GNU mirror site. (If you are using the official distribution of
6677 *** PostgreSQL then you do not need to worry about this, because the Bison
6678 *** output is pre-generated.)" >&2;}
6680 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
6683 { echo "$as_me:$LINENO: checking for flex" >&5
6684 echo $ECHO_N "checking for flex... $ECHO_C" >&6; }
6685 if test "${pgac_cv_path_flex+set}" = set; then
6686 echo $ECHO_N "(cached) $ECHO_C" >&6
6687 else
6688 # Let the user override the test
6689 if test -n "$FLEX"; then
6690 pgac_cv_path_flex=$FLEX
6691 else
6692 pgac_save_IFS=$IFS
6693 IFS=$PATH_SEPARATOR
6694 for pgac_dir in $PATH; do
6695 IFS=$pgac_save_IFS
6696 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
6697 pgac_dir=`pwd`
6699 for pgac_prog in flex lex; do
6700 pgac_candidate="$pgac_dir/$pgac_prog"
6701 if test -f "$pgac_candidate" \
6702 && $pgac_candidate --version </dev/null >/dev/null 2>&1
6703 then
6704 echo '%%' > conftest.l
6705 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
6706 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
6707 pgac_broken_flex=$pgac_candidate
6708 continue
6711 pgac_cv_path_flex=$pgac_candidate
6712 break 2
6715 done
6716 done
6717 rm -f conftest.l lex.yy.c
6718 : ${pgac_cv_path_flex=no}
6722 { echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
6723 echo "${ECHO_T}$pgac_cv_path_flex" >&6; }
6724 if test x"$pgac_cv_path_flex" = x"no"; then
6725 if test -n "$pgac_broken_flex"; then
6726 { echo "$as_me:$LINENO: WARNING:
6727 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
6728 *** should get version 2.5.4 or later." >&5
6729 echo "$as_me: WARNING:
6730 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
6731 *** should get version 2.5.4 or later." >&2;}
6734 { echo "$as_me:$LINENO: WARNING:
6735 *** Without Flex you will not be able to build PostgreSQL from CVS or
6736 *** change any of the scanner definition files. You can obtain Flex from
6737 *** a GNU mirror site. (If you are using the official distribution of
6738 *** PostgreSQL then you do not need to worry about this because the Flex
6739 *** output is pre-generated.)" >&5
6740 echo "$as_me: WARNING:
6741 *** Without Flex you will not be able to build PostgreSQL from CVS or
6742 *** change any of the scanner definition files. You can obtain Flex from
6743 *** a GNU mirror site. (If you are using the official distribution of
6744 *** PostgreSQL then you do not need to worry about this because the Flex
6745 *** output is pre-generated.)" >&2;}
6747 FLEX=
6748 else
6749 FLEX=$pgac_cv_path_flex
6750 pgac_flex_version=`$FLEX -V 2>/dev/null`
6751 { echo "$as_me:$LINENO: using $pgac_flex_version" >&5
6752 echo "$as_me: using $pgac_flex_version" >&6;}
6759 # Extract the first word of "perl", so it can be a program name with args.
6760 set dummy perl; ac_word=$2
6761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6763 if test "${ac_cv_path_PERL+set}" = set; then
6764 echo $ECHO_N "(cached) $ECHO_C" >&6
6765 else
6766 case $PERL in
6767 [\\/]* | ?:[\\/]*)
6768 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772 for as_dir in $PATH
6774 IFS=$as_save_IFS
6775 test -z "$as_dir" && as_dir=.
6776 for ac_exec_ext in '' $ac_executable_extensions; do
6777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6778 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6780 break 2
6782 done
6783 done
6784 IFS=$as_save_IFS
6787 esac
6789 PERL=$ac_cv_path_PERL
6790 if test -n "$PERL"; then
6791 { echo "$as_me:$LINENO: result: $PERL" >&5
6792 echo "${ECHO_T}$PERL" >&6; }
6793 else
6794 { echo "$as_me:$LINENO: result: no" >&5
6795 echo "${ECHO_T}no" >&6; }
6799 if test "$with_perl" = yes; then
6801 { echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
6802 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6; }
6803 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
6804 { echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
6805 echo "${ECHO_T}$perl_archlibexp" >&6; }
6806 { echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
6807 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6; }
6808 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
6809 { echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
6810 echo "${ECHO_T}$perl_privlibexp" >&6; }
6811 { echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
6812 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6; }
6813 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
6814 { echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
6815 echo "${ECHO_T}$perl_useshrplib" >&6; }
6817 { echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
6818 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6; }
6819 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
6820 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
6821 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
6822 if test -z "$perl_embed_ldflags" ; then
6823 { echo "$as_me:$LINENO: result: no" >&5
6824 echo "${ECHO_T}no" >&6; }
6825 { { echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
6826 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6827 installed." >&5
6828 echo "$as_me: error: could not determine flags for linking embedded Perl.
6829 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6830 installed." >&2;}
6831 { (exit 1); exit 1; }; }
6832 else
6833 { echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
6834 echo "${ECHO_T}$perl_embed_ldflags" >&6; }
6839 if test "$with_python" = yes; then
6840 # Extract the first word of "python", so it can be a program name with args.
6841 set dummy python; ac_word=$2
6842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6844 if test "${ac_cv_path_PYTHON+set}" = set; then
6845 echo $ECHO_N "(cached) $ECHO_C" >&6
6846 else
6847 case $PYTHON in
6848 [\\/]* | ?:[\\/]*)
6849 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
6852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6853 for as_dir in $PATH
6855 IFS=$as_save_IFS
6856 test -z "$as_dir" && as_dir=.
6857 for ac_exec_ext in '' $ac_executable_extensions; do
6858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6859 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
6860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6861 break 2
6863 done
6864 done
6865 IFS=$as_save_IFS
6868 esac
6870 PYTHON=$ac_cv_path_PYTHON
6871 if test -n "$PYTHON"; then
6872 { echo "$as_me:$LINENO: result: $PYTHON" >&5
6873 echo "${ECHO_T}$PYTHON" >&6; }
6874 else
6875 { echo "$as_me:$LINENO: result: no" >&5
6876 echo "${ECHO_T}no" >&6; }
6880 if test x"$PYTHON" = x""; then
6881 { { echo "$as_me:$LINENO: error: Python not found" >&5
6882 echo "$as_me: error: Python not found" >&2;}
6883 { (exit 1); exit 1; }; }
6887 { echo "$as_me:$LINENO: checking for Python distutils module" >&5
6888 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6; }
6889 if "${PYTHON}" 2>&- -c 'import distutils'
6890 then
6891 { echo "$as_me:$LINENO: result: yes" >&5
6892 echo "${ECHO_T}yes" >&6; }
6893 else
6894 { echo "$as_me:$LINENO: result: no" >&5
6895 echo "${ECHO_T}no" >&6; }
6896 { { echo "$as_me:$LINENO: error: distutils module not found" >&5
6897 echo "$as_me: error: distutils module not found" >&2;}
6898 { (exit 1); exit 1; }; }
6900 { echo "$as_me:$LINENO: checking Python configuration directory" >&5
6901 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6; }
6902 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
6903 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')"`
6904 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print '-I'+distutils.sysconfig.get_python_inc()"`
6906 # This should be enough of a message.
6907 { echo "$as_me:$LINENO: result: $python_configdir" >&5
6908 echo "${ECHO_T}$python_configdir" >&6; }
6911 { echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
6912 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6; }
6914 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR')))"`
6915 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY')))"`
6916 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('SO')))"`
6917 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
6919 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
6920 then
6921 # New way: use the official shared library
6922 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
6923 python_libspec="-L${python_libdir} -l${ldlibrary}"
6924 else
6925 # Old way: use libpython from python_configdir
6926 python_libdir="${python_configdir}"
6927 python_libspec="-L${python_libdir} -lpython${python_version}"
6930 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS')))"`
6932 { echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
6933 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6; }
6936 # threaded python is not supported on bsd's
6937 { echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
6938 echo $ECHO_N "checking whether Python is compiled with thread support... $ECHO_C" >&6; }
6939 pythreads=`${PYTHON} -c "import sys; print int('thread' in sys.builtin_module_names)"`
6940 if test "$pythreads" = "1"; then
6941 { echo "$as_me:$LINENO: result: yes" >&5
6942 echo "${ECHO_T}yes" >&6; }
6943 case $host_os in
6944 openbsd*|freebsd*)
6945 { { echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
6946 echo "$as_me: error: threaded Python not supported on this platform" >&2;}
6947 { (exit 1); exit 1; }; }
6949 esac
6950 else
6951 { echo "$as_me:$LINENO: result: no" >&5
6952 echo "${ECHO_T}no" >&6; }
6958 # Supply a numeric version string for use by 3rd party add-ons
6959 # awk -F is a regex on some platforms, and not on others, so make "." a tab
6960 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
6961 tr '.' ' ' |
6962 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
6964 cat >>confdefs.h <<_ACEOF
6965 #define PG_VERSION_NUM $PG_VERSION_NUM
6966 _ACEOF
6970 ## Libraries
6972 ## Most libraries are included only if they demonstrably provide a function
6973 ## we need, but libm is an exception: always include it, because there are
6974 ## too many compilers that play cute optimization games that will break
6975 ## probes for standard functions such as pow().
6979 { echo "$as_me:$LINENO: checking for main in -lm" >&5
6980 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
6981 if test "${ac_cv_lib_m_main+set}" = set; then
6982 echo $ECHO_N "(cached) $ECHO_C" >&6
6983 else
6984 ac_check_lib_save_LIBS=$LIBS
6985 LIBS="-lm $LIBS"
6986 cat >conftest.$ac_ext <<_ACEOF
6987 /* confdefs.h. */
6988 _ACEOF
6989 cat confdefs.h >>conftest.$ac_ext
6990 cat >>conftest.$ac_ext <<_ACEOF
6991 /* end confdefs.h. */
6995 main ()
6997 return main ();
6999 return 0;
7001 _ACEOF
7002 rm -f conftest.$ac_objext conftest$ac_exeext
7003 if { (ac_try="$ac_link"
7004 case "(($ac_try" in
7005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7006 *) ac_try_echo=$ac_try;;
7007 esac
7008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7009 (eval "$ac_link") 2>conftest.er1
7010 ac_status=$?
7011 grep -v '^ *+' conftest.er1 >conftest.err
7012 rm -f conftest.er1
7013 cat conftest.err >&5
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); } && {
7016 test -z "$ac_c_werror_flag" ||
7017 test ! -s conftest.err
7018 } && test -s conftest$ac_exeext &&
7019 $as_test_x conftest$ac_exeext; then
7020 ac_cv_lib_m_main=yes
7021 else
7022 echo "$as_me: failed program was:" >&5
7023 sed 's/^/| /' conftest.$ac_ext >&5
7025 ac_cv_lib_m_main=no
7028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7029 conftest$ac_exeext conftest.$ac_ext
7030 LIBS=$ac_check_lib_save_LIBS
7032 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7033 echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
7034 if test $ac_cv_lib_m_main = yes; then
7035 cat >>confdefs.h <<_ACEOF
7036 #define HAVE_LIBM 1
7037 _ACEOF
7039 LIBS="-lm $LIBS"
7043 { echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7044 echo $ECHO_N "checking for library containing setproctitle... $ECHO_C" >&6; }
7045 if test "${ac_cv_search_setproctitle+set}" = set; then
7046 echo $ECHO_N "(cached) $ECHO_C" >&6
7047 else
7048 ac_func_search_save_LIBS=$LIBS
7049 cat >conftest.$ac_ext <<_ACEOF
7050 /* confdefs.h. */
7051 _ACEOF
7052 cat confdefs.h >>conftest.$ac_ext
7053 cat >>conftest.$ac_ext <<_ACEOF
7054 /* end confdefs.h. */
7056 /* Override any GCC internal prototype to avoid an error.
7057 Use char because int might match the return type of a GCC
7058 builtin and then its argument prototype would still apply. */
7059 #ifdef __cplusplus
7060 extern "C"
7061 #endif
7062 char setproctitle ();
7064 main ()
7066 return setproctitle ();
7068 return 0;
7070 _ACEOF
7071 for ac_lib in '' util; do
7072 if test -z "$ac_lib"; then
7073 ac_res="none required"
7074 else
7075 ac_res=-l$ac_lib
7076 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7078 rm -f conftest.$ac_objext conftest$ac_exeext
7079 if { (ac_try="$ac_link"
7080 case "(($ac_try" in
7081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7082 *) ac_try_echo=$ac_try;;
7083 esac
7084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7085 (eval "$ac_link") 2>conftest.er1
7086 ac_status=$?
7087 grep -v '^ *+' conftest.er1 >conftest.err
7088 rm -f conftest.er1
7089 cat conftest.err >&5
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); } && {
7092 test -z "$ac_c_werror_flag" ||
7093 test ! -s conftest.err
7094 } && test -s conftest$ac_exeext &&
7095 $as_test_x conftest$ac_exeext; then
7096 ac_cv_search_setproctitle=$ac_res
7097 else
7098 echo "$as_me: failed program was:" >&5
7099 sed 's/^/| /' conftest.$ac_ext >&5
7104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7105 conftest$ac_exeext
7106 if test "${ac_cv_search_setproctitle+set}" = set; then
7107 break
7109 done
7110 if test "${ac_cv_search_setproctitle+set}" = set; then
7112 else
7113 ac_cv_search_setproctitle=no
7115 rm conftest.$ac_ext
7116 LIBS=$ac_func_search_save_LIBS
7118 { echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7119 echo "${ECHO_T}$ac_cv_search_setproctitle" >&6; }
7120 ac_res=$ac_cv_search_setproctitle
7121 if test "$ac_res" != no; then
7122 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7126 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7127 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
7128 if test "${ac_cv_search_dlopen+set}" = set; then
7129 echo $ECHO_N "(cached) $ECHO_C" >&6
7130 else
7131 ac_func_search_save_LIBS=$LIBS
7132 cat >conftest.$ac_ext <<_ACEOF
7133 /* confdefs.h. */
7134 _ACEOF
7135 cat confdefs.h >>conftest.$ac_ext
7136 cat >>conftest.$ac_ext <<_ACEOF
7137 /* end confdefs.h. */
7139 /* Override any GCC internal prototype to avoid an error.
7140 Use char because int might match the return type of a GCC
7141 builtin and then its argument prototype would still apply. */
7142 #ifdef __cplusplus
7143 extern "C"
7144 #endif
7145 char dlopen ();
7147 main ()
7149 return dlopen ();
7151 return 0;
7153 _ACEOF
7154 for ac_lib in '' dl; do
7155 if test -z "$ac_lib"; then
7156 ac_res="none required"
7157 else
7158 ac_res=-l$ac_lib
7159 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7161 rm -f conftest.$ac_objext conftest$ac_exeext
7162 if { (ac_try="$ac_link"
7163 case "(($ac_try" in
7164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7165 *) ac_try_echo=$ac_try;;
7166 esac
7167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7168 (eval "$ac_link") 2>conftest.er1
7169 ac_status=$?
7170 grep -v '^ *+' conftest.er1 >conftest.err
7171 rm -f conftest.er1
7172 cat conftest.err >&5
7173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174 (exit $ac_status); } && {
7175 test -z "$ac_c_werror_flag" ||
7176 test ! -s conftest.err
7177 } && test -s conftest$ac_exeext &&
7178 $as_test_x conftest$ac_exeext; then
7179 ac_cv_search_dlopen=$ac_res
7180 else
7181 echo "$as_me: failed program was:" >&5
7182 sed 's/^/| /' conftest.$ac_ext >&5
7187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7188 conftest$ac_exeext
7189 if test "${ac_cv_search_dlopen+set}" = set; then
7190 break
7192 done
7193 if test "${ac_cv_search_dlopen+set}" = set; then
7195 else
7196 ac_cv_search_dlopen=no
7198 rm conftest.$ac_ext
7199 LIBS=$ac_func_search_save_LIBS
7201 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7202 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
7203 ac_res=$ac_cv_search_dlopen
7204 if test "$ac_res" != no; then
7205 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7209 { echo "$as_me:$LINENO: checking for library containing socket" >&5
7210 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
7211 if test "${ac_cv_search_socket+set}" = set; then
7212 echo $ECHO_N "(cached) $ECHO_C" >&6
7213 else
7214 ac_func_search_save_LIBS=$LIBS
7215 cat >conftest.$ac_ext <<_ACEOF
7216 /* confdefs.h. */
7217 _ACEOF
7218 cat confdefs.h >>conftest.$ac_ext
7219 cat >>conftest.$ac_ext <<_ACEOF
7220 /* end confdefs.h. */
7222 /* Override any GCC internal prototype to avoid an error.
7223 Use char because int might match the return type of a GCC
7224 builtin and then its argument prototype would still apply. */
7225 #ifdef __cplusplus
7226 extern "C"
7227 #endif
7228 char socket ();
7230 main ()
7232 return socket ();
7234 return 0;
7236 _ACEOF
7237 for ac_lib in '' socket wsock32; do
7238 if test -z "$ac_lib"; then
7239 ac_res="none required"
7240 else
7241 ac_res=-l$ac_lib
7242 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7244 rm -f conftest.$ac_objext conftest$ac_exeext
7245 if { (ac_try="$ac_link"
7246 case "(($ac_try" in
7247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7248 *) ac_try_echo=$ac_try;;
7249 esac
7250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7251 (eval "$ac_link") 2>conftest.er1
7252 ac_status=$?
7253 grep -v '^ *+' conftest.er1 >conftest.err
7254 rm -f conftest.er1
7255 cat conftest.err >&5
7256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257 (exit $ac_status); } && {
7258 test -z "$ac_c_werror_flag" ||
7259 test ! -s conftest.err
7260 } && test -s conftest$ac_exeext &&
7261 $as_test_x conftest$ac_exeext; then
7262 ac_cv_search_socket=$ac_res
7263 else
7264 echo "$as_me: failed program was:" >&5
7265 sed 's/^/| /' conftest.$ac_ext >&5
7270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7271 conftest$ac_exeext
7272 if test "${ac_cv_search_socket+set}" = set; then
7273 break
7275 done
7276 if test "${ac_cv_search_socket+set}" = set; then
7278 else
7279 ac_cv_search_socket=no
7281 rm conftest.$ac_ext
7282 LIBS=$ac_func_search_save_LIBS
7284 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7285 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
7286 ac_res=$ac_cv_search_socket
7287 if test "$ac_res" != no; then
7288 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7292 { echo "$as_me:$LINENO: checking for library containing shl_load" >&5
7293 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; }
7294 if test "${ac_cv_search_shl_load+set}" = set; then
7295 echo $ECHO_N "(cached) $ECHO_C" >&6
7296 else
7297 ac_func_search_save_LIBS=$LIBS
7298 cat >conftest.$ac_ext <<_ACEOF
7299 /* confdefs.h. */
7300 _ACEOF
7301 cat confdefs.h >>conftest.$ac_ext
7302 cat >>conftest.$ac_ext <<_ACEOF
7303 /* end confdefs.h. */
7305 /* Override any GCC internal prototype to avoid an error.
7306 Use char because int might match the return type of a GCC
7307 builtin and then its argument prototype would still apply. */
7308 #ifdef __cplusplus
7309 extern "C"
7310 #endif
7311 char shl_load ();
7313 main ()
7315 return shl_load ();
7317 return 0;
7319 _ACEOF
7320 for ac_lib in '' dld; do
7321 if test -z "$ac_lib"; then
7322 ac_res="none required"
7323 else
7324 ac_res=-l$ac_lib
7325 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7327 rm -f conftest.$ac_objext conftest$ac_exeext
7328 if { (ac_try="$ac_link"
7329 case "(($ac_try" in
7330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7331 *) ac_try_echo=$ac_try;;
7332 esac
7333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7334 (eval "$ac_link") 2>conftest.er1
7335 ac_status=$?
7336 grep -v '^ *+' conftest.er1 >conftest.err
7337 rm -f conftest.er1
7338 cat conftest.err >&5
7339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340 (exit $ac_status); } && {
7341 test -z "$ac_c_werror_flag" ||
7342 test ! -s conftest.err
7343 } && test -s conftest$ac_exeext &&
7344 $as_test_x conftest$ac_exeext; then
7345 ac_cv_search_shl_load=$ac_res
7346 else
7347 echo "$as_me: failed program was:" >&5
7348 sed 's/^/| /' conftest.$ac_ext >&5
7353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7354 conftest$ac_exeext
7355 if test "${ac_cv_search_shl_load+set}" = set; then
7356 break
7358 done
7359 if test "${ac_cv_search_shl_load+set}" = set; then
7361 else
7362 ac_cv_search_shl_load=no
7364 rm conftest.$ac_ext
7365 LIBS=$ac_func_search_save_LIBS
7367 { echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
7368 echo "${ECHO_T}$ac_cv_search_shl_load" >&6; }
7369 ac_res=$ac_cv_search_shl_load
7370 if test "$ac_res" != no; then
7371 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7375 # We only use libld in port/dynloader/aix.c
7376 case $host_os in
7377 aix*)
7378 { echo "$as_me:$LINENO: checking for library containing ldopen" >&5
7379 echo $ECHO_N "checking for library containing ldopen... $ECHO_C" >&6; }
7380 if test "${ac_cv_search_ldopen+set}" = set; then
7381 echo $ECHO_N "(cached) $ECHO_C" >&6
7382 else
7383 ac_func_search_save_LIBS=$LIBS
7384 cat >conftest.$ac_ext <<_ACEOF
7385 /* confdefs.h. */
7386 _ACEOF
7387 cat confdefs.h >>conftest.$ac_ext
7388 cat >>conftest.$ac_ext <<_ACEOF
7389 /* end confdefs.h. */
7391 /* Override any GCC internal prototype to avoid an error.
7392 Use char because int might match the return type of a GCC
7393 builtin and then its argument prototype would still apply. */
7394 #ifdef __cplusplus
7395 extern "C"
7396 #endif
7397 char ldopen ();
7399 main ()
7401 return ldopen ();
7403 return 0;
7405 _ACEOF
7406 for ac_lib in '' ld; do
7407 if test -z "$ac_lib"; then
7408 ac_res="none required"
7409 else
7410 ac_res=-l$ac_lib
7411 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7413 rm -f conftest.$ac_objext conftest$ac_exeext
7414 if { (ac_try="$ac_link"
7415 case "(($ac_try" in
7416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7417 *) ac_try_echo=$ac_try;;
7418 esac
7419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7420 (eval "$ac_link") 2>conftest.er1
7421 ac_status=$?
7422 grep -v '^ *+' conftest.er1 >conftest.err
7423 rm -f conftest.er1
7424 cat conftest.err >&5
7425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426 (exit $ac_status); } && {
7427 test -z "$ac_c_werror_flag" ||
7428 test ! -s conftest.err
7429 } && test -s conftest$ac_exeext &&
7430 $as_test_x conftest$ac_exeext; then
7431 ac_cv_search_ldopen=$ac_res
7432 else
7433 echo "$as_me: failed program was:" >&5
7434 sed 's/^/| /' conftest.$ac_ext >&5
7439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7440 conftest$ac_exeext
7441 if test "${ac_cv_search_ldopen+set}" = set; then
7442 break
7444 done
7445 if test "${ac_cv_search_ldopen+set}" = set; then
7447 else
7448 ac_cv_search_ldopen=no
7450 rm conftest.$ac_ext
7451 LIBS=$ac_func_search_save_LIBS
7453 { echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
7454 echo "${ECHO_T}$ac_cv_search_ldopen" >&6; }
7455 ac_res=$ac_cv_search_ldopen
7456 if test "$ac_res" != no; then
7457 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7462 esac
7463 { echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
7464 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6; }
7465 if test "${ac_cv_search_getopt_long+set}" = set; then
7466 echo $ECHO_N "(cached) $ECHO_C" >&6
7467 else
7468 ac_func_search_save_LIBS=$LIBS
7469 cat >conftest.$ac_ext <<_ACEOF
7470 /* confdefs.h. */
7471 _ACEOF
7472 cat confdefs.h >>conftest.$ac_ext
7473 cat >>conftest.$ac_ext <<_ACEOF
7474 /* end confdefs.h. */
7476 /* Override any GCC internal prototype to avoid an error.
7477 Use char because int might match the return type of a GCC
7478 builtin and then its argument prototype would still apply. */
7479 #ifdef __cplusplus
7480 extern "C"
7481 #endif
7482 char getopt_long ();
7484 main ()
7486 return getopt_long ();
7488 return 0;
7490 _ACEOF
7491 for ac_lib in '' getopt gnugetopt; do
7492 if test -z "$ac_lib"; then
7493 ac_res="none required"
7494 else
7495 ac_res=-l$ac_lib
7496 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7498 rm -f conftest.$ac_objext conftest$ac_exeext
7499 if { (ac_try="$ac_link"
7500 case "(($ac_try" in
7501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7502 *) ac_try_echo=$ac_try;;
7503 esac
7504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7505 (eval "$ac_link") 2>conftest.er1
7506 ac_status=$?
7507 grep -v '^ *+' conftest.er1 >conftest.err
7508 rm -f conftest.er1
7509 cat conftest.err >&5
7510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511 (exit $ac_status); } && {
7512 test -z "$ac_c_werror_flag" ||
7513 test ! -s conftest.err
7514 } && test -s conftest$ac_exeext &&
7515 $as_test_x conftest$ac_exeext; then
7516 ac_cv_search_getopt_long=$ac_res
7517 else
7518 echo "$as_me: failed program was:" >&5
7519 sed 's/^/| /' conftest.$ac_ext >&5
7524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7525 conftest$ac_exeext
7526 if test "${ac_cv_search_getopt_long+set}" = set; then
7527 break
7529 done
7530 if test "${ac_cv_search_getopt_long+set}" = set; then
7532 else
7533 ac_cv_search_getopt_long=no
7535 rm conftest.$ac_ext
7536 LIBS=$ac_func_search_save_LIBS
7538 { echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
7539 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6; }
7540 ac_res=$ac_cv_search_getopt_long
7541 if test "$ac_res" != no; then
7542 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7546 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
7547 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
7548 if test "${ac_cv_search_crypt+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7550 else
7551 ac_func_search_save_LIBS=$LIBS
7552 cat >conftest.$ac_ext <<_ACEOF
7553 /* confdefs.h. */
7554 _ACEOF
7555 cat confdefs.h >>conftest.$ac_ext
7556 cat >>conftest.$ac_ext <<_ACEOF
7557 /* end confdefs.h. */
7559 /* Override any GCC internal prototype to avoid an error.
7560 Use char because int might match the return type of a GCC
7561 builtin and then its argument prototype would still apply. */
7562 #ifdef __cplusplus
7563 extern "C"
7564 #endif
7565 char crypt ();
7567 main ()
7569 return crypt ();
7571 return 0;
7573 _ACEOF
7574 for ac_lib in '' crypt; do
7575 if test -z "$ac_lib"; then
7576 ac_res="none required"
7577 else
7578 ac_res=-l$ac_lib
7579 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7581 rm -f conftest.$ac_objext conftest$ac_exeext
7582 if { (ac_try="$ac_link"
7583 case "(($ac_try" in
7584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7585 *) ac_try_echo=$ac_try;;
7586 esac
7587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7588 (eval "$ac_link") 2>conftest.er1
7589 ac_status=$?
7590 grep -v '^ *+' conftest.er1 >conftest.err
7591 rm -f conftest.er1
7592 cat conftest.err >&5
7593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594 (exit $ac_status); } && {
7595 test -z "$ac_c_werror_flag" ||
7596 test ! -s conftest.err
7597 } && test -s conftest$ac_exeext &&
7598 $as_test_x conftest$ac_exeext; then
7599 ac_cv_search_crypt=$ac_res
7600 else
7601 echo "$as_me: failed program was:" >&5
7602 sed 's/^/| /' conftest.$ac_ext >&5
7607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7608 conftest$ac_exeext
7609 if test "${ac_cv_search_crypt+set}" = set; then
7610 break
7612 done
7613 if test "${ac_cv_search_crypt+set}" = set; then
7615 else
7616 ac_cv_search_crypt=no
7618 rm conftest.$ac_ext
7619 LIBS=$ac_func_search_save_LIBS
7621 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
7622 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
7623 ac_res=$ac_cv_search_crypt
7624 if test "$ac_res" != no; then
7625 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7629 # Solaris:
7630 { echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
7631 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6; }
7632 if test "${ac_cv_search_fdatasync+set}" = set; then
7633 echo $ECHO_N "(cached) $ECHO_C" >&6
7634 else
7635 ac_func_search_save_LIBS=$LIBS
7636 cat >conftest.$ac_ext <<_ACEOF
7637 /* confdefs.h. */
7638 _ACEOF
7639 cat confdefs.h >>conftest.$ac_ext
7640 cat >>conftest.$ac_ext <<_ACEOF
7641 /* end confdefs.h. */
7643 /* Override any GCC internal prototype to avoid an error.
7644 Use char because int might match the return type of a GCC
7645 builtin and then its argument prototype would still apply. */
7646 #ifdef __cplusplus
7647 extern "C"
7648 #endif
7649 char fdatasync ();
7651 main ()
7653 return fdatasync ();
7655 return 0;
7657 _ACEOF
7658 for ac_lib in '' rt posix4; do
7659 if test -z "$ac_lib"; then
7660 ac_res="none required"
7661 else
7662 ac_res=-l$ac_lib
7663 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7665 rm -f conftest.$ac_objext conftest$ac_exeext
7666 if { (ac_try="$ac_link"
7667 case "(($ac_try" in
7668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7669 *) ac_try_echo=$ac_try;;
7670 esac
7671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7672 (eval "$ac_link") 2>conftest.er1
7673 ac_status=$?
7674 grep -v '^ *+' conftest.er1 >conftest.err
7675 rm -f conftest.er1
7676 cat conftest.err >&5
7677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678 (exit $ac_status); } && {
7679 test -z "$ac_c_werror_flag" ||
7680 test ! -s conftest.err
7681 } && test -s conftest$ac_exeext &&
7682 $as_test_x conftest$ac_exeext; then
7683 ac_cv_search_fdatasync=$ac_res
7684 else
7685 echo "$as_me: failed program was:" >&5
7686 sed 's/^/| /' conftest.$ac_ext >&5
7691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7692 conftest$ac_exeext
7693 if test "${ac_cv_search_fdatasync+set}" = set; then
7694 break
7696 done
7697 if test "${ac_cv_search_fdatasync+set}" = set; then
7699 else
7700 ac_cv_search_fdatasync=no
7702 rm conftest.$ac_ext
7703 LIBS=$ac_func_search_save_LIBS
7705 { echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
7706 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6; }
7707 ac_res=$ac_cv_search_fdatasync
7708 if test "$ac_res" != no; then
7709 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7713 # Cygwin:
7714 { echo "$as_me:$LINENO: checking for library containing shmget" >&5
7715 echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6; }
7716 if test "${ac_cv_search_shmget+set}" = set; then
7717 echo $ECHO_N "(cached) $ECHO_C" >&6
7718 else
7719 ac_func_search_save_LIBS=$LIBS
7720 cat >conftest.$ac_ext <<_ACEOF
7721 /* confdefs.h. */
7722 _ACEOF
7723 cat confdefs.h >>conftest.$ac_ext
7724 cat >>conftest.$ac_ext <<_ACEOF
7725 /* end confdefs.h. */
7727 /* Override any GCC internal prototype to avoid an error.
7728 Use char because int might match the return type of a GCC
7729 builtin and then its argument prototype would still apply. */
7730 #ifdef __cplusplus
7731 extern "C"
7732 #endif
7733 char shmget ();
7735 main ()
7737 return shmget ();
7739 return 0;
7741 _ACEOF
7742 for ac_lib in '' cygipc; do
7743 if test -z "$ac_lib"; then
7744 ac_res="none required"
7745 else
7746 ac_res=-l$ac_lib
7747 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7749 rm -f conftest.$ac_objext conftest$ac_exeext
7750 if { (ac_try="$ac_link"
7751 case "(($ac_try" in
7752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7753 *) ac_try_echo=$ac_try;;
7754 esac
7755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7756 (eval "$ac_link") 2>conftest.er1
7757 ac_status=$?
7758 grep -v '^ *+' conftest.er1 >conftest.err
7759 rm -f conftest.er1
7760 cat conftest.err >&5
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); } && {
7763 test -z "$ac_c_werror_flag" ||
7764 test ! -s conftest.err
7765 } && test -s conftest$ac_exeext &&
7766 $as_test_x conftest$ac_exeext; then
7767 ac_cv_search_shmget=$ac_res
7768 else
7769 echo "$as_me: failed program was:" >&5
7770 sed 's/^/| /' conftest.$ac_ext >&5
7775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7776 conftest$ac_exeext
7777 if test "${ac_cv_search_shmget+set}" = set; then
7778 break
7780 done
7781 if test "${ac_cv_search_shmget+set}" = set; then
7783 else
7784 ac_cv_search_shmget=no
7786 rm conftest.$ac_ext
7787 LIBS=$ac_func_search_save_LIBS
7789 { echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
7790 echo "${ECHO_T}$ac_cv_search_shmget" >&6; }
7791 ac_res=$ac_cv_search_shmget
7792 if test "$ac_res" != no; then
7793 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7798 if test "$with_readline" = yes; then
7801 if test "${pgac_cv_check_readline+set}" = set; then
7802 echo $ECHO_N "(cached) $ECHO_C" >&6
7803 else
7804 pgac_cv_check_readline=no
7805 pgac_save_LIBS=$LIBS
7806 if test x"$with_libedit_preferred" != x"yes"
7807 then READLINE_ORDER="-lreadline -ledit"
7808 else READLINE_ORDER="-ledit -lreadline"
7810 for pgac_rllib in $READLINE_ORDER ; do
7811 { echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
7812 echo $ECHO_N "checking for ${pgac_rllib}... $ECHO_C" >&6; }
7813 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
7814 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
7815 cat >conftest.$ac_ext <<_ACEOF
7816 /* confdefs.h. */
7817 _ACEOF
7818 cat confdefs.h >>conftest.$ac_ext
7819 cat >>conftest.$ac_ext <<_ACEOF
7820 /* end confdefs.h. */
7822 /* Override any GCC internal prototype to avoid an error.
7823 Use char because int might match the return type of a GCC
7824 builtin and then its argument prototype would still apply. */
7825 #ifdef __cplusplus
7826 extern "C"
7827 #endif
7828 char readline ();
7830 main ()
7832 return readline ();
7834 return 0;
7836 _ACEOF
7837 rm -f conftest.$ac_objext conftest$ac_exeext
7838 if { (ac_try="$ac_link"
7839 case "(($ac_try" in
7840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7841 *) ac_try_echo=$ac_try;;
7842 esac
7843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7844 (eval "$ac_link") 2>conftest.er1
7845 ac_status=$?
7846 grep -v '^ *+' conftest.er1 >conftest.err
7847 rm -f conftest.er1
7848 cat conftest.err >&5
7849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850 (exit $ac_status); } && {
7851 test -z "$ac_c_werror_flag" ||
7852 test ! -s conftest.err
7853 } && test -s conftest$ac_exeext &&
7854 $as_test_x conftest$ac_exeext; then
7856 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
7857 # recognize dependent libraries; assume curses is needed if we didn't
7858 # find any dependency.
7859 case $host_os in
7860 netbsd* | openbsd* | irix*)
7861 if test x"$pgac_lib" = x"" ; then
7862 pgac_lib=" -lcurses"
7863 fi ;;
7864 esac
7866 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
7867 break
7869 else
7870 echo "$as_me: failed program was:" >&5
7871 sed 's/^/| /' conftest.$ac_ext >&5
7876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7877 conftest$ac_exeext conftest.$ac_ext
7878 done
7879 if test "$pgac_cv_check_readline" != no ; then
7880 { echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
7881 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6; }
7882 break
7883 else
7884 { echo "$as_me:$LINENO: result: no" >&5
7885 echo "${ECHO_T}no" >&6; }
7887 done
7888 LIBS=$pgac_save_LIBS
7892 if test "$pgac_cv_check_readline" != no ; then
7893 LIBS="$pgac_cv_check_readline $LIBS"
7895 cat >>confdefs.h <<\_ACEOF
7896 #define HAVE_LIBREADLINE 1
7897 _ACEOF
7902 if test x"$pgac_cv_check_readline" = x"no"; then
7903 { { echo "$as_me:$LINENO: error: readline library not found
7904 If you have readline already installed, see config.log for details on the
7905 failure. It is possible the compiler isn't looking in the proper directory.
7906 Use --without-readline to disable readline support." >&5
7907 echo "$as_me: error: readline library not found
7908 If you have readline already installed, see config.log for details on the
7909 failure. It is possible the compiler isn't looking in the proper directory.
7910 Use --without-readline to disable readline support." >&2;}
7911 { (exit 1); exit 1; }; }
7915 if test "$with_zlib" = yes; then
7917 { echo "$as_me:$LINENO: checking for inflate in -lz" >&5
7918 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6; }
7919 if test "${ac_cv_lib_z_inflate+set}" = set; then
7920 echo $ECHO_N "(cached) $ECHO_C" >&6
7921 else
7922 ac_check_lib_save_LIBS=$LIBS
7923 LIBS="-lz $LIBS"
7924 cat >conftest.$ac_ext <<_ACEOF
7925 /* confdefs.h. */
7926 _ACEOF
7927 cat confdefs.h >>conftest.$ac_ext
7928 cat >>conftest.$ac_ext <<_ACEOF
7929 /* end confdefs.h. */
7931 /* Override any GCC internal prototype to avoid an error.
7932 Use char because int might match the return type of a GCC
7933 builtin and then its argument prototype would still apply. */
7934 #ifdef __cplusplus
7935 extern "C"
7936 #endif
7937 char inflate ();
7939 main ()
7941 return inflate ();
7943 return 0;
7945 _ACEOF
7946 rm -f conftest.$ac_objext conftest$ac_exeext
7947 if { (ac_try="$ac_link"
7948 case "(($ac_try" in
7949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7950 *) ac_try_echo=$ac_try;;
7951 esac
7952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7953 (eval "$ac_link") 2>conftest.er1
7954 ac_status=$?
7955 grep -v '^ *+' conftest.er1 >conftest.err
7956 rm -f conftest.er1
7957 cat conftest.err >&5
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); } && {
7960 test -z "$ac_c_werror_flag" ||
7961 test ! -s conftest.err
7962 } && test -s conftest$ac_exeext &&
7963 $as_test_x conftest$ac_exeext; then
7964 ac_cv_lib_z_inflate=yes
7965 else
7966 echo "$as_me: failed program was:" >&5
7967 sed 's/^/| /' conftest.$ac_ext >&5
7969 ac_cv_lib_z_inflate=no
7972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7973 conftest$ac_exeext conftest.$ac_ext
7974 LIBS=$ac_check_lib_save_LIBS
7976 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
7977 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6; }
7978 if test $ac_cv_lib_z_inflate = yes; then
7979 cat >>confdefs.h <<_ACEOF
7980 #define HAVE_LIBZ 1
7981 _ACEOF
7983 LIBS="-lz $LIBS"
7985 else
7986 { { echo "$as_me:$LINENO: error: zlib library not found
7987 If you have zlib already installed, see config.log for details on the
7988 failure. It is possible the compiler isn't looking in the proper directory.
7989 Use --without-zlib to disable zlib support." >&5
7990 echo "$as_me: error: zlib library not found
7991 If you have zlib already installed, see config.log for details on the
7992 failure. It is possible the compiler isn't looking in the proper directory.
7993 Use --without-zlib to disable zlib support." >&2;}
7994 { (exit 1); exit 1; }; }
7999 if test "$enable_spinlocks" = yes; then
8001 cat >>confdefs.h <<\_ACEOF
8002 #define HAVE_SPINLOCKS 1
8003 _ACEOF
8005 else
8006 { echo "$as_me:$LINENO: WARNING:
8007 *** Not using spinlocks will cause poor performance." >&5
8008 echo "$as_me: WARNING:
8009 *** Not using spinlocks will cause poor performance." >&2;}
8012 if test "$with_gssapi" = yes ; then
8013 if test "$PORTNAME" != "win32"; then
8014 { echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
8015 echo $ECHO_N "checking for library containing gss_init_sec_context... $ECHO_C" >&6; }
8016 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8017 echo $ECHO_N "(cached) $ECHO_C" >&6
8018 else
8019 ac_func_search_save_LIBS=$LIBS
8020 cat >conftest.$ac_ext <<_ACEOF
8021 /* confdefs.h. */
8022 _ACEOF
8023 cat confdefs.h >>conftest.$ac_ext
8024 cat >>conftest.$ac_ext <<_ACEOF
8025 /* end confdefs.h. */
8027 /* Override any GCC internal prototype to avoid an error.
8028 Use char because int might match the return type of a GCC
8029 builtin and then its argument prototype would still apply. */
8030 #ifdef __cplusplus
8031 extern "C"
8032 #endif
8033 char gss_init_sec_context ();
8035 main ()
8037 return gss_init_sec_context ();
8039 return 0;
8041 _ACEOF
8042 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
8043 if test -z "$ac_lib"; then
8044 ac_res="none required"
8045 else
8046 ac_res=-l$ac_lib
8047 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8049 rm -f conftest.$ac_objext conftest$ac_exeext
8050 if { (ac_try="$ac_link"
8051 case "(($ac_try" in
8052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8053 *) ac_try_echo=$ac_try;;
8054 esac
8055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8056 (eval "$ac_link") 2>conftest.er1
8057 ac_status=$?
8058 grep -v '^ *+' conftest.er1 >conftest.err
8059 rm -f conftest.er1
8060 cat conftest.err >&5
8061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062 (exit $ac_status); } && {
8063 test -z "$ac_c_werror_flag" ||
8064 test ! -s conftest.err
8065 } && test -s conftest$ac_exeext &&
8066 $as_test_x conftest$ac_exeext; then
8067 ac_cv_search_gss_init_sec_context=$ac_res
8068 else
8069 echo "$as_me: failed program was:" >&5
8070 sed 's/^/| /' conftest.$ac_ext >&5
8075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8076 conftest$ac_exeext
8077 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8078 break
8080 done
8081 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8083 else
8084 ac_cv_search_gss_init_sec_context=no
8086 rm conftest.$ac_ext
8087 LIBS=$ac_func_search_save_LIBS
8089 { echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
8090 echo "${ECHO_T}$ac_cv_search_gss_init_sec_context" >&6; }
8091 ac_res=$ac_cv_search_gss_init_sec_context
8092 if test "$ac_res" != no; then
8093 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8095 else
8096 { { echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
8097 echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
8098 { (exit 1); exit 1; }; }
8101 else
8102 LIBS="$LIBS -lgssapi32"
8106 if test "$with_krb5" = yes ; then
8107 if test "$PORTNAME" != "win32"; then
8108 { echo "$as_me:$LINENO: checking for library containing com_err" >&5
8109 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
8110 if test "${ac_cv_search_com_err+set}" = set; then
8111 echo $ECHO_N "(cached) $ECHO_C" >&6
8112 else
8113 ac_func_search_save_LIBS=$LIBS
8114 cat >conftest.$ac_ext <<_ACEOF
8115 /* confdefs.h. */
8116 _ACEOF
8117 cat confdefs.h >>conftest.$ac_ext
8118 cat >>conftest.$ac_ext <<_ACEOF
8119 /* end confdefs.h. */
8121 /* Override any GCC internal prototype to avoid an error.
8122 Use char because int might match the return type of a GCC
8123 builtin and then its argument prototype would still apply. */
8124 #ifdef __cplusplus
8125 extern "C"
8126 #endif
8127 char com_err ();
8129 main ()
8131 return com_err ();
8133 return 0;
8135 _ACEOF
8136 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err; do
8137 if test -z "$ac_lib"; then
8138 ac_res="none required"
8139 else
8140 ac_res=-l$ac_lib
8141 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8143 rm -f conftest.$ac_objext conftest$ac_exeext
8144 if { (ac_try="$ac_link"
8145 case "(($ac_try" in
8146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8147 *) ac_try_echo=$ac_try;;
8148 esac
8149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8150 (eval "$ac_link") 2>conftest.er1
8151 ac_status=$?
8152 grep -v '^ *+' conftest.er1 >conftest.err
8153 rm -f conftest.er1
8154 cat conftest.err >&5
8155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156 (exit $ac_status); } && {
8157 test -z "$ac_c_werror_flag" ||
8158 test ! -s conftest.err
8159 } && test -s conftest$ac_exeext &&
8160 $as_test_x conftest$ac_exeext; then
8161 ac_cv_search_com_err=$ac_res
8162 else
8163 echo "$as_me: failed program was:" >&5
8164 sed 's/^/| /' conftest.$ac_ext >&5
8169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8170 conftest$ac_exeext
8171 if test "${ac_cv_search_com_err+set}" = set; then
8172 break
8174 done
8175 if test "${ac_cv_search_com_err+set}" = set; then
8177 else
8178 ac_cv_search_com_err=no
8180 rm conftest.$ac_ext
8181 LIBS=$ac_func_search_save_LIBS
8183 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8184 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
8185 ac_res=$ac_cv_search_com_err
8186 if test "$ac_res" != no; then
8187 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8189 else
8190 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8191 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8192 { (exit 1); exit 1; }; }
8195 { echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
8196 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6; }
8197 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8198 echo $ECHO_N "(cached) $ECHO_C" >&6
8199 else
8200 ac_func_search_save_LIBS=$LIBS
8201 cat >conftest.$ac_ext <<_ACEOF
8202 /* confdefs.h. */
8203 _ACEOF
8204 cat confdefs.h >>conftest.$ac_ext
8205 cat >>conftest.$ac_ext <<_ACEOF
8206 /* end confdefs.h. */
8208 /* Override any GCC internal prototype to avoid an error.
8209 Use char because int might match the return type of a GCC
8210 builtin and then its argument prototype would still apply. */
8211 #ifdef __cplusplus
8212 extern "C"
8213 #endif
8214 char krb5_sendauth ();
8216 main ()
8218 return krb5_sendauth ();
8220 return 0;
8222 _ACEOF
8223 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
8224 if test -z "$ac_lib"; then
8225 ac_res="none required"
8226 else
8227 ac_res=-l$ac_lib
8228 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8230 rm -f conftest.$ac_objext conftest$ac_exeext
8231 if { (ac_try="$ac_link"
8232 case "(($ac_try" in
8233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8234 *) ac_try_echo=$ac_try;;
8235 esac
8236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8237 (eval "$ac_link") 2>conftest.er1
8238 ac_status=$?
8239 grep -v '^ *+' conftest.er1 >conftest.err
8240 rm -f conftest.er1
8241 cat conftest.err >&5
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); } && {
8244 test -z "$ac_c_werror_flag" ||
8245 test ! -s conftest.err
8246 } && test -s conftest$ac_exeext &&
8247 $as_test_x conftest$ac_exeext; then
8248 ac_cv_search_krb5_sendauth=$ac_res
8249 else
8250 echo "$as_me: failed program was:" >&5
8251 sed 's/^/| /' conftest.$ac_ext >&5
8256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8257 conftest$ac_exeext
8258 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8259 break
8261 done
8262 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8264 else
8265 ac_cv_search_krb5_sendauth=no
8267 rm conftest.$ac_ext
8268 LIBS=$ac_func_search_save_LIBS
8270 { echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
8271 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6; }
8272 ac_res=$ac_cv_search_krb5_sendauth
8273 if test "$ac_res" != no; then
8274 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8276 else
8277 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
8278 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
8279 { (exit 1); exit 1; }; }
8282 else
8283 { echo "$as_me:$LINENO: checking for library containing com_err" >&5
8284 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
8285 if test "${ac_cv_search_com_err+set}" = set; then
8286 echo $ECHO_N "(cached) $ECHO_C" >&6
8287 else
8288 ac_func_search_save_LIBS=$LIBS
8289 cat >conftest.$ac_ext <<_ACEOF
8290 /* confdefs.h. */
8291 _ACEOF
8292 cat confdefs.h >>conftest.$ac_ext
8293 cat >>conftest.$ac_ext <<_ACEOF
8294 /* end confdefs.h. */
8296 /* Override any GCC internal prototype to avoid an error.
8297 Use char because int might match the return type of a GCC
8298 builtin and then its argument prototype would still apply. */
8299 #ifdef __cplusplus
8300 extern "C"
8301 #endif
8302 char com_err ();
8304 main ()
8306 return com_err ();
8308 return 0;
8310 _ACEOF
8311 for ac_lib in '' 'comerr32 -lkrb5_32'; do
8312 if test -z "$ac_lib"; then
8313 ac_res="none required"
8314 else
8315 ac_res=-l$ac_lib
8316 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8318 rm -f conftest.$ac_objext conftest$ac_exeext
8319 if { (ac_try="$ac_link"
8320 case "(($ac_try" in
8321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8322 *) ac_try_echo=$ac_try;;
8323 esac
8324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8325 (eval "$ac_link") 2>conftest.er1
8326 ac_status=$?
8327 grep -v '^ *+' conftest.er1 >conftest.err
8328 rm -f conftest.er1
8329 cat conftest.err >&5
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); } && {
8332 test -z "$ac_c_werror_flag" ||
8333 test ! -s conftest.err
8334 } && test -s conftest$ac_exeext &&
8335 $as_test_x conftest$ac_exeext; then
8336 ac_cv_search_com_err=$ac_res
8337 else
8338 echo "$as_me: failed program was:" >&5
8339 sed 's/^/| /' conftest.$ac_ext >&5
8344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8345 conftest$ac_exeext
8346 if test "${ac_cv_search_com_err+set}" = set; then
8347 break
8349 done
8350 if test "${ac_cv_search_com_err+set}" = set; then
8352 else
8353 ac_cv_search_com_err=no
8355 rm conftest.$ac_ext
8356 LIBS=$ac_func_search_save_LIBS
8358 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8359 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
8360 ac_res=$ac_cv_search_com_err
8361 if test "$ac_res" != no; then
8362 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8364 else
8365 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8366 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8367 { (exit 1); exit 1; }; }
8373 if test "$with_openssl" = yes ; then
8374 if test "$PORTNAME" != "win32"; then
8376 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
8377 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6; }
8378 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
8379 echo $ECHO_N "(cached) $ECHO_C" >&6
8380 else
8381 ac_check_lib_save_LIBS=$LIBS
8382 LIBS="-lcrypto $LIBS"
8383 cat >conftest.$ac_ext <<_ACEOF
8384 /* confdefs.h. */
8385 _ACEOF
8386 cat confdefs.h >>conftest.$ac_ext
8387 cat >>conftest.$ac_ext <<_ACEOF
8388 /* end confdefs.h. */
8390 /* Override any GCC internal prototype to avoid an error.
8391 Use char because int might match the return type of a GCC
8392 builtin and then its argument prototype would still apply. */
8393 #ifdef __cplusplus
8394 extern "C"
8395 #endif
8396 char CRYPTO_new_ex_data ();
8398 main ()
8400 return CRYPTO_new_ex_data ();
8402 return 0;
8404 _ACEOF
8405 rm -f conftest.$ac_objext conftest$ac_exeext
8406 if { (ac_try="$ac_link"
8407 case "(($ac_try" in
8408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8409 *) ac_try_echo=$ac_try;;
8410 esac
8411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8412 (eval "$ac_link") 2>conftest.er1
8413 ac_status=$?
8414 grep -v '^ *+' conftest.er1 >conftest.err
8415 rm -f conftest.er1
8416 cat conftest.err >&5
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); } && {
8419 test -z "$ac_c_werror_flag" ||
8420 test ! -s conftest.err
8421 } && test -s conftest$ac_exeext &&
8422 $as_test_x conftest$ac_exeext; then
8423 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
8424 else
8425 echo "$as_me: failed program was:" >&5
8426 sed 's/^/| /' conftest.$ac_ext >&5
8428 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
8431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8432 conftest$ac_exeext conftest.$ac_ext
8433 LIBS=$ac_check_lib_save_LIBS
8435 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
8436 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
8437 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
8438 cat >>confdefs.h <<_ACEOF
8439 #define HAVE_LIBCRYPTO 1
8440 _ACEOF
8442 LIBS="-lcrypto $LIBS"
8444 else
8445 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
8446 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
8447 { (exit 1); exit 1; }; }
8451 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
8452 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
8453 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
8454 echo $ECHO_N "(cached) $ECHO_C" >&6
8455 else
8456 ac_check_lib_save_LIBS=$LIBS
8457 LIBS="-lssl $LIBS"
8458 cat >conftest.$ac_ext <<_ACEOF
8459 /* confdefs.h. */
8460 _ACEOF
8461 cat confdefs.h >>conftest.$ac_ext
8462 cat >>conftest.$ac_ext <<_ACEOF
8463 /* end confdefs.h. */
8465 /* Override any GCC internal prototype to avoid an error.
8466 Use char because int might match the return type of a GCC
8467 builtin and then its argument prototype would still apply. */
8468 #ifdef __cplusplus
8469 extern "C"
8470 #endif
8471 char SSL_library_init ();
8473 main ()
8475 return SSL_library_init ();
8477 return 0;
8479 _ACEOF
8480 rm -f conftest.$ac_objext conftest$ac_exeext
8481 if { (ac_try="$ac_link"
8482 case "(($ac_try" in
8483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8484 *) ac_try_echo=$ac_try;;
8485 esac
8486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8487 (eval "$ac_link") 2>conftest.er1
8488 ac_status=$?
8489 grep -v '^ *+' conftest.er1 >conftest.err
8490 rm -f conftest.er1
8491 cat conftest.err >&5
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); } && {
8494 test -z "$ac_c_werror_flag" ||
8495 test ! -s conftest.err
8496 } && test -s conftest$ac_exeext &&
8497 $as_test_x conftest$ac_exeext; then
8498 ac_cv_lib_ssl_SSL_library_init=yes
8499 else
8500 echo "$as_me: failed program was:" >&5
8501 sed 's/^/| /' conftest.$ac_ext >&5
8503 ac_cv_lib_ssl_SSL_library_init=no
8506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8507 conftest$ac_exeext conftest.$ac_ext
8508 LIBS=$ac_check_lib_save_LIBS
8510 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
8511 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
8512 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
8513 cat >>confdefs.h <<_ACEOF
8514 #define HAVE_LIBSSL 1
8515 _ACEOF
8517 LIBS="-lssl $LIBS"
8519 else
8520 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
8521 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
8522 { (exit 1); exit 1; }; }
8525 else
8527 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
8528 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6; }
8529 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
8530 echo $ECHO_N "(cached) $ECHO_C" >&6
8531 else
8532 ac_check_lib_save_LIBS=$LIBS
8533 LIBS="-leay32 $LIBS"
8534 cat >conftest.$ac_ext <<_ACEOF
8535 /* confdefs.h. */
8536 _ACEOF
8537 cat confdefs.h >>conftest.$ac_ext
8538 cat >>conftest.$ac_ext <<_ACEOF
8539 /* end confdefs.h. */
8541 /* Override any GCC internal prototype to avoid an error.
8542 Use char because int might match the return type of a GCC
8543 builtin and then its argument prototype would still apply. */
8544 #ifdef __cplusplus
8545 extern "C"
8546 #endif
8547 char CRYPTO_new_ex_data ();
8549 main ()
8551 return CRYPTO_new_ex_data ();
8553 return 0;
8555 _ACEOF
8556 rm -f conftest.$ac_objext conftest$ac_exeext
8557 if { (ac_try="$ac_link"
8558 case "(($ac_try" in
8559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8560 *) ac_try_echo=$ac_try;;
8561 esac
8562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8563 (eval "$ac_link") 2>conftest.er1
8564 ac_status=$?
8565 grep -v '^ *+' conftest.er1 >conftest.err
8566 rm -f conftest.er1
8567 cat conftest.err >&5
8568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569 (exit $ac_status); } && {
8570 test -z "$ac_c_werror_flag" ||
8571 test ! -s conftest.err
8572 } && test -s conftest$ac_exeext &&
8573 $as_test_x conftest$ac_exeext; then
8574 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
8575 else
8576 echo "$as_me: failed program was:" >&5
8577 sed 's/^/| /' conftest.$ac_ext >&5
8579 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
8582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8583 conftest$ac_exeext conftest.$ac_ext
8584 LIBS=$ac_check_lib_save_LIBS
8586 { echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
8587 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
8588 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
8589 cat >>confdefs.h <<_ACEOF
8590 #define HAVE_LIBEAY32 1
8591 _ACEOF
8593 LIBS="-leay32 $LIBS"
8595 else
8596 { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
8597 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
8598 { (exit 1); exit 1; }; }
8602 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
8603 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6; }
8604 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
8605 echo $ECHO_N "(cached) $ECHO_C" >&6
8606 else
8607 ac_check_lib_save_LIBS=$LIBS
8608 LIBS="-lssleay32 $LIBS"
8609 cat >conftest.$ac_ext <<_ACEOF
8610 /* confdefs.h. */
8611 _ACEOF
8612 cat confdefs.h >>conftest.$ac_ext
8613 cat >>conftest.$ac_ext <<_ACEOF
8614 /* end confdefs.h. */
8616 /* Override any GCC internal prototype to avoid an error.
8617 Use char because int might match the return type of a GCC
8618 builtin and then its argument prototype would still apply. */
8619 #ifdef __cplusplus
8620 extern "C"
8621 #endif
8622 char SSL_library_init ();
8624 main ()
8626 return SSL_library_init ();
8628 return 0;
8630 _ACEOF
8631 rm -f conftest.$ac_objext conftest$ac_exeext
8632 if { (ac_try="$ac_link"
8633 case "(($ac_try" in
8634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8635 *) ac_try_echo=$ac_try;;
8636 esac
8637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8638 (eval "$ac_link") 2>conftest.er1
8639 ac_status=$?
8640 grep -v '^ *+' conftest.er1 >conftest.err
8641 rm -f conftest.er1
8642 cat conftest.err >&5
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); } && {
8645 test -z "$ac_c_werror_flag" ||
8646 test ! -s conftest.err
8647 } && test -s conftest$ac_exeext &&
8648 $as_test_x conftest$ac_exeext; then
8649 ac_cv_lib_ssleay32_SSL_library_init=yes
8650 else
8651 echo "$as_me: failed program was:" >&5
8652 sed 's/^/| /' conftest.$ac_ext >&5
8654 ac_cv_lib_ssleay32_SSL_library_init=no
8657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8658 conftest$ac_exeext conftest.$ac_ext
8659 LIBS=$ac_check_lib_save_LIBS
8661 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
8662 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
8663 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
8664 cat >>confdefs.h <<_ACEOF
8665 #define HAVE_LIBSSLEAY32 1
8666 _ACEOF
8668 LIBS="-lssleay32 $LIBS"
8670 else
8671 { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
8672 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
8673 { (exit 1); exit 1; }; }
8679 if test "$with_pam" = yes ; then
8681 { echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
8682 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6; }
8683 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
8684 echo $ECHO_N "(cached) $ECHO_C" >&6
8685 else
8686 ac_check_lib_save_LIBS=$LIBS
8687 LIBS="-lpam $LIBS"
8688 cat >conftest.$ac_ext <<_ACEOF
8689 /* confdefs.h. */
8690 _ACEOF
8691 cat confdefs.h >>conftest.$ac_ext
8692 cat >>conftest.$ac_ext <<_ACEOF
8693 /* end confdefs.h. */
8695 /* Override any GCC internal prototype to avoid an error.
8696 Use char because int might match the return type of a GCC
8697 builtin and then its argument prototype would still apply. */
8698 #ifdef __cplusplus
8699 extern "C"
8700 #endif
8701 char pam_start ();
8703 main ()
8705 return pam_start ();
8707 return 0;
8709 _ACEOF
8710 rm -f conftest.$ac_objext conftest$ac_exeext
8711 if { (ac_try="$ac_link"
8712 case "(($ac_try" in
8713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8714 *) ac_try_echo=$ac_try;;
8715 esac
8716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8717 (eval "$ac_link") 2>conftest.er1
8718 ac_status=$?
8719 grep -v '^ *+' conftest.er1 >conftest.err
8720 rm -f conftest.er1
8721 cat conftest.err >&5
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); } && {
8724 test -z "$ac_c_werror_flag" ||
8725 test ! -s conftest.err
8726 } && test -s conftest$ac_exeext &&
8727 $as_test_x conftest$ac_exeext; then
8728 ac_cv_lib_pam_pam_start=yes
8729 else
8730 echo "$as_me: failed program was:" >&5
8731 sed 's/^/| /' conftest.$ac_ext >&5
8733 ac_cv_lib_pam_pam_start=no
8736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8737 conftest$ac_exeext conftest.$ac_ext
8738 LIBS=$ac_check_lib_save_LIBS
8740 { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
8741 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6; }
8742 if test $ac_cv_lib_pam_pam_start = yes; then
8743 cat >>confdefs.h <<_ACEOF
8744 #define HAVE_LIBPAM 1
8745 _ACEOF
8747 LIBS="-lpam $LIBS"
8749 else
8750 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
8751 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
8752 { (exit 1); exit 1; }; }
8757 if test "$with_libxml" = yes ; then
8759 { echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
8760 echo $ECHO_N "checking for xmlSaveToBuffer in -lxml2... $ECHO_C" >&6; }
8761 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
8762 echo $ECHO_N "(cached) $ECHO_C" >&6
8763 else
8764 ac_check_lib_save_LIBS=$LIBS
8765 LIBS="-lxml2 $LIBS"
8766 cat >conftest.$ac_ext <<_ACEOF
8767 /* confdefs.h. */
8768 _ACEOF
8769 cat confdefs.h >>conftest.$ac_ext
8770 cat >>conftest.$ac_ext <<_ACEOF
8771 /* end confdefs.h. */
8773 /* Override any GCC internal prototype to avoid an error.
8774 Use char because int might match the return type of a GCC
8775 builtin and then its argument prototype would still apply. */
8776 #ifdef __cplusplus
8777 extern "C"
8778 #endif
8779 char xmlSaveToBuffer ();
8781 main ()
8783 return xmlSaveToBuffer ();
8785 return 0;
8787 _ACEOF
8788 rm -f conftest.$ac_objext conftest$ac_exeext
8789 if { (ac_try="$ac_link"
8790 case "(($ac_try" in
8791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8792 *) ac_try_echo=$ac_try;;
8793 esac
8794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8795 (eval "$ac_link") 2>conftest.er1
8796 ac_status=$?
8797 grep -v '^ *+' conftest.er1 >conftest.err
8798 rm -f conftest.er1
8799 cat conftest.err >&5
8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 (exit $ac_status); } && {
8802 test -z "$ac_c_werror_flag" ||
8803 test ! -s conftest.err
8804 } && test -s conftest$ac_exeext &&
8805 $as_test_x conftest$ac_exeext; then
8806 ac_cv_lib_xml2_xmlSaveToBuffer=yes
8807 else
8808 echo "$as_me: failed program was:" >&5
8809 sed 's/^/| /' conftest.$ac_ext >&5
8811 ac_cv_lib_xml2_xmlSaveToBuffer=no
8814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8815 conftest$ac_exeext conftest.$ac_ext
8816 LIBS=$ac_check_lib_save_LIBS
8818 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
8819 echo "${ECHO_T}$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
8820 if test $ac_cv_lib_xml2_xmlSaveToBuffer = yes; then
8821 cat >>confdefs.h <<_ACEOF
8822 #define HAVE_LIBXML2 1
8823 _ACEOF
8825 LIBS="-lxml2 $LIBS"
8827 else
8828 { { echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
8829 echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
8830 { (exit 1); exit 1; }; }
8835 if test "$with_libxslt" = yes ; then
8837 { echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
8838 echo $ECHO_N "checking for xsltCleanupGlobals in -lxslt... $ECHO_C" >&6; }
8839 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
8840 echo $ECHO_N "(cached) $ECHO_C" >&6
8841 else
8842 ac_check_lib_save_LIBS=$LIBS
8843 LIBS="-lxslt $LIBS"
8844 cat >conftest.$ac_ext <<_ACEOF
8845 /* confdefs.h. */
8846 _ACEOF
8847 cat confdefs.h >>conftest.$ac_ext
8848 cat >>conftest.$ac_ext <<_ACEOF
8849 /* end confdefs.h. */
8851 /* Override any GCC internal prototype to avoid an error.
8852 Use char because int might match the return type of a GCC
8853 builtin and then its argument prototype would still apply. */
8854 #ifdef __cplusplus
8855 extern "C"
8856 #endif
8857 char xsltCleanupGlobals ();
8859 main ()
8861 return xsltCleanupGlobals ();
8863 return 0;
8865 _ACEOF
8866 rm -f conftest.$ac_objext conftest$ac_exeext
8867 if { (ac_try="$ac_link"
8868 case "(($ac_try" in
8869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8870 *) ac_try_echo=$ac_try;;
8871 esac
8872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8873 (eval "$ac_link") 2>conftest.er1
8874 ac_status=$?
8875 grep -v '^ *+' conftest.er1 >conftest.err
8876 rm -f conftest.er1
8877 cat conftest.err >&5
8878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); } && {
8880 test -z "$ac_c_werror_flag" ||
8881 test ! -s conftest.err
8882 } && test -s conftest$ac_exeext &&
8883 $as_test_x conftest$ac_exeext; then
8884 ac_cv_lib_xslt_xsltCleanupGlobals=yes
8885 else
8886 echo "$as_me: failed program was:" >&5
8887 sed 's/^/| /' conftest.$ac_ext >&5
8889 ac_cv_lib_xslt_xsltCleanupGlobals=no
8892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8893 conftest$ac_exeext conftest.$ac_ext
8894 LIBS=$ac_check_lib_save_LIBS
8896 { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
8897 echo "${ECHO_T}$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
8898 if test $ac_cv_lib_xslt_xsltCleanupGlobals = yes; then
8899 cat >>confdefs.h <<_ACEOF
8900 #define HAVE_LIBXSLT 1
8901 _ACEOF
8903 LIBS="-lxslt $LIBS"
8905 else
8906 { { echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
8907 echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
8908 { (exit 1); exit 1; }; }
8913 # for contrib/uuid-ossp
8914 if test "$with_ossp_uuid" = yes ; then
8915 { echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
8916 echo $ECHO_N "checking for uuid_export in -lossp-uuid... $ECHO_C" >&6; }
8917 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
8918 echo $ECHO_N "(cached) $ECHO_C" >&6
8919 else
8920 ac_check_lib_save_LIBS=$LIBS
8921 LIBS="-lossp-uuid $LIBS"
8922 cat >conftest.$ac_ext <<_ACEOF
8923 /* confdefs.h. */
8924 _ACEOF
8925 cat confdefs.h >>conftest.$ac_ext
8926 cat >>conftest.$ac_ext <<_ACEOF
8927 /* end confdefs.h. */
8929 /* Override any GCC internal prototype to avoid an error.
8930 Use char because int might match the return type of a GCC
8931 builtin and then its argument prototype would still apply. */
8932 #ifdef __cplusplus
8933 extern "C"
8934 #endif
8935 char uuid_export ();
8937 main ()
8939 return uuid_export ();
8941 return 0;
8943 _ACEOF
8944 rm -f conftest.$ac_objext conftest$ac_exeext
8945 if { (ac_try="$ac_link"
8946 case "(($ac_try" in
8947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8948 *) ac_try_echo=$ac_try;;
8949 esac
8950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8951 (eval "$ac_link") 2>conftest.er1
8952 ac_status=$?
8953 grep -v '^ *+' conftest.er1 >conftest.err
8954 rm -f conftest.er1
8955 cat conftest.err >&5
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); } && {
8958 test -z "$ac_c_werror_flag" ||
8959 test ! -s conftest.err
8960 } && test -s conftest$ac_exeext &&
8961 $as_test_x conftest$ac_exeext; then
8962 ac_cv_lib_ossp_uuid_uuid_export=yes
8963 else
8964 echo "$as_me: failed program was:" >&5
8965 sed 's/^/| /' conftest.$ac_ext >&5
8967 ac_cv_lib_ossp_uuid_uuid_export=no
8970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8971 conftest$ac_exeext conftest.$ac_ext
8972 LIBS=$ac_check_lib_save_LIBS
8974 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
8975 echo "${ECHO_T}$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
8976 if test $ac_cv_lib_ossp_uuid_uuid_export = yes; then
8977 OSSP_UUID_LIBS="-lossp-uuid"
8978 else
8979 { echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
8980 echo $ECHO_N "checking for uuid_export in -luuid... $ECHO_C" >&6; }
8981 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
8982 echo $ECHO_N "(cached) $ECHO_C" >&6
8983 else
8984 ac_check_lib_save_LIBS=$LIBS
8985 LIBS="-luuid $LIBS"
8986 cat >conftest.$ac_ext <<_ACEOF
8987 /* confdefs.h. */
8988 _ACEOF
8989 cat confdefs.h >>conftest.$ac_ext
8990 cat >>conftest.$ac_ext <<_ACEOF
8991 /* end confdefs.h. */
8993 /* Override any GCC internal prototype to avoid an error.
8994 Use char because int might match the return type of a GCC
8995 builtin and then its argument prototype would still apply. */
8996 #ifdef __cplusplus
8997 extern "C"
8998 #endif
8999 char uuid_export ();
9001 main ()
9003 return uuid_export ();
9005 return 0;
9007 _ACEOF
9008 rm -f conftest.$ac_objext conftest$ac_exeext
9009 if { (ac_try="$ac_link"
9010 case "(($ac_try" in
9011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9012 *) ac_try_echo=$ac_try;;
9013 esac
9014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9015 (eval "$ac_link") 2>conftest.er1
9016 ac_status=$?
9017 grep -v '^ *+' conftest.er1 >conftest.err
9018 rm -f conftest.er1
9019 cat conftest.err >&5
9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021 (exit $ac_status); } && {
9022 test -z "$ac_c_werror_flag" ||
9023 test ! -s conftest.err
9024 } && test -s conftest$ac_exeext &&
9025 $as_test_x conftest$ac_exeext; then
9026 ac_cv_lib_uuid_uuid_export=yes
9027 else
9028 echo "$as_me: failed program was:" >&5
9029 sed 's/^/| /' conftest.$ac_ext >&5
9031 ac_cv_lib_uuid_uuid_export=no
9034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9035 conftest$ac_exeext conftest.$ac_ext
9036 LIBS=$ac_check_lib_save_LIBS
9038 { echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
9039 echo "${ECHO_T}$ac_cv_lib_uuid_uuid_export" >&6; }
9040 if test $ac_cv_lib_uuid_uuid_export = yes; then
9041 OSSP_UUID_LIBS="-luuid"
9042 else
9043 { { echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
9044 echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
9045 { (exit 1); exit 1; }; }
9055 ## Header files
9058 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9059 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
9060 if test "${ac_cv_header_stdc+set}" = set; then
9061 echo $ECHO_N "(cached) $ECHO_C" >&6
9062 else
9063 cat >conftest.$ac_ext <<_ACEOF
9064 /* confdefs.h. */
9065 _ACEOF
9066 cat confdefs.h >>conftest.$ac_ext
9067 cat >>conftest.$ac_ext <<_ACEOF
9068 /* end confdefs.h. */
9069 #include <stdlib.h>
9070 #include <stdarg.h>
9071 #include <string.h>
9072 #include <float.h>
9075 main ()
9079 return 0;
9081 _ACEOF
9082 rm -f conftest.$ac_objext
9083 if { (ac_try="$ac_compile"
9084 case "(($ac_try" in
9085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9086 *) ac_try_echo=$ac_try;;
9087 esac
9088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9089 (eval "$ac_compile") 2>conftest.er1
9090 ac_status=$?
9091 grep -v '^ *+' conftest.er1 >conftest.err
9092 rm -f conftest.er1
9093 cat conftest.err >&5
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); } && {
9096 test -z "$ac_c_werror_flag" ||
9097 test ! -s conftest.err
9098 } && test -s conftest.$ac_objext; then
9099 ac_cv_header_stdc=yes
9100 else
9101 echo "$as_me: failed program was:" >&5
9102 sed 's/^/| /' conftest.$ac_ext >&5
9104 ac_cv_header_stdc=no
9107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9109 if test $ac_cv_header_stdc = yes; then
9110 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9111 cat >conftest.$ac_ext <<_ACEOF
9112 /* confdefs.h. */
9113 _ACEOF
9114 cat confdefs.h >>conftest.$ac_ext
9115 cat >>conftest.$ac_ext <<_ACEOF
9116 /* end confdefs.h. */
9117 #include <string.h>
9119 _ACEOF
9120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9121 $EGREP "memchr" >/dev/null 2>&1; then
9123 else
9124 ac_cv_header_stdc=no
9126 rm -f conftest*
9130 if test $ac_cv_header_stdc = yes; then
9131 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9132 cat >conftest.$ac_ext <<_ACEOF
9133 /* confdefs.h. */
9134 _ACEOF
9135 cat confdefs.h >>conftest.$ac_ext
9136 cat >>conftest.$ac_ext <<_ACEOF
9137 /* end confdefs.h. */
9138 #include <stdlib.h>
9140 _ACEOF
9141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9142 $EGREP "free" >/dev/null 2>&1; then
9144 else
9145 ac_cv_header_stdc=no
9147 rm -f conftest*
9151 if test $ac_cv_header_stdc = yes; then
9152 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9153 if test "$cross_compiling" = yes; then
9155 else
9156 cat >conftest.$ac_ext <<_ACEOF
9157 /* confdefs.h. */
9158 _ACEOF
9159 cat confdefs.h >>conftest.$ac_ext
9160 cat >>conftest.$ac_ext <<_ACEOF
9161 /* end confdefs.h. */
9162 #include <ctype.h>
9163 #include <stdlib.h>
9164 #if ((' ' & 0x0FF) == 0x020)
9165 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9166 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9167 #else
9168 # define ISLOWER(c) \
9169 (('a' <= (c) && (c) <= 'i') \
9170 || ('j' <= (c) && (c) <= 'r') \
9171 || ('s' <= (c) && (c) <= 'z'))
9172 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9173 #endif
9175 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9177 main ()
9179 int i;
9180 for (i = 0; i < 256; i++)
9181 if (XOR (islower (i), ISLOWER (i))
9182 || toupper (i) != TOUPPER (i))
9183 return 2;
9184 return 0;
9186 _ACEOF
9187 rm -f conftest$ac_exeext
9188 if { (ac_try="$ac_link"
9189 case "(($ac_try" in
9190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9191 *) ac_try_echo=$ac_try;;
9192 esac
9193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9194 (eval "$ac_link") 2>&5
9195 ac_status=$?
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9198 { (case "(($ac_try" in
9199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9200 *) ac_try_echo=$ac_try;;
9201 esac
9202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9203 (eval "$ac_try") 2>&5
9204 ac_status=$?
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); }; }; then
9208 else
9209 echo "$as_me: program exited with status $ac_status" >&5
9210 echo "$as_me: failed program was:" >&5
9211 sed 's/^/| /' conftest.$ac_ext >&5
9213 ( exit $ac_status )
9214 ac_cv_header_stdc=no
9216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9222 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9223 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
9224 if test $ac_cv_header_stdc = yes; then
9226 cat >>confdefs.h <<\_ACEOF
9227 #define STDC_HEADERS 1
9228 _ACEOF
9232 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9242 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9243 inttypes.h stdint.h unistd.h
9245 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9246 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9249 echo $ECHO_N "(cached) $ECHO_C" >&6
9250 else
9251 cat >conftest.$ac_ext <<_ACEOF
9252 /* confdefs.h. */
9253 _ACEOF
9254 cat confdefs.h >>conftest.$ac_ext
9255 cat >>conftest.$ac_ext <<_ACEOF
9256 /* end confdefs.h. */
9257 $ac_includes_default
9259 #include <$ac_header>
9260 _ACEOF
9261 rm -f conftest.$ac_objext
9262 if { (ac_try="$ac_compile"
9263 case "(($ac_try" in
9264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9265 *) ac_try_echo=$ac_try;;
9266 esac
9267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9268 (eval "$ac_compile") 2>conftest.er1
9269 ac_status=$?
9270 grep -v '^ *+' conftest.er1 >conftest.err
9271 rm -f conftest.er1
9272 cat conftest.err >&5
9273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274 (exit $ac_status); } && {
9275 test -z "$ac_c_werror_flag" ||
9276 test ! -s conftest.err
9277 } && test -s conftest.$ac_objext; then
9278 eval "$as_ac_Header=yes"
9279 else
9280 echo "$as_me: failed program was:" >&5
9281 sed 's/^/| /' conftest.$ac_ext >&5
9283 eval "$as_ac_Header=no"
9286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9288 ac_res=`eval echo '${'$as_ac_Header'}'`
9289 { echo "$as_me:$LINENO: result: $ac_res" >&5
9290 echo "${ECHO_T}$ac_res" >&6; }
9291 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9292 cat >>confdefs.h <<_ACEOF
9293 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9294 _ACEOF
9298 done
9328 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
9330 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9332 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9335 echo $ECHO_N "(cached) $ECHO_C" >&6
9337 ac_res=`eval echo '${'$as_ac_Header'}'`
9338 { echo "$as_me:$LINENO: result: $ac_res" >&5
9339 echo "${ECHO_T}$ac_res" >&6; }
9340 else
9341 # Is the header compilable?
9342 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9343 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9344 cat >conftest.$ac_ext <<_ACEOF
9345 /* confdefs.h. */
9346 _ACEOF
9347 cat confdefs.h >>conftest.$ac_ext
9348 cat >>conftest.$ac_ext <<_ACEOF
9349 /* end confdefs.h. */
9350 $ac_includes_default
9351 #include <$ac_header>
9352 _ACEOF
9353 rm -f conftest.$ac_objext
9354 if { (ac_try="$ac_compile"
9355 case "(($ac_try" in
9356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9357 *) ac_try_echo=$ac_try;;
9358 esac
9359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9360 (eval "$ac_compile") 2>conftest.er1
9361 ac_status=$?
9362 grep -v '^ *+' conftest.er1 >conftest.err
9363 rm -f conftest.er1
9364 cat conftest.err >&5
9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); } && {
9367 test -z "$ac_c_werror_flag" ||
9368 test ! -s conftest.err
9369 } && test -s conftest.$ac_objext; then
9370 ac_header_compiler=yes
9371 else
9372 echo "$as_me: failed program was:" >&5
9373 sed 's/^/| /' conftest.$ac_ext >&5
9375 ac_header_compiler=no
9378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9379 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9380 echo "${ECHO_T}$ac_header_compiler" >&6; }
9382 # Is the header present?
9383 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9384 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9385 cat >conftest.$ac_ext <<_ACEOF
9386 /* confdefs.h. */
9387 _ACEOF
9388 cat confdefs.h >>conftest.$ac_ext
9389 cat >>conftest.$ac_ext <<_ACEOF
9390 /* end confdefs.h. */
9391 #include <$ac_header>
9392 _ACEOF
9393 if { (ac_try="$ac_cpp conftest.$ac_ext"
9394 case "(($ac_try" in
9395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9396 *) ac_try_echo=$ac_try;;
9397 esac
9398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9400 ac_status=$?
9401 grep -v '^ *+' conftest.er1 >conftest.err
9402 rm -f conftest.er1
9403 cat conftest.err >&5
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); } >/dev/null && {
9406 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9407 test ! -s conftest.err
9408 }; then
9409 ac_header_preproc=yes
9410 else
9411 echo "$as_me: failed program was:" >&5
9412 sed 's/^/| /' conftest.$ac_ext >&5
9414 ac_header_preproc=no
9417 rm -f conftest.err conftest.$ac_ext
9418 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9419 echo "${ECHO_T}$ac_header_preproc" >&6; }
9421 # So? What about this header?
9422 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9423 yes:no: )
9424 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9425 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9427 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9428 ac_header_preproc=yes
9430 no:yes:* )
9431 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9432 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9433 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9434 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9435 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9436 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9437 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9438 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9440 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9441 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9442 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9443 ( cat <<\_ASBOX
9444 ## ---------------------------------------- ##
9445 ## Report this to pgsql-bugs@postgresql.org ##
9446 ## ---------------------------------------- ##
9447 _ASBOX
9448 ) | sed "s/^/$as_me: WARNING: /" >&2
9450 esac
9451 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9454 echo $ECHO_N "(cached) $ECHO_C" >&6
9455 else
9456 eval "$as_ac_Header=\$ac_header_preproc"
9458 ac_res=`eval echo '${'$as_ac_Header'}'`
9459 { echo "$as_me:$LINENO: result: $ac_res" >&5
9460 echo "${ECHO_T}$ac_res" >&6; }
9463 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9464 cat >>confdefs.h <<_ACEOF
9465 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9466 _ACEOF
9470 done
9473 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
9474 # netinet/in.h is included first.
9476 for ac_header in netinet/in.h
9478 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9480 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9483 echo $ECHO_N "(cached) $ECHO_C" >&6
9485 ac_res=`eval echo '${'$as_ac_Header'}'`
9486 { echo "$as_me:$LINENO: result: $ac_res" >&5
9487 echo "${ECHO_T}$ac_res" >&6; }
9488 else
9489 # Is the header compilable?
9490 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9491 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9492 cat >conftest.$ac_ext <<_ACEOF
9493 /* confdefs.h. */
9494 _ACEOF
9495 cat confdefs.h >>conftest.$ac_ext
9496 cat >>conftest.$ac_ext <<_ACEOF
9497 /* end confdefs.h. */
9498 $ac_includes_default
9499 #include <$ac_header>
9500 _ACEOF
9501 rm -f conftest.$ac_objext
9502 if { (ac_try="$ac_compile"
9503 case "(($ac_try" in
9504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9505 *) ac_try_echo=$ac_try;;
9506 esac
9507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9508 (eval "$ac_compile") 2>conftest.er1
9509 ac_status=$?
9510 grep -v '^ *+' conftest.er1 >conftest.err
9511 rm -f conftest.er1
9512 cat conftest.err >&5
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); } && {
9515 test -z "$ac_c_werror_flag" ||
9516 test ! -s conftest.err
9517 } && test -s conftest.$ac_objext; then
9518 ac_header_compiler=yes
9519 else
9520 echo "$as_me: failed program was:" >&5
9521 sed 's/^/| /' conftest.$ac_ext >&5
9523 ac_header_compiler=no
9526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9527 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9528 echo "${ECHO_T}$ac_header_compiler" >&6; }
9530 # Is the header present?
9531 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9532 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9533 cat >conftest.$ac_ext <<_ACEOF
9534 /* confdefs.h. */
9535 _ACEOF
9536 cat confdefs.h >>conftest.$ac_ext
9537 cat >>conftest.$ac_ext <<_ACEOF
9538 /* end confdefs.h. */
9539 #include <$ac_header>
9540 _ACEOF
9541 if { (ac_try="$ac_cpp conftest.$ac_ext"
9542 case "(($ac_try" in
9543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9544 *) ac_try_echo=$ac_try;;
9545 esac
9546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9547 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9548 ac_status=$?
9549 grep -v '^ *+' conftest.er1 >conftest.err
9550 rm -f conftest.er1
9551 cat conftest.err >&5
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); } >/dev/null && {
9554 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9555 test ! -s conftest.err
9556 }; then
9557 ac_header_preproc=yes
9558 else
9559 echo "$as_me: failed program was:" >&5
9560 sed 's/^/| /' conftest.$ac_ext >&5
9562 ac_header_preproc=no
9565 rm -f conftest.err conftest.$ac_ext
9566 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9567 echo "${ECHO_T}$ac_header_preproc" >&6; }
9569 # So? What about this header?
9570 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9571 yes:no: )
9572 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9573 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9575 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9576 ac_header_preproc=yes
9578 no:yes:* )
9579 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9580 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9581 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9582 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9583 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9584 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9585 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9586 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9588 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9589 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9590 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9591 ( cat <<\_ASBOX
9592 ## ---------------------------------------- ##
9593 ## Report this to pgsql-bugs@postgresql.org ##
9594 ## ---------------------------------------- ##
9595 _ASBOX
9596 ) | sed "s/^/$as_me: WARNING: /" >&2
9598 esac
9599 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9602 echo $ECHO_N "(cached) $ECHO_C" >&6
9603 else
9604 eval "$as_ac_Header=\$ac_header_preproc"
9606 ac_res=`eval echo '${'$as_ac_Header'}'`
9607 { echo "$as_me:$LINENO: result: $ac_res" >&5
9608 echo "${ECHO_T}$ac_res" >&6; }
9611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9612 cat >>confdefs.h <<_ACEOF
9613 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9614 _ACEOF
9618 done
9621 for ac_header in netinet/tcp.h
9623 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9624 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9627 echo $ECHO_N "(cached) $ECHO_C" >&6
9628 else
9629 cat >conftest.$ac_ext <<_ACEOF
9630 /* confdefs.h. */
9631 _ACEOF
9632 cat confdefs.h >>conftest.$ac_ext
9633 cat >>conftest.$ac_ext <<_ACEOF
9634 /* end confdefs.h. */
9635 $ac_includes_default
9636 #ifdef HAVE_NETINET_IN_H
9637 #include <netinet/in.h>
9638 #endif
9641 #include <$ac_header>
9642 _ACEOF
9643 rm -f conftest.$ac_objext
9644 if { (ac_try="$ac_compile"
9645 case "(($ac_try" in
9646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9647 *) ac_try_echo=$ac_try;;
9648 esac
9649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9650 (eval "$ac_compile") 2>conftest.er1
9651 ac_status=$?
9652 grep -v '^ *+' conftest.er1 >conftest.err
9653 rm -f conftest.er1
9654 cat conftest.err >&5
9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 (exit $ac_status); } && {
9657 test -z "$ac_c_werror_flag" ||
9658 test ! -s conftest.err
9659 } && test -s conftest.$ac_objext; then
9660 eval "$as_ac_Header=yes"
9661 else
9662 echo "$as_me: failed program was:" >&5
9663 sed 's/^/| /' conftest.$ac_ext >&5
9665 eval "$as_ac_Header=no"
9668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9670 ac_res=`eval echo '${'$as_ac_Header'}'`
9671 { echo "$as_me:$LINENO: result: $ac_res" >&5
9672 echo "${ECHO_T}$ac_res" >&6; }
9673 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9674 cat >>confdefs.h <<_ACEOF
9675 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9676 _ACEOF
9680 done
9683 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
9685 for ac_header in readline/readline.h
9687 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9689 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9692 echo $ECHO_N "(cached) $ECHO_C" >&6
9694 ac_res=`eval echo '${'$as_ac_Header'}'`
9695 { echo "$as_me:$LINENO: result: $ac_res" >&5
9696 echo "${ECHO_T}$ac_res" >&6; }
9697 else
9698 # Is the header compilable?
9699 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9700 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9701 cat >conftest.$ac_ext <<_ACEOF
9702 /* confdefs.h. */
9703 _ACEOF
9704 cat confdefs.h >>conftest.$ac_ext
9705 cat >>conftest.$ac_ext <<_ACEOF
9706 /* end confdefs.h. */
9707 $ac_includes_default
9708 #include <$ac_header>
9709 _ACEOF
9710 rm -f conftest.$ac_objext
9711 if { (ac_try="$ac_compile"
9712 case "(($ac_try" in
9713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9714 *) ac_try_echo=$ac_try;;
9715 esac
9716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9717 (eval "$ac_compile") 2>conftest.er1
9718 ac_status=$?
9719 grep -v '^ *+' conftest.er1 >conftest.err
9720 rm -f conftest.er1
9721 cat conftest.err >&5
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); } && {
9724 test -z "$ac_c_werror_flag" ||
9725 test ! -s conftest.err
9726 } && test -s conftest.$ac_objext; then
9727 ac_header_compiler=yes
9728 else
9729 echo "$as_me: failed program was:" >&5
9730 sed 's/^/| /' conftest.$ac_ext >&5
9732 ac_header_compiler=no
9735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9736 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9737 echo "${ECHO_T}$ac_header_compiler" >&6; }
9739 # Is the header present?
9740 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9741 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9742 cat >conftest.$ac_ext <<_ACEOF
9743 /* confdefs.h. */
9744 _ACEOF
9745 cat confdefs.h >>conftest.$ac_ext
9746 cat >>conftest.$ac_ext <<_ACEOF
9747 /* end confdefs.h. */
9748 #include <$ac_header>
9749 _ACEOF
9750 if { (ac_try="$ac_cpp conftest.$ac_ext"
9751 case "(($ac_try" in
9752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9753 *) ac_try_echo=$ac_try;;
9754 esac
9755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9757 ac_status=$?
9758 grep -v '^ *+' conftest.er1 >conftest.err
9759 rm -f conftest.er1
9760 cat conftest.err >&5
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); } >/dev/null && {
9763 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9764 test ! -s conftest.err
9765 }; then
9766 ac_header_preproc=yes
9767 else
9768 echo "$as_me: failed program was:" >&5
9769 sed 's/^/| /' conftest.$ac_ext >&5
9771 ac_header_preproc=no
9774 rm -f conftest.err conftest.$ac_ext
9775 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9776 echo "${ECHO_T}$ac_header_preproc" >&6; }
9778 # So? What about this header?
9779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9780 yes:no: )
9781 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9782 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9784 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9785 ac_header_preproc=yes
9787 no:yes:* )
9788 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9789 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9790 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9791 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9792 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9793 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9794 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9795 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9797 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9798 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9799 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9800 ( cat <<\_ASBOX
9801 ## ---------------------------------------- ##
9802 ## Report this to pgsql-bugs@postgresql.org ##
9803 ## ---------------------------------------- ##
9804 _ASBOX
9805 ) | sed "s/^/$as_me: WARNING: /" >&2
9807 esac
9808 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9811 echo $ECHO_N "(cached) $ECHO_C" >&6
9812 else
9813 eval "$as_ac_Header=\$ac_header_preproc"
9815 ac_res=`eval echo '${'$as_ac_Header'}'`
9816 { echo "$as_me:$LINENO: result: $ac_res" >&5
9817 echo "${ECHO_T}$ac_res" >&6; }
9820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9821 cat >>confdefs.h <<_ACEOF
9822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9823 _ACEOF
9825 else
9827 for ac_header in readline.h
9829 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9831 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9834 echo $ECHO_N "(cached) $ECHO_C" >&6
9836 ac_res=`eval echo '${'$as_ac_Header'}'`
9837 { echo "$as_me:$LINENO: result: $ac_res" >&5
9838 echo "${ECHO_T}$ac_res" >&6; }
9839 else
9840 # Is the header compilable?
9841 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9842 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9843 cat >conftest.$ac_ext <<_ACEOF
9844 /* confdefs.h. */
9845 _ACEOF
9846 cat confdefs.h >>conftest.$ac_ext
9847 cat >>conftest.$ac_ext <<_ACEOF
9848 /* end confdefs.h. */
9849 $ac_includes_default
9850 #include <$ac_header>
9851 _ACEOF
9852 rm -f conftest.$ac_objext
9853 if { (ac_try="$ac_compile"
9854 case "(($ac_try" in
9855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9856 *) ac_try_echo=$ac_try;;
9857 esac
9858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9859 (eval "$ac_compile") 2>conftest.er1
9860 ac_status=$?
9861 grep -v '^ *+' conftest.er1 >conftest.err
9862 rm -f conftest.er1
9863 cat conftest.err >&5
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); } && {
9866 test -z "$ac_c_werror_flag" ||
9867 test ! -s conftest.err
9868 } && test -s conftest.$ac_objext; then
9869 ac_header_compiler=yes
9870 else
9871 echo "$as_me: failed program was:" >&5
9872 sed 's/^/| /' conftest.$ac_ext >&5
9874 ac_header_compiler=no
9877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9878 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9879 echo "${ECHO_T}$ac_header_compiler" >&6; }
9881 # Is the header present?
9882 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9883 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9884 cat >conftest.$ac_ext <<_ACEOF
9885 /* confdefs.h. */
9886 _ACEOF
9887 cat confdefs.h >>conftest.$ac_ext
9888 cat >>conftest.$ac_ext <<_ACEOF
9889 /* end confdefs.h. */
9890 #include <$ac_header>
9891 _ACEOF
9892 if { (ac_try="$ac_cpp conftest.$ac_ext"
9893 case "(($ac_try" in
9894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9895 *) ac_try_echo=$ac_try;;
9896 esac
9897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9898 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9899 ac_status=$?
9900 grep -v '^ *+' conftest.er1 >conftest.err
9901 rm -f conftest.er1
9902 cat conftest.err >&5
9903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904 (exit $ac_status); } >/dev/null && {
9905 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9906 test ! -s conftest.err
9907 }; then
9908 ac_header_preproc=yes
9909 else
9910 echo "$as_me: failed program was:" >&5
9911 sed 's/^/| /' conftest.$ac_ext >&5
9913 ac_header_preproc=no
9916 rm -f conftest.err conftest.$ac_ext
9917 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9918 echo "${ECHO_T}$ac_header_preproc" >&6; }
9920 # So? What about this header?
9921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9922 yes:no: )
9923 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9924 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9926 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9927 ac_header_preproc=yes
9929 no:yes:* )
9930 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9931 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9932 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9933 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9934 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9935 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9936 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9937 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9939 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9940 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9941 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9942 ( cat <<\_ASBOX
9943 ## ---------------------------------------- ##
9944 ## Report this to pgsql-bugs@postgresql.org ##
9945 ## ---------------------------------------- ##
9946 _ASBOX
9947 ) | sed "s/^/$as_me: WARNING: /" >&2
9949 esac
9950 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9953 echo $ECHO_N "(cached) $ECHO_C" >&6
9954 else
9955 eval "$as_ac_Header=\$ac_header_preproc"
9957 ac_res=`eval echo '${'$as_ac_Header'}'`
9958 { echo "$as_me:$LINENO: result: $ac_res" >&5
9959 echo "${ECHO_T}$ac_res" >&6; }
9962 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9963 cat >>confdefs.h <<_ACEOF
9964 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9965 _ACEOF
9967 else
9968 { { echo "$as_me:$LINENO: error: readline header not found
9969 If you have readline already installed, see config.log for details on the
9970 failure. It is possible the compiler isn't looking in the proper directory.
9971 Use --without-readline to disable readline support." >&5
9972 echo "$as_me: error: readline header not found
9973 If you have readline already installed, see config.log for details on the
9974 failure. It is possible the compiler isn't looking in the proper directory.
9975 Use --without-readline to disable readline support." >&2;}
9976 { (exit 1); exit 1; }; }
9979 done
9983 done
9986 for ac_header in readline/history.h
9988 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9990 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9993 echo $ECHO_N "(cached) $ECHO_C" >&6
9995 ac_res=`eval echo '${'$as_ac_Header'}'`
9996 { echo "$as_me:$LINENO: result: $ac_res" >&5
9997 echo "${ECHO_T}$ac_res" >&6; }
9998 else
9999 # Is the header compilable?
10000 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10001 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10002 cat >conftest.$ac_ext <<_ACEOF
10003 /* confdefs.h. */
10004 _ACEOF
10005 cat confdefs.h >>conftest.$ac_ext
10006 cat >>conftest.$ac_ext <<_ACEOF
10007 /* end confdefs.h. */
10008 $ac_includes_default
10009 #include <$ac_header>
10010 _ACEOF
10011 rm -f conftest.$ac_objext
10012 if { (ac_try="$ac_compile"
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_compile") 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); } && {
10025 test -z "$ac_c_werror_flag" ||
10026 test ! -s conftest.err
10027 } && test -s conftest.$ac_objext; then
10028 ac_header_compiler=yes
10029 else
10030 echo "$as_me: failed program was:" >&5
10031 sed 's/^/| /' conftest.$ac_ext >&5
10033 ac_header_compiler=no
10036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10037 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10038 echo "${ECHO_T}$ac_header_compiler" >&6; }
10040 # Is the header present?
10041 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10042 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10043 cat >conftest.$ac_ext <<_ACEOF
10044 /* confdefs.h. */
10045 _ACEOF
10046 cat confdefs.h >>conftest.$ac_ext
10047 cat >>conftest.$ac_ext <<_ACEOF
10048 /* end confdefs.h. */
10049 #include <$ac_header>
10050 _ACEOF
10051 if { (ac_try="$ac_cpp conftest.$ac_ext"
10052 case "(($ac_try" in
10053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10054 *) ac_try_echo=$ac_try;;
10055 esac
10056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10058 ac_status=$?
10059 grep -v '^ *+' conftest.er1 >conftest.err
10060 rm -f conftest.er1
10061 cat conftest.err >&5
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); } >/dev/null && {
10064 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10065 test ! -s conftest.err
10066 }; then
10067 ac_header_preproc=yes
10068 else
10069 echo "$as_me: failed program was:" >&5
10070 sed 's/^/| /' conftest.$ac_ext >&5
10072 ac_header_preproc=no
10075 rm -f conftest.err conftest.$ac_ext
10076 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10077 echo "${ECHO_T}$ac_header_preproc" >&6; }
10079 # So? What about this header?
10080 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10081 yes:no: )
10082 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10083 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10085 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10086 ac_header_preproc=yes
10088 no:yes:* )
10089 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10090 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10091 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10092 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10093 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10094 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10095 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10096 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10098 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10099 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10100 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10101 ( cat <<\_ASBOX
10102 ## ---------------------------------------- ##
10103 ## Report this to pgsql-bugs@postgresql.org ##
10104 ## ---------------------------------------- ##
10105 _ASBOX
10106 ) | sed "s/^/$as_me: WARNING: /" >&2
10108 esac
10109 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10112 echo $ECHO_N "(cached) $ECHO_C" >&6
10113 else
10114 eval "$as_ac_Header=\$ac_header_preproc"
10116 ac_res=`eval echo '${'$as_ac_Header'}'`
10117 { echo "$as_me:$LINENO: result: $ac_res" >&5
10118 echo "${ECHO_T}$ac_res" >&6; }
10121 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10122 cat >>confdefs.h <<_ACEOF
10123 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10124 _ACEOF
10126 else
10128 for ac_header in history.h
10130 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10132 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10135 echo $ECHO_N "(cached) $ECHO_C" >&6
10137 ac_res=`eval echo '${'$as_ac_Header'}'`
10138 { echo "$as_me:$LINENO: result: $ac_res" >&5
10139 echo "${ECHO_T}$ac_res" >&6; }
10140 else
10141 # Is the header compilable?
10142 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10143 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10144 cat >conftest.$ac_ext <<_ACEOF
10145 /* confdefs.h. */
10146 _ACEOF
10147 cat confdefs.h >>conftest.$ac_ext
10148 cat >>conftest.$ac_ext <<_ACEOF
10149 /* end confdefs.h. */
10150 $ac_includes_default
10151 #include <$ac_header>
10152 _ACEOF
10153 rm -f conftest.$ac_objext
10154 if { (ac_try="$ac_compile"
10155 case "(($ac_try" in
10156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10157 *) ac_try_echo=$ac_try;;
10158 esac
10159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10160 (eval "$ac_compile") 2>conftest.er1
10161 ac_status=$?
10162 grep -v '^ *+' conftest.er1 >conftest.err
10163 rm -f conftest.er1
10164 cat conftest.err >&5
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); } && {
10167 test -z "$ac_c_werror_flag" ||
10168 test ! -s conftest.err
10169 } && test -s conftest.$ac_objext; then
10170 ac_header_compiler=yes
10171 else
10172 echo "$as_me: failed program was:" >&5
10173 sed 's/^/| /' conftest.$ac_ext >&5
10175 ac_header_compiler=no
10178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10179 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10180 echo "${ECHO_T}$ac_header_compiler" >&6; }
10182 # Is the header present?
10183 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10184 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10185 cat >conftest.$ac_ext <<_ACEOF
10186 /* confdefs.h. */
10187 _ACEOF
10188 cat confdefs.h >>conftest.$ac_ext
10189 cat >>conftest.$ac_ext <<_ACEOF
10190 /* end confdefs.h. */
10191 #include <$ac_header>
10192 _ACEOF
10193 if { (ac_try="$ac_cpp conftest.$ac_ext"
10194 case "(($ac_try" in
10195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10196 *) ac_try_echo=$ac_try;;
10197 esac
10198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10199 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10200 ac_status=$?
10201 grep -v '^ *+' conftest.er1 >conftest.err
10202 rm -f conftest.er1
10203 cat conftest.err >&5
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); } >/dev/null && {
10206 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10207 test ! -s conftest.err
10208 }; then
10209 ac_header_preproc=yes
10210 else
10211 echo "$as_me: failed program was:" >&5
10212 sed 's/^/| /' conftest.$ac_ext >&5
10214 ac_header_preproc=no
10217 rm -f conftest.err conftest.$ac_ext
10218 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10219 echo "${ECHO_T}$ac_header_preproc" >&6; }
10221 # So? What about this header?
10222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10223 yes:no: )
10224 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10225 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10227 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10228 ac_header_preproc=yes
10230 no:yes:* )
10231 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10232 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10233 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10234 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10235 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10236 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10237 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10238 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10240 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10241 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10242 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10243 ( cat <<\_ASBOX
10244 ## ---------------------------------------- ##
10245 ## Report this to pgsql-bugs@postgresql.org ##
10246 ## ---------------------------------------- ##
10247 _ASBOX
10248 ) | sed "s/^/$as_me: WARNING: /" >&2
10250 esac
10251 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10254 echo $ECHO_N "(cached) $ECHO_C" >&6
10255 else
10256 eval "$as_ac_Header=\$ac_header_preproc"
10258 ac_res=`eval echo '${'$as_ac_Header'}'`
10259 { echo "$as_me:$LINENO: result: $ac_res" >&5
10260 echo "${ECHO_T}$ac_res" >&6; }
10263 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10264 cat >>confdefs.h <<_ACEOF
10265 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10266 _ACEOF
10268 else
10269 { { echo "$as_me:$LINENO: error: history header not found
10270 If you have readline already installed, see config.log for details on the
10271 failure. It is possible the compiler isn't looking in the proper directory.
10272 Use --without-readline to disable readline support." >&5
10273 echo "$as_me: error: history header not found
10274 If you have readline already installed, see config.log for details on the
10275 failure. It is possible the compiler isn't looking in the proper directory.
10276 Use --without-readline to disable readline support." >&2;}
10277 { (exit 1); exit 1; }; }
10280 done
10284 done
10288 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
10289 # Some installations of libedit usurp /usr/include/readline/, which seems
10290 # bad practice, since in combined installations readline will have its headers
10291 # there. We might have to resort to AC_EGREP checks to make sure we found
10292 # the proper header...
10294 for ac_header in editline/readline.h
10296 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10298 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10301 echo $ECHO_N "(cached) $ECHO_C" >&6
10303 ac_res=`eval echo '${'$as_ac_Header'}'`
10304 { echo "$as_me:$LINENO: result: $ac_res" >&5
10305 echo "${ECHO_T}$ac_res" >&6; }
10306 else
10307 # Is the header compilable?
10308 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10309 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10310 cat >conftest.$ac_ext <<_ACEOF
10311 /* confdefs.h. */
10312 _ACEOF
10313 cat confdefs.h >>conftest.$ac_ext
10314 cat >>conftest.$ac_ext <<_ACEOF
10315 /* end confdefs.h. */
10316 $ac_includes_default
10317 #include <$ac_header>
10318 _ACEOF
10319 rm -f conftest.$ac_objext
10320 if { (ac_try="$ac_compile"
10321 case "(($ac_try" in
10322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10323 *) ac_try_echo=$ac_try;;
10324 esac
10325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10326 (eval "$ac_compile") 2>conftest.er1
10327 ac_status=$?
10328 grep -v '^ *+' conftest.er1 >conftest.err
10329 rm -f conftest.er1
10330 cat conftest.err >&5
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); } && {
10333 test -z "$ac_c_werror_flag" ||
10334 test ! -s conftest.err
10335 } && test -s conftest.$ac_objext; then
10336 ac_header_compiler=yes
10337 else
10338 echo "$as_me: failed program was:" >&5
10339 sed 's/^/| /' conftest.$ac_ext >&5
10341 ac_header_compiler=no
10344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10345 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10346 echo "${ECHO_T}$ac_header_compiler" >&6; }
10348 # Is the header present?
10349 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10350 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10351 cat >conftest.$ac_ext <<_ACEOF
10352 /* confdefs.h. */
10353 _ACEOF
10354 cat confdefs.h >>conftest.$ac_ext
10355 cat >>conftest.$ac_ext <<_ACEOF
10356 /* end confdefs.h. */
10357 #include <$ac_header>
10358 _ACEOF
10359 if { (ac_try="$ac_cpp conftest.$ac_ext"
10360 case "(($ac_try" in
10361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10362 *) ac_try_echo=$ac_try;;
10363 esac
10364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10365 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10366 ac_status=$?
10367 grep -v '^ *+' conftest.er1 >conftest.err
10368 rm -f conftest.er1
10369 cat conftest.err >&5
10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371 (exit $ac_status); } >/dev/null && {
10372 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10373 test ! -s conftest.err
10374 }; then
10375 ac_header_preproc=yes
10376 else
10377 echo "$as_me: failed program was:" >&5
10378 sed 's/^/| /' conftest.$ac_ext >&5
10380 ac_header_preproc=no
10383 rm -f conftest.err conftest.$ac_ext
10384 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10385 echo "${ECHO_T}$ac_header_preproc" >&6; }
10387 # So? What about this header?
10388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10389 yes:no: )
10390 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10391 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10393 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10394 ac_header_preproc=yes
10396 no:yes:* )
10397 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10398 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10399 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10400 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10401 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10402 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10403 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10404 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10407 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10408 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10409 ( cat <<\_ASBOX
10410 ## ---------------------------------------- ##
10411 ## Report this to pgsql-bugs@postgresql.org ##
10412 ## ---------------------------------------- ##
10413 _ASBOX
10414 ) | sed "s/^/$as_me: WARNING: /" >&2
10416 esac
10417 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10420 echo $ECHO_N "(cached) $ECHO_C" >&6
10421 else
10422 eval "$as_ac_Header=\$ac_header_preproc"
10424 ac_res=`eval echo '${'$as_ac_Header'}'`
10425 { echo "$as_me:$LINENO: result: $ac_res" >&5
10426 echo "${ECHO_T}$ac_res" >&6; }
10429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10430 cat >>confdefs.h <<_ACEOF
10431 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10432 _ACEOF
10434 else
10436 for ac_header in readline.h
10438 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10440 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10443 echo $ECHO_N "(cached) $ECHO_C" >&6
10445 ac_res=`eval echo '${'$as_ac_Header'}'`
10446 { echo "$as_me:$LINENO: result: $ac_res" >&5
10447 echo "${ECHO_T}$ac_res" >&6; }
10448 else
10449 # Is the header compilable?
10450 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10451 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10452 cat >conftest.$ac_ext <<_ACEOF
10453 /* confdefs.h. */
10454 _ACEOF
10455 cat confdefs.h >>conftest.$ac_ext
10456 cat >>conftest.$ac_ext <<_ACEOF
10457 /* end confdefs.h. */
10458 $ac_includes_default
10459 #include <$ac_header>
10460 _ACEOF
10461 rm -f conftest.$ac_objext
10462 if { (ac_try="$ac_compile"
10463 case "(($ac_try" in
10464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10465 *) ac_try_echo=$ac_try;;
10466 esac
10467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10468 (eval "$ac_compile") 2>conftest.er1
10469 ac_status=$?
10470 grep -v '^ *+' conftest.er1 >conftest.err
10471 rm -f conftest.er1
10472 cat conftest.err >&5
10473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); } && {
10475 test -z "$ac_c_werror_flag" ||
10476 test ! -s conftest.err
10477 } && test -s conftest.$ac_objext; then
10478 ac_header_compiler=yes
10479 else
10480 echo "$as_me: failed program was:" >&5
10481 sed 's/^/| /' conftest.$ac_ext >&5
10483 ac_header_compiler=no
10486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10487 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10488 echo "${ECHO_T}$ac_header_compiler" >&6; }
10490 # Is the header present?
10491 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10492 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10493 cat >conftest.$ac_ext <<_ACEOF
10494 /* confdefs.h. */
10495 _ACEOF
10496 cat confdefs.h >>conftest.$ac_ext
10497 cat >>conftest.$ac_ext <<_ACEOF
10498 /* end confdefs.h. */
10499 #include <$ac_header>
10500 _ACEOF
10501 if { (ac_try="$ac_cpp conftest.$ac_ext"
10502 case "(($ac_try" in
10503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10504 *) ac_try_echo=$ac_try;;
10505 esac
10506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10507 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10508 ac_status=$?
10509 grep -v '^ *+' conftest.er1 >conftest.err
10510 rm -f conftest.er1
10511 cat conftest.err >&5
10512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513 (exit $ac_status); } >/dev/null && {
10514 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10515 test ! -s conftest.err
10516 }; then
10517 ac_header_preproc=yes
10518 else
10519 echo "$as_me: failed program was:" >&5
10520 sed 's/^/| /' conftest.$ac_ext >&5
10522 ac_header_preproc=no
10525 rm -f conftest.err conftest.$ac_ext
10526 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10527 echo "${ECHO_T}$ac_header_preproc" >&6; }
10529 # So? What about this header?
10530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10531 yes:no: )
10532 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10533 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10535 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10536 ac_header_preproc=yes
10538 no:yes:* )
10539 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10540 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10541 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10542 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10543 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10544 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10545 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10546 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10548 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10549 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10550 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10551 ( cat <<\_ASBOX
10552 ## ---------------------------------------- ##
10553 ## Report this to pgsql-bugs@postgresql.org ##
10554 ## ---------------------------------------- ##
10555 _ASBOX
10556 ) | sed "s/^/$as_me: WARNING: /" >&2
10558 esac
10559 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10562 echo $ECHO_N "(cached) $ECHO_C" >&6
10563 else
10564 eval "$as_ac_Header=\$ac_header_preproc"
10566 ac_res=`eval echo '${'$as_ac_Header'}'`
10567 { echo "$as_me:$LINENO: result: $ac_res" >&5
10568 echo "${ECHO_T}$ac_res" >&6; }
10571 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10572 cat >>confdefs.h <<_ACEOF
10573 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10574 _ACEOF
10576 else
10578 for ac_header in readline/readline.h
10580 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10581 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10582 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10585 echo $ECHO_N "(cached) $ECHO_C" >&6
10587 ac_res=`eval echo '${'$as_ac_Header'}'`
10588 { echo "$as_me:$LINENO: result: $ac_res" >&5
10589 echo "${ECHO_T}$ac_res" >&6; }
10590 else
10591 # Is the header compilable?
10592 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10593 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10594 cat >conftest.$ac_ext <<_ACEOF
10595 /* confdefs.h. */
10596 _ACEOF
10597 cat confdefs.h >>conftest.$ac_ext
10598 cat >>conftest.$ac_ext <<_ACEOF
10599 /* end confdefs.h. */
10600 $ac_includes_default
10601 #include <$ac_header>
10602 _ACEOF
10603 rm -f conftest.$ac_objext
10604 if { (ac_try="$ac_compile"
10605 case "(($ac_try" in
10606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10607 *) ac_try_echo=$ac_try;;
10608 esac
10609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10610 (eval "$ac_compile") 2>conftest.er1
10611 ac_status=$?
10612 grep -v '^ *+' conftest.er1 >conftest.err
10613 rm -f conftest.er1
10614 cat conftest.err >&5
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); } && {
10617 test -z "$ac_c_werror_flag" ||
10618 test ! -s conftest.err
10619 } && test -s conftest.$ac_objext; then
10620 ac_header_compiler=yes
10621 else
10622 echo "$as_me: failed program was:" >&5
10623 sed 's/^/| /' conftest.$ac_ext >&5
10625 ac_header_compiler=no
10628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10629 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10630 echo "${ECHO_T}$ac_header_compiler" >&6; }
10632 # Is the header present?
10633 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10634 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10635 cat >conftest.$ac_ext <<_ACEOF
10636 /* confdefs.h. */
10637 _ACEOF
10638 cat confdefs.h >>conftest.$ac_ext
10639 cat >>conftest.$ac_ext <<_ACEOF
10640 /* end confdefs.h. */
10641 #include <$ac_header>
10642 _ACEOF
10643 if { (ac_try="$ac_cpp conftest.$ac_ext"
10644 case "(($ac_try" in
10645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10646 *) ac_try_echo=$ac_try;;
10647 esac
10648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10649 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10650 ac_status=$?
10651 grep -v '^ *+' conftest.er1 >conftest.err
10652 rm -f conftest.er1
10653 cat conftest.err >&5
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); } >/dev/null && {
10656 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10657 test ! -s conftest.err
10658 }; then
10659 ac_header_preproc=yes
10660 else
10661 echo "$as_me: failed program was:" >&5
10662 sed 's/^/| /' conftest.$ac_ext >&5
10664 ac_header_preproc=no
10667 rm -f conftest.err conftest.$ac_ext
10668 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10669 echo "${ECHO_T}$ac_header_preproc" >&6; }
10671 # So? What about this header?
10672 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10673 yes:no: )
10674 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10675 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10676 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10677 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10678 ac_header_preproc=yes
10680 no:yes:* )
10681 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10682 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10683 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10684 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10685 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10686 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10687 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10688 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10690 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10691 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10692 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10693 ( cat <<\_ASBOX
10694 ## ---------------------------------------- ##
10695 ## Report this to pgsql-bugs@postgresql.org ##
10696 ## ---------------------------------------- ##
10697 _ASBOX
10698 ) | sed "s/^/$as_me: WARNING: /" >&2
10700 esac
10701 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10704 echo $ECHO_N "(cached) $ECHO_C" >&6
10705 else
10706 eval "$as_ac_Header=\$ac_header_preproc"
10708 ac_res=`eval echo '${'$as_ac_Header'}'`
10709 { echo "$as_me:$LINENO: result: $ac_res" >&5
10710 echo "${ECHO_T}$ac_res" >&6; }
10713 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10714 cat >>confdefs.h <<_ACEOF
10715 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10716 _ACEOF
10718 else
10719 { { echo "$as_me:$LINENO: error: readline header not found
10720 If you have libedit already installed, see config.log for details on the
10721 failure. It is possible the compiler isn't looking in the proper directory.
10722 Use --without-readline to disable libedit support." >&5
10723 echo "$as_me: error: readline header not found
10724 If you have libedit already installed, see config.log for details on the
10725 failure. It is possible the compiler isn't looking in the proper directory.
10726 Use --without-readline to disable libedit support." >&2;}
10727 { (exit 1); exit 1; }; }
10730 done
10734 done
10738 done
10740 # Note: in a libedit installation, history.h is sometimes a dummy, and may
10741 # not be there at all. Hence, don't complain if not found. We must check
10742 # though, since in yet other versions it is an independent header.
10744 for ac_header in editline/history.h
10746 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10748 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10751 echo $ECHO_N "(cached) $ECHO_C" >&6
10753 ac_res=`eval echo '${'$as_ac_Header'}'`
10754 { echo "$as_me:$LINENO: result: $ac_res" >&5
10755 echo "${ECHO_T}$ac_res" >&6; }
10756 else
10757 # Is the header compilable?
10758 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10759 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10760 cat >conftest.$ac_ext <<_ACEOF
10761 /* confdefs.h. */
10762 _ACEOF
10763 cat confdefs.h >>conftest.$ac_ext
10764 cat >>conftest.$ac_ext <<_ACEOF
10765 /* end confdefs.h. */
10766 $ac_includes_default
10767 #include <$ac_header>
10768 _ACEOF
10769 rm -f conftest.$ac_objext
10770 if { (ac_try="$ac_compile"
10771 case "(($ac_try" in
10772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10773 *) ac_try_echo=$ac_try;;
10774 esac
10775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10776 (eval "$ac_compile") 2>conftest.er1
10777 ac_status=$?
10778 grep -v '^ *+' conftest.er1 >conftest.err
10779 rm -f conftest.er1
10780 cat conftest.err >&5
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); } && {
10783 test -z "$ac_c_werror_flag" ||
10784 test ! -s conftest.err
10785 } && test -s conftest.$ac_objext; then
10786 ac_header_compiler=yes
10787 else
10788 echo "$as_me: failed program was:" >&5
10789 sed 's/^/| /' conftest.$ac_ext >&5
10791 ac_header_compiler=no
10794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10795 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10796 echo "${ECHO_T}$ac_header_compiler" >&6; }
10798 # Is the header present?
10799 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10800 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10801 cat >conftest.$ac_ext <<_ACEOF
10802 /* confdefs.h. */
10803 _ACEOF
10804 cat confdefs.h >>conftest.$ac_ext
10805 cat >>conftest.$ac_ext <<_ACEOF
10806 /* end confdefs.h. */
10807 #include <$ac_header>
10808 _ACEOF
10809 if { (ac_try="$ac_cpp conftest.$ac_ext"
10810 case "(($ac_try" in
10811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10812 *) ac_try_echo=$ac_try;;
10813 esac
10814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10816 ac_status=$?
10817 grep -v '^ *+' conftest.er1 >conftest.err
10818 rm -f conftest.er1
10819 cat conftest.err >&5
10820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821 (exit $ac_status); } >/dev/null && {
10822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10823 test ! -s conftest.err
10824 }; then
10825 ac_header_preproc=yes
10826 else
10827 echo "$as_me: failed program was:" >&5
10828 sed 's/^/| /' conftest.$ac_ext >&5
10830 ac_header_preproc=no
10833 rm -f conftest.err conftest.$ac_ext
10834 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10835 echo "${ECHO_T}$ac_header_preproc" >&6; }
10837 # So? What about this header?
10838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10839 yes:no: )
10840 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10841 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10843 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10844 ac_header_preproc=yes
10846 no:yes:* )
10847 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10848 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10849 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10850 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10851 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10852 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10853 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10854 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10856 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10857 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10858 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10859 ( cat <<\_ASBOX
10860 ## ---------------------------------------- ##
10861 ## Report this to pgsql-bugs@postgresql.org ##
10862 ## ---------------------------------------- ##
10863 _ASBOX
10864 ) | sed "s/^/$as_me: WARNING: /" >&2
10866 esac
10867 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10870 echo $ECHO_N "(cached) $ECHO_C" >&6
10871 else
10872 eval "$as_ac_Header=\$ac_header_preproc"
10874 ac_res=`eval echo '${'$as_ac_Header'}'`
10875 { echo "$as_me:$LINENO: result: $ac_res" >&5
10876 echo "${ECHO_T}$ac_res" >&6; }
10879 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10880 cat >>confdefs.h <<_ACEOF
10881 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10882 _ACEOF
10884 else
10886 for ac_header in history.h
10888 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10890 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10893 echo $ECHO_N "(cached) $ECHO_C" >&6
10895 ac_res=`eval echo '${'$as_ac_Header'}'`
10896 { echo "$as_me:$LINENO: result: $ac_res" >&5
10897 echo "${ECHO_T}$ac_res" >&6; }
10898 else
10899 # Is the header compilable?
10900 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10901 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10902 cat >conftest.$ac_ext <<_ACEOF
10903 /* confdefs.h. */
10904 _ACEOF
10905 cat confdefs.h >>conftest.$ac_ext
10906 cat >>conftest.$ac_ext <<_ACEOF
10907 /* end confdefs.h. */
10908 $ac_includes_default
10909 #include <$ac_header>
10910 _ACEOF
10911 rm -f conftest.$ac_objext
10912 if { (ac_try="$ac_compile"
10913 case "(($ac_try" in
10914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10915 *) ac_try_echo=$ac_try;;
10916 esac
10917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10918 (eval "$ac_compile") 2>conftest.er1
10919 ac_status=$?
10920 grep -v '^ *+' conftest.er1 >conftest.err
10921 rm -f conftest.er1
10922 cat conftest.err >&5
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); } && {
10925 test -z "$ac_c_werror_flag" ||
10926 test ! -s conftest.err
10927 } && test -s conftest.$ac_objext; then
10928 ac_header_compiler=yes
10929 else
10930 echo "$as_me: failed program was:" >&5
10931 sed 's/^/| /' conftest.$ac_ext >&5
10933 ac_header_compiler=no
10936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10937 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10938 echo "${ECHO_T}$ac_header_compiler" >&6; }
10940 # Is the header present?
10941 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10942 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10943 cat >conftest.$ac_ext <<_ACEOF
10944 /* confdefs.h. */
10945 _ACEOF
10946 cat confdefs.h >>conftest.$ac_ext
10947 cat >>conftest.$ac_ext <<_ACEOF
10948 /* end confdefs.h. */
10949 #include <$ac_header>
10950 _ACEOF
10951 if { (ac_try="$ac_cpp conftest.$ac_ext"
10952 case "(($ac_try" in
10953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10954 *) ac_try_echo=$ac_try;;
10955 esac
10956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10958 ac_status=$?
10959 grep -v '^ *+' conftest.er1 >conftest.err
10960 rm -f conftest.er1
10961 cat conftest.err >&5
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); } >/dev/null && {
10964 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10965 test ! -s conftest.err
10966 }; then
10967 ac_header_preproc=yes
10968 else
10969 echo "$as_me: failed program was:" >&5
10970 sed 's/^/| /' conftest.$ac_ext >&5
10972 ac_header_preproc=no
10975 rm -f conftest.err conftest.$ac_ext
10976 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10977 echo "${ECHO_T}$ac_header_preproc" >&6; }
10979 # So? What about this header?
10980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10981 yes:no: )
10982 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10983 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10985 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10986 ac_header_preproc=yes
10988 no:yes:* )
10989 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10990 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10991 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10992 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10993 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10994 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10995 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10996 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10998 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10999 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11000 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11001 ( cat <<\_ASBOX
11002 ## ---------------------------------------- ##
11003 ## Report this to pgsql-bugs@postgresql.org ##
11004 ## ---------------------------------------- ##
11005 _ASBOX
11006 ) | sed "s/^/$as_me: WARNING: /" >&2
11008 esac
11009 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11012 echo $ECHO_N "(cached) $ECHO_C" >&6
11013 else
11014 eval "$as_ac_Header=\$ac_header_preproc"
11016 ac_res=`eval echo '${'$as_ac_Header'}'`
11017 { echo "$as_me:$LINENO: result: $ac_res" >&5
11018 echo "${ECHO_T}$ac_res" >&6; }
11021 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11022 cat >>confdefs.h <<_ACEOF
11023 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11024 _ACEOF
11026 else
11028 for ac_header in readline/history.h
11030 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11032 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11034 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11035 echo $ECHO_N "(cached) $ECHO_C" >&6
11037 ac_res=`eval echo '${'$as_ac_Header'}'`
11038 { echo "$as_me:$LINENO: result: $ac_res" >&5
11039 echo "${ECHO_T}$ac_res" >&6; }
11040 else
11041 # Is the header compilable?
11042 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11043 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11044 cat >conftest.$ac_ext <<_ACEOF
11045 /* confdefs.h. */
11046 _ACEOF
11047 cat confdefs.h >>conftest.$ac_ext
11048 cat >>conftest.$ac_ext <<_ACEOF
11049 /* end confdefs.h. */
11050 $ac_includes_default
11051 #include <$ac_header>
11052 _ACEOF
11053 rm -f conftest.$ac_objext
11054 if { (ac_try="$ac_compile"
11055 case "(($ac_try" in
11056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11057 *) ac_try_echo=$ac_try;;
11058 esac
11059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11060 (eval "$ac_compile") 2>conftest.er1
11061 ac_status=$?
11062 grep -v '^ *+' conftest.er1 >conftest.err
11063 rm -f conftest.er1
11064 cat conftest.err >&5
11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); } && {
11067 test -z "$ac_c_werror_flag" ||
11068 test ! -s conftest.err
11069 } && test -s conftest.$ac_objext; then
11070 ac_header_compiler=yes
11071 else
11072 echo "$as_me: failed program was:" >&5
11073 sed 's/^/| /' conftest.$ac_ext >&5
11075 ac_header_compiler=no
11078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11079 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11080 echo "${ECHO_T}$ac_header_compiler" >&6; }
11082 # Is the header present?
11083 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11084 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11085 cat >conftest.$ac_ext <<_ACEOF
11086 /* confdefs.h. */
11087 _ACEOF
11088 cat confdefs.h >>conftest.$ac_ext
11089 cat >>conftest.$ac_ext <<_ACEOF
11090 /* end confdefs.h. */
11091 #include <$ac_header>
11092 _ACEOF
11093 if { (ac_try="$ac_cpp conftest.$ac_ext"
11094 case "(($ac_try" in
11095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11096 *) ac_try_echo=$ac_try;;
11097 esac
11098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11100 ac_status=$?
11101 grep -v '^ *+' conftest.er1 >conftest.err
11102 rm -f conftest.er1
11103 cat conftest.err >&5
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); } >/dev/null && {
11106 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11107 test ! -s conftest.err
11108 }; then
11109 ac_header_preproc=yes
11110 else
11111 echo "$as_me: failed program was:" >&5
11112 sed 's/^/| /' conftest.$ac_ext >&5
11114 ac_header_preproc=no
11117 rm -f conftest.err conftest.$ac_ext
11118 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11119 echo "${ECHO_T}$ac_header_preproc" >&6; }
11121 # So? What about this header?
11122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11123 yes:no: )
11124 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11125 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11126 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11127 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11128 ac_header_preproc=yes
11130 no:yes:* )
11131 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11132 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11133 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11134 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11135 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11136 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11137 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11138 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11139 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11140 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11141 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11142 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11143 ( cat <<\_ASBOX
11144 ## ---------------------------------------- ##
11145 ## Report this to pgsql-bugs@postgresql.org ##
11146 ## ---------------------------------------- ##
11147 _ASBOX
11148 ) | sed "s/^/$as_me: WARNING: /" >&2
11150 esac
11151 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11154 echo $ECHO_N "(cached) $ECHO_C" >&6
11155 else
11156 eval "$as_ac_Header=\$ac_header_preproc"
11158 ac_res=`eval echo '${'$as_ac_Header'}'`
11159 { echo "$as_me:$LINENO: result: $ac_res" >&5
11160 echo "${ECHO_T}$ac_res" >&6; }
11163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11164 cat >>confdefs.h <<_ACEOF
11165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11166 _ACEOF
11170 done
11174 done
11178 done
11182 if test "$with_zlib" = yes; then
11183 if test "${ac_cv_header_zlib_h+set}" = set; then
11184 { echo "$as_me:$LINENO: checking for zlib.h" >&5
11185 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
11186 if test "${ac_cv_header_zlib_h+set}" = set; then
11187 echo $ECHO_N "(cached) $ECHO_C" >&6
11189 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11190 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
11191 else
11192 # Is the header compilable?
11193 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
11194 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
11195 cat >conftest.$ac_ext <<_ACEOF
11196 /* confdefs.h. */
11197 _ACEOF
11198 cat confdefs.h >>conftest.$ac_ext
11199 cat >>conftest.$ac_ext <<_ACEOF
11200 /* end confdefs.h. */
11201 $ac_includes_default
11202 #include <zlib.h>
11203 _ACEOF
11204 rm -f conftest.$ac_objext
11205 if { (ac_try="$ac_compile"
11206 case "(($ac_try" in
11207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11208 *) ac_try_echo=$ac_try;;
11209 esac
11210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11211 (eval "$ac_compile") 2>conftest.er1
11212 ac_status=$?
11213 grep -v '^ *+' conftest.er1 >conftest.err
11214 rm -f conftest.er1
11215 cat conftest.err >&5
11216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11217 (exit $ac_status); } && {
11218 test -z "$ac_c_werror_flag" ||
11219 test ! -s conftest.err
11220 } && test -s conftest.$ac_objext; then
11221 ac_header_compiler=yes
11222 else
11223 echo "$as_me: failed program was:" >&5
11224 sed 's/^/| /' conftest.$ac_ext >&5
11226 ac_header_compiler=no
11229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11230 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11231 echo "${ECHO_T}$ac_header_compiler" >&6; }
11233 # Is the header present?
11234 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
11235 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
11236 cat >conftest.$ac_ext <<_ACEOF
11237 /* confdefs.h. */
11238 _ACEOF
11239 cat confdefs.h >>conftest.$ac_ext
11240 cat >>conftest.$ac_ext <<_ACEOF
11241 /* end confdefs.h. */
11242 #include <zlib.h>
11243 _ACEOF
11244 if { (ac_try="$ac_cpp conftest.$ac_ext"
11245 case "(($ac_try" in
11246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11247 *) ac_try_echo=$ac_try;;
11248 esac
11249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11251 ac_status=$?
11252 grep -v '^ *+' conftest.er1 >conftest.err
11253 rm -f conftest.er1
11254 cat conftest.err >&5
11255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256 (exit $ac_status); } >/dev/null && {
11257 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11258 test ! -s conftest.err
11259 }; then
11260 ac_header_preproc=yes
11261 else
11262 echo "$as_me: failed program was:" >&5
11263 sed 's/^/| /' conftest.$ac_ext >&5
11265 ac_header_preproc=no
11268 rm -f conftest.err conftest.$ac_ext
11269 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11270 echo "${ECHO_T}$ac_header_preproc" >&6; }
11272 # So? What about this header?
11273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11274 yes:no: )
11275 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11276 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11277 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
11278 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
11279 ac_header_preproc=yes
11281 no:yes:* )
11282 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
11283 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
11284 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
11285 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
11286 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
11287 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
11288 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
11289 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
11290 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
11291 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
11292 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
11293 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
11294 ( cat <<\_ASBOX
11295 ## ---------------------------------------- ##
11296 ## Report this to pgsql-bugs@postgresql.org ##
11297 ## ---------------------------------------- ##
11298 _ASBOX
11299 ) | sed "s/^/$as_me: WARNING: /" >&2
11301 esac
11302 { echo "$as_me:$LINENO: checking for zlib.h" >&5
11303 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
11304 if test "${ac_cv_header_zlib_h+set}" = set; then
11305 echo $ECHO_N "(cached) $ECHO_C" >&6
11306 else
11307 ac_cv_header_zlib_h=$ac_header_preproc
11309 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11310 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
11313 if test $ac_cv_header_zlib_h = yes; then
11315 else
11316 { { echo "$as_me:$LINENO: error: zlib header not found
11317 If you have zlib already installed, see config.log for details on the
11318 failure. It is possible the compiler isn't looking in the proper directory.
11319 Use --without-zlib to disable zlib support." >&5
11320 echo "$as_me: error: zlib header not found
11321 If you have zlib already installed, see config.log for details on the
11322 failure. It is possible the compiler isn't looking in the proper directory.
11323 Use --without-zlib to disable zlib support." >&2;}
11324 { (exit 1); exit 1; }; }
11330 if test "$with_gssapi" = yes ; then
11332 for ac_header in gssapi/gssapi.h
11334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11336 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11339 echo $ECHO_N "(cached) $ECHO_C" >&6
11341 ac_res=`eval echo '${'$as_ac_Header'}'`
11342 { echo "$as_me:$LINENO: result: $ac_res" >&5
11343 echo "${ECHO_T}$ac_res" >&6; }
11344 else
11345 # Is the header compilable?
11346 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11347 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11348 cat >conftest.$ac_ext <<_ACEOF
11349 /* confdefs.h. */
11350 _ACEOF
11351 cat confdefs.h >>conftest.$ac_ext
11352 cat >>conftest.$ac_ext <<_ACEOF
11353 /* end confdefs.h. */
11354 $ac_includes_default
11355 #include <$ac_header>
11356 _ACEOF
11357 rm -f conftest.$ac_objext
11358 if { (ac_try="$ac_compile"
11359 case "(($ac_try" in
11360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11361 *) ac_try_echo=$ac_try;;
11362 esac
11363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11364 (eval "$ac_compile") 2>conftest.er1
11365 ac_status=$?
11366 grep -v '^ *+' conftest.er1 >conftest.err
11367 rm -f conftest.er1
11368 cat conftest.err >&5
11369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370 (exit $ac_status); } && {
11371 test -z "$ac_c_werror_flag" ||
11372 test ! -s conftest.err
11373 } && test -s conftest.$ac_objext; then
11374 ac_header_compiler=yes
11375 else
11376 echo "$as_me: failed program was:" >&5
11377 sed 's/^/| /' conftest.$ac_ext >&5
11379 ac_header_compiler=no
11382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11383 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11384 echo "${ECHO_T}$ac_header_compiler" >&6; }
11386 # Is the header present?
11387 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11388 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11389 cat >conftest.$ac_ext <<_ACEOF
11390 /* confdefs.h. */
11391 _ACEOF
11392 cat confdefs.h >>conftest.$ac_ext
11393 cat >>conftest.$ac_ext <<_ACEOF
11394 /* end confdefs.h. */
11395 #include <$ac_header>
11396 _ACEOF
11397 if { (ac_try="$ac_cpp conftest.$ac_ext"
11398 case "(($ac_try" in
11399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11400 *) ac_try_echo=$ac_try;;
11401 esac
11402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11403 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11404 ac_status=$?
11405 grep -v '^ *+' conftest.er1 >conftest.err
11406 rm -f conftest.er1
11407 cat conftest.err >&5
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); } >/dev/null && {
11410 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11411 test ! -s conftest.err
11412 }; then
11413 ac_header_preproc=yes
11414 else
11415 echo "$as_me: failed program was:" >&5
11416 sed 's/^/| /' conftest.$ac_ext >&5
11418 ac_header_preproc=no
11421 rm -f conftest.err conftest.$ac_ext
11422 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11423 echo "${ECHO_T}$ac_header_preproc" >&6; }
11425 # So? What about this header?
11426 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11427 yes:no: )
11428 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11429 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11431 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11432 ac_header_preproc=yes
11434 no:yes:* )
11435 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11436 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11437 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11438 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11439 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11440 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11441 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11442 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11444 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11445 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11446 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11447 ( cat <<\_ASBOX
11448 ## ---------------------------------------- ##
11449 ## Report this to pgsql-bugs@postgresql.org ##
11450 ## ---------------------------------------- ##
11451 _ASBOX
11452 ) | sed "s/^/$as_me: WARNING: /" >&2
11454 esac
11455 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11458 echo $ECHO_N "(cached) $ECHO_C" >&6
11459 else
11460 eval "$as_ac_Header=\$ac_header_preproc"
11462 ac_res=`eval echo '${'$as_ac_Header'}'`
11463 { echo "$as_me:$LINENO: result: $ac_res" >&5
11464 echo "${ECHO_T}$ac_res" >&6; }
11467 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11468 cat >>confdefs.h <<_ACEOF
11469 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11470 _ACEOF
11472 else
11474 for ac_header in gssapi.h
11476 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11481 echo $ECHO_N "(cached) $ECHO_C" >&6
11483 ac_res=`eval echo '${'$as_ac_Header'}'`
11484 { echo "$as_me:$LINENO: result: $ac_res" >&5
11485 echo "${ECHO_T}$ac_res" >&6; }
11486 else
11487 # Is the header compilable?
11488 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11489 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11490 cat >conftest.$ac_ext <<_ACEOF
11491 /* confdefs.h. */
11492 _ACEOF
11493 cat confdefs.h >>conftest.$ac_ext
11494 cat >>conftest.$ac_ext <<_ACEOF
11495 /* end confdefs.h. */
11496 $ac_includes_default
11497 #include <$ac_header>
11498 _ACEOF
11499 rm -f conftest.$ac_objext
11500 if { (ac_try="$ac_compile"
11501 case "(($ac_try" in
11502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11503 *) ac_try_echo=$ac_try;;
11504 esac
11505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11506 (eval "$ac_compile") 2>conftest.er1
11507 ac_status=$?
11508 grep -v '^ *+' conftest.er1 >conftest.err
11509 rm -f conftest.er1
11510 cat conftest.err >&5
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); } && {
11513 test -z "$ac_c_werror_flag" ||
11514 test ! -s conftest.err
11515 } && test -s conftest.$ac_objext; then
11516 ac_header_compiler=yes
11517 else
11518 echo "$as_me: failed program was:" >&5
11519 sed 's/^/| /' conftest.$ac_ext >&5
11521 ac_header_compiler=no
11524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11525 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11526 echo "${ECHO_T}$ac_header_compiler" >&6; }
11528 # Is the header present?
11529 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11530 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11531 cat >conftest.$ac_ext <<_ACEOF
11532 /* confdefs.h. */
11533 _ACEOF
11534 cat confdefs.h >>conftest.$ac_ext
11535 cat >>conftest.$ac_ext <<_ACEOF
11536 /* end confdefs.h. */
11537 #include <$ac_header>
11538 _ACEOF
11539 if { (ac_try="$ac_cpp conftest.$ac_ext"
11540 case "(($ac_try" in
11541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11542 *) ac_try_echo=$ac_try;;
11543 esac
11544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11546 ac_status=$?
11547 grep -v '^ *+' conftest.er1 >conftest.err
11548 rm -f conftest.er1
11549 cat conftest.err >&5
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); } >/dev/null && {
11552 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11553 test ! -s conftest.err
11554 }; then
11555 ac_header_preproc=yes
11556 else
11557 echo "$as_me: failed program was:" >&5
11558 sed 's/^/| /' conftest.$ac_ext >&5
11560 ac_header_preproc=no
11563 rm -f conftest.err conftest.$ac_ext
11564 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11565 echo "${ECHO_T}$ac_header_preproc" >&6; }
11567 # So? What about this header?
11568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11569 yes:no: )
11570 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11571 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11573 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11574 ac_header_preproc=yes
11576 no:yes:* )
11577 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11578 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11579 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11580 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11581 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11582 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11583 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11584 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11587 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11588 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11589 ( cat <<\_ASBOX
11590 ## ---------------------------------------- ##
11591 ## Report this to pgsql-bugs@postgresql.org ##
11592 ## ---------------------------------------- ##
11593 _ASBOX
11594 ) | sed "s/^/$as_me: WARNING: /" >&2
11596 esac
11597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11600 echo $ECHO_N "(cached) $ECHO_C" >&6
11601 else
11602 eval "$as_ac_Header=\$ac_header_preproc"
11604 ac_res=`eval echo '${'$as_ac_Header'}'`
11605 { echo "$as_me:$LINENO: result: $ac_res" >&5
11606 echo "${ECHO_T}$ac_res" >&6; }
11609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11610 cat >>confdefs.h <<_ACEOF
11611 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11612 _ACEOF
11614 else
11615 { { echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
11616 echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
11617 { (exit 1); exit 1; }; }
11620 done
11624 done
11628 if test "$with_krb5" = yes ; then
11629 if test "${ac_cv_header_krb5_h+set}" = set; then
11630 { echo "$as_me:$LINENO: checking for krb5.h" >&5
11631 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
11632 if test "${ac_cv_header_krb5_h+set}" = set; then
11633 echo $ECHO_N "(cached) $ECHO_C" >&6
11635 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
11636 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
11637 else
11638 # Is the header compilable?
11639 { echo "$as_me:$LINENO: checking krb5.h usability" >&5
11640 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6; }
11641 cat >conftest.$ac_ext <<_ACEOF
11642 /* confdefs.h. */
11643 _ACEOF
11644 cat confdefs.h >>conftest.$ac_ext
11645 cat >>conftest.$ac_ext <<_ACEOF
11646 /* end confdefs.h. */
11647 $ac_includes_default
11648 #include <krb5.h>
11649 _ACEOF
11650 rm -f conftest.$ac_objext
11651 if { (ac_try="$ac_compile"
11652 case "(($ac_try" in
11653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11654 *) ac_try_echo=$ac_try;;
11655 esac
11656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11657 (eval "$ac_compile") 2>conftest.er1
11658 ac_status=$?
11659 grep -v '^ *+' conftest.er1 >conftest.err
11660 rm -f conftest.er1
11661 cat conftest.err >&5
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); } && {
11664 test -z "$ac_c_werror_flag" ||
11665 test ! -s conftest.err
11666 } && test -s conftest.$ac_objext; then
11667 ac_header_compiler=yes
11668 else
11669 echo "$as_me: failed program was:" >&5
11670 sed 's/^/| /' conftest.$ac_ext >&5
11672 ac_header_compiler=no
11675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11676 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11677 echo "${ECHO_T}$ac_header_compiler" >&6; }
11679 # Is the header present?
11680 { echo "$as_me:$LINENO: checking krb5.h presence" >&5
11681 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6; }
11682 cat >conftest.$ac_ext <<_ACEOF
11683 /* confdefs.h. */
11684 _ACEOF
11685 cat confdefs.h >>conftest.$ac_ext
11686 cat >>conftest.$ac_ext <<_ACEOF
11687 /* end confdefs.h. */
11688 #include <krb5.h>
11689 _ACEOF
11690 if { (ac_try="$ac_cpp conftest.$ac_ext"
11691 case "(($ac_try" in
11692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11693 *) ac_try_echo=$ac_try;;
11694 esac
11695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11696 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11697 ac_status=$?
11698 grep -v '^ *+' conftest.er1 >conftest.err
11699 rm -f conftest.er1
11700 cat conftest.err >&5
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); } >/dev/null && {
11703 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11704 test ! -s conftest.err
11705 }; then
11706 ac_header_preproc=yes
11707 else
11708 echo "$as_me: failed program was:" >&5
11709 sed 's/^/| /' conftest.$ac_ext >&5
11711 ac_header_preproc=no
11714 rm -f conftest.err conftest.$ac_ext
11715 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11716 echo "${ECHO_T}$ac_header_preproc" >&6; }
11718 # So? What about this header?
11719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11720 yes:no: )
11721 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
11722 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11723 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
11724 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
11725 ac_header_preproc=yes
11727 no:yes:* )
11728 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
11729 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
11730 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
11731 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
11732 { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
11733 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
11734 { echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
11735 echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
11736 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
11737 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
11738 { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
11739 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
11740 ( cat <<\_ASBOX
11741 ## ---------------------------------------- ##
11742 ## Report this to pgsql-bugs@postgresql.org ##
11743 ## ---------------------------------------- ##
11744 _ASBOX
11745 ) | sed "s/^/$as_me: WARNING: /" >&2
11747 esac
11748 { echo "$as_me:$LINENO: checking for krb5.h" >&5
11749 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
11750 if test "${ac_cv_header_krb5_h+set}" = set; then
11751 echo $ECHO_N "(cached) $ECHO_C" >&6
11752 else
11753 ac_cv_header_krb5_h=$ac_header_preproc
11755 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
11756 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
11759 if test $ac_cv_header_krb5_h = yes; then
11761 else
11762 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
11763 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
11764 { (exit 1); exit 1; }; }
11770 if test "$with_openssl" = yes ; then
11771 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11772 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
11773 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
11774 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11775 echo $ECHO_N "(cached) $ECHO_C" >&6
11777 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
11778 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
11779 else
11780 # Is the header compilable?
11781 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
11782 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
11783 cat >conftest.$ac_ext <<_ACEOF
11784 /* confdefs.h. */
11785 _ACEOF
11786 cat confdefs.h >>conftest.$ac_ext
11787 cat >>conftest.$ac_ext <<_ACEOF
11788 /* end confdefs.h. */
11789 $ac_includes_default
11790 #include <openssl/ssl.h>
11791 _ACEOF
11792 rm -f conftest.$ac_objext
11793 if { (ac_try="$ac_compile"
11794 case "(($ac_try" in
11795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11796 *) ac_try_echo=$ac_try;;
11797 esac
11798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11799 (eval "$ac_compile") 2>conftest.er1
11800 ac_status=$?
11801 grep -v '^ *+' conftest.er1 >conftest.err
11802 rm -f conftest.er1
11803 cat conftest.err >&5
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 (exit $ac_status); } && {
11806 test -z "$ac_c_werror_flag" ||
11807 test ! -s conftest.err
11808 } && test -s conftest.$ac_objext; then
11809 ac_header_compiler=yes
11810 else
11811 echo "$as_me: failed program was:" >&5
11812 sed 's/^/| /' conftest.$ac_ext >&5
11814 ac_header_compiler=no
11817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11818 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11819 echo "${ECHO_T}$ac_header_compiler" >&6; }
11821 # Is the header present?
11822 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
11823 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
11824 cat >conftest.$ac_ext <<_ACEOF
11825 /* confdefs.h. */
11826 _ACEOF
11827 cat confdefs.h >>conftest.$ac_ext
11828 cat >>conftest.$ac_ext <<_ACEOF
11829 /* end confdefs.h. */
11830 #include <openssl/ssl.h>
11831 _ACEOF
11832 if { (ac_try="$ac_cpp conftest.$ac_ext"
11833 case "(($ac_try" in
11834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11835 *) ac_try_echo=$ac_try;;
11836 esac
11837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11839 ac_status=$?
11840 grep -v '^ *+' conftest.er1 >conftest.err
11841 rm -f conftest.er1
11842 cat conftest.err >&5
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 (exit $ac_status); } >/dev/null && {
11845 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11846 test ! -s conftest.err
11847 }; then
11848 ac_header_preproc=yes
11849 else
11850 echo "$as_me: failed program was:" >&5
11851 sed 's/^/| /' conftest.$ac_ext >&5
11853 ac_header_preproc=no
11856 rm -f conftest.err conftest.$ac_ext
11857 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11858 echo "${ECHO_T}$ac_header_preproc" >&6; }
11860 # So? What about this header?
11861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11862 yes:no: )
11863 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
11864 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11865 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
11866 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
11867 ac_header_preproc=yes
11869 no:yes:* )
11870 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
11871 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
11872 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
11873 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
11874 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
11875 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
11876 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
11877 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
11878 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
11879 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
11880 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
11881 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
11882 ( cat <<\_ASBOX
11883 ## ---------------------------------------- ##
11884 ## Report this to pgsql-bugs@postgresql.org ##
11885 ## ---------------------------------------- ##
11886 _ASBOX
11887 ) | sed "s/^/$as_me: WARNING: /" >&2
11889 esac
11890 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
11891 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
11892 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11893 echo $ECHO_N "(cached) $ECHO_C" >&6
11894 else
11895 ac_cv_header_openssl_ssl_h=$ac_header_preproc
11897 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
11898 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
11901 if test $ac_cv_header_openssl_ssl_h = yes; then
11903 else
11904 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
11905 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
11906 { (exit 1); exit 1; }; }
11910 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11911 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
11912 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
11913 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11914 echo $ECHO_N "(cached) $ECHO_C" >&6
11916 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
11917 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
11918 else
11919 # Is the header compilable?
11920 { echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
11921 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6; }
11922 cat >conftest.$ac_ext <<_ACEOF
11923 /* confdefs.h. */
11924 _ACEOF
11925 cat confdefs.h >>conftest.$ac_ext
11926 cat >>conftest.$ac_ext <<_ACEOF
11927 /* end confdefs.h. */
11928 $ac_includes_default
11929 #include <openssl/err.h>
11930 _ACEOF
11931 rm -f conftest.$ac_objext
11932 if { (ac_try="$ac_compile"
11933 case "(($ac_try" in
11934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11935 *) ac_try_echo=$ac_try;;
11936 esac
11937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11938 (eval "$ac_compile") 2>conftest.er1
11939 ac_status=$?
11940 grep -v '^ *+' conftest.er1 >conftest.err
11941 rm -f conftest.er1
11942 cat conftest.err >&5
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); } && {
11945 test -z "$ac_c_werror_flag" ||
11946 test ! -s conftest.err
11947 } && test -s conftest.$ac_objext; then
11948 ac_header_compiler=yes
11949 else
11950 echo "$as_me: failed program was:" >&5
11951 sed 's/^/| /' conftest.$ac_ext >&5
11953 ac_header_compiler=no
11956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11957 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11958 echo "${ECHO_T}$ac_header_compiler" >&6; }
11960 # Is the header present?
11961 { echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
11962 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6; }
11963 cat >conftest.$ac_ext <<_ACEOF
11964 /* confdefs.h. */
11965 _ACEOF
11966 cat confdefs.h >>conftest.$ac_ext
11967 cat >>conftest.$ac_ext <<_ACEOF
11968 /* end confdefs.h. */
11969 #include <openssl/err.h>
11970 _ACEOF
11971 if { (ac_try="$ac_cpp conftest.$ac_ext"
11972 case "(($ac_try" in
11973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11974 *) ac_try_echo=$ac_try;;
11975 esac
11976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11978 ac_status=$?
11979 grep -v '^ *+' conftest.er1 >conftest.err
11980 rm -f conftest.er1
11981 cat conftest.err >&5
11982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983 (exit $ac_status); } >/dev/null && {
11984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11985 test ! -s conftest.err
11986 }; then
11987 ac_header_preproc=yes
11988 else
11989 echo "$as_me: failed program was:" >&5
11990 sed 's/^/| /' conftest.$ac_ext >&5
11992 ac_header_preproc=no
11995 rm -f conftest.err conftest.$ac_ext
11996 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11997 echo "${ECHO_T}$ac_header_preproc" >&6; }
11999 # So? What about this header?
12000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12001 yes:no: )
12002 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
12003 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12004 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
12005 echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
12006 ac_header_preproc=yes
12008 no:yes:* )
12009 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
12010 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
12011 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
12012 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
12013 { echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
12014 echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
12015 { echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
12016 echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
12017 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
12018 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
12019 { echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
12020 echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
12021 ( cat <<\_ASBOX
12022 ## ---------------------------------------- ##
12023 ## Report this to pgsql-bugs@postgresql.org ##
12024 ## ---------------------------------------- ##
12025 _ASBOX
12026 ) | sed "s/^/$as_me: WARNING: /" >&2
12028 esac
12029 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12030 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
12031 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12032 echo $ECHO_N "(cached) $ECHO_C" >&6
12033 else
12034 ac_cv_header_openssl_err_h=$ac_header_preproc
12036 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12037 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
12040 if test $ac_cv_header_openssl_err_h = yes; then
12042 else
12043 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
12044 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
12045 { (exit 1); exit 1; }; }
12050 for ac_func in ERR_set_mark
12052 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12053 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12054 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12055 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12056 echo $ECHO_N "(cached) $ECHO_C" >&6
12057 else
12058 cat >conftest.$ac_ext <<_ACEOF
12059 /* confdefs.h. */
12060 _ACEOF
12061 cat confdefs.h >>conftest.$ac_ext
12062 cat >>conftest.$ac_ext <<_ACEOF
12063 /* end confdefs.h. */
12064 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12066 #define $ac_func innocuous_$ac_func
12068 /* System header to define __stub macros and hopefully few prototypes,
12069 which can conflict with char $ac_func (); below.
12070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12071 <limits.h> exists even on freestanding compilers. */
12073 #ifdef __STDC__
12074 # include <limits.h>
12075 #else
12076 # include <assert.h>
12077 #endif
12079 #undef $ac_func
12081 /* Override any GCC internal prototype to avoid an error.
12082 Use char because int might match the return type of a GCC
12083 builtin and then its argument prototype would still apply. */
12084 #ifdef __cplusplus
12085 extern "C"
12086 #endif
12087 char $ac_func ();
12088 /* The GNU C library defines this for functions which it implements
12089 to always fail with ENOSYS. Some functions are actually named
12090 something starting with __ and the normal name is an alias. */
12091 #if defined __stub_$ac_func || defined __stub___$ac_func
12092 choke me
12093 #endif
12096 main ()
12098 return $ac_func ();
12100 return 0;
12102 _ACEOF
12103 rm -f conftest.$ac_objext conftest$ac_exeext
12104 if { (ac_try="$ac_link"
12105 case "(($ac_try" in
12106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12107 *) ac_try_echo=$ac_try;;
12108 esac
12109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12110 (eval "$ac_link") 2>conftest.er1
12111 ac_status=$?
12112 grep -v '^ *+' conftest.er1 >conftest.err
12113 rm -f conftest.er1
12114 cat conftest.err >&5
12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116 (exit $ac_status); } && {
12117 test -z "$ac_c_werror_flag" ||
12118 test ! -s conftest.err
12119 } && test -s conftest$ac_exeext &&
12120 $as_test_x conftest$ac_exeext; then
12121 eval "$as_ac_var=yes"
12122 else
12123 echo "$as_me: failed program was:" >&5
12124 sed 's/^/| /' conftest.$ac_ext >&5
12126 eval "$as_ac_var=no"
12129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12130 conftest$ac_exeext conftest.$ac_ext
12132 ac_res=`eval echo '${'$as_ac_var'}'`
12133 { echo "$as_me:$LINENO: result: $ac_res" >&5
12134 echo "${ECHO_T}$ac_res" >&6; }
12135 if test `eval echo '${'$as_ac_var'}'` = yes; then
12136 cat >>confdefs.h <<_ACEOF
12137 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12138 _ACEOF
12141 done
12145 if test "$with_pam" = yes ; then
12147 for ac_header in security/pam_appl.h
12149 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12151 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12154 echo $ECHO_N "(cached) $ECHO_C" >&6
12156 ac_res=`eval echo '${'$as_ac_Header'}'`
12157 { echo "$as_me:$LINENO: result: $ac_res" >&5
12158 echo "${ECHO_T}$ac_res" >&6; }
12159 else
12160 # Is the header compilable?
12161 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12162 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12163 cat >conftest.$ac_ext <<_ACEOF
12164 /* confdefs.h. */
12165 _ACEOF
12166 cat confdefs.h >>conftest.$ac_ext
12167 cat >>conftest.$ac_ext <<_ACEOF
12168 /* end confdefs.h. */
12169 $ac_includes_default
12170 #include <$ac_header>
12171 _ACEOF
12172 rm -f conftest.$ac_objext
12173 if { (ac_try="$ac_compile"
12174 case "(($ac_try" in
12175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12176 *) ac_try_echo=$ac_try;;
12177 esac
12178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12179 (eval "$ac_compile") 2>conftest.er1
12180 ac_status=$?
12181 grep -v '^ *+' conftest.er1 >conftest.err
12182 rm -f conftest.er1
12183 cat conftest.err >&5
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); } && {
12186 test -z "$ac_c_werror_flag" ||
12187 test ! -s conftest.err
12188 } && test -s conftest.$ac_objext; then
12189 ac_header_compiler=yes
12190 else
12191 echo "$as_me: failed program was:" >&5
12192 sed 's/^/| /' conftest.$ac_ext >&5
12194 ac_header_compiler=no
12197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12198 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12199 echo "${ECHO_T}$ac_header_compiler" >&6; }
12201 # Is the header present?
12202 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12203 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12204 cat >conftest.$ac_ext <<_ACEOF
12205 /* confdefs.h. */
12206 _ACEOF
12207 cat confdefs.h >>conftest.$ac_ext
12208 cat >>conftest.$ac_ext <<_ACEOF
12209 /* end confdefs.h. */
12210 #include <$ac_header>
12211 _ACEOF
12212 if { (ac_try="$ac_cpp conftest.$ac_ext"
12213 case "(($ac_try" in
12214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12215 *) ac_try_echo=$ac_try;;
12216 esac
12217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12218 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12219 ac_status=$?
12220 grep -v '^ *+' conftest.er1 >conftest.err
12221 rm -f conftest.er1
12222 cat conftest.err >&5
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); } >/dev/null && {
12225 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12226 test ! -s conftest.err
12227 }; then
12228 ac_header_preproc=yes
12229 else
12230 echo "$as_me: failed program was:" >&5
12231 sed 's/^/| /' conftest.$ac_ext >&5
12233 ac_header_preproc=no
12236 rm -f conftest.err conftest.$ac_ext
12237 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12238 echo "${ECHO_T}$ac_header_preproc" >&6; }
12240 # So? What about this header?
12241 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12242 yes:no: )
12243 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12244 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12245 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12246 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12247 ac_header_preproc=yes
12249 no:yes:* )
12250 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12251 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12252 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12253 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12254 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12255 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12256 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12257 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12260 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12261 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12262 ( cat <<\_ASBOX
12263 ## ---------------------------------------- ##
12264 ## Report this to pgsql-bugs@postgresql.org ##
12265 ## ---------------------------------------- ##
12266 _ASBOX
12267 ) | sed "s/^/$as_me: WARNING: /" >&2
12269 esac
12270 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12273 echo $ECHO_N "(cached) $ECHO_C" >&6
12274 else
12275 eval "$as_ac_Header=\$ac_header_preproc"
12277 ac_res=`eval echo '${'$as_ac_Header'}'`
12278 { echo "$as_me:$LINENO: result: $ac_res" >&5
12279 echo "${ECHO_T}$ac_res" >&6; }
12282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12283 cat >>confdefs.h <<_ACEOF
12284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12285 _ACEOF
12287 else
12289 for ac_header in pam/pam_appl.h
12291 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12293 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12296 echo $ECHO_N "(cached) $ECHO_C" >&6
12298 ac_res=`eval echo '${'$as_ac_Header'}'`
12299 { echo "$as_me:$LINENO: result: $ac_res" >&5
12300 echo "${ECHO_T}$ac_res" >&6; }
12301 else
12302 # Is the header compilable?
12303 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12304 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12305 cat >conftest.$ac_ext <<_ACEOF
12306 /* confdefs.h. */
12307 _ACEOF
12308 cat confdefs.h >>conftest.$ac_ext
12309 cat >>conftest.$ac_ext <<_ACEOF
12310 /* end confdefs.h. */
12311 $ac_includes_default
12312 #include <$ac_header>
12313 _ACEOF
12314 rm -f conftest.$ac_objext
12315 if { (ac_try="$ac_compile"
12316 case "(($ac_try" in
12317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12318 *) ac_try_echo=$ac_try;;
12319 esac
12320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12321 (eval "$ac_compile") 2>conftest.er1
12322 ac_status=$?
12323 grep -v '^ *+' conftest.er1 >conftest.err
12324 rm -f conftest.er1
12325 cat conftest.err >&5
12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 (exit $ac_status); } && {
12328 test -z "$ac_c_werror_flag" ||
12329 test ! -s conftest.err
12330 } && test -s conftest.$ac_objext; then
12331 ac_header_compiler=yes
12332 else
12333 echo "$as_me: failed program was:" >&5
12334 sed 's/^/| /' conftest.$ac_ext >&5
12336 ac_header_compiler=no
12339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12340 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12341 echo "${ECHO_T}$ac_header_compiler" >&6; }
12343 # Is the header present?
12344 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12345 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12346 cat >conftest.$ac_ext <<_ACEOF
12347 /* confdefs.h. */
12348 _ACEOF
12349 cat confdefs.h >>conftest.$ac_ext
12350 cat >>conftest.$ac_ext <<_ACEOF
12351 /* end confdefs.h. */
12352 #include <$ac_header>
12353 _ACEOF
12354 if { (ac_try="$ac_cpp conftest.$ac_ext"
12355 case "(($ac_try" in
12356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12357 *) ac_try_echo=$ac_try;;
12358 esac
12359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12360 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12361 ac_status=$?
12362 grep -v '^ *+' conftest.er1 >conftest.err
12363 rm -f conftest.er1
12364 cat conftest.err >&5
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); } >/dev/null && {
12367 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12368 test ! -s conftest.err
12369 }; then
12370 ac_header_preproc=yes
12371 else
12372 echo "$as_me: failed program was:" >&5
12373 sed 's/^/| /' conftest.$ac_ext >&5
12375 ac_header_preproc=no
12378 rm -f conftest.err conftest.$ac_ext
12379 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12380 echo "${ECHO_T}$ac_header_preproc" >&6; }
12382 # So? What about this header?
12383 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12384 yes:no: )
12385 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12386 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12388 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12389 ac_header_preproc=yes
12391 no:yes:* )
12392 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12393 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12394 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12395 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12396 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12397 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12398 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12399 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12401 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12402 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12403 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12404 ( cat <<\_ASBOX
12405 ## ---------------------------------------- ##
12406 ## Report this to pgsql-bugs@postgresql.org ##
12407 ## ---------------------------------------- ##
12408 _ASBOX
12409 ) | sed "s/^/$as_me: WARNING: /" >&2
12411 esac
12412 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12415 echo $ECHO_N "(cached) $ECHO_C" >&6
12416 else
12417 eval "$as_ac_Header=\$ac_header_preproc"
12419 ac_res=`eval echo '${'$as_ac_Header'}'`
12420 { echo "$as_me:$LINENO: result: $ac_res" >&5
12421 echo "${ECHO_T}$ac_res" >&6; }
12424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12425 cat >>confdefs.h <<_ACEOF
12426 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12427 _ACEOF
12429 else
12430 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
12431 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
12432 { (exit 1); exit 1; }; }
12435 done
12439 done
12443 if test "$with_libxml" = yes ; then
12444 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12445 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12446 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
12447 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12448 echo $ECHO_N "(cached) $ECHO_C" >&6
12450 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12451 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
12452 else
12453 # Is the header compilable?
12454 { echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
12455 echo $ECHO_N "checking libxml/parser.h usability... $ECHO_C" >&6; }
12456 cat >conftest.$ac_ext <<_ACEOF
12457 /* confdefs.h. */
12458 _ACEOF
12459 cat confdefs.h >>conftest.$ac_ext
12460 cat >>conftest.$ac_ext <<_ACEOF
12461 /* end confdefs.h. */
12462 $ac_includes_default
12463 #include <libxml/parser.h>
12464 _ACEOF
12465 rm -f conftest.$ac_objext
12466 if { (ac_try="$ac_compile"
12467 case "(($ac_try" in
12468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12469 *) ac_try_echo=$ac_try;;
12470 esac
12471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12472 (eval "$ac_compile") 2>conftest.er1
12473 ac_status=$?
12474 grep -v '^ *+' conftest.er1 >conftest.err
12475 rm -f conftest.er1
12476 cat conftest.err >&5
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); } && {
12479 test -z "$ac_c_werror_flag" ||
12480 test ! -s conftest.err
12481 } && test -s conftest.$ac_objext; then
12482 ac_header_compiler=yes
12483 else
12484 echo "$as_me: failed program was:" >&5
12485 sed 's/^/| /' conftest.$ac_ext >&5
12487 ac_header_compiler=no
12490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12491 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12492 echo "${ECHO_T}$ac_header_compiler" >&6; }
12494 # Is the header present?
12495 { echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
12496 echo $ECHO_N "checking libxml/parser.h presence... $ECHO_C" >&6; }
12497 cat >conftest.$ac_ext <<_ACEOF
12498 /* confdefs.h. */
12499 _ACEOF
12500 cat confdefs.h >>conftest.$ac_ext
12501 cat >>conftest.$ac_ext <<_ACEOF
12502 /* end confdefs.h. */
12503 #include <libxml/parser.h>
12504 _ACEOF
12505 if { (ac_try="$ac_cpp conftest.$ac_ext"
12506 case "(($ac_try" in
12507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12508 *) ac_try_echo=$ac_try;;
12509 esac
12510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12512 ac_status=$?
12513 grep -v '^ *+' conftest.er1 >conftest.err
12514 rm -f conftest.er1
12515 cat conftest.err >&5
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); } >/dev/null && {
12518 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12519 test ! -s conftest.err
12520 }; then
12521 ac_header_preproc=yes
12522 else
12523 echo "$as_me: failed program was:" >&5
12524 sed 's/^/| /' conftest.$ac_ext >&5
12526 ac_header_preproc=no
12529 rm -f conftest.err conftest.$ac_ext
12530 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12531 echo "${ECHO_T}$ac_header_preproc" >&6; }
12533 # So? What about this header?
12534 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12535 yes:no: )
12536 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
12537 echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12538 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
12539 echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
12540 ac_header_preproc=yes
12542 no:yes:* )
12543 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
12544 echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
12545 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
12546 echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
12547 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
12548 echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
12549 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
12550 echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
12551 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
12552 echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
12553 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
12554 echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
12555 ( cat <<\_ASBOX
12556 ## ---------------------------------------- ##
12557 ## Report this to pgsql-bugs@postgresql.org ##
12558 ## ---------------------------------------- ##
12559 _ASBOX
12560 ) | sed "s/^/$as_me: WARNING: /" >&2
12562 esac
12563 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12564 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
12565 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12566 echo $ECHO_N "(cached) $ECHO_C" >&6
12567 else
12568 ac_cv_header_libxml_parser_h=$ac_header_preproc
12570 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12571 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
12574 if test $ac_cv_header_libxml_parser_h = yes; then
12576 else
12577 { { echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
12578 echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
12579 { (exit 1); exit 1; }; }
12585 if test "$with_libxslt" = yes ; then
12586 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12587 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
12588 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
12589 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12590 echo $ECHO_N "(cached) $ECHO_C" >&6
12592 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
12593 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
12594 else
12595 # Is the header compilable?
12596 { echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
12597 echo $ECHO_N "checking libxslt/xslt.h usability... $ECHO_C" >&6; }
12598 cat >conftest.$ac_ext <<_ACEOF
12599 /* confdefs.h. */
12600 _ACEOF
12601 cat confdefs.h >>conftest.$ac_ext
12602 cat >>conftest.$ac_ext <<_ACEOF
12603 /* end confdefs.h. */
12604 $ac_includes_default
12605 #include <libxslt/xslt.h>
12606 _ACEOF
12607 rm -f conftest.$ac_objext
12608 if { (ac_try="$ac_compile"
12609 case "(($ac_try" in
12610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12611 *) ac_try_echo=$ac_try;;
12612 esac
12613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12614 (eval "$ac_compile") 2>conftest.er1
12615 ac_status=$?
12616 grep -v '^ *+' conftest.er1 >conftest.err
12617 rm -f conftest.er1
12618 cat conftest.err >&5
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); } && {
12621 test -z "$ac_c_werror_flag" ||
12622 test ! -s conftest.err
12623 } && test -s conftest.$ac_objext; then
12624 ac_header_compiler=yes
12625 else
12626 echo "$as_me: failed program was:" >&5
12627 sed 's/^/| /' conftest.$ac_ext >&5
12629 ac_header_compiler=no
12632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12633 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12634 echo "${ECHO_T}$ac_header_compiler" >&6; }
12636 # Is the header present?
12637 { echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
12638 echo $ECHO_N "checking libxslt/xslt.h presence... $ECHO_C" >&6; }
12639 cat >conftest.$ac_ext <<_ACEOF
12640 /* confdefs.h. */
12641 _ACEOF
12642 cat confdefs.h >>conftest.$ac_ext
12643 cat >>conftest.$ac_ext <<_ACEOF
12644 /* end confdefs.h. */
12645 #include <libxslt/xslt.h>
12646 _ACEOF
12647 if { (ac_try="$ac_cpp conftest.$ac_ext"
12648 case "(($ac_try" in
12649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12650 *) ac_try_echo=$ac_try;;
12651 esac
12652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12653 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12654 ac_status=$?
12655 grep -v '^ *+' conftest.er1 >conftest.err
12656 rm -f conftest.er1
12657 cat conftest.err >&5
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); } >/dev/null && {
12660 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12661 test ! -s conftest.err
12662 }; then
12663 ac_header_preproc=yes
12664 else
12665 echo "$as_me: failed program was:" >&5
12666 sed 's/^/| /' conftest.$ac_ext >&5
12668 ac_header_preproc=no
12671 rm -f conftest.err conftest.$ac_ext
12672 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12673 echo "${ECHO_T}$ac_header_preproc" >&6; }
12675 # So? What about this header?
12676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12677 yes:no: )
12678 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
12679 echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12680 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
12681 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
12682 ac_header_preproc=yes
12684 no:yes:* )
12685 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
12686 echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
12687 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
12688 echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
12689 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
12690 echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
12691 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
12692 echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
12693 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
12694 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
12695 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
12696 echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
12697 ( cat <<\_ASBOX
12698 ## ---------------------------------------- ##
12699 ## Report this to pgsql-bugs@postgresql.org ##
12700 ## ---------------------------------------- ##
12701 _ASBOX
12702 ) | sed "s/^/$as_me: WARNING: /" >&2
12704 esac
12705 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
12706 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
12707 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12708 echo $ECHO_N "(cached) $ECHO_C" >&6
12709 else
12710 ac_cv_header_libxslt_xslt_h=$ac_header_preproc
12712 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
12713 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
12716 if test $ac_cv_header_libxslt_xslt_h = yes; then
12718 else
12719 { { echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
12720 echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
12721 { (exit 1); exit 1; }; }
12727 if test "$with_ldap" = yes ; then
12728 if test "$PORTNAME" != "win32"; then
12730 for ac_header in ldap.h
12732 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12734 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12737 echo $ECHO_N "(cached) $ECHO_C" >&6
12739 ac_res=`eval echo '${'$as_ac_Header'}'`
12740 { echo "$as_me:$LINENO: result: $ac_res" >&5
12741 echo "${ECHO_T}$ac_res" >&6; }
12742 else
12743 # Is the header compilable?
12744 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12745 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12746 cat >conftest.$ac_ext <<_ACEOF
12747 /* confdefs.h. */
12748 _ACEOF
12749 cat confdefs.h >>conftest.$ac_ext
12750 cat >>conftest.$ac_ext <<_ACEOF
12751 /* end confdefs.h. */
12752 $ac_includes_default
12753 #include <$ac_header>
12754 _ACEOF
12755 rm -f conftest.$ac_objext
12756 if { (ac_try="$ac_compile"
12757 case "(($ac_try" in
12758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12759 *) ac_try_echo=$ac_try;;
12760 esac
12761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12762 (eval "$ac_compile") 2>conftest.er1
12763 ac_status=$?
12764 grep -v '^ *+' conftest.er1 >conftest.err
12765 rm -f conftest.er1
12766 cat conftest.err >&5
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); } && {
12769 test -z "$ac_c_werror_flag" ||
12770 test ! -s conftest.err
12771 } && test -s conftest.$ac_objext; then
12772 ac_header_compiler=yes
12773 else
12774 echo "$as_me: failed program was:" >&5
12775 sed 's/^/| /' conftest.$ac_ext >&5
12777 ac_header_compiler=no
12780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12781 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12782 echo "${ECHO_T}$ac_header_compiler" >&6; }
12784 # Is the header present?
12785 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12786 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12787 cat >conftest.$ac_ext <<_ACEOF
12788 /* confdefs.h. */
12789 _ACEOF
12790 cat confdefs.h >>conftest.$ac_ext
12791 cat >>conftest.$ac_ext <<_ACEOF
12792 /* end confdefs.h. */
12793 #include <$ac_header>
12794 _ACEOF
12795 if { (ac_try="$ac_cpp conftest.$ac_ext"
12796 case "(($ac_try" in
12797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12798 *) ac_try_echo=$ac_try;;
12799 esac
12800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12801 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12802 ac_status=$?
12803 grep -v '^ *+' conftest.er1 >conftest.err
12804 rm -f conftest.er1
12805 cat conftest.err >&5
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); } >/dev/null && {
12808 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12809 test ! -s conftest.err
12810 }; then
12811 ac_header_preproc=yes
12812 else
12813 echo "$as_me: failed program was:" >&5
12814 sed 's/^/| /' conftest.$ac_ext >&5
12816 ac_header_preproc=no
12819 rm -f conftest.err conftest.$ac_ext
12820 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12821 echo "${ECHO_T}$ac_header_preproc" >&6; }
12823 # So? What about this header?
12824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12825 yes:no: )
12826 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12827 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12829 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12830 ac_header_preproc=yes
12832 no:yes:* )
12833 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12834 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12835 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12836 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12837 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12838 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12839 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12840 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12842 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12843 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12844 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12845 ( cat <<\_ASBOX
12846 ## ---------------------------------------- ##
12847 ## Report this to pgsql-bugs@postgresql.org ##
12848 ## ---------------------------------------- ##
12849 _ASBOX
12850 ) | sed "s/^/$as_me: WARNING: /" >&2
12852 esac
12853 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12856 echo $ECHO_N "(cached) $ECHO_C" >&6
12857 else
12858 eval "$as_ac_Header=\$ac_header_preproc"
12860 ac_res=`eval echo '${'$as_ac_Header'}'`
12861 { echo "$as_me:$LINENO: result: $ac_res" >&5
12862 echo "${ECHO_T}$ac_res" >&6; }
12865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12866 cat >>confdefs.h <<_ACEOF
12867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12868 _ACEOF
12870 else
12871 { { echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
12872 echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
12873 { (exit 1); exit 1; }; }
12876 done
12878 else
12880 for ac_header in winldap.h
12882 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12883 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12886 echo $ECHO_N "(cached) $ECHO_C" >&6
12887 else
12888 cat >conftest.$ac_ext <<_ACEOF
12889 /* confdefs.h. */
12890 _ACEOF
12891 cat confdefs.h >>conftest.$ac_ext
12892 cat >>conftest.$ac_ext <<_ACEOF
12893 /* end confdefs.h. */
12894 $ac_includes_default
12895 #include <windows.h>
12898 #include <$ac_header>
12899 _ACEOF
12900 rm -f conftest.$ac_objext
12901 if { (ac_try="$ac_compile"
12902 case "(($ac_try" in
12903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12904 *) ac_try_echo=$ac_try;;
12905 esac
12906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12907 (eval "$ac_compile") 2>conftest.er1
12908 ac_status=$?
12909 grep -v '^ *+' conftest.er1 >conftest.err
12910 rm -f conftest.er1
12911 cat conftest.err >&5
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); } && {
12914 test -z "$ac_c_werror_flag" ||
12915 test ! -s conftest.err
12916 } && test -s conftest.$ac_objext; then
12917 eval "$as_ac_Header=yes"
12918 else
12919 echo "$as_me: failed program was:" >&5
12920 sed 's/^/| /' conftest.$ac_ext >&5
12922 eval "$as_ac_Header=no"
12925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12927 ac_res=`eval echo '${'$as_ac_Header'}'`
12928 { echo "$as_me:$LINENO: result: $ac_res" >&5
12929 echo "${ECHO_T}$ac_res" >&6; }
12930 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12931 cat >>confdefs.h <<_ACEOF
12932 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12933 _ACEOF
12935 else
12936 { { echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
12937 echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
12938 { (exit 1); exit 1; }; }
12941 done
12946 if test "$with_bonjour" = yes ; then
12947 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12948 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
12949 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
12950 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12951 echo $ECHO_N "(cached) $ECHO_C" >&6
12953 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
12954 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
12955 else
12956 # Is the header compilable?
12957 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
12958 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6; }
12959 cat >conftest.$ac_ext <<_ACEOF
12960 /* confdefs.h. */
12961 _ACEOF
12962 cat confdefs.h >>conftest.$ac_ext
12963 cat >>conftest.$ac_ext <<_ACEOF
12964 /* end confdefs.h. */
12965 $ac_includes_default
12966 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
12967 _ACEOF
12968 rm -f conftest.$ac_objext
12969 if { (ac_try="$ac_compile"
12970 case "(($ac_try" in
12971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12972 *) ac_try_echo=$ac_try;;
12973 esac
12974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12975 (eval "$ac_compile") 2>conftest.er1
12976 ac_status=$?
12977 grep -v '^ *+' conftest.er1 >conftest.err
12978 rm -f conftest.er1
12979 cat conftest.err >&5
12980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981 (exit $ac_status); } && {
12982 test -z "$ac_c_werror_flag" ||
12983 test ! -s conftest.err
12984 } && test -s conftest.$ac_objext; then
12985 ac_header_compiler=yes
12986 else
12987 echo "$as_me: failed program was:" >&5
12988 sed 's/^/| /' conftest.$ac_ext >&5
12990 ac_header_compiler=no
12993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12994 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12995 echo "${ECHO_T}$ac_header_compiler" >&6; }
12997 # Is the header present?
12998 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
12999 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6; }
13000 cat >conftest.$ac_ext <<_ACEOF
13001 /* confdefs.h. */
13002 _ACEOF
13003 cat confdefs.h >>conftest.$ac_ext
13004 cat >>conftest.$ac_ext <<_ACEOF
13005 /* end confdefs.h. */
13006 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
13007 _ACEOF
13008 if { (ac_try="$ac_cpp conftest.$ac_ext"
13009 case "(($ac_try" in
13010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13011 *) ac_try_echo=$ac_try;;
13012 esac
13013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13014 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13015 ac_status=$?
13016 grep -v '^ *+' conftest.er1 >conftest.err
13017 rm -f conftest.er1
13018 cat conftest.err >&5
13019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 (exit $ac_status); } >/dev/null && {
13021 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13022 test ! -s conftest.err
13023 }; then
13024 ac_header_preproc=yes
13025 else
13026 echo "$as_me: failed program was:" >&5
13027 sed 's/^/| /' conftest.$ac_ext >&5
13029 ac_header_preproc=no
13032 rm -f conftest.err conftest.$ac_ext
13033 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13034 echo "${ECHO_T}$ac_header_preproc" >&6; }
13036 # So? What about this header?
13037 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13038 yes:no: )
13039 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
13040 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13041 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
13042 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
13043 ac_header_preproc=yes
13045 no:yes:* )
13046 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
13047 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
13048 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
13049 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
13050 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
13051 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
13052 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&5
13053 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&2;}
13054 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
13055 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
13056 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
13057 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
13058 ( cat <<\_ASBOX
13059 ## ---------------------------------------- ##
13060 ## Report this to pgsql-bugs@postgresql.org ##
13061 ## ---------------------------------------- ##
13062 _ASBOX
13063 ) | sed "s/^/$as_me: WARNING: /" >&2
13065 esac
13066 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
13067 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
13068 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
13069 echo $ECHO_N "(cached) $ECHO_C" >&6
13070 else
13071 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
13073 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
13074 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
13077 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
13079 else
13080 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
13081 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
13082 { (exit 1); exit 1; }; }
13088 # for contrib/uuid-ossp
13089 if test "$with_ossp_uuid" = yes ; then
13091 for ac_header in ossp/uuid.h
13093 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13095 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13098 echo $ECHO_N "(cached) $ECHO_C" >&6
13100 ac_res=`eval echo '${'$as_ac_Header'}'`
13101 { echo "$as_me:$LINENO: result: $ac_res" >&5
13102 echo "${ECHO_T}$ac_res" >&6; }
13103 else
13104 # Is the header compilable?
13105 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13106 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13107 cat >conftest.$ac_ext <<_ACEOF
13108 /* confdefs.h. */
13109 _ACEOF
13110 cat confdefs.h >>conftest.$ac_ext
13111 cat >>conftest.$ac_ext <<_ACEOF
13112 /* end confdefs.h. */
13113 $ac_includes_default
13114 #include <$ac_header>
13115 _ACEOF
13116 rm -f conftest.$ac_objext
13117 if { (ac_try="$ac_compile"
13118 case "(($ac_try" in
13119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13120 *) ac_try_echo=$ac_try;;
13121 esac
13122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13123 (eval "$ac_compile") 2>conftest.er1
13124 ac_status=$?
13125 grep -v '^ *+' conftest.er1 >conftest.err
13126 rm -f conftest.er1
13127 cat conftest.err >&5
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); } && {
13130 test -z "$ac_c_werror_flag" ||
13131 test ! -s conftest.err
13132 } && test -s conftest.$ac_objext; then
13133 ac_header_compiler=yes
13134 else
13135 echo "$as_me: failed program was:" >&5
13136 sed 's/^/| /' conftest.$ac_ext >&5
13138 ac_header_compiler=no
13141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13142 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13143 echo "${ECHO_T}$ac_header_compiler" >&6; }
13145 # Is the header present?
13146 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13147 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13148 cat >conftest.$ac_ext <<_ACEOF
13149 /* confdefs.h. */
13150 _ACEOF
13151 cat confdefs.h >>conftest.$ac_ext
13152 cat >>conftest.$ac_ext <<_ACEOF
13153 /* end confdefs.h. */
13154 #include <$ac_header>
13155 _ACEOF
13156 if { (ac_try="$ac_cpp conftest.$ac_ext"
13157 case "(($ac_try" in
13158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13159 *) ac_try_echo=$ac_try;;
13160 esac
13161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13162 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13163 ac_status=$?
13164 grep -v '^ *+' conftest.er1 >conftest.err
13165 rm -f conftest.er1
13166 cat conftest.err >&5
13167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168 (exit $ac_status); } >/dev/null && {
13169 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13170 test ! -s conftest.err
13171 }; then
13172 ac_header_preproc=yes
13173 else
13174 echo "$as_me: failed program was:" >&5
13175 sed 's/^/| /' conftest.$ac_ext >&5
13177 ac_header_preproc=no
13180 rm -f conftest.err conftest.$ac_ext
13181 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13182 echo "${ECHO_T}$ac_header_preproc" >&6; }
13184 # So? What about this header?
13185 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13186 yes:no: )
13187 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13188 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13190 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13191 ac_header_preproc=yes
13193 no:yes:* )
13194 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13195 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13196 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13197 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13198 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13199 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13200 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13201 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13203 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13204 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13205 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13206 ( cat <<\_ASBOX
13207 ## ---------------------------------------- ##
13208 ## Report this to pgsql-bugs@postgresql.org ##
13209 ## ---------------------------------------- ##
13210 _ASBOX
13211 ) | sed "s/^/$as_me: WARNING: /" >&2
13213 esac
13214 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13217 echo $ECHO_N "(cached) $ECHO_C" >&6
13218 else
13219 eval "$as_ac_Header=\$ac_header_preproc"
13221 ac_res=`eval echo '${'$as_ac_Header'}'`
13222 { echo "$as_me:$LINENO: result: $ac_res" >&5
13223 echo "${ECHO_T}$ac_res" >&6; }
13226 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13227 cat >>confdefs.h <<_ACEOF
13228 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13229 _ACEOF
13231 else
13234 for ac_header in uuid.h
13236 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13238 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13241 echo $ECHO_N "(cached) $ECHO_C" >&6
13243 ac_res=`eval echo '${'$as_ac_Header'}'`
13244 { echo "$as_me:$LINENO: result: $ac_res" >&5
13245 echo "${ECHO_T}$ac_res" >&6; }
13246 else
13247 # Is the header compilable?
13248 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13249 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13250 cat >conftest.$ac_ext <<_ACEOF
13251 /* confdefs.h. */
13252 _ACEOF
13253 cat confdefs.h >>conftest.$ac_ext
13254 cat >>conftest.$ac_ext <<_ACEOF
13255 /* end confdefs.h. */
13256 $ac_includes_default
13257 #include <$ac_header>
13258 _ACEOF
13259 rm -f conftest.$ac_objext
13260 if { (ac_try="$ac_compile"
13261 case "(($ac_try" in
13262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13263 *) ac_try_echo=$ac_try;;
13264 esac
13265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13266 (eval "$ac_compile") 2>conftest.er1
13267 ac_status=$?
13268 grep -v '^ *+' conftest.er1 >conftest.err
13269 rm -f conftest.er1
13270 cat conftest.err >&5
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); } && {
13273 test -z "$ac_c_werror_flag" ||
13274 test ! -s conftest.err
13275 } && test -s conftest.$ac_objext; then
13276 ac_header_compiler=yes
13277 else
13278 echo "$as_me: failed program was:" >&5
13279 sed 's/^/| /' conftest.$ac_ext >&5
13281 ac_header_compiler=no
13284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13285 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13286 echo "${ECHO_T}$ac_header_compiler" >&6; }
13288 # Is the header present?
13289 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13290 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13291 cat >conftest.$ac_ext <<_ACEOF
13292 /* confdefs.h. */
13293 _ACEOF
13294 cat confdefs.h >>conftest.$ac_ext
13295 cat >>conftest.$ac_ext <<_ACEOF
13296 /* end confdefs.h. */
13297 #include <$ac_header>
13298 _ACEOF
13299 if { (ac_try="$ac_cpp conftest.$ac_ext"
13300 case "(($ac_try" in
13301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13302 *) ac_try_echo=$ac_try;;
13303 esac
13304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13306 ac_status=$?
13307 grep -v '^ *+' conftest.er1 >conftest.err
13308 rm -f conftest.er1
13309 cat conftest.err >&5
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); } >/dev/null && {
13312 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13313 test ! -s conftest.err
13314 }; then
13315 ac_header_preproc=yes
13316 else
13317 echo "$as_me: failed program was:" >&5
13318 sed 's/^/| /' conftest.$ac_ext >&5
13320 ac_header_preproc=no
13323 rm -f conftest.err conftest.$ac_ext
13324 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13325 echo "${ECHO_T}$ac_header_preproc" >&6; }
13327 # So? What about this header?
13328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13329 yes:no: )
13330 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13331 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13333 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13334 ac_header_preproc=yes
13336 no:yes:* )
13337 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13338 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13339 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13340 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13341 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13342 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13343 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13344 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13346 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13347 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13348 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13349 ( cat <<\_ASBOX
13350 ## ---------------------------------------- ##
13351 ## Report this to pgsql-bugs@postgresql.org ##
13352 ## ---------------------------------------- ##
13353 _ASBOX
13354 ) | sed "s/^/$as_me: WARNING: /" >&2
13356 esac
13357 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13360 echo $ECHO_N "(cached) $ECHO_C" >&6
13361 else
13362 eval "$as_ac_Header=\$ac_header_preproc"
13364 ac_res=`eval echo '${'$as_ac_Header'}'`
13365 { echo "$as_me:$LINENO: result: $ac_res" >&5
13366 echo "${ECHO_T}$ac_res" >&6; }
13369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13370 cat >>confdefs.h <<_ACEOF
13371 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13372 _ACEOF
13374 else
13375 { { echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
13376 echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
13377 { (exit 1); exit 1; }; }
13380 done
13384 done
13390 ## Types, structures, compiler characteristics
13393 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13394 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
13395 if test "${ac_cv_c_bigendian+set}" = set; then
13396 echo $ECHO_N "(cached) $ECHO_C" >&6
13397 else
13398 # See if sys/param.h defines the BYTE_ORDER macro.
13399 cat >conftest.$ac_ext <<_ACEOF
13400 /* confdefs.h. */
13401 _ACEOF
13402 cat confdefs.h >>conftest.$ac_ext
13403 cat >>conftest.$ac_ext <<_ACEOF
13404 /* end confdefs.h. */
13405 #include <sys/types.h>
13406 #include <sys/param.h>
13409 main ()
13411 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
13412 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
13413 bogus endian macros
13414 #endif
13417 return 0;
13419 _ACEOF
13420 rm -f conftest.$ac_objext
13421 if { (ac_try="$ac_compile"
13422 case "(($ac_try" in
13423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13424 *) ac_try_echo=$ac_try;;
13425 esac
13426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13427 (eval "$ac_compile") 2>conftest.er1
13428 ac_status=$?
13429 grep -v '^ *+' conftest.er1 >conftest.err
13430 rm -f conftest.er1
13431 cat conftest.err >&5
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 (exit $ac_status); } && {
13434 test -z "$ac_c_werror_flag" ||
13435 test ! -s conftest.err
13436 } && test -s conftest.$ac_objext; then
13437 # It does; now see whether it defined to BIG_ENDIAN or not.
13438 cat >conftest.$ac_ext <<_ACEOF
13439 /* confdefs.h. */
13440 _ACEOF
13441 cat confdefs.h >>conftest.$ac_ext
13442 cat >>conftest.$ac_ext <<_ACEOF
13443 /* end confdefs.h. */
13444 #include <sys/types.h>
13445 #include <sys/param.h>
13448 main ()
13450 #if BYTE_ORDER != BIG_ENDIAN
13451 not big endian
13452 #endif
13455 return 0;
13457 _ACEOF
13458 rm -f conftest.$ac_objext
13459 if { (ac_try="$ac_compile"
13460 case "(($ac_try" in
13461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13462 *) ac_try_echo=$ac_try;;
13463 esac
13464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13465 (eval "$ac_compile") 2>conftest.er1
13466 ac_status=$?
13467 grep -v '^ *+' conftest.er1 >conftest.err
13468 rm -f conftest.er1
13469 cat conftest.err >&5
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); } && {
13472 test -z "$ac_c_werror_flag" ||
13473 test ! -s conftest.err
13474 } && test -s conftest.$ac_objext; then
13475 ac_cv_c_bigendian=yes
13476 else
13477 echo "$as_me: failed program was:" >&5
13478 sed 's/^/| /' conftest.$ac_ext >&5
13480 ac_cv_c_bigendian=no
13483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13484 else
13485 echo "$as_me: failed program was:" >&5
13486 sed 's/^/| /' conftest.$ac_ext >&5
13488 # It does not; compile a test program.
13489 if test "$cross_compiling" = yes; then
13490 # try to guess the endianness by grepping values into an object file
13491 ac_cv_c_bigendian=unknown
13492 cat >conftest.$ac_ext <<_ACEOF
13493 /* confdefs.h. */
13494 _ACEOF
13495 cat confdefs.h >>conftest.$ac_ext
13496 cat >>conftest.$ac_ext <<_ACEOF
13497 /* end confdefs.h. */
13498 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13499 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13500 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
13501 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13502 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13503 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
13505 main ()
13507 _ascii (); _ebcdic ();
13509 return 0;
13511 _ACEOF
13512 rm -f conftest.$ac_objext
13513 if { (ac_try="$ac_compile"
13514 case "(($ac_try" in
13515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13516 *) ac_try_echo=$ac_try;;
13517 esac
13518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13519 (eval "$ac_compile") 2>conftest.er1
13520 ac_status=$?
13521 grep -v '^ *+' conftest.er1 >conftest.err
13522 rm -f conftest.er1
13523 cat conftest.err >&5
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); } && {
13526 test -z "$ac_c_werror_flag" ||
13527 test ! -s conftest.err
13528 } && test -s conftest.$ac_objext; then
13529 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
13530 ac_cv_c_bigendian=yes
13532 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13533 if test "$ac_cv_c_bigendian" = unknown; then
13534 ac_cv_c_bigendian=no
13535 else
13536 # finding both strings is unlikely to happen, but who knows?
13537 ac_cv_c_bigendian=unknown
13540 else
13541 echo "$as_me: failed program was:" >&5
13542 sed 's/^/| /' conftest.$ac_ext >&5
13547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13548 else
13549 cat >conftest.$ac_ext <<_ACEOF
13550 /* confdefs.h. */
13551 _ACEOF
13552 cat confdefs.h >>conftest.$ac_ext
13553 cat >>conftest.$ac_ext <<_ACEOF
13554 /* end confdefs.h. */
13555 $ac_includes_default
13557 main ()
13560 /* Are we little or big endian? From Harbison&Steele. */
13561 union
13563 long int l;
13564 char c[sizeof (long int)];
13565 } u;
13566 u.l = 1;
13567 return u.c[sizeof (long int) - 1] == 1;
13570 return 0;
13572 _ACEOF
13573 rm -f conftest$ac_exeext
13574 if { (ac_try="$ac_link"
13575 case "(($ac_try" in
13576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13577 *) ac_try_echo=$ac_try;;
13578 esac
13579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13580 (eval "$ac_link") 2>&5
13581 ac_status=$?
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13584 { (case "(($ac_try" in
13585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13586 *) ac_try_echo=$ac_try;;
13587 esac
13588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13589 (eval "$ac_try") 2>&5
13590 ac_status=$?
13591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592 (exit $ac_status); }; }; then
13593 ac_cv_c_bigendian=no
13594 else
13595 echo "$as_me: program exited with status $ac_status" >&5
13596 echo "$as_me: failed program was:" >&5
13597 sed 's/^/| /' conftest.$ac_ext >&5
13599 ( exit $ac_status )
13600 ac_cv_c_bigendian=yes
13602 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13610 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13611 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
13612 case $ac_cv_c_bigendian in
13613 yes)
13615 cat >>confdefs.h <<\_ACEOF
13616 #define WORDS_BIGENDIAN 1
13617 _ACEOF
13622 { { echo "$as_me:$LINENO: error: unknown endianness
13623 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
13624 echo "$as_me: error: unknown endianness
13625 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
13626 { (exit 1); exit 1; }; } ;;
13627 esac
13629 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13630 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
13631 if test "${ac_cv_c_const+set}" = set; then
13632 echo $ECHO_N "(cached) $ECHO_C" >&6
13633 else
13634 cat >conftest.$ac_ext <<_ACEOF
13635 /* confdefs.h. */
13636 _ACEOF
13637 cat confdefs.h >>conftest.$ac_ext
13638 cat >>conftest.$ac_ext <<_ACEOF
13639 /* end confdefs.h. */
13642 main ()
13644 /* FIXME: Include the comments suggested by Paul. */
13645 #ifndef __cplusplus
13646 /* Ultrix mips cc rejects this. */
13647 typedef int charset[2];
13648 const charset cs;
13649 /* SunOS 4.1.1 cc rejects this. */
13650 char const *const *pcpcc;
13651 char **ppc;
13652 /* NEC SVR4.0.2 mips cc rejects this. */
13653 struct point {int x, y;};
13654 static struct point const zero = {0,0};
13655 /* AIX XL C 1.02.0.0 rejects this.
13656 It does not let you subtract one const X* pointer from another in
13657 an arm of an if-expression whose if-part is not a constant
13658 expression */
13659 const char *g = "string";
13660 pcpcc = &g + (g ? g-g : 0);
13661 /* HPUX 7.0 cc rejects these. */
13662 ++pcpcc;
13663 ppc = (char**) pcpcc;
13664 pcpcc = (char const *const *) ppc;
13665 { /* SCO 3.2v4 cc rejects this. */
13666 char *t;
13667 char const *s = 0 ? (char *) 0 : (char const *) 0;
13669 *t++ = 0;
13670 if (s) return 0;
13672 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13673 int x[] = {25, 17};
13674 const int *foo = &x[0];
13675 ++foo;
13677 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13678 typedef const int *iptr;
13679 iptr p = 0;
13680 ++p;
13682 { /* AIX XL C 1.02.0.0 rejects this saying
13683 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13684 struct s { int j; const int *ap[3]; };
13685 struct s *b; b->j = 5;
13687 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13688 const int foo = 10;
13689 if (!foo) return 0;
13691 return !cs[0] && !zero.x;
13692 #endif
13695 return 0;
13697 _ACEOF
13698 rm -f conftest.$ac_objext
13699 if { (ac_try="$ac_compile"
13700 case "(($ac_try" in
13701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13702 *) ac_try_echo=$ac_try;;
13703 esac
13704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13705 (eval "$ac_compile") 2>conftest.er1
13706 ac_status=$?
13707 grep -v '^ *+' conftest.er1 >conftest.err
13708 rm -f conftest.er1
13709 cat conftest.err >&5
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711 (exit $ac_status); } && {
13712 test -z "$ac_c_werror_flag" ||
13713 test ! -s conftest.err
13714 } && test -s conftest.$ac_objext; then
13715 ac_cv_c_const=yes
13716 else
13717 echo "$as_me: failed program was:" >&5
13718 sed 's/^/| /' conftest.$ac_ext >&5
13720 ac_cv_c_const=no
13723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13725 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13726 echo "${ECHO_T}$ac_cv_c_const" >&6; }
13727 if test $ac_cv_c_const = no; then
13729 cat >>confdefs.h <<\_ACEOF
13730 #define const
13731 _ACEOF
13735 { echo "$as_me:$LINENO: checking for inline" >&5
13736 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
13737 if test "${ac_cv_c_inline+set}" = set; then
13738 echo $ECHO_N "(cached) $ECHO_C" >&6
13739 else
13740 ac_cv_c_inline=no
13741 for ac_kw in inline __inline__ __inline; do
13742 cat >conftest.$ac_ext <<_ACEOF
13743 /* confdefs.h. */
13744 _ACEOF
13745 cat confdefs.h >>conftest.$ac_ext
13746 cat >>conftest.$ac_ext <<_ACEOF
13747 /* end confdefs.h. */
13748 #ifndef __cplusplus
13749 typedef int foo_t;
13750 static $ac_kw foo_t static_foo () {return 0; }
13751 $ac_kw foo_t foo () {return 0; }
13752 #endif
13754 _ACEOF
13755 rm -f conftest.$ac_objext
13756 if { (ac_try="$ac_compile"
13757 case "(($ac_try" in
13758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13759 *) ac_try_echo=$ac_try;;
13760 esac
13761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13762 (eval "$ac_compile") 2>conftest.er1
13763 ac_status=$?
13764 grep -v '^ *+' conftest.er1 >conftest.err
13765 rm -f conftest.er1
13766 cat conftest.err >&5
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); } && {
13769 test -z "$ac_c_werror_flag" ||
13770 test ! -s conftest.err
13771 } && test -s conftest.$ac_objext; then
13772 ac_cv_c_inline=$ac_kw
13773 else
13774 echo "$as_me: failed program was:" >&5
13775 sed 's/^/| /' conftest.$ac_ext >&5
13780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13781 test "$ac_cv_c_inline" != no && break
13782 done
13785 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13786 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
13789 case $ac_cv_c_inline in
13790 inline | yes) ;;
13792 case $ac_cv_c_inline in
13793 no) ac_val=;;
13794 *) ac_val=$ac_cv_c_inline;;
13795 esac
13796 cat >>confdefs.h <<_ACEOF
13797 #ifndef __cplusplus
13798 #define inline $ac_val
13799 #endif
13800 _ACEOF
13802 esac
13804 { echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
13805 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6; }
13806 if test "${ac_cv_c_stringize+set}" = set; then
13807 echo $ECHO_N "(cached) $ECHO_C" >&6
13808 else
13809 cat >conftest.$ac_ext <<_ACEOF
13810 /* confdefs.h. */
13811 _ACEOF
13812 cat confdefs.h >>conftest.$ac_ext
13813 cat >>conftest.$ac_ext <<_ACEOF
13814 /* end confdefs.h. */
13815 #define x(y) #y
13817 char *s = x(teststring);
13818 _ACEOF
13819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13820 $EGREP "#teststring" >/dev/null 2>&1; then
13821 ac_cv_c_stringize=no
13822 else
13823 ac_cv_c_stringize=yes
13825 rm -f conftest*
13828 { echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
13829 echo "${ECHO_T}$ac_cv_c_stringize" >&6; }
13830 if test $ac_cv_c_stringize = yes; then
13832 cat >>confdefs.h <<\_ACEOF
13833 #define HAVE_STRINGIZE 1
13834 _ACEOF
13838 { echo "$as_me:$LINENO: checking for signed types" >&5
13839 echo $ECHO_N "checking for signed types... $ECHO_C" >&6; }
13840 if test "${pgac_cv_c_signed+set}" = set; then
13841 echo $ECHO_N "(cached) $ECHO_C" >&6
13842 else
13843 cat >conftest.$ac_ext <<_ACEOF
13844 /* confdefs.h. */
13845 _ACEOF
13846 cat confdefs.h >>conftest.$ac_ext
13847 cat >>conftest.$ac_ext <<_ACEOF
13848 /* end confdefs.h. */
13851 main ()
13853 signed char c; signed short s; signed int i;
13855 return 0;
13857 _ACEOF
13858 rm -f conftest.$ac_objext
13859 if { (ac_try="$ac_compile"
13860 case "(($ac_try" in
13861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13862 *) ac_try_echo=$ac_try;;
13863 esac
13864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13865 (eval "$ac_compile") 2>conftest.er1
13866 ac_status=$?
13867 grep -v '^ *+' conftest.er1 >conftest.err
13868 rm -f conftest.er1
13869 cat conftest.err >&5
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); } && {
13872 test -z "$ac_c_werror_flag" ||
13873 test ! -s conftest.err
13874 } && test -s conftest.$ac_objext; then
13875 pgac_cv_c_signed=yes
13876 else
13877 echo "$as_me: failed program was:" >&5
13878 sed 's/^/| /' conftest.$ac_ext >&5
13880 pgac_cv_c_signed=no
13883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13885 { echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
13886 echo "${ECHO_T}$pgac_cv_c_signed" >&6; }
13887 if test x"$pgac_cv_c_signed" = xno ; then
13889 cat >>confdefs.h <<\_ACEOF
13890 #define signed
13891 _ACEOF
13894 { echo "$as_me:$LINENO: checking for working volatile" >&5
13895 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
13896 if test "${ac_cv_c_volatile+set}" = set; then
13897 echo $ECHO_N "(cached) $ECHO_C" >&6
13898 else
13899 cat >conftest.$ac_ext <<_ACEOF
13900 /* confdefs.h. */
13901 _ACEOF
13902 cat confdefs.h >>conftest.$ac_ext
13903 cat >>conftest.$ac_ext <<_ACEOF
13904 /* end confdefs.h. */
13907 main ()
13910 volatile int x;
13911 int * volatile y = (int *) 0;
13912 return !x && !y;
13914 return 0;
13916 _ACEOF
13917 rm -f conftest.$ac_objext
13918 if { (ac_try="$ac_compile"
13919 case "(($ac_try" in
13920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13921 *) ac_try_echo=$ac_try;;
13922 esac
13923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13924 (eval "$ac_compile") 2>conftest.er1
13925 ac_status=$?
13926 grep -v '^ *+' conftest.er1 >conftest.err
13927 rm -f conftest.er1
13928 cat conftest.err >&5
13929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13930 (exit $ac_status); } && {
13931 test -z "$ac_c_werror_flag" ||
13932 test ! -s conftest.err
13933 } && test -s conftest.$ac_objext; then
13934 ac_cv_c_volatile=yes
13935 else
13936 echo "$as_me: failed program was:" >&5
13937 sed 's/^/| /' conftest.$ac_ext >&5
13939 ac_cv_c_volatile=no
13942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13944 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
13945 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
13946 if test $ac_cv_c_volatile = no; then
13948 cat >>confdefs.h <<\_ACEOF
13949 #define volatile
13950 _ACEOF
13954 { echo "$as_me:$LINENO: checking for __func__" >&5
13955 echo $ECHO_N "checking for __func__... $ECHO_C" >&6; }
13956 if test "${pgac_cv_funcname_func_support+set}" = set; then
13957 echo $ECHO_N "(cached) $ECHO_C" >&6
13958 else
13959 cat >conftest.$ac_ext <<_ACEOF
13960 /* confdefs.h. */
13961 _ACEOF
13962 cat confdefs.h >>conftest.$ac_ext
13963 cat >>conftest.$ac_ext <<_ACEOF
13964 /* end confdefs.h. */
13965 #include <stdio.h>
13967 main ()
13969 printf("%s\n", __func__);
13971 return 0;
13973 _ACEOF
13974 rm -f conftest.$ac_objext
13975 if { (ac_try="$ac_compile"
13976 case "(($ac_try" in
13977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13978 *) ac_try_echo=$ac_try;;
13979 esac
13980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13981 (eval "$ac_compile") 2>conftest.er1
13982 ac_status=$?
13983 grep -v '^ *+' conftest.er1 >conftest.err
13984 rm -f conftest.er1
13985 cat conftest.err >&5
13986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987 (exit $ac_status); } && {
13988 test -z "$ac_c_werror_flag" ||
13989 test ! -s conftest.err
13990 } && test -s conftest.$ac_objext; then
13991 pgac_cv_funcname_func_support=yes
13992 else
13993 echo "$as_me: failed program was:" >&5
13994 sed 's/^/| /' conftest.$ac_ext >&5
13996 pgac_cv_funcname_func_support=no
13999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14001 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
14002 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6; }
14003 if test x"$pgac_cv_funcname_func_support" = xyes ; then
14005 cat >>confdefs.h <<\_ACEOF
14006 #define HAVE_FUNCNAME__FUNC 1
14007 _ACEOF
14009 else
14010 { echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
14011 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6; }
14012 if test "${pgac_cv_funcname_function_support+set}" = set; then
14013 echo $ECHO_N "(cached) $ECHO_C" >&6
14014 else
14015 cat >conftest.$ac_ext <<_ACEOF
14016 /* confdefs.h. */
14017 _ACEOF
14018 cat confdefs.h >>conftest.$ac_ext
14019 cat >>conftest.$ac_ext <<_ACEOF
14020 /* end confdefs.h. */
14021 #include <stdio.h>
14023 main ()
14025 printf("%s\n", __FUNCTION__);
14027 return 0;
14029 _ACEOF
14030 rm -f conftest.$ac_objext
14031 if { (ac_try="$ac_compile"
14032 case "(($ac_try" in
14033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14034 *) ac_try_echo=$ac_try;;
14035 esac
14036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14037 (eval "$ac_compile") 2>conftest.er1
14038 ac_status=$?
14039 grep -v '^ *+' conftest.er1 >conftest.err
14040 rm -f conftest.er1
14041 cat conftest.err >&5
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); } && {
14044 test -z "$ac_c_werror_flag" ||
14045 test ! -s conftest.err
14046 } && test -s conftest.$ac_objext; then
14047 pgac_cv_funcname_function_support=yes
14048 else
14049 echo "$as_me: failed program was:" >&5
14050 sed 's/^/| /' conftest.$ac_ext >&5
14052 pgac_cv_funcname_function_support=no
14055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14057 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
14058 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6; }
14059 if test x"$pgac_cv_funcname_function_support" = xyes ; then
14061 cat >>confdefs.h <<\_ACEOF
14062 #define HAVE_FUNCNAME__FUNCTION 1
14063 _ACEOF
14067 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14068 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
14069 if test "${ac_cv_struct_tm+set}" = set; then
14070 echo $ECHO_N "(cached) $ECHO_C" >&6
14071 else
14072 cat >conftest.$ac_ext <<_ACEOF
14073 /* confdefs.h. */
14074 _ACEOF
14075 cat confdefs.h >>conftest.$ac_ext
14076 cat >>conftest.$ac_ext <<_ACEOF
14077 /* end confdefs.h. */
14078 #include <sys/types.h>
14079 #include <time.h>
14082 main ()
14084 struct tm tm;
14085 int *p = &tm.tm_sec;
14086 return !p;
14088 return 0;
14090 _ACEOF
14091 rm -f conftest.$ac_objext
14092 if { (ac_try="$ac_compile"
14093 case "(($ac_try" in
14094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14095 *) ac_try_echo=$ac_try;;
14096 esac
14097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14098 (eval "$ac_compile") 2>conftest.er1
14099 ac_status=$?
14100 grep -v '^ *+' conftest.er1 >conftest.err
14101 rm -f conftest.er1
14102 cat conftest.err >&5
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); } && {
14105 test -z "$ac_c_werror_flag" ||
14106 test ! -s conftest.err
14107 } && test -s conftest.$ac_objext; then
14108 ac_cv_struct_tm=time.h
14109 else
14110 echo "$as_me: failed program was:" >&5
14111 sed 's/^/| /' conftest.$ac_ext >&5
14113 ac_cv_struct_tm=sys/time.h
14116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14118 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14119 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
14120 if test $ac_cv_struct_tm = sys/time.h; then
14122 cat >>confdefs.h <<\_ACEOF
14123 #define TM_IN_SYS_TIME 1
14124 _ACEOF
14128 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
14129 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
14130 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
14131 echo $ECHO_N "(cached) $ECHO_C" >&6
14132 else
14133 cat >conftest.$ac_ext <<_ACEOF
14134 /* confdefs.h. */
14135 _ACEOF
14136 cat confdefs.h >>conftest.$ac_ext
14137 cat >>conftest.$ac_ext <<_ACEOF
14138 /* end confdefs.h. */
14139 #include <sys/types.h>
14140 #include <$ac_cv_struct_tm>
14144 main ()
14146 static struct tm ac_aggr;
14147 if (ac_aggr.tm_zone)
14148 return 0;
14150 return 0;
14152 _ACEOF
14153 rm -f conftest.$ac_objext
14154 if { (ac_try="$ac_compile"
14155 case "(($ac_try" in
14156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14157 *) ac_try_echo=$ac_try;;
14158 esac
14159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14160 (eval "$ac_compile") 2>conftest.er1
14161 ac_status=$?
14162 grep -v '^ *+' conftest.er1 >conftest.err
14163 rm -f conftest.er1
14164 cat conftest.err >&5
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); } && {
14167 test -z "$ac_c_werror_flag" ||
14168 test ! -s conftest.err
14169 } && test -s conftest.$ac_objext; then
14170 ac_cv_member_struct_tm_tm_zone=yes
14171 else
14172 echo "$as_me: failed program was:" >&5
14173 sed 's/^/| /' conftest.$ac_ext >&5
14175 cat >conftest.$ac_ext <<_ACEOF
14176 /* confdefs.h. */
14177 _ACEOF
14178 cat confdefs.h >>conftest.$ac_ext
14179 cat >>conftest.$ac_ext <<_ACEOF
14180 /* end confdefs.h. */
14181 #include <sys/types.h>
14182 #include <$ac_cv_struct_tm>
14186 main ()
14188 static struct tm ac_aggr;
14189 if (sizeof ac_aggr.tm_zone)
14190 return 0;
14192 return 0;
14194 _ACEOF
14195 rm -f conftest.$ac_objext
14196 if { (ac_try="$ac_compile"
14197 case "(($ac_try" in
14198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14199 *) ac_try_echo=$ac_try;;
14200 esac
14201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14202 (eval "$ac_compile") 2>conftest.er1
14203 ac_status=$?
14204 grep -v '^ *+' conftest.er1 >conftest.err
14205 rm -f conftest.er1
14206 cat conftest.err >&5
14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208 (exit $ac_status); } && {
14209 test -z "$ac_c_werror_flag" ||
14210 test ! -s conftest.err
14211 } && test -s conftest.$ac_objext; then
14212 ac_cv_member_struct_tm_tm_zone=yes
14213 else
14214 echo "$as_me: failed program was:" >&5
14215 sed 's/^/| /' conftest.$ac_ext >&5
14217 ac_cv_member_struct_tm_tm_zone=no
14220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14225 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
14226 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
14227 if test $ac_cv_member_struct_tm_tm_zone = yes; then
14229 cat >>confdefs.h <<_ACEOF
14230 #define HAVE_STRUCT_TM_TM_ZONE 1
14231 _ACEOF
14236 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
14238 cat >>confdefs.h <<\_ACEOF
14239 #define HAVE_TM_ZONE 1
14240 _ACEOF
14243 { echo "$as_me:$LINENO: checking for tzname" >&5
14244 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
14245 if test "${ac_cv_var_tzname+set}" = set; then
14246 echo $ECHO_N "(cached) $ECHO_C" >&6
14247 else
14248 cat >conftest.$ac_ext <<_ACEOF
14249 /* confdefs.h. */
14250 _ACEOF
14251 cat confdefs.h >>conftest.$ac_ext
14252 cat >>conftest.$ac_ext <<_ACEOF
14253 /* end confdefs.h. */
14254 #include <time.h>
14255 #ifndef tzname /* For SGI. */
14256 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
14257 #endif
14260 main ()
14262 atoi(*tzname);
14264 return 0;
14266 _ACEOF
14267 rm -f conftest.$ac_objext conftest$ac_exeext
14268 if { (ac_try="$ac_link"
14269 case "(($ac_try" in
14270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14271 *) ac_try_echo=$ac_try;;
14272 esac
14273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14274 (eval "$ac_link") 2>conftest.er1
14275 ac_status=$?
14276 grep -v '^ *+' conftest.er1 >conftest.err
14277 rm -f conftest.er1
14278 cat conftest.err >&5
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); } && {
14281 test -z "$ac_c_werror_flag" ||
14282 test ! -s conftest.err
14283 } && test -s conftest$ac_exeext &&
14284 $as_test_x conftest$ac_exeext; then
14285 ac_cv_var_tzname=yes
14286 else
14287 echo "$as_me: failed program was:" >&5
14288 sed 's/^/| /' conftest.$ac_ext >&5
14290 ac_cv_var_tzname=no
14293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14294 conftest$ac_exeext conftest.$ac_ext
14296 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
14297 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
14298 if test $ac_cv_var_tzname = yes; then
14300 cat >>confdefs.h <<\_ACEOF
14301 #define HAVE_TZNAME 1
14302 _ACEOF
14306 { echo "$as_me:$LINENO: checking for union semun" >&5
14307 echo $ECHO_N "checking for union semun... $ECHO_C" >&6; }
14308 if test "${ac_cv_type_union_semun+set}" = set; then
14309 echo $ECHO_N "(cached) $ECHO_C" >&6
14310 else
14311 cat >conftest.$ac_ext <<_ACEOF
14312 /* confdefs.h. */
14313 _ACEOF
14314 cat confdefs.h >>conftest.$ac_ext
14315 cat >>conftest.$ac_ext <<_ACEOF
14316 /* end confdefs.h. */
14317 #include <sys/types.h>
14318 #include <sys/ipc.h>
14319 #include <sys/sem.h>
14321 typedef union semun ac__type_new_;
14323 main ()
14325 if ((ac__type_new_ *) 0)
14326 return 0;
14327 if (sizeof (ac__type_new_))
14328 return 0;
14330 return 0;
14332 _ACEOF
14333 rm -f conftest.$ac_objext
14334 if { (ac_try="$ac_compile"
14335 case "(($ac_try" in
14336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14337 *) ac_try_echo=$ac_try;;
14338 esac
14339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14340 (eval "$ac_compile") 2>conftest.er1
14341 ac_status=$?
14342 grep -v '^ *+' conftest.er1 >conftest.err
14343 rm -f conftest.er1
14344 cat conftest.err >&5
14345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346 (exit $ac_status); } && {
14347 test -z "$ac_c_werror_flag" ||
14348 test ! -s conftest.err
14349 } && test -s conftest.$ac_objext; then
14350 ac_cv_type_union_semun=yes
14351 else
14352 echo "$as_me: failed program was:" >&5
14353 sed 's/^/| /' conftest.$ac_ext >&5
14355 ac_cv_type_union_semun=no
14358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14360 { echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
14361 echo "${ECHO_T}$ac_cv_type_union_semun" >&6; }
14362 if test $ac_cv_type_union_semun = yes; then
14364 cat >>confdefs.h <<_ACEOF
14365 #define HAVE_UNION_SEMUN 1
14366 _ACEOF
14371 { echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
14372 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6; }
14373 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
14374 echo $ECHO_N "(cached) $ECHO_C" >&6
14375 else
14376 cat >conftest.$ac_ext <<_ACEOF
14377 /* confdefs.h. */
14378 _ACEOF
14379 cat confdefs.h >>conftest.$ac_ext
14380 cat >>conftest.$ac_ext <<_ACEOF
14381 /* end confdefs.h. */
14382 #include <sys/types.h>
14383 #ifdef HAVE_SYS_UN_H
14384 #include <sys/un.h>
14385 #endif
14388 typedef struct sockaddr_un ac__type_new_;
14390 main ()
14392 if ((ac__type_new_ *) 0)
14393 return 0;
14394 if (sizeof (ac__type_new_))
14395 return 0;
14397 return 0;
14399 _ACEOF
14400 rm -f conftest.$ac_objext
14401 if { (ac_try="$ac_compile"
14402 case "(($ac_try" in
14403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14404 *) ac_try_echo=$ac_try;;
14405 esac
14406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14407 (eval "$ac_compile") 2>conftest.er1
14408 ac_status=$?
14409 grep -v '^ *+' conftest.er1 >conftest.err
14410 rm -f conftest.er1
14411 cat conftest.err >&5
14412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413 (exit $ac_status); } && {
14414 test -z "$ac_c_werror_flag" ||
14415 test ! -s conftest.err
14416 } && test -s conftest.$ac_objext; then
14417 ac_cv_type_struct_sockaddr_un=yes
14418 else
14419 echo "$as_me: failed program was:" >&5
14420 sed 's/^/| /' conftest.$ac_ext >&5
14422 ac_cv_type_struct_sockaddr_un=no
14425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14427 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
14428 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6; }
14429 if test $ac_cv_type_struct_sockaddr_un = yes; then
14431 cat >>confdefs.h <<_ACEOF
14432 #define HAVE_STRUCT_SOCKADDR_UN 1
14433 _ACEOF
14436 cat >>confdefs.h <<\_ACEOF
14437 #define HAVE_UNIX_SOCKETS 1
14438 _ACEOF
14442 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
14443 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
14444 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
14445 echo $ECHO_N "(cached) $ECHO_C" >&6
14446 else
14447 cat >conftest.$ac_ext <<_ACEOF
14448 /* confdefs.h. */
14449 _ACEOF
14450 cat confdefs.h >>conftest.$ac_ext
14451 cat >>conftest.$ac_ext <<_ACEOF
14452 /* end confdefs.h. */
14453 #include <sys/types.h>
14454 #ifdef HAVE_SYS_SOCKET_H
14455 #include <sys/socket.h>
14456 #endif
14459 typedef struct sockaddr_storage ac__type_new_;
14461 main ()
14463 if ((ac__type_new_ *) 0)
14464 return 0;
14465 if (sizeof (ac__type_new_))
14466 return 0;
14468 return 0;
14470 _ACEOF
14471 rm -f conftest.$ac_objext
14472 if { (ac_try="$ac_compile"
14473 case "(($ac_try" in
14474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14475 *) ac_try_echo=$ac_try;;
14476 esac
14477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14478 (eval "$ac_compile") 2>conftest.er1
14479 ac_status=$?
14480 grep -v '^ *+' conftest.er1 >conftest.err
14481 rm -f conftest.er1
14482 cat conftest.err >&5
14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); } && {
14485 test -z "$ac_c_werror_flag" ||
14486 test ! -s conftest.err
14487 } && test -s conftest.$ac_objext; then
14488 ac_cv_type_struct_sockaddr_storage=yes
14489 else
14490 echo "$as_me: failed program was:" >&5
14491 sed 's/^/| /' conftest.$ac_ext >&5
14493 ac_cv_type_struct_sockaddr_storage=no
14496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14498 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
14499 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
14500 if test $ac_cv_type_struct_sockaddr_storage = yes; then
14502 cat >>confdefs.h <<_ACEOF
14503 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
14504 _ACEOF
14509 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
14510 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6; }
14511 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
14512 echo $ECHO_N "(cached) $ECHO_C" >&6
14513 else
14514 cat >conftest.$ac_ext <<_ACEOF
14515 /* confdefs.h. */
14516 _ACEOF
14517 cat confdefs.h >>conftest.$ac_ext
14518 cat >>conftest.$ac_ext <<_ACEOF
14519 /* end confdefs.h. */
14520 #include <sys/types.h>
14521 #ifdef HAVE_SYS_SOCKET_H
14522 #include <sys/socket.h>
14523 #endif
14527 main ()
14529 static struct sockaddr_storage ac_aggr;
14530 if (ac_aggr.ss_family)
14531 return 0;
14533 return 0;
14535 _ACEOF
14536 rm -f conftest.$ac_objext
14537 if { (ac_try="$ac_compile"
14538 case "(($ac_try" in
14539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14540 *) ac_try_echo=$ac_try;;
14541 esac
14542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14543 (eval "$ac_compile") 2>conftest.er1
14544 ac_status=$?
14545 grep -v '^ *+' conftest.er1 >conftest.err
14546 rm -f conftest.er1
14547 cat conftest.err >&5
14548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549 (exit $ac_status); } && {
14550 test -z "$ac_c_werror_flag" ||
14551 test ! -s conftest.err
14552 } && test -s conftest.$ac_objext; then
14553 ac_cv_member_struct_sockaddr_storage_ss_family=yes
14554 else
14555 echo "$as_me: failed program was:" >&5
14556 sed 's/^/| /' conftest.$ac_ext >&5
14558 cat >conftest.$ac_ext <<_ACEOF
14559 /* confdefs.h. */
14560 _ACEOF
14561 cat confdefs.h >>conftest.$ac_ext
14562 cat >>conftest.$ac_ext <<_ACEOF
14563 /* end confdefs.h. */
14564 #include <sys/types.h>
14565 #ifdef HAVE_SYS_SOCKET_H
14566 #include <sys/socket.h>
14567 #endif
14571 main ()
14573 static struct sockaddr_storage ac_aggr;
14574 if (sizeof ac_aggr.ss_family)
14575 return 0;
14577 return 0;
14579 _ACEOF
14580 rm -f conftest.$ac_objext
14581 if { (ac_try="$ac_compile"
14582 case "(($ac_try" in
14583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14584 *) ac_try_echo=$ac_try;;
14585 esac
14586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14587 (eval "$ac_compile") 2>conftest.er1
14588 ac_status=$?
14589 grep -v '^ *+' conftest.er1 >conftest.err
14590 rm -f conftest.er1
14591 cat conftest.err >&5
14592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593 (exit $ac_status); } && {
14594 test -z "$ac_c_werror_flag" ||
14595 test ! -s conftest.err
14596 } && test -s conftest.$ac_objext; then
14597 ac_cv_member_struct_sockaddr_storage_ss_family=yes
14598 else
14599 echo "$as_me: failed program was:" >&5
14600 sed 's/^/| /' conftest.$ac_ext >&5
14602 ac_cv_member_struct_sockaddr_storage_ss_family=no
14605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14610 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
14611 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
14612 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
14614 cat >>confdefs.h <<_ACEOF
14615 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
14616 _ACEOF
14620 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
14621 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6; }
14622 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
14623 echo $ECHO_N "(cached) $ECHO_C" >&6
14624 else
14625 cat >conftest.$ac_ext <<_ACEOF
14626 /* confdefs.h. */
14627 _ACEOF
14628 cat confdefs.h >>conftest.$ac_ext
14629 cat >>conftest.$ac_ext <<_ACEOF
14630 /* end confdefs.h. */
14631 #include <sys/types.h>
14632 #ifdef HAVE_SYS_SOCKET_H
14633 #include <sys/socket.h>
14634 #endif
14638 main ()
14640 static struct sockaddr_storage ac_aggr;
14641 if (ac_aggr.__ss_family)
14642 return 0;
14644 return 0;
14646 _ACEOF
14647 rm -f conftest.$ac_objext
14648 if { (ac_try="$ac_compile"
14649 case "(($ac_try" in
14650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14651 *) ac_try_echo=$ac_try;;
14652 esac
14653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14654 (eval "$ac_compile") 2>conftest.er1
14655 ac_status=$?
14656 grep -v '^ *+' conftest.er1 >conftest.err
14657 rm -f conftest.er1
14658 cat conftest.err >&5
14659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660 (exit $ac_status); } && {
14661 test -z "$ac_c_werror_flag" ||
14662 test ! -s conftest.err
14663 } && test -s conftest.$ac_objext; then
14664 ac_cv_member_struct_sockaddr_storage___ss_family=yes
14665 else
14666 echo "$as_me: failed program was:" >&5
14667 sed 's/^/| /' conftest.$ac_ext >&5
14669 cat >conftest.$ac_ext <<_ACEOF
14670 /* confdefs.h. */
14671 _ACEOF
14672 cat confdefs.h >>conftest.$ac_ext
14673 cat >>conftest.$ac_ext <<_ACEOF
14674 /* end confdefs.h. */
14675 #include <sys/types.h>
14676 #ifdef HAVE_SYS_SOCKET_H
14677 #include <sys/socket.h>
14678 #endif
14682 main ()
14684 static struct sockaddr_storage ac_aggr;
14685 if (sizeof ac_aggr.__ss_family)
14686 return 0;
14688 return 0;
14690 _ACEOF
14691 rm -f conftest.$ac_objext
14692 if { (ac_try="$ac_compile"
14693 case "(($ac_try" in
14694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14695 *) ac_try_echo=$ac_try;;
14696 esac
14697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14698 (eval "$ac_compile") 2>conftest.er1
14699 ac_status=$?
14700 grep -v '^ *+' conftest.er1 >conftest.err
14701 rm -f conftest.er1
14702 cat conftest.err >&5
14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); } && {
14705 test -z "$ac_c_werror_flag" ||
14706 test ! -s conftest.err
14707 } && test -s conftest.$ac_objext; then
14708 ac_cv_member_struct_sockaddr_storage___ss_family=yes
14709 else
14710 echo "$as_me: failed program was:" >&5
14711 sed 's/^/| /' conftest.$ac_ext >&5
14713 ac_cv_member_struct_sockaddr_storage___ss_family=no
14716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14721 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
14722 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
14723 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
14725 cat >>confdefs.h <<_ACEOF
14726 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
14727 _ACEOF
14731 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
14732 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6; }
14733 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
14734 echo $ECHO_N "(cached) $ECHO_C" >&6
14735 else
14736 cat >conftest.$ac_ext <<_ACEOF
14737 /* confdefs.h. */
14738 _ACEOF
14739 cat confdefs.h >>conftest.$ac_ext
14740 cat >>conftest.$ac_ext <<_ACEOF
14741 /* end confdefs.h. */
14742 #include <sys/types.h>
14743 #ifdef HAVE_SYS_SOCKET_H
14744 #include <sys/socket.h>
14745 #endif
14749 main ()
14751 static struct sockaddr_storage ac_aggr;
14752 if (ac_aggr.ss_len)
14753 return 0;
14755 return 0;
14757 _ACEOF
14758 rm -f conftest.$ac_objext
14759 if { (ac_try="$ac_compile"
14760 case "(($ac_try" in
14761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14762 *) ac_try_echo=$ac_try;;
14763 esac
14764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14765 (eval "$ac_compile") 2>conftest.er1
14766 ac_status=$?
14767 grep -v '^ *+' conftest.er1 >conftest.err
14768 rm -f conftest.er1
14769 cat conftest.err >&5
14770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771 (exit $ac_status); } && {
14772 test -z "$ac_c_werror_flag" ||
14773 test ! -s conftest.err
14774 } && test -s conftest.$ac_objext; then
14775 ac_cv_member_struct_sockaddr_storage_ss_len=yes
14776 else
14777 echo "$as_me: failed program was:" >&5
14778 sed 's/^/| /' conftest.$ac_ext >&5
14780 cat >conftest.$ac_ext <<_ACEOF
14781 /* confdefs.h. */
14782 _ACEOF
14783 cat confdefs.h >>conftest.$ac_ext
14784 cat >>conftest.$ac_ext <<_ACEOF
14785 /* end confdefs.h. */
14786 #include <sys/types.h>
14787 #ifdef HAVE_SYS_SOCKET_H
14788 #include <sys/socket.h>
14789 #endif
14793 main ()
14795 static struct sockaddr_storage ac_aggr;
14796 if (sizeof ac_aggr.ss_len)
14797 return 0;
14799 return 0;
14801 _ACEOF
14802 rm -f conftest.$ac_objext
14803 if { (ac_try="$ac_compile"
14804 case "(($ac_try" in
14805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14806 *) ac_try_echo=$ac_try;;
14807 esac
14808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14809 (eval "$ac_compile") 2>conftest.er1
14810 ac_status=$?
14811 grep -v '^ *+' conftest.er1 >conftest.err
14812 rm -f conftest.er1
14813 cat conftest.err >&5
14814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815 (exit $ac_status); } && {
14816 test -z "$ac_c_werror_flag" ||
14817 test ! -s conftest.err
14818 } && test -s conftest.$ac_objext; then
14819 ac_cv_member_struct_sockaddr_storage_ss_len=yes
14820 else
14821 echo "$as_me: failed program was:" >&5
14822 sed 's/^/| /' conftest.$ac_ext >&5
14824 ac_cv_member_struct_sockaddr_storage_ss_len=no
14827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14832 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
14833 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
14834 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
14836 cat >>confdefs.h <<_ACEOF
14837 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
14838 _ACEOF
14842 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
14843 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6; }
14844 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
14845 echo $ECHO_N "(cached) $ECHO_C" >&6
14846 else
14847 cat >conftest.$ac_ext <<_ACEOF
14848 /* confdefs.h. */
14849 _ACEOF
14850 cat confdefs.h >>conftest.$ac_ext
14851 cat >>conftest.$ac_ext <<_ACEOF
14852 /* end confdefs.h. */
14853 #include <sys/types.h>
14854 #ifdef HAVE_SYS_SOCKET_H
14855 #include <sys/socket.h>
14856 #endif
14860 main ()
14862 static struct sockaddr_storage ac_aggr;
14863 if (ac_aggr.__ss_len)
14864 return 0;
14866 return 0;
14868 _ACEOF
14869 rm -f conftest.$ac_objext
14870 if { (ac_try="$ac_compile"
14871 case "(($ac_try" in
14872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14873 *) ac_try_echo=$ac_try;;
14874 esac
14875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14876 (eval "$ac_compile") 2>conftest.er1
14877 ac_status=$?
14878 grep -v '^ *+' conftest.er1 >conftest.err
14879 rm -f conftest.er1
14880 cat conftest.err >&5
14881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882 (exit $ac_status); } && {
14883 test -z "$ac_c_werror_flag" ||
14884 test ! -s conftest.err
14885 } && test -s conftest.$ac_objext; then
14886 ac_cv_member_struct_sockaddr_storage___ss_len=yes
14887 else
14888 echo "$as_me: failed program was:" >&5
14889 sed 's/^/| /' conftest.$ac_ext >&5
14891 cat >conftest.$ac_ext <<_ACEOF
14892 /* confdefs.h. */
14893 _ACEOF
14894 cat confdefs.h >>conftest.$ac_ext
14895 cat >>conftest.$ac_ext <<_ACEOF
14896 /* end confdefs.h. */
14897 #include <sys/types.h>
14898 #ifdef HAVE_SYS_SOCKET_H
14899 #include <sys/socket.h>
14900 #endif
14904 main ()
14906 static struct sockaddr_storage ac_aggr;
14907 if (sizeof ac_aggr.__ss_len)
14908 return 0;
14910 return 0;
14912 _ACEOF
14913 rm -f conftest.$ac_objext
14914 if { (ac_try="$ac_compile"
14915 case "(($ac_try" in
14916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14917 *) ac_try_echo=$ac_try;;
14918 esac
14919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14920 (eval "$ac_compile") 2>conftest.er1
14921 ac_status=$?
14922 grep -v '^ *+' conftest.er1 >conftest.err
14923 rm -f conftest.er1
14924 cat conftest.err >&5
14925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926 (exit $ac_status); } && {
14927 test -z "$ac_c_werror_flag" ||
14928 test ! -s conftest.err
14929 } && test -s conftest.$ac_objext; then
14930 ac_cv_member_struct_sockaddr_storage___ss_len=yes
14931 else
14932 echo "$as_me: failed program was:" >&5
14933 sed 's/^/| /' conftest.$ac_ext >&5
14935 ac_cv_member_struct_sockaddr_storage___ss_len=no
14938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14943 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
14944 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
14945 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
14947 cat >>confdefs.h <<_ACEOF
14948 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
14949 _ACEOF
14953 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14954 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14955 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14956 echo $ECHO_N "(cached) $ECHO_C" >&6
14957 else
14958 cat >conftest.$ac_ext <<_ACEOF
14959 /* confdefs.h. */
14960 _ACEOF
14961 cat confdefs.h >>conftest.$ac_ext
14962 cat >>conftest.$ac_ext <<_ACEOF
14963 /* end confdefs.h. */
14964 #include <sys/types.h>
14965 #ifdef HAVE_SYS_SOCKET_H
14966 #include <sys/socket.h>
14967 #endif
14971 main ()
14973 static struct sockaddr ac_aggr;
14974 if (ac_aggr.sa_len)
14975 return 0;
14977 return 0;
14979 _ACEOF
14980 rm -f conftest.$ac_objext
14981 if { (ac_try="$ac_compile"
14982 case "(($ac_try" in
14983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14984 *) ac_try_echo=$ac_try;;
14985 esac
14986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14987 (eval "$ac_compile") 2>conftest.er1
14988 ac_status=$?
14989 grep -v '^ *+' conftest.er1 >conftest.err
14990 rm -f conftest.er1
14991 cat conftest.err >&5
14992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993 (exit $ac_status); } && {
14994 test -z "$ac_c_werror_flag" ||
14995 test ! -s conftest.err
14996 } && test -s conftest.$ac_objext; then
14997 ac_cv_member_struct_sockaddr_sa_len=yes
14998 else
14999 echo "$as_me: failed program was:" >&5
15000 sed 's/^/| /' conftest.$ac_ext >&5
15002 cat >conftest.$ac_ext <<_ACEOF
15003 /* confdefs.h. */
15004 _ACEOF
15005 cat confdefs.h >>conftest.$ac_ext
15006 cat >>conftest.$ac_ext <<_ACEOF
15007 /* end confdefs.h. */
15008 #include <sys/types.h>
15009 #ifdef HAVE_SYS_SOCKET_H
15010 #include <sys/socket.h>
15011 #endif
15015 main ()
15017 static struct sockaddr ac_aggr;
15018 if (sizeof ac_aggr.sa_len)
15019 return 0;
15021 return 0;
15023 _ACEOF
15024 rm -f conftest.$ac_objext
15025 if { (ac_try="$ac_compile"
15026 case "(($ac_try" in
15027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15028 *) ac_try_echo=$ac_try;;
15029 esac
15030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15031 (eval "$ac_compile") 2>conftest.er1
15032 ac_status=$?
15033 grep -v '^ *+' conftest.er1 >conftest.err
15034 rm -f conftest.er1
15035 cat conftest.err >&5
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); } && {
15038 test -z "$ac_c_werror_flag" ||
15039 test ! -s conftest.err
15040 } && test -s conftest.$ac_objext; then
15041 ac_cv_member_struct_sockaddr_sa_len=yes
15042 else
15043 echo "$as_me: failed program was:" >&5
15044 sed 's/^/| /' conftest.$ac_ext >&5
15046 ac_cv_member_struct_sockaddr_sa_len=no
15049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15054 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
15055 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
15056 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
15058 cat >>confdefs.h <<_ACEOF
15059 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
15060 _ACEOF
15065 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
15066 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
15067 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
15068 echo $ECHO_N "(cached) $ECHO_C" >&6
15069 else
15070 cat >conftest.$ac_ext <<_ACEOF
15071 /* confdefs.h. */
15072 _ACEOF
15073 cat confdefs.h >>conftest.$ac_ext
15074 cat >>conftest.$ac_ext <<_ACEOF
15075 /* end confdefs.h. */
15076 #include <sys/types.h>
15077 #include <sys/socket.h>
15078 #include <netdb.h>
15081 typedef struct addrinfo ac__type_new_;
15083 main ()
15085 if ((ac__type_new_ *) 0)
15086 return 0;
15087 if (sizeof (ac__type_new_))
15088 return 0;
15090 return 0;
15092 _ACEOF
15093 rm -f conftest.$ac_objext
15094 if { (ac_try="$ac_compile"
15095 case "(($ac_try" in
15096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15097 *) ac_try_echo=$ac_try;;
15098 esac
15099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15100 (eval "$ac_compile") 2>conftest.er1
15101 ac_status=$?
15102 grep -v '^ *+' conftest.er1 >conftest.err
15103 rm -f conftest.er1
15104 cat conftest.err >&5
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); } && {
15107 test -z "$ac_c_werror_flag" ||
15108 test ! -s conftest.err
15109 } && test -s conftest.$ac_objext; then
15110 ac_cv_type_struct_addrinfo=yes
15111 else
15112 echo "$as_me: failed program was:" >&5
15113 sed 's/^/| /' conftest.$ac_ext >&5
15115 ac_cv_type_struct_addrinfo=no
15118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15120 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
15121 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
15122 if test $ac_cv_type_struct_addrinfo = yes; then
15124 cat >>confdefs.h <<_ACEOF
15125 #define HAVE_STRUCT_ADDRINFO 1
15126 _ACEOF
15132 { echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
15133 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6; }
15134 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
15135 echo $ECHO_N "(cached) $ECHO_C" >&6
15136 else
15137 cat >conftest.$ac_ext <<_ACEOF
15138 /* confdefs.h. */
15139 _ACEOF
15140 cat confdefs.h >>conftest.$ac_ext
15141 cat >>conftest.$ac_ext <<_ACEOF
15142 /* end confdefs.h. */
15143 #include <sys/param.h>
15144 #include <sys/types.h>
15145 #include <sys/socket.h>
15146 #include <sys/ucred.h>
15148 typedef struct cmsgcred ac__type_new_;
15150 main ()
15152 if ((ac__type_new_ *) 0)
15153 return 0;
15154 if (sizeof (ac__type_new_))
15155 return 0;
15157 return 0;
15159 _ACEOF
15160 rm -f conftest.$ac_objext
15161 if { (ac_try="$ac_compile"
15162 case "(($ac_try" in
15163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15164 *) ac_try_echo=$ac_try;;
15165 esac
15166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15167 (eval "$ac_compile") 2>conftest.er1
15168 ac_status=$?
15169 grep -v '^ *+' conftest.er1 >conftest.err
15170 rm -f conftest.er1
15171 cat conftest.err >&5
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); } && {
15174 test -z "$ac_c_werror_flag" ||
15175 test ! -s conftest.err
15176 } && test -s conftest.$ac_objext; then
15177 ac_cv_type_struct_cmsgcred=yes
15178 else
15179 echo "$as_me: failed program was:" >&5
15180 sed 's/^/| /' conftest.$ac_ext >&5
15182 ac_cv_type_struct_cmsgcred=no
15185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15187 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
15188 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6; }
15189 if test $ac_cv_type_struct_cmsgcred = yes; then
15191 cat >>confdefs.h <<_ACEOF
15192 #define HAVE_STRUCT_CMSGCRED 1
15193 _ACEOF
15197 { echo "$as_me:$LINENO: checking for struct fcred" >&5
15198 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6; }
15199 if test "${ac_cv_type_struct_fcred+set}" = set; then
15200 echo $ECHO_N "(cached) $ECHO_C" >&6
15201 else
15202 cat >conftest.$ac_ext <<_ACEOF
15203 /* confdefs.h. */
15204 _ACEOF
15205 cat confdefs.h >>conftest.$ac_ext
15206 cat >>conftest.$ac_ext <<_ACEOF
15207 /* end confdefs.h. */
15208 #include <sys/param.h>
15209 #include <sys/types.h>
15210 #include <sys/socket.h>
15211 #include <sys/ucred.h>
15213 typedef struct fcred ac__type_new_;
15215 main ()
15217 if ((ac__type_new_ *) 0)
15218 return 0;
15219 if (sizeof (ac__type_new_))
15220 return 0;
15222 return 0;
15224 _ACEOF
15225 rm -f conftest.$ac_objext
15226 if { (ac_try="$ac_compile"
15227 case "(($ac_try" in
15228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15229 *) ac_try_echo=$ac_try;;
15230 esac
15231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15232 (eval "$ac_compile") 2>conftest.er1
15233 ac_status=$?
15234 grep -v '^ *+' conftest.er1 >conftest.err
15235 rm -f conftest.er1
15236 cat conftest.err >&5
15237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238 (exit $ac_status); } && {
15239 test -z "$ac_c_werror_flag" ||
15240 test ! -s conftest.err
15241 } && test -s conftest.$ac_objext; then
15242 ac_cv_type_struct_fcred=yes
15243 else
15244 echo "$as_me: failed program was:" >&5
15245 sed 's/^/| /' conftest.$ac_ext >&5
15247 ac_cv_type_struct_fcred=no
15250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15252 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
15253 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6; }
15254 if test $ac_cv_type_struct_fcred = yes; then
15256 cat >>confdefs.h <<_ACEOF
15257 #define HAVE_STRUCT_FCRED 1
15258 _ACEOF
15262 { echo "$as_me:$LINENO: checking for struct sockcred" >&5
15263 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6; }
15264 if test "${ac_cv_type_struct_sockcred+set}" = set; then
15265 echo $ECHO_N "(cached) $ECHO_C" >&6
15266 else
15267 cat >conftest.$ac_ext <<_ACEOF
15268 /* confdefs.h. */
15269 _ACEOF
15270 cat confdefs.h >>conftest.$ac_ext
15271 cat >>conftest.$ac_ext <<_ACEOF
15272 /* end confdefs.h. */
15273 #include <sys/param.h>
15274 #include <sys/types.h>
15275 #include <sys/socket.h>
15276 #include <sys/ucred.h>
15278 typedef struct sockcred ac__type_new_;
15280 main ()
15282 if ((ac__type_new_ *) 0)
15283 return 0;
15284 if (sizeof (ac__type_new_))
15285 return 0;
15287 return 0;
15289 _ACEOF
15290 rm -f conftest.$ac_objext
15291 if { (ac_try="$ac_compile"
15292 case "(($ac_try" in
15293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15294 *) ac_try_echo=$ac_try;;
15295 esac
15296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15297 (eval "$ac_compile") 2>conftest.er1
15298 ac_status=$?
15299 grep -v '^ *+' conftest.er1 >conftest.err
15300 rm -f conftest.er1
15301 cat conftest.err >&5
15302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303 (exit $ac_status); } && {
15304 test -z "$ac_c_werror_flag" ||
15305 test ! -s conftest.err
15306 } && test -s conftest.$ac_objext; then
15307 ac_cv_type_struct_sockcred=yes
15308 else
15309 echo "$as_me: failed program was:" >&5
15310 sed 's/^/| /' conftest.$ac_ext >&5
15312 ac_cv_type_struct_sockcred=no
15315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15317 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
15318 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6; }
15319 if test $ac_cv_type_struct_sockcred = yes; then
15321 cat >>confdefs.h <<_ACEOF
15322 #define HAVE_STRUCT_SOCKCRED 1
15323 _ACEOF
15329 { echo "$as_me:$LINENO: checking for struct option" >&5
15330 echo $ECHO_N "checking for struct option... $ECHO_C" >&6; }
15331 if test "${ac_cv_type_struct_option+set}" = set; then
15332 echo $ECHO_N "(cached) $ECHO_C" >&6
15333 else
15334 cat >conftest.$ac_ext <<_ACEOF
15335 /* confdefs.h. */
15336 _ACEOF
15337 cat confdefs.h >>conftest.$ac_ext
15338 cat >>conftest.$ac_ext <<_ACEOF
15339 /* end confdefs.h. */
15340 #ifdef HAVE_GETOPT_H
15341 #include <getopt.h>
15342 #endif
15344 typedef struct option ac__type_new_;
15346 main ()
15348 if ((ac__type_new_ *) 0)
15349 return 0;
15350 if (sizeof (ac__type_new_))
15351 return 0;
15353 return 0;
15355 _ACEOF
15356 rm -f conftest.$ac_objext
15357 if { (ac_try="$ac_compile"
15358 case "(($ac_try" in
15359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15360 *) ac_try_echo=$ac_try;;
15361 esac
15362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15363 (eval "$ac_compile") 2>conftest.er1
15364 ac_status=$?
15365 grep -v '^ *+' conftest.er1 >conftest.err
15366 rm -f conftest.er1
15367 cat conftest.err >&5
15368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369 (exit $ac_status); } && {
15370 test -z "$ac_c_werror_flag" ||
15371 test ! -s conftest.err
15372 } && test -s conftest.$ac_objext; then
15373 ac_cv_type_struct_option=yes
15374 else
15375 echo "$as_me: failed program was:" >&5
15376 sed 's/^/| /' conftest.$ac_ext >&5
15378 ac_cv_type_struct_option=no
15381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15383 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
15384 echo "${ECHO_T}$ac_cv_type_struct_option" >&6; }
15385 if test $ac_cv_type_struct_option = yes; then
15387 cat >>confdefs.h <<_ACEOF
15388 #define HAVE_STRUCT_OPTION 1
15389 _ACEOF
15395 if test "$with_zlib" = yes; then
15396 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
15397 # did not). While we could work around the lack of z_streamp, it
15398 # seems unwise to encourage people to use such old zlib versions...
15399 { echo "$as_me:$LINENO: checking for z_streamp" >&5
15400 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6; }
15401 if test "${ac_cv_type_z_streamp+set}" = set; then
15402 echo $ECHO_N "(cached) $ECHO_C" >&6
15403 else
15404 cat >conftest.$ac_ext <<_ACEOF
15405 /* confdefs.h. */
15406 _ACEOF
15407 cat confdefs.h >>conftest.$ac_ext
15408 cat >>conftest.$ac_ext <<_ACEOF
15409 /* end confdefs.h. */
15410 #include <zlib.h>
15412 typedef z_streamp ac__type_new_;
15414 main ()
15416 if ((ac__type_new_ *) 0)
15417 return 0;
15418 if (sizeof (ac__type_new_))
15419 return 0;
15421 return 0;
15423 _ACEOF
15424 rm -f conftest.$ac_objext
15425 if { (ac_try="$ac_compile"
15426 case "(($ac_try" in
15427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15428 *) ac_try_echo=$ac_try;;
15429 esac
15430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15431 (eval "$ac_compile") 2>conftest.er1
15432 ac_status=$?
15433 grep -v '^ *+' conftest.er1 >conftest.err
15434 rm -f conftest.er1
15435 cat conftest.err >&5
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); } && {
15438 test -z "$ac_c_werror_flag" ||
15439 test ! -s conftest.err
15440 } && test -s conftest.$ac_objext; then
15441 ac_cv_type_z_streamp=yes
15442 else
15443 echo "$as_me: failed program was:" >&5
15444 sed 's/^/| /' conftest.$ac_ext >&5
15446 ac_cv_type_z_streamp=no
15449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15451 { echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
15452 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6; }
15453 if test $ac_cv_type_z_streamp = yes; then
15455 else
15456 { { echo "$as_me:$LINENO: error: zlib version is too old
15457 Use --without-zlib to disable zlib support." >&5
15458 echo "$as_me: error: zlib version is too old
15459 Use --without-zlib to disable zlib support." >&2;}
15460 { (exit 1); exit 1; }; }
15465 if test "$with_krb5" = yes; then
15466 # Check for differences between MIT and Heimdal (KTH) releases
15467 { echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
15468 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6; }
15469 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
15470 echo $ECHO_N "(cached) $ECHO_C" >&6
15471 else
15472 cat >conftest.$ac_ext <<_ACEOF
15473 /* confdefs.h. */
15474 _ACEOF
15475 cat confdefs.h >>conftest.$ac_ext
15476 cat >>conftest.$ac_ext <<_ACEOF
15477 /* end confdefs.h. */
15478 #include <krb5.h>
15481 main ()
15483 static krb5_ticket ac_aggr;
15484 if (ac_aggr.enc_part2)
15485 return 0;
15487 return 0;
15489 _ACEOF
15490 rm -f conftest.$ac_objext
15491 if { (ac_try="$ac_compile"
15492 case "(($ac_try" in
15493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15494 *) ac_try_echo=$ac_try;;
15495 esac
15496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15497 (eval "$ac_compile") 2>conftest.er1
15498 ac_status=$?
15499 grep -v '^ *+' conftest.er1 >conftest.err
15500 rm -f conftest.er1
15501 cat conftest.err >&5
15502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); } && {
15504 test -z "$ac_c_werror_flag" ||
15505 test ! -s conftest.err
15506 } && test -s conftest.$ac_objext; then
15507 ac_cv_member_krb5_ticket_enc_part2=yes
15508 else
15509 echo "$as_me: failed program was:" >&5
15510 sed 's/^/| /' conftest.$ac_ext >&5
15512 cat >conftest.$ac_ext <<_ACEOF
15513 /* confdefs.h. */
15514 _ACEOF
15515 cat confdefs.h >>conftest.$ac_ext
15516 cat >>conftest.$ac_ext <<_ACEOF
15517 /* end confdefs.h. */
15518 #include <krb5.h>
15521 main ()
15523 static krb5_ticket ac_aggr;
15524 if (sizeof ac_aggr.enc_part2)
15525 return 0;
15527 return 0;
15529 _ACEOF
15530 rm -f conftest.$ac_objext
15531 if { (ac_try="$ac_compile"
15532 case "(($ac_try" in
15533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15534 *) ac_try_echo=$ac_try;;
15535 esac
15536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15537 (eval "$ac_compile") 2>conftest.er1
15538 ac_status=$?
15539 grep -v '^ *+' conftest.er1 >conftest.err
15540 rm -f conftest.er1
15541 cat conftest.err >&5
15542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543 (exit $ac_status); } && {
15544 test -z "$ac_c_werror_flag" ||
15545 test ! -s conftest.err
15546 } && test -s conftest.$ac_objext; then
15547 ac_cv_member_krb5_ticket_enc_part2=yes
15548 else
15549 echo "$as_me: failed program was:" >&5
15550 sed 's/^/| /' conftest.$ac_ext >&5
15552 ac_cv_member_krb5_ticket_enc_part2=no
15555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15560 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
15561 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6; }
15562 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
15564 cat >>confdefs.h <<_ACEOF
15565 #define HAVE_KRB5_TICKET_ENC_PART2 1
15566 _ACEOF
15569 else
15570 { echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
15571 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6; }
15572 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
15573 echo $ECHO_N "(cached) $ECHO_C" >&6
15574 else
15575 cat >conftest.$ac_ext <<_ACEOF
15576 /* confdefs.h. */
15577 _ACEOF
15578 cat confdefs.h >>conftest.$ac_ext
15579 cat >>conftest.$ac_ext <<_ACEOF
15580 /* end confdefs.h. */
15581 #include <krb5.h>
15584 main ()
15586 static krb5_ticket ac_aggr;
15587 if (ac_aggr.client)
15588 return 0;
15590 return 0;
15592 _ACEOF
15593 rm -f conftest.$ac_objext
15594 if { (ac_try="$ac_compile"
15595 case "(($ac_try" in
15596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15597 *) ac_try_echo=$ac_try;;
15598 esac
15599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15600 (eval "$ac_compile") 2>conftest.er1
15601 ac_status=$?
15602 grep -v '^ *+' conftest.er1 >conftest.err
15603 rm -f conftest.er1
15604 cat conftest.err >&5
15605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606 (exit $ac_status); } && {
15607 test -z "$ac_c_werror_flag" ||
15608 test ! -s conftest.err
15609 } && test -s conftest.$ac_objext; then
15610 ac_cv_member_krb5_ticket_client=yes
15611 else
15612 echo "$as_me: failed program was:" >&5
15613 sed 's/^/| /' conftest.$ac_ext >&5
15615 cat >conftest.$ac_ext <<_ACEOF
15616 /* confdefs.h. */
15617 _ACEOF
15618 cat confdefs.h >>conftest.$ac_ext
15619 cat >>conftest.$ac_ext <<_ACEOF
15620 /* end confdefs.h. */
15621 #include <krb5.h>
15624 main ()
15626 static krb5_ticket ac_aggr;
15627 if (sizeof ac_aggr.client)
15628 return 0;
15630 return 0;
15632 _ACEOF
15633 rm -f conftest.$ac_objext
15634 if { (ac_try="$ac_compile"
15635 case "(($ac_try" in
15636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15637 *) ac_try_echo=$ac_try;;
15638 esac
15639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15640 (eval "$ac_compile") 2>conftest.er1
15641 ac_status=$?
15642 grep -v '^ *+' conftest.er1 >conftest.err
15643 rm -f conftest.er1
15644 cat conftest.err >&5
15645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646 (exit $ac_status); } && {
15647 test -z "$ac_c_werror_flag" ||
15648 test ! -s conftest.err
15649 } && test -s conftest.$ac_objext; then
15650 ac_cv_member_krb5_ticket_client=yes
15651 else
15652 echo "$as_me: failed program was:" >&5
15653 sed 's/^/| /' conftest.$ac_ext >&5
15655 ac_cv_member_krb5_ticket_client=no
15658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15663 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
15664 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6; }
15665 if test $ac_cv_member_krb5_ticket_client = yes; then
15667 cat >>confdefs.h <<_ACEOF
15668 #define HAVE_KRB5_TICKET_CLIENT 1
15669 _ACEOF
15672 else
15673 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
15674 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
15675 { (exit 1); exit 1; }; }
15680 { echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
15681 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6; }
15682 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
15683 echo $ECHO_N "(cached) $ECHO_C" >&6
15684 else
15685 cat >conftest.$ac_ext <<_ACEOF
15686 /* confdefs.h. */
15687 _ACEOF
15688 cat confdefs.h >>conftest.$ac_ext
15689 cat >>conftest.$ac_ext <<_ACEOF
15690 /* end confdefs.h. */
15691 #include <krb5.h>
15694 main ()
15696 static krb5_error ac_aggr;
15697 if (ac_aggr.text.data)
15698 return 0;
15700 return 0;
15702 _ACEOF
15703 rm -f conftest.$ac_objext
15704 if { (ac_try="$ac_compile"
15705 case "(($ac_try" in
15706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15707 *) ac_try_echo=$ac_try;;
15708 esac
15709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15710 (eval "$ac_compile") 2>conftest.er1
15711 ac_status=$?
15712 grep -v '^ *+' conftest.er1 >conftest.err
15713 rm -f conftest.er1
15714 cat conftest.err >&5
15715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716 (exit $ac_status); } && {
15717 test -z "$ac_c_werror_flag" ||
15718 test ! -s conftest.err
15719 } && test -s conftest.$ac_objext; then
15720 ac_cv_member_krb5_error_text_data=yes
15721 else
15722 echo "$as_me: failed program was:" >&5
15723 sed 's/^/| /' conftest.$ac_ext >&5
15725 cat >conftest.$ac_ext <<_ACEOF
15726 /* confdefs.h. */
15727 _ACEOF
15728 cat confdefs.h >>conftest.$ac_ext
15729 cat >>conftest.$ac_ext <<_ACEOF
15730 /* end confdefs.h. */
15731 #include <krb5.h>
15734 main ()
15736 static krb5_error ac_aggr;
15737 if (sizeof ac_aggr.text.data)
15738 return 0;
15740 return 0;
15742 _ACEOF
15743 rm -f conftest.$ac_objext
15744 if { (ac_try="$ac_compile"
15745 case "(($ac_try" in
15746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15747 *) ac_try_echo=$ac_try;;
15748 esac
15749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15750 (eval "$ac_compile") 2>conftest.er1
15751 ac_status=$?
15752 grep -v '^ *+' conftest.er1 >conftest.err
15753 rm -f conftest.er1
15754 cat conftest.err >&5
15755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756 (exit $ac_status); } && {
15757 test -z "$ac_c_werror_flag" ||
15758 test ! -s conftest.err
15759 } && test -s conftest.$ac_objext; then
15760 ac_cv_member_krb5_error_text_data=yes
15761 else
15762 echo "$as_me: failed program was:" >&5
15763 sed 's/^/| /' conftest.$ac_ext >&5
15765 ac_cv_member_krb5_error_text_data=no
15768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15773 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
15774 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6; }
15775 if test $ac_cv_member_krb5_error_text_data = yes; then
15777 cat >>confdefs.h <<_ACEOF
15778 #define HAVE_KRB5_ERROR_TEXT_DATA 1
15779 _ACEOF
15782 else
15783 { echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
15784 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6; }
15785 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
15786 echo $ECHO_N "(cached) $ECHO_C" >&6
15787 else
15788 cat >conftest.$ac_ext <<_ACEOF
15789 /* confdefs.h. */
15790 _ACEOF
15791 cat confdefs.h >>conftest.$ac_ext
15792 cat >>conftest.$ac_ext <<_ACEOF
15793 /* end confdefs.h. */
15794 #include <krb5.h>
15797 main ()
15799 static krb5_error ac_aggr;
15800 if (ac_aggr.e_data)
15801 return 0;
15803 return 0;
15805 _ACEOF
15806 rm -f conftest.$ac_objext
15807 if { (ac_try="$ac_compile"
15808 case "(($ac_try" in
15809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15810 *) ac_try_echo=$ac_try;;
15811 esac
15812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15813 (eval "$ac_compile") 2>conftest.er1
15814 ac_status=$?
15815 grep -v '^ *+' conftest.er1 >conftest.err
15816 rm -f conftest.er1
15817 cat conftest.err >&5
15818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15819 (exit $ac_status); } && {
15820 test -z "$ac_c_werror_flag" ||
15821 test ! -s conftest.err
15822 } && test -s conftest.$ac_objext; then
15823 ac_cv_member_krb5_error_e_data=yes
15824 else
15825 echo "$as_me: failed program was:" >&5
15826 sed 's/^/| /' conftest.$ac_ext >&5
15828 cat >conftest.$ac_ext <<_ACEOF
15829 /* confdefs.h. */
15830 _ACEOF
15831 cat confdefs.h >>conftest.$ac_ext
15832 cat >>conftest.$ac_ext <<_ACEOF
15833 /* end confdefs.h. */
15834 #include <krb5.h>
15837 main ()
15839 static krb5_error ac_aggr;
15840 if (sizeof ac_aggr.e_data)
15841 return 0;
15843 return 0;
15845 _ACEOF
15846 rm -f conftest.$ac_objext
15847 if { (ac_try="$ac_compile"
15848 case "(($ac_try" in
15849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15850 *) ac_try_echo=$ac_try;;
15851 esac
15852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15853 (eval "$ac_compile") 2>conftest.er1
15854 ac_status=$?
15855 grep -v '^ *+' conftest.er1 >conftest.err
15856 rm -f conftest.er1
15857 cat conftest.err >&5
15858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859 (exit $ac_status); } && {
15860 test -z "$ac_c_werror_flag" ||
15861 test ! -s conftest.err
15862 } && test -s conftest.$ac_objext; then
15863 ac_cv_member_krb5_error_e_data=yes
15864 else
15865 echo "$as_me: failed program was:" >&5
15866 sed 's/^/| /' conftest.$ac_ext >&5
15868 ac_cv_member_krb5_error_e_data=no
15871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15876 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
15877 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6; }
15878 if test $ac_cv_member_krb5_error_e_data = yes; then
15880 cat >>confdefs.h <<_ACEOF
15881 #define HAVE_KRB5_ERROR_E_DATA 1
15882 _ACEOF
15885 else
15886 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
15887 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
15888 { (exit 1); exit 1; }; }
15894 # Win32 requires headers to be loaded for __stdcall, so can't use
15895 # AC_CHECK_FUNCS here.
15896 { echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
15897 echo $ECHO_N "checking for krb5_free_unparsed_name... $ECHO_C" >&6; }
15898 cat >conftest.$ac_ext <<_ACEOF
15899 /* confdefs.h. */
15900 _ACEOF
15901 cat confdefs.h >>conftest.$ac_ext
15902 cat >>conftest.$ac_ext <<_ACEOF
15903 /* end confdefs.h. */
15904 #include <krb5.h>
15906 main ()
15908 krb5_free_unparsed_name(NULL,NULL);
15910 return 0;
15912 _ACEOF
15913 rm -f conftest.$ac_objext conftest$ac_exeext
15914 if { (ac_try="$ac_link"
15915 case "(($ac_try" in
15916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15917 *) ac_try_echo=$ac_try;;
15918 esac
15919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15920 (eval "$ac_link") 2>conftest.er1
15921 ac_status=$?
15922 grep -v '^ *+' conftest.er1 >conftest.err
15923 rm -f conftest.er1
15924 cat conftest.err >&5
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); } && {
15927 test -z "$ac_c_werror_flag" ||
15928 test ! -s conftest.err
15929 } && test -s conftest$ac_exeext &&
15930 $as_test_x conftest$ac_exeext; then
15932 cat >>confdefs.h <<\_ACEOF
15933 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
15934 _ACEOF
15936 { echo "$as_me:$LINENO: result: yes" >&5
15937 echo "${ECHO_T}yes" >&6; }
15938 else
15939 echo "$as_me: failed program was:" >&5
15940 sed 's/^/| /' conftest.$ac_ext >&5
15942 { echo "$as_me:$LINENO: result: no" >&5
15943 echo "${ECHO_T}no" >&6; }
15946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15947 conftest$ac_exeext conftest.$ac_ext
15952 ## Functions, global variables
15955 { echo "$as_me:$LINENO: checking for int timezone" >&5
15956 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6; }
15957 if test "${pgac_cv_var_int_timezone+set}" = set; then
15958 echo $ECHO_N "(cached) $ECHO_C" >&6
15959 else
15960 cat >conftest.$ac_ext <<_ACEOF
15961 /* confdefs.h. */
15962 _ACEOF
15963 cat confdefs.h >>conftest.$ac_ext
15964 cat >>conftest.$ac_ext <<_ACEOF
15965 /* end confdefs.h. */
15966 #include <time.h>
15967 int res;
15969 main ()
15971 #ifndef __CYGWIN__
15972 res = timezone / 60;
15973 #else
15974 res = _timezone / 60;
15975 #endif
15977 return 0;
15979 _ACEOF
15980 rm -f conftest.$ac_objext conftest$ac_exeext
15981 if { (ac_try="$ac_link"
15982 case "(($ac_try" in
15983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15984 *) ac_try_echo=$ac_try;;
15985 esac
15986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15987 (eval "$ac_link") 2>conftest.er1
15988 ac_status=$?
15989 grep -v '^ *+' conftest.er1 >conftest.err
15990 rm -f conftest.er1
15991 cat conftest.err >&5
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); } && {
15994 test -z "$ac_c_werror_flag" ||
15995 test ! -s conftest.err
15996 } && test -s conftest$ac_exeext &&
15997 $as_test_x conftest$ac_exeext; then
15998 pgac_cv_var_int_timezone=yes
15999 else
16000 echo "$as_me: failed program was:" >&5
16001 sed 's/^/| /' conftest.$ac_ext >&5
16003 pgac_cv_var_int_timezone=no
16006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16007 conftest$ac_exeext conftest.$ac_ext
16009 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
16010 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6; }
16011 if test x"$pgac_cv_var_int_timezone" = xyes ; then
16013 cat >>confdefs.h <<\_ACEOF
16014 #define HAVE_INT_TIMEZONE
16015 _ACEOF
16018 { echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
16019 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6; }
16020 if test "${ac_cv_func_accept_return+set}" = set; then
16021 echo $ECHO_N "(cached) $ECHO_C" >&6
16022 else
16023 if test "${ac_cv_func_accept_arg1+set}" = set; then
16024 echo $ECHO_N "(cached) $ECHO_C" >&6
16025 else
16026 if test "${ac_cv_func_accept_arg2+set}" = set; then
16027 echo $ECHO_N "(cached) $ECHO_C" >&6
16028 else
16029 if test "${ac_cv_func_accept_arg3+set}" = set; then
16030 echo $ECHO_N "(cached) $ECHO_C" >&6
16031 else
16032 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
16033 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
16034 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
16035 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
16036 cat >conftest.$ac_ext <<_ACEOF
16037 /* confdefs.h. */
16038 _ACEOF
16039 cat confdefs.h >>conftest.$ac_ext
16040 cat >>conftest.$ac_ext <<_ACEOF
16041 /* end confdefs.h. */
16042 #ifdef HAVE_SYS_TYPES_H
16043 #include <sys/types.h>
16044 #endif
16045 #ifdef HAVE_SYS_SOCKET_H
16046 #include <sys/socket.h>
16047 #endif
16048 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
16050 main ()
16054 return 0;
16056 _ACEOF
16057 rm -f conftest.$ac_objext
16058 if { (ac_try="$ac_compile"
16059 case "(($ac_try" in
16060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16061 *) ac_try_echo=$ac_try;;
16062 esac
16063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16064 (eval "$ac_compile") 2>conftest.er1
16065 ac_status=$?
16066 grep -v '^ *+' conftest.er1 >conftest.err
16067 rm -f conftest.er1
16068 cat conftest.err >&5
16069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); } && {
16071 test -z "$ac_c_werror_flag" ||
16072 test ! -s conftest.err
16073 } && test -s conftest.$ac_objext; then
16074 ac_not_found=no; break 4
16075 else
16076 echo "$as_me: failed program was:" >&5
16077 sed 's/^/| /' conftest.$ac_ext >&5
16079 ac_not_found=yes
16082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16083 done
16084 done
16085 done
16086 done
16087 if test "$ac_not_found" = yes; then
16088 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
16089 echo "$as_me: error: could not determine argument types" >&2;}
16090 { (exit 1); exit 1; }; }
16092 if test "$ac_cv_func_accept_arg3" = "void"; then
16093 ac_cv_func_accept_arg3=int
16103 { 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
16104 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
16106 cat >>confdefs.h <<_ACEOF
16107 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
16108 _ACEOF
16111 cat >>confdefs.h <<_ACEOF
16112 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
16113 _ACEOF
16116 cat >>confdefs.h <<_ACEOF
16117 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
16118 _ACEOF
16121 cat >>confdefs.h <<_ACEOF
16122 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
16123 _ACEOF
16126 { echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
16127 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6; }
16128 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
16129 echo $ECHO_N "(cached) $ECHO_C" >&6
16130 else
16131 cat >conftest.$ac_ext <<_ACEOF
16132 /* confdefs.h. */
16133 _ACEOF
16134 cat confdefs.h >>conftest.$ac_ext
16135 cat >>conftest.$ac_ext <<_ACEOF
16136 /* end confdefs.h. */
16137 #include <sys/time.h>
16139 main ()
16141 struct timeval *tp;
16142 struct timezone *tzp;
16143 gettimeofday(tp,tzp);
16145 return 0;
16147 _ACEOF
16148 rm -f conftest.$ac_objext
16149 if { (ac_try="$ac_compile"
16150 case "(($ac_try" in
16151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16152 *) ac_try_echo=$ac_try;;
16153 esac
16154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16155 (eval "$ac_compile") 2>conftest.er1
16156 ac_status=$?
16157 grep -v '^ *+' conftest.er1 >conftest.err
16158 rm -f conftest.er1
16159 cat conftest.err >&5
16160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161 (exit $ac_status); } && {
16162 test -z "$ac_c_werror_flag" ||
16163 test ! -s conftest.err
16164 } && test -s conftest.$ac_objext; then
16165 pgac_cv_func_gettimeofday_1arg=no
16166 else
16167 echo "$as_me: failed program was:" >&5
16168 sed 's/^/| /' conftest.$ac_ext >&5
16170 pgac_cv_func_gettimeofday_1arg=yes
16173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16175 { echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
16176 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6; }
16177 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
16179 cat >>confdefs.h <<\_ACEOF
16180 #define GETTIMEOFDAY_1ARG
16181 _ACEOF
16208 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
16210 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16211 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16212 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16213 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16214 echo $ECHO_N "(cached) $ECHO_C" >&6
16215 else
16216 cat >conftest.$ac_ext <<_ACEOF
16217 /* confdefs.h. */
16218 _ACEOF
16219 cat confdefs.h >>conftest.$ac_ext
16220 cat >>conftest.$ac_ext <<_ACEOF
16221 /* end confdefs.h. */
16222 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16223 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16224 #define $ac_func innocuous_$ac_func
16226 /* System header to define __stub macros and hopefully few prototypes,
16227 which can conflict with char $ac_func (); below.
16228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16229 <limits.h> exists even on freestanding compilers. */
16231 #ifdef __STDC__
16232 # include <limits.h>
16233 #else
16234 # include <assert.h>
16235 #endif
16237 #undef $ac_func
16239 /* Override any GCC internal prototype to avoid an error.
16240 Use char because int might match the return type of a GCC
16241 builtin and then its argument prototype would still apply. */
16242 #ifdef __cplusplus
16243 extern "C"
16244 #endif
16245 char $ac_func ();
16246 /* The GNU C library defines this for functions which it implements
16247 to always fail with ENOSYS. Some functions are actually named
16248 something starting with __ and the normal name is an alias. */
16249 #if defined __stub_$ac_func || defined __stub___$ac_func
16250 choke me
16251 #endif
16254 main ()
16256 return $ac_func ();
16258 return 0;
16260 _ACEOF
16261 rm -f conftest.$ac_objext conftest$ac_exeext
16262 if { (ac_try="$ac_link"
16263 case "(($ac_try" in
16264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16265 *) ac_try_echo=$ac_try;;
16266 esac
16267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16268 (eval "$ac_link") 2>conftest.er1
16269 ac_status=$?
16270 grep -v '^ *+' conftest.er1 >conftest.err
16271 rm -f conftest.er1
16272 cat conftest.err >&5
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); } && {
16275 test -z "$ac_c_werror_flag" ||
16276 test ! -s conftest.err
16277 } && test -s conftest$ac_exeext &&
16278 $as_test_x conftest$ac_exeext; then
16279 eval "$as_ac_var=yes"
16280 else
16281 echo "$as_me: failed program was:" >&5
16282 sed 's/^/| /' conftest.$ac_ext >&5
16284 eval "$as_ac_var=no"
16287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16288 conftest$ac_exeext conftest.$ac_ext
16290 ac_res=`eval echo '${'$as_ac_var'}'`
16291 { echo "$as_me:$LINENO: result: $ac_res" >&5
16292 echo "${ECHO_T}$ac_res" >&6; }
16293 if test `eval echo '${'$as_ac_var'}'` = yes; then
16294 cat >>confdefs.h <<_ACEOF
16295 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16296 _ACEOF
16299 done
16302 { echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
16303 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6; }
16304 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
16305 echo $ECHO_N "(cached) $ECHO_C" >&6
16306 else
16307 cat >conftest.$ac_ext <<_ACEOF
16308 /* confdefs.h. */
16309 _ACEOF
16310 cat confdefs.h >>conftest.$ac_ext
16311 cat >>conftest.$ac_ext <<_ACEOF
16312 /* end confdefs.h. */
16313 #include <unistd.h>
16316 main ()
16318 #ifndef fdatasync
16319 (void) fdatasync;
16320 #endif
16323 return 0;
16325 _ACEOF
16326 rm -f conftest.$ac_objext
16327 if { (ac_try="$ac_compile"
16328 case "(($ac_try" in
16329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16330 *) ac_try_echo=$ac_try;;
16331 esac
16332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16333 (eval "$ac_compile") 2>conftest.er1
16334 ac_status=$?
16335 grep -v '^ *+' conftest.er1 >conftest.err
16336 rm -f conftest.er1
16337 cat conftest.err >&5
16338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339 (exit $ac_status); } && {
16340 test -z "$ac_c_werror_flag" ||
16341 test ! -s conftest.err
16342 } && test -s conftest.$ac_objext; then
16343 ac_cv_have_decl_fdatasync=yes
16344 else
16345 echo "$as_me: failed program was:" >&5
16346 sed 's/^/| /' conftest.$ac_ext >&5
16348 ac_cv_have_decl_fdatasync=no
16351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16353 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
16354 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6; }
16355 if test $ac_cv_have_decl_fdatasync = yes; then
16357 cat >>confdefs.h <<_ACEOF
16358 #define HAVE_DECL_FDATASYNC 1
16359 _ACEOF
16362 else
16363 cat >>confdefs.h <<_ACEOF
16364 #define HAVE_DECL_FDATASYNC 0
16365 _ACEOF
16371 { echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
16372 echo $ECHO_N "checking whether posix_fadvise is declared... $ECHO_C" >&6; }
16373 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
16374 echo $ECHO_N "(cached) $ECHO_C" >&6
16375 else
16376 cat >conftest.$ac_ext <<_ACEOF
16377 /* confdefs.h. */
16378 _ACEOF
16379 cat confdefs.h >>conftest.$ac_ext
16380 cat >>conftest.$ac_ext <<_ACEOF
16381 /* end confdefs.h. */
16382 #include <fcntl.h>
16385 main ()
16387 #ifndef posix_fadvise
16388 (void) posix_fadvise;
16389 #endif
16392 return 0;
16394 _ACEOF
16395 rm -f conftest.$ac_objext
16396 if { (ac_try="$ac_compile"
16397 case "(($ac_try" in
16398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16399 *) ac_try_echo=$ac_try;;
16400 esac
16401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16402 (eval "$ac_compile") 2>conftest.er1
16403 ac_status=$?
16404 grep -v '^ *+' conftest.er1 >conftest.err
16405 rm -f conftest.er1
16406 cat conftest.err >&5
16407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408 (exit $ac_status); } && {
16409 test -z "$ac_c_werror_flag" ||
16410 test ! -s conftest.err
16411 } && test -s conftest.$ac_objext; then
16412 ac_cv_have_decl_posix_fadvise=yes
16413 else
16414 echo "$as_me: failed program was:" >&5
16415 sed 's/^/| /' conftest.$ac_ext >&5
16417 ac_cv_have_decl_posix_fadvise=no
16420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16422 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
16423 echo "${ECHO_T}$ac_cv_have_decl_posix_fadvise" >&6; }
16424 if test $ac_cv_have_decl_posix_fadvise = yes; then
16426 cat >>confdefs.h <<_ACEOF
16427 #define HAVE_DECL_POSIX_FADVISE 1
16428 _ACEOF
16431 else
16432 cat >>confdefs.h <<_ACEOF
16433 #define HAVE_DECL_POSIX_FADVISE 0
16434 _ACEOF
16440 { echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
16441 echo $ECHO_N "checking whether strlcat is declared... $ECHO_C" >&6; }
16442 if test "${ac_cv_have_decl_strlcat+set}" = set; then
16443 echo $ECHO_N "(cached) $ECHO_C" >&6
16444 else
16445 cat >conftest.$ac_ext <<_ACEOF
16446 /* confdefs.h. */
16447 _ACEOF
16448 cat confdefs.h >>conftest.$ac_ext
16449 cat >>conftest.$ac_ext <<_ACEOF
16450 /* end confdefs.h. */
16451 $ac_includes_default
16453 main ()
16455 #ifndef strlcat
16456 (void) strlcat;
16457 #endif
16460 return 0;
16462 _ACEOF
16463 rm -f conftest.$ac_objext
16464 if { (ac_try="$ac_compile"
16465 case "(($ac_try" in
16466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16467 *) ac_try_echo=$ac_try;;
16468 esac
16469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16470 (eval "$ac_compile") 2>conftest.er1
16471 ac_status=$?
16472 grep -v '^ *+' conftest.er1 >conftest.err
16473 rm -f conftest.er1
16474 cat conftest.err >&5
16475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476 (exit $ac_status); } && {
16477 test -z "$ac_c_werror_flag" ||
16478 test ! -s conftest.err
16479 } && test -s conftest.$ac_objext; then
16480 ac_cv_have_decl_strlcat=yes
16481 else
16482 echo "$as_me: failed program was:" >&5
16483 sed 's/^/| /' conftest.$ac_ext >&5
16485 ac_cv_have_decl_strlcat=no
16488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16490 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
16491 echo "${ECHO_T}$ac_cv_have_decl_strlcat" >&6; }
16492 if test $ac_cv_have_decl_strlcat = yes; then
16494 cat >>confdefs.h <<_ACEOF
16495 #define HAVE_DECL_STRLCAT 1
16496 _ACEOF
16499 else
16500 cat >>confdefs.h <<_ACEOF
16501 #define HAVE_DECL_STRLCAT 0
16502 _ACEOF
16506 { echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
16507 echo $ECHO_N "checking whether strlcpy is declared... $ECHO_C" >&6; }
16508 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
16509 echo $ECHO_N "(cached) $ECHO_C" >&6
16510 else
16511 cat >conftest.$ac_ext <<_ACEOF
16512 /* confdefs.h. */
16513 _ACEOF
16514 cat confdefs.h >>conftest.$ac_ext
16515 cat >>conftest.$ac_ext <<_ACEOF
16516 /* end confdefs.h. */
16517 $ac_includes_default
16519 main ()
16521 #ifndef strlcpy
16522 (void) strlcpy;
16523 #endif
16526 return 0;
16528 _ACEOF
16529 rm -f conftest.$ac_objext
16530 if { (ac_try="$ac_compile"
16531 case "(($ac_try" in
16532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16533 *) ac_try_echo=$ac_try;;
16534 esac
16535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16536 (eval "$ac_compile") 2>conftest.er1
16537 ac_status=$?
16538 grep -v '^ *+' conftest.er1 >conftest.err
16539 rm -f conftest.er1
16540 cat conftest.err >&5
16541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); } && {
16543 test -z "$ac_c_werror_flag" ||
16544 test ! -s conftest.err
16545 } && test -s conftest.$ac_objext; then
16546 ac_cv_have_decl_strlcpy=yes
16547 else
16548 echo "$as_me: failed program was:" >&5
16549 sed 's/^/| /' conftest.$ac_ext >&5
16551 ac_cv_have_decl_strlcpy=no
16554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16556 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
16557 echo "${ECHO_T}$ac_cv_have_decl_strlcpy" >&6; }
16558 if test $ac_cv_have_decl_strlcpy = yes; then
16560 cat >>confdefs.h <<_ACEOF
16561 #define HAVE_DECL_STRLCPY 1
16562 _ACEOF
16565 else
16566 cat >>confdefs.h <<_ACEOF
16567 #define HAVE_DECL_STRLCPY 0
16568 _ACEOF
16574 # This is probably only present on Darwin, but may as well check always
16575 { echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
16576 echo $ECHO_N "checking whether F_FULLFSYNC is declared... $ECHO_C" >&6; }
16577 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
16578 echo $ECHO_N "(cached) $ECHO_C" >&6
16579 else
16580 cat >conftest.$ac_ext <<_ACEOF
16581 /* confdefs.h. */
16582 _ACEOF
16583 cat confdefs.h >>conftest.$ac_ext
16584 cat >>conftest.$ac_ext <<_ACEOF
16585 /* end confdefs.h. */
16586 #include <fcntl.h>
16589 main ()
16591 #ifndef F_FULLFSYNC
16592 (void) F_FULLFSYNC;
16593 #endif
16596 return 0;
16598 _ACEOF
16599 rm -f conftest.$ac_objext
16600 if { (ac_try="$ac_compile"
16601 case "(($ac_try" in
16602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16603 *) ac_try_echo=$ac_try;;
16604 esac
16605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16606 (eval "$ac_compile") 2>conftest.er1
16607 ac_status=$?
16608 grep -v '^ *+' conftest.er1 >conftest.err
16609 rm -f conftest.er1
16610 cat conftest.err >&5
16611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612 (exit $ac_status); } && {
16613 test -z "$ac_c_werror_flag" ||
16614 test ! -s conftest.err
16615 } && test -s conftest.$ac_objext; then
16616 ac_cv_have_decl_F_FULLFSYNC=yes
16617 else
16618 echo "$as_me: failed program was:" >&5
16619 sed 's/^/| /' conftest.$ac_ext >&5
16621 ac_cv_have_decl_F_FULLFSYNC=no
16624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16626 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
16627 echo "${ECHO_T}$ac_cv_have_decl_F_FULLFSYNC" >&6; }
16628 if test $ac_cv_have_decl_F_FULLFSYNC = yes; then
16630 cat >>confdefs.h <<_ACEOF
16631 #define HAVE_DECL_F_FULLFSYNC 1
16632 _ACEOF
16635 else
16636 cat >>confdefs.h <<_ACEOF
16637 #define HAVE_DECL_F_FULLFSYNC 0
16638 _ACEOF
16645 HAVE_IPV6=no
16646 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
16647 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
16648 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
16649 echo $ECHO_N "(cached) $ECHO_C" >&6
16650 else
16651 cat >conftest.$ac_ext <<_ACEOF
16652 /* confdefs.h. */
16653 _ACEOF
16654 cat confdefs.h >>conftest.$ac_ext
16655 cat >>conftest.$ac_ext <<_ACEOF
16656 /* end confdefs.h. */
16657 $ac_includes_default
16658 #include <netinet/in.h>
16660 typedef struct sockaddr_in6 ac__type_new_;
16662 main ()
16664 if ((ac__type_new_ *) 0)
16665 return 0;
16666 if (sizeof (ac__type_new_))
16667 return 0;
16669 return 0;
16671 _ACEOF
16672 rm -f conftest.$ac_objext
16673 if { (ac_try="$ac_compile"
16674 case "(($ac_try" in
16675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16676 *) ac_try_echo=$ac_try;;
16677 esac
16678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16679 (eval "$ac_compile") 2>conftest.er1
16680 ac_status=$?
16681 grep -v '^ *+' conftest.er1 >conftest.err
16682 rm -f conftest.er1
16683 cat conftest.err >&5
16684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16685 (exit $ac_status); } && {
16686 test -z "$ac_c_werror_flag" ||
16687 test ! -s conftest.err
16688 } && test -s conftest.$ac_objext; then
16689 ac_cv_type_struct_sockaddr_in6=yes
16690 else
16691 echo "$as_me: failed program was:" >&5
16692 sed 's/^/| /' conftest.$ac_ext >&5
16694 ac_cv_type_struct_sockaddr_in6=no
16697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16699 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
16700 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
16701 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
16703 cat >>confdefs.h <<\_ACEOF
16704 #define HAVE_IPV6 1
16705 _ACEOF
16707 HAVE_IPV6=yes
16712 { echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
16713 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6; }
16714 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
16715 echo $ECHO_N "(cached) $ECHO_C" >&6
16716 else
16717 cat >conftest.$ac_ext <<_ACEOF
16718 /* confdefs.h. */
16719 _ACEOF
16720 cat confdefs.h >>conftest.$ac_ext
16721 cat >>conftest.$ac_ext <<_ACEOF
16722 /* end confdefs.h. */
16723 #include <machine/vmparam.h>
16724 #include <sys/exec.h>
16727 main ()
16729 PS_STRINGS->ps_nargvstr = 1;
16730 PS_STRINGS->ps_argvstr = "foo";
16732 return 0;
16734 _ACEOF
16735 rm -f conftest.$ac_objext conftest$ac_exeext
16736 if { (ac_try="$ac_link"
16737 case "(($ac_try" in
16738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16739 *) ac_try_echo=$ac_try;;
16740 esac
16741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16742 (eval "$ac_link") 2>conftest.er1
16743 ac_status=$?
16744 grep -v '^ *+' conftest.er1 >conftest.err
16745 rm -f conftest.er1
16746 cat conftest.err >&5
16747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748 (exit $ac_status); } && {
16749 test -z "$ac_c_werror_flag" ||
16750 test ! -s conftest.err
16751 } && test -s conftest$ac_exeext &&
16752 $as_test_x conftest$ac_exeext; then
16753 pgac_cv_var_PS_STRINGS=yes
16754 else
16755 echo "$as_me: failed program was:" >&5
16756 sed 's/^/| /' conftest.$ac_ext >&5
16758 pgac_cv_var_PS_STRINGS=no
16761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16762 conftest$ac_exeext conftest.$ac_ext
16764 { echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
16765 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6; }
16766 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
16768 cat >>confdefs.h <<\_ACEOF
16769 #define HAVE_PS_STRINGS
16770 _ACEOF
16775 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
16776 # is missing. Yes, there are machines that have only one. We may
16777 # also decide to use snprintf.c if snprintf() is present but does not
16778 # have all the features we need --- see below.
16780 if test "$PORTNAME" = "win32"; then
16781 # Win32 gets snprintf.c built unconditionally.
16783 # To properly translate all NLS languages strings, we must support the
16784 # *printf() %$ format, which allows *printf() arguments to be selected
16785 # by position in the translated string.
16787 # libintl versions < 0.13 use the native *printf() functions, and Win32
16788 # *printf() doesn't understand %$, so we must use our /port versions,
16789 # which do understand %$. libintl versions >= 0.13 include their own
16790 # *printf versions on Win32. The libintl 0.13 release note text is:
16792 # C format strings with positions, as they arise when a translator
16793 # needs to reorder a sentence, are now supported on all platforms.
16794 # On those few platforms (NetBSD and Woe32) for which the native
16795 # printf()/fprintf()/... functions don't support such format
16796 # strings, replacements are provided through <libintl.h>.
16798 # We could use libintl >= 0.13's *printf() if we were sure that we had
16799 # a litint >= 0.13 at runtime, but seeing that there is no clean way
16800 # to guarantee that, it is best to just use our own, so we are sure to
16801 # get %$ support. In include/port.h we disable the *printf() macros
16802 # that might have been defined by libintl.
16804 # We do this unconditionally whether NLS is used or not so we are sure
16805 # that all Win32 libraries and binaries behave the same.
16806 pgac_need_repl_snprintf=yes
16807 else
16808 pgac_need_repl_snprintf=no
16810 for ac_func in snprintf
16812 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16813 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16814 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16815 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16816 echo $ECHO_N "(cached) $ECHO_C" >&6
16817 else
16818 cat >conftest.$ac_ext <<_ACEOF
16819 /* confdefs.h. */
16820 _ACEOF
16821 cat confdefs.h >>conftest.$ac_ext
16822 cat >>conftest.$ac_ext <<_ACEOF
16823 /* end confdefs.h. */
16824 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16826 #define $ac_func innocuous_$ac_func
16828 /* System header to define __stub macros and hopefully few prototypes,
16829 which can conflict with char $ac_func (); below.
16830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16831 <limits.h> exists even on freestanding compilers. */
16833 #ifdef __STDC__
16834 # include <limits.h>
16835 #else
16836 # include <assert.h>
16837 #endif
16839 #undef $ac_func
16841 /* Override any GCC internal prototype to avoid an error.
16842 Use char because int might match the return type of a GCC
16843 builtin and then its argument prototype would still apply. */
16844 #ifdef __cplusplus
16845 extern "C"
16846 #endif
16847 char $ac_func ();
16848 /* The GNU C library defines this for functions which it implements
16849 to always fail with ENOSYS. Some functions are actually named
16850 something starting with __ and the normal name is an alias. */
16851 #if defined __stub_$ac_func || defined __stub___$ac_func
16852 choke me
16853 #endif
16856 main ()
16858 return $ac_func ();
16860 return 0;
16862 _ACEOF
16863 rm -f conftest.$ac_objext conftest$ac_exeext
16864 if { (ac_try="$ac_link"
16865 case "(($ac_try" in
16866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16867 *) ac_try_echo=$ac_try;;
16868 esac
16869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16870 (eval "$ac_link") 2>conftest.er1
16871 ac_status=$?
16872 grep -v '^ *+' conftest.er1 >conftest.err
16873 rm -f conftest.er1
16874 cat conftest.err >&5
16875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876 (exit $ac_status); } && {
16877 test -z "$ac_c_werror_flag" ||
16878 test ! -s conftest.err
16879 } && test -s conftest$ac_exeext &&
16880 $as_test_x conftest$ac_exeext; then
16881 eval "$as_ac_var=yes"
16882 else
16883 echo "$as_me: failed program was:" >&5
16884 sed 's/^/| /' conftest.$ac_ext >&5
16886 eval "$as_ac_var=no"
16889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16890 conftest$ac_exeext conftest.$ac_ext
16892 ac_res=`eval echo '${'$as_ac_var'}'`
16893 { echo "$as_me:$LINENO: result: $ac_res" >&5
16894 echo "${ECHO_T}$ac_res" >&6; }
16895 if test `eval echo '${'$as_ac_var'}'` = yes; then
16896 cat >>confdefs.h <<_ACEOF
16897 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16898 _ACEOF
16900 else
16901 pgac_need_repl_snprintf=yes
16903 done
16906 for ac_func in vsnprintf
16908 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16909 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16911 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16912 echo $ECHO_N "(cached) $ECHO_C" >&6
16913 else
16914 cat >conftest.$ac_ext <<_ACEOF
16915 /* confdefs.h. */
16916 _ACEOF
16917 cat confdefs.h >>conftest.$ac_ext
16918 cat >>conftest.$ac_ext <<_ACEOF
16919 /* end confdefs.h. */
16920 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16922 #define $ac_func innocuous_$ac_func
16924 /* System header to define __stub macros and hopefully few prototypes,
16925 which can conflict with char $ac_func (); below.
16926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16927 <limits.h> exists even on freestanding compilers. */
16929 #ifdef __STDC__
16930 # include <limits.h>
16931 #else
16932 # include <assert.h>
16933 #endif
16935 #undef $ac_func
16937 /* Override any GCC internal prototype to avoid an error.
16938 Use char because int might match the return type of a GCC
16939 builtin and then its argument prototype would still apply. */
16940 #ifdef __cplusplus
16941 extern "C"
16942 #endif
16943 char $ac_func ();
16944 /* The GNU C library defines this for functions which it implements
16945 to always fail with ENOSYS. Some functions are actually named
16946 something starting with __ and the normal name is an alias. */
16947 #if defined __stub_$ac_func || defined __stub___$ac_func
16948 choke me
16949 #endif
16952 main ()
16954 return $ac_func ();
16956 return 0;
16958 _ACEOF
16959 rm -f conftest.$ac_objext conftest$ac_exeext
16960 if { (ac_try="$ac_link"
16961 case "(($ac_try" in
16962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16963 *) ac_try_echo=$ac_try;;
16964 esac
16965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16966 (eval "$ac_link") 2>conftest.er1
16967 ac_status=$?
16968 grep -v '^ *+' conftest.er1 >conftest.err
16969 rm -f conftest.er1
16970 cat conftest.err >&5
16971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); } && {
16973 test -z "$ac_c_werror_flag" ||
16974 test ! -s conftest.err
16975 } && test -s conftest$ac_exeext &&
16976 $as_test_x conftest$ac_exeext; then
16977 eval "$as_ac_var=yes"
16978 else
16979 echo "$as_me: failed program was:" >&5
16980 sed 's/^/| /' conftest.$ac_ext >&5
16982 eval "$as_ac_var=no"
16985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16986 conftest$ac_exeext conftest.$ac_ext
16988 ac_res=`eval echo '${'$as_ac_var'}'`
16989 { echo "$as_me:$LINENO: result: $ac_res" >&5
16990 echo "${ECHO_T}$ac_res" >&6; }
16991 if test `eval echo '${'$as_ac_var'}'` = yes; then
16992 cat >>confdefs.h <<_ACEOF
16993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16994 _ACEOF
16996 else
16997 pgac_need_repl_snprintf=yes
16999 done
17004 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
17005 # include/c.h will provide declarations. Note this is a separate test
17006 # from whether the functions exist in the C library --- there are
17007 # systems that have the functions but don't bother to declare them :-(
17009 { echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
17010 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
17011 if test "${ac_cv_have_decl_snprintf+set}" = set; then
17012 echo $ECHO_N "(cached) $ECHO_C" >&6
17013 else
17014 cat >conftest.$ac_ext <<_ACEOF
17015 /* confdefs.h. */
17016 _ACEOF
17017 cat confdefs.h >>conftest.$ac_ext
17018 cat >>conftest.$ac_ext <<_ACEOF
17019 /* end confdefs.h. */
17020 $ac_includes_default
17022 main ()
17024 #ifndef snprintf
17025 (void) snprintf;
17026 #endif
17029 return 0;
17031 _ACEOF
17032 rm -f conftest.$ac_objext
17033 if { (ac_try="$ac_compile"
17034 case "(($ac_try" in
17035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17036 *) ac_try_echo=$ac_try;;
17037 esac
17038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17039 (eval "$ac_compile") 2>conftest.er1
17040 ac_status=$?
17041 grep -v '^ *+' conftest.er1 >conftest.err
17042 rm -f conftest.er1
17043 cat conftest.err >&5
17044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045 (exit $ac_status); } && {
17046 test -z "$ac_c_werror_flag" ||
17047 test ! -s conftest.err
17048 } && test -s conftest.$ac_objext; then
17049 ac_cv_have_decl_snprintf=yes
17050 else
17051 echo "$as_me: failed program was:" >&5
17052 sed 's/^/| /' conftest.$ac_ext >&5
17054 ac_cv_have_decl_snprintf=no
17057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17059 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
17060 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
17061 if test $ac_cv_have_decl_snprintf = yes; then
17063 cat >>confdefs.h <<_ACEOF
17064 #define HAVE_DECL_SNPRINTF 1
17065 _ACEOF
17068 else
17069 cat >>confdefs.h <<_ACEOF
17070 #define HAVE_DECL_SNPRINTF 0
17071 _ACEOF
17075 { echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
17076 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
17077 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
17078 echo $ECHO_N "(cached) $ECHO_C" >&6
17079 else
17080 cat >conftest.$ac_ext <<_ACEOF
17081 /* confdefs.h. */
17082 _ACEOF
17083 cat confdefs.h >>conftest.$ac_ext
17084 cat >>conftest.$ac_ext <<_ACEOF
17085 /* end confdefs.h. */
17086 $ac_includes_default
17088 main ()
17090 #ifndef vsnprintf
17091 (void) vsnprintf;
17092 #endif
17095 return 0;
17097 _ACEOF
17098 rm -f conftest.$ac_objext
17099 if { (ac_try="$ac_compile"
17100 case "(($ac_try" in
17101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17102 *) ac_try_echo=$ac_try;;
17103 esac
17104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17105 (eval "$ac_compile") 2>conftest.er1
17106 ac_status=$?
17107 grep -v '^ *+' conftest.er1 >conftest.err
17108 rm -f conftest.er1
17109 cat conftest.err >&5
17110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111 (exit $ac_status); } && {
17112 test -z "$ac_c_werror_flag" ||
17113 test ! -s conftest.err
17114 } && test -s conftest.$ac_objext; then
17115 ac_cv_have_decl_vsnprintf=yes
17116 else
17117 echo "$as_me: failed program was:" >&5
17118 sed 's/^/| /' conftest.$ac_ext >&5
17120 ac_cv_have_decl_vsnprintf=no
17123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17125 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
17126 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
17127 if test $ac_cv_have_decl_vsnprintf = yes; then
17129 cat >>confdefs.h <<_ACEOF
17130 #define HAVE_DECL_VSNPRINTF 1
17131 _ACEOF
17134 else
17135 cat >>confdefs.h <<_ACEOF
17136 #define HAVE_DECL_VSNPRINTF 0
17137 _ACEOF
17145 { echo "$as_me:$LINENO: checking for isinf" >&5
17146 echo $ECHO_N "checking for isinf... $ECHO_C" >&6; }
17147 if test "${ac_cv_func_isinf+set}" = set; then
17148 echo $ECHO_N "(cached) $ECHO_C" >&6
17149 else
17150 cat >conftest.$ac_ext <<_ACEOF
17151 /* confdefs.h. */
17152 _ACEOF
17153 cat confdefs.h >>conftest.$ac_ext
17154 cat >>conftest.$ac_ext <<_ACEOF
17155 /* end confdefs.h. */
17157 #include <math.h>
17158 double glob_double;
17161 main ()
17163 return isinf(glob_double) ? 0 : 1;
17165 return 0;
17167 _ACEOF
17168 rm -f conftest.$ac_objext conftest$ac_exeext
17169 if { (ac_try="$ac_link"
17170 case "(($ac_try" in
17171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17172 *) ac_try_echo=$ac_try;;
17173 esac
17174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17175 (eval "$ac_link") 2>conftest.er1
17176 ac_status=$?
17177 grep -v '^ *+' conftest.er1 >conftest.err
17178 rm -f conftest.er1
17179 cat conftest.err >&5
17180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181 (exit $ac_status); } && {
17182 test -z "$ac_c_werror_flag" ||
17183 test ! -s conftest.err
17184 } && test -s conftest$ac_exeext &&
17185 $as_test_x conftest$ac_exeext; then
17186 ac_cv_func_isinf=yes
17187 else
17188 echo "$as_me: failed program was:" >&5
17189 sed 's/^/| /' conftest.$ac_ext >&5
17191 ac_cv_func_isinf=no
17194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17195 conftest$ac_exeext conftest.$ac_ext
17197 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
17198 echo "${ECHO_T}$ac_cv_func_isinf" >&6; }
17200 if test $ac_cv_func_isinf = yes ; then
17202 cat >>confdefs.h <<\_ACEOF
17203 #define HAVE_ISINF 1
17204 _ACEOF
17206 else
17207 case " $LIBOBJS " in
17208 *" isinf.$ac_objext "* ) ;;
17209 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
17211 esac
17213 # Look for a way to implement a substitute for isinf()
17218 for ac_func in fpclass fp_class fp_class_d class
17220 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17221 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17223 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17224 echo $ECHO_N "(cached) $ECHO_C" >&6
17225 else
17226 cat >conftest.$ac_ext <<_ACEOF
17227 /* confdefs.h. */
17228 _ACEOF
17229 cat confdefs.h >>conftest.$ac_ext
17230 cat >>conftest.$ac_ext <<_ACEOF
17231 /* end confdefs.h. */
17232 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17234 #define $ac_func innocuous_$ac_func
17236 /* System header to define __stub macros and hopefully few prototypes,
17237 which can conflict with char $ac_func (); below.
17238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17239 <limits.h> exists even on freestanding compilers. */
17241 #ifdef __STDC__
17242 # include <limits.h>
17243 #else
17244 # include <assert.h>
17245 #endif
17247 #undef $ac_func
17249 /* Override any GCC internal prototype to avoid an error.
17250 Use char because int might match the return type of a GCC
17251 builtin and then its argument prototype would still apply. */
17252 #ifdef __cplusplus
17253 extern "C"
17254 #endif
17255 char $ac_func ();
17256 /* The GNU C library defines this for functions which it implements
17257 to always fail with ENOSYS. Some functions are actually named
17258 something starting with __ and the normal name is an alias. */
17259 #if defined __stub_$ac_func || defined __stub___$ac_func
17260 choke me
17261 #endif
17264 main ()
17266 return $ac_func ();
17268 return 0;
17270 _ACEOF
17271 rm -f conftest.$ac_objext conftest$ac_exeext
17272 if { (ac_try="$ac_link"
17273 case "(($ac_try" in
17274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17275 *) ac_try_echo=$ac_try;;
17276 esac
17277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17278 (eval "$ac_link") 2>conftest.er1
17279 ac_status=$?
17280 grep -v '^ *+' conftest.er1 >conftest.err
17281 rm -f conftest.er1
17282 cat conftest.err >&5
17283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284 (exit $ac_status); } && {
17285 test -z "$ac_c_werror_flag" ||
17286 test ! -s conftest.err
17287 } && test -s conftest$ac_exeext &&
17288 $as_test_x conftest$ac_exeext; then
17289 eval "$as_ac_var=yes"
17290 else
17291 echo "$as_me: failed program was:" >&5
17292 sed 's/^/| /' conftest.$ac_ext >&5
17294 eval "$as_ac_var=no"
17297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17298 conftest$ac_exeext conftest.$ac_ext
17300 ac_res=`eval echo '${'$as_ac_var'}'`
17301 { echo "$as_me:$LINENO: result: $ac_res" >&5
17302 echo "${ECHO_T}$ac_res" >&6; }
17303 if test `eval echo '${'$as_ac_var'}'` = yes; then
17304 cat >>confdefs.h <<_ACEOF
17305 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17306 _ACEOF
17307 break
17309 done
17313 # Some versions of libedit contain strlcpy(); so disregard that library while
17314 # checking for these standard libc functions.
17315 pgac_save_LIBS="$LIBS"
17316 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
17332 for ac_func in crypt getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul unsetenv
17334 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17335 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17336 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17337 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17338 echo $ECHO_N "(cached) $ECHO_C" >&6
17339 else
17340 cat >conftest.$ac_ext <<_ACEOF
17341 /* confdefs.h. */
17342 _ACEOF
17343 cat confdefs.h >>conftest.$ac_ext
17344 cat >>conftest.$ac_ext <<_ACEOF
17345 /* end confdefs.h. */
17346 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17348 #define $ac_func innocuous_$ac_func
17350 /* System header to define __stub macros and hopefully few prototypes,
17351 which can conflict with char $ac_func (); below.
17352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17353 <limits.h> exists even on freestanding compilers. */
17355 #ifdef __STDC__
17356 # include <limits.h>
17357 #else
17358 # include <assert.h>
17359 #endif
17361 #undef $ac_func
17363 /* Override any GCC internal prototype to avoid an error.
17364 Use char because int might match the return type of a GCC
17365 builtin and then its argument prototype would still apply. */
17366 #ifdef __cplusplus
17367 extern "C"
17368 #endif
17369 char $ac_func ();
17370 /* The GNU C library defines this for functions which it implements
17371 to always fail with ENOSYS. Some functions are actually named
17372 something starting with __ and the normal name is an alias. */
17373 #if defined __stub_$ac_func || defined __stub___$ac_func
17374 choke me
17375 #endif
17378 main ()
17380 return $ac_func ();
17382 return 0;
17384 _ACEOF
17385 rm -f conftest.$ac_objext conftest$ac_exeext
17386 if { (ac_try="$ac_link"
17387 case "(($ac_try" in
17388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17389 *) ac_try_echo=$ac_try;;
17390 esac
17391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17392 (eval "$ac_link") 2>conftest.er1
17393 ac_status=$?
17394 grep -v '^ *+' conftest.er1 >conftest.err
17395 rm -f conftest.er1
17396 cat conftest.err >&5
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); } && {
17399 test -z "$ac_c_werror_flag" ||
17400 test ! -s conftest.err
17401 } && test -s conftest$ac_exeext &&
17402 $as_test_x conftest$ac_exeext; then
17403 eval "$as_ac_var=yes"
17404 else
17405 echo "$as_me: failed program was:" >&5
17406 sed 's/^/| /' conftest.$ac_ext >&5
17408 eval "$as_ac_var=no"
17411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17412 conftest$ac_exeext conftest.$ac_ext
17414 ac_res=`eval echo '${'$as_ac_var'}'`
17415 { echo "$as_me:$LINENO: result: $ac_res" >&5
17416 echo "${ECHO_T}$ac_res" >&6; }
17417 if test `eval echo '${'$as_ac_var'}'` = yes; then
17418 cat >>confdefs.h <<_ACEOF
17419 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17420 _ACEOF
17422 else
17423 case " $LIBOBJS " in
17424 *" $ac_func.$ac_objext "* ) ;;
17425 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17427 esac
17430 done
17434 LIBS="$pgac_save_LIBS"
17436 # System's version of getaddrinfo(), if any, may be used only if we found
17437 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
17438 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
17439 # versions of getaddrinfo don't follow normal C call protocol. This is OK
17440 # because we want to use our own getaddrinfo.c on Windows anyway.)
17441 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
17443 for ac_func in getaddrinfo
17445 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17446 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17447 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17448 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17449 echo $ECHO_N "(cached) $ECHO_C" >&6
17450 else
17451 cat >conftest.$ac_ext <<_ACEOF
17452 /* confdefs.h. */
17453 _ACEOF
17454 cat confdefs.h >>conftest.$ac_ext
17455 cat >>conftest.$ac_ext <<_ACEOF
17456 /* end confdefs.h. */
17457 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17458 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17459 #define $ac_func innocuous_$ac_func
17461 /* System header to define __stub macros and hopefully few prototypes,
17462 which can conflict with char $ac_func (); below.
17463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17464 <limits.h> exists even on freestanding compilers. */
17466 #ifdef __STDC__
17467 # include <limits.h>
17468 #else
17469 # include <assert.h>
17470 #endif
17472 #undef $ac_func
17474 /* Override any GCC internal prototype to avoid an error.
17475 Use char because int might match the return type of a GCC
17476 builtin and then its argument prototype would still apply. */
17477 #ifdef __cplusplus
17478 extern "C"
17479 #endif
17480 char $ac_func ();
17481 /* The GNU C library defines this for functions which it implements
17482 to always fail with ENOSYS. Some functions are actually named
17483 something starting with __ and the normal name is an alias. */
17484 #if defined __stub_$ac_func || defined __stub___$ac_func
17485 choke me
17486 #endif
17489 main ()
17491 return $ac_func ();
17493 return 0;
17495 _ACEOF
17496 rm -f conftest.$ac_objext conftest$ac_exeext
17497 if { (ac_try="$ac_link"
17498 case "(($ac_try" in
17499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17500 *) ac_try_echo=$ac_try;;
17501 esac
17502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17503 (eval "$ac_link") 2>conftest.er1
17504 ac_status=$?
17505 grep -v '^ *+' conftest.er1 >conftest.err
17506 rm -f conftest.er1
17507 cat conftest.err >&5
17508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509 (exit $ac_status); } && {
17510 test -z "$ac_c_werror_flag" ||
17511 test ! -s conftest.err
17512 } && test -s conftest$ac_exeext &&
17513 $as_test_x conftest$ac_exeext; then
17514 eval "$as_ac_var=yes"
17515 else
17516 echo "$as_me: failed program was:" >&5
17517 sed 's/^/| /' conftest.$ac_ext >&5
17519 eval "$as_ac_var=no"
17522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17523 conftest$ac_exeext conftest.$ac_ext
17525 ac_res=`eval echo '${'$as_ac_var'}'`
17526 { echo "$as_me:$LINENO: result: $ac_res" >&5
17527 echo "${ECHO_T}$ac_res" >&6; }
17528 if test `eval echo '${'$as_ac_var'}'` = yes; then
17529 cat >>confdefs.h <<_ACEOF
17530 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17531 _ACEOF
17533 else
17534 case " $LIBOBJS " in
17535 *" $ac_func.$ac_objext "* ) ;;
17536 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17538 esac
17541 done
17544 else
17545 case " $LIBOBJS " in
17546 *" getaddrinfo.$ac_objext "* ) ;;
17547 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
17549 esac
17553 # Similarly, use system's getopt_long() only if system provides struct option.
17554 # Solaris' getopt() doesn't do what we want for long options, so always use
17555 # our versions on that platform.
17556 if test "$PORTNAME" = "solaris"; then
17557 case " $LIBOBJS " in
17558 *" getopt.$ac_objext "* ) ;;
17559 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
17561 esac
17563 case " $LIBOBJS " in
17564 *" getopt_long.$ac_objext "* ) ;;
17565 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
17567 esac
17569 elif test x"$ac_cv_type_struct_option" = xyes ; then
17571 for ac_func in getopt_long
17573 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17574 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17576 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17577 echo $ECHO_N "(cached) $ECHO_C" >&6
17578 else
17579 cat >conftest.$ac_ext <<_ACEOF
17580 /* confdefs.h. */
17581 _ACEOF
17582 cat confdefs.h >>conftest.$ac_ext
17583 cat >>conftest.$ac_ext <<_ACEOF
17584 /* end confdefs.h. */
17585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17587 #define $ac_func innocuous_$ac_func
17589 /* System header to define __stub macros and hopefully few prototypes,
17590 which can conflict with char $ac_func (); below.
17591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17592 <limits.h> exists even on freestanding compilers. */
17594 #ifdef __STDC__
17595 # include <limits.h>
17596 #else
17597 # include <assert.h>
17598 #endif
17600 #undef $ac_func
17602 /* Override any GCC internal prototype to avoid an error.
17603 Use char because int might match the return type of a GCC
17604 builtin and then its argument prototype would still apply. */
17605 #ifdef __cplusplus
17606 extern "C"
17607 #endif
17608 char $ac_func ();
17609 /* The GNU C library defines this for functions which it implements
17610 to always fail with ENOSYS. Some functions are actually named
17611 something starting with __ and the normal name is an alias. */
17612 #if defined __stub_$ac_func || defined __stub___$ac_func
17613 choke me
17614 #endif
17617 main ()
17619 return $ac_func ();
17621 return 0;
17623 _ACEOF
17624 rm -f conftest.$ac_objext conftest$ac_exeext
17625 if { (ac_try="$ac_link"
17626 case "(($ac_try" in
17627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17628 *) ac_try_echo=$ac_try;;
17629 esac
17630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17631 (eval "$ac_link") 2>conftest.er1
17632 ac_status=$?
17633 grep -v '^ *+' conftest.er1 >conftest.err
17634 rm -f conftest.er1
17635 cat conftest.err >&5
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); } && {
17638 test -z "$ac_c_werror_flag" ||
17639 test ! -s conftest.err
17640 } && test -s conftest$ac_exeext &&
17641 $as_test_x conftest$ac_exeext; then
17642 eval "$as_ac_var=yes"
17643 else
17644 echo "$as_me: failed program was:" >&5
17645 sed 's/^/| /' conftest.$ac_ext >&5
17647 eval "$as_ac_var=no"
17650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17651 conftest$ac_exeext conftest.$ac_ext
17653 ac_res=`eval echo '${'$as_ac_var'}'`
17654 { echo "$as_me:$LINENO: result: $ac_res" >&5
17655 echo "${ECHO_T}$ac_res" >&6; }
17656 if test `eval echo '${'$as_ac_var'}'` = yes; then
17657 cat >>confdefs.h <<_ACEOF
17658 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17659 _ACEOF
17661 else
17662 case " $LIBOBJS " in
17663 *" $ac_func.$ac_objext "* ) ;;
17664 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17666 esac
17669 done
17672 else
17673 case " $LIBOBJS " in
17674 *" getopt_long.$ac_objext "* ) ;;
17675 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
17677 esac
17681 # Win32 support
17682 if test "$PORTNAME" = "win32"; then
17684 for ac_func in gettimeofday
17686 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17687 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17689 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17690 echo $ECHO_N "(cached) $ECHO_C" >&6
17691 else
17692 cat >conftest.$ac_ext <<_ACEOF
17693 /* confdefs.h. */
17694 _ACEOF
17695 cat confdefs.h >>conftest.$ac_ext
17696 cat >>conftest.$ac_ext <<_ACEOF
17697 /* end confdefs.h. */
17698 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17700 #define $ac_func innocuous_$ac_func
17702 /* System header to define __stub macros and hopefully few prototypes,
17703 which can conflict with char $ac_func (); below.
17704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17705 <limits.h> exists even on freestanding compilers. */
17707 #ifdef __STDC__
17708 # include <limits.h>
17709 #else
17710 # include <assert.h>
17711 #endif
17713 #undef $ac_func
17715 /* Override any GCC internal prototype to avoid an error.
17716 Use char because int might match the return type of a GCC
17717 builtin and then its argument prototype would still apply. */
17718 #ifdef __cplusplus
17719 extern "C"
17720 #endif
17721 char $ac_func ();
17722 /* The GNU C library defines this for functions which it implements
17723 to always fail with ENOSYS. Some functions are actually named
17724 something starting with __ and the normal name is an alias. */
17725 #if defined __stub_$ac_func || defined __stub___$ac_func
17726 choke me
17727 #endif
17730 main ()
17732 return $ac_func ();
17734 return 0;
17736 _ACEOF
17737 rm -f conftest.$ac_objext conftest$ac_exeext
17738 if { (ac_try="$ac_link"
17739 case "(($ac_try" in
17740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17741 *) ac_try_echo=$ac_try;;
17742 esac
17743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17744 (eval "$ac_link") 2>conftest.er1
17745 ac_status=$?
17746 grep -v '^ *+' conftest.er1 >conftest.err
17747 rm -f conftest.er1
17748 cat conftest.err >&5
17749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750 (exit $ac_status); } && {
17751 test -z "$ac_c_werror_flag" ||
17752 test ! -s conftest.err
17753 } && test -s conftest$ac_exeext &&
17754 $as_test_x conftest$ac_exeext; then
17755 eval "$as_ac_var=yes"
17756 else
17757 echo "$as_me: failed program was:" >&5
17758 sed 's/^/| /' conftest.$ac_ext >&5
17760 eval "$as_ac_var=no"
17763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17764 conftest$ac_exeext conftest.$ac_ext
17766 ac_res=`eval echo '${'$as_ac_var'}'`
17767 { echo "$as_me:$LINENO: result: $ac_res" >&5
17768 echo "${ECHO_T}$ac_res" >&6; }
17769 if test `eval echo '${'$as_ac_var'}'` = yes; then
17770 cat >>confdefs.h <<_ACEOF
17771 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17772 _ACEOF
17774 else
17775 case " $LIBOBJS " in
17776 *" $ac_func.$ac_objext "* ) ;;
17777 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17779 esac
17782 done
17785 case " $LIBOBJS " in
17786 *" kill.$ac_objext "* ) ;;
17787 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
17789 esac
17791 case " $LIBOBJS " in
17792 *" open.$ac_objext "* ) ;;
17793 *) LIBOBJS="$LIBOBJS open.$ac_objext"
17795 esac
17797 case " $LIBOBJS " in
17798 *" rand.$ac_objext "* ) ;;
17799 *) LIBOBJS="$LIBOBJS rand.$ac_objext"
17801 esac
17803 case " $LIBOBJS " in
17804 *" win32error.$ac_objext "* ) ;;
17805 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
17807 esac
17810 cat >>confdefs.h <<\_ACEOF
17811 #define HAVE_SYMLINK 1
17812 _ACEOF
17816 if test "$with_readline" = yes; then
17817 { echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
17818 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6; }
17819 cat >conftest.$ac_ext <<_ACEOF
17820 /* confdefs.h. */
17821 _ACEOF
17822 cat confdefs.h >>conftest.$ac_ext
17823 cat >>conftest.$ac_ext <<_ACEOF
17824 /* end confdefs.h. */
17825 #include <stdio.h>
17826 #ifdef HAVE_READLINE_READLINE_H
17827 # include <readline/readline.h>
17828 #elif defined(HAVE_READLINE_H)
17829 # include <readline.h>
17830 #endif
17833 main ()
17835 rl_completion_append_character = 'x';
17837 return 0;
17839 _ACEOF
17840 rm -f conftest.$ac_objext conftest$ac_exeext
17841 if { (ac_try="$ac_link"
17842 case "(($ac_try" in
17843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17844 *) ac_try_echo=$ac_try;;
17845 esac
17846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17847 (eval "$ac_link") 2>conftest.er1
17848 ac_status=$?
17849 grep -v '^ *+' conftest.er1 >conftest.err
17850 rm -f conftest.er1
17851 cat conftest.err >&5
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); } && {
17854 test -z "$ac_c_werror_flag" ||
17855 test ! -s conftest.err
17856 } && test -s conftest$ac_exeext &&
17857 $as_test_x conftest$ac_exeext; then
17858 { echo "$as_me:$LINENO: result: yes" >&5
17859 echo "${ECHO_T}yes" >&6; }
17861 cat >>confdefs.h <<\_ACEOF
17862 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
17863 _ACEOF
17865 else
17866 echo "$as_me: failed program was:" >&5
17867 sed 's/^/| /' conftest.$ac_ext >&5
17869 { echo "$as_me:$LINENO: result: no" >&5
17870 echo "${ECHO_T}no" >&6; }
17873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17874 conftest$ac_exeext conftest.$ac_ext
17877 for ac_func in rl_completion_matches rl_filename_completion_function
17879 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17880 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17881 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17882 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17883 echo $ECHO_N "(cached) $ECHO_C" >&6
17884 else
17885 cat >conftest.$ac_ext <<_ACEOF
17886 /* confdefs.h. */
17887 _ACEOF
17888 cat confdefs.h >>conftest.$ac_ext
17889 cat >>conftest.$ac_ext <<_ACEOF
17890 /* end confdefs.h. */
17891 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17893 #define $ac_func innocuous_$ac_func
17895 /* System header to define __stub macros and hopefully few prototypes,
17896 which can conflict with char $ac_func (); below.
17897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17898 <limits.h> exists even on freestanding compilers. */
17900 #ifdef __STDC__
17901 # include <limits.h>
17902 #else
17903 # include <assert.h>
17904 #endif
17906 #undef $ac_func
17908 /* Override any GCC internal prototype to avoid an error.
17909 Use char because int might match the return type of a GCC
17910 builtin and then its argument prototype would still apply. */
17911 #ifdef __cplusplus
17912 extern "C"
17913 #endif
17914 char $ac_func ();
17915 /* The GNU C library defines this for functions which it implements
17916 to always fail with ENOSYS. Some functions are actually named
17917 something starting with __ and the normal name is an alias. */
17918 #if defined __stub_$ac_func || defined __stub___$ac_func
17919 choke me
17920 #endif
17923 main ()
17925 return $ac_func ();
17927 return 0;
17929 _ACEOF
17930 rm -f conftest.$ac_objext conftest$ac_exeext
17931 if { (ac_try="$ac_link"
17932 case "(($ac_try" in
17933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17934 *) ac_try_echo=$ac_try;;
17935 esac
17936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17937 (eval "$ac_link") 2>conftest.er1
17938 ac_status=$?
17939 grep -v '^ *+' conftest.er1 >conftest.err
17940 rm -f conftest.er1
17941 cat conftest.err >&5
17942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943 (exit $ac_status); } && {
17944 test -z "$ac_c_werror_flag" ||
17945 test ! -s conftest.err
17946 } && test -s conftest$ac_exeext &&
17947 $as_test_x conftest$ac_exeext; then
17948 eval "$as_ac_var=yes"
17949 else
17950 echo "$as_me: failed program was:" >&5
17951 sed 's/^/| /' conftest.$ac_ext >&5
17953 eval "$as_ac_var=no"
17956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17957 conftest$ac_exeext conftest.$ac_ext
17959 ac_res=`eval echo '${'$as_ac_var'}'`
17960 { echo "$as_me:$LINENO: result: $ac_res" >&5
17961 echo "${ECHO_T}$ac_res" >&6; }
17962 if test `eval echo '${'$as_ac_var'}'` = yes; then
17963 cat >>confdefs.h <<_ACEOF
17964 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17965 _ACEOF
17968 done
17971 for ac_func in replace_history_entry
17973 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17974 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17975 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17976 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17977 echo $ECHO_N "(cached) $ECHO_C" >&6
17978 else
17979 cat >conftest.$ac_ext <<_ACEOF
17980 /* confdefs.h. */
17981 _ACEOF
17982 cat confdefs.h >>conftest.$ac_ext
17983 cat >>conftest.$ac_ext <<_ACEOF
17984 /* end confdefs.h. */
17985 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17987 #define $ac_func innocuous_$ac_func
17989 /* System header to define __stub macros and hopefully few prototypes,
17990 which can conflict with char $ac_func (); below.
17991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17992 <limits.h> exists even on freestanding compilers. */
17994 #ifdef __STDC__
17995 # include <limits.h>
17996 #else
17997 # include <assert.h>
17998 #endif
18000 #undef $ac_func
18002 /* Override any GCC internal prototype to avoid an error.
18003 Use char because int might match the return type of a GCC
18004 builtin and then its argument prototype would still apply. */
18005 #ifdef __cplusplus
18006 extern "C"
18007 #endif
18008 char $ac_func ();
18009 /* The GNU C library defines this for functions which it implements
18010 to always fail with ENOSYS. Some functions are actually named
18011 something starting with __ and the normal name is an alias. */
18012 #if defined __stub_$ac_func || defined __stub___$ac_func
18013 choke me
18014 #endif
18017 main ()
18019 return $ac_func ();
18021 return 0;
18023 _ACEOF
18024 rm -f conftest.$ac_objext conftest$ac_exeext
18025 if { (ac_try="$ac_link"
18026 case "(($ac_try" in
18027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18028 *) ac_try_echo=$ac_try;;
18029 esac
18030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18031 (eval "$ac_link") 2>conftest.er1
18032 ac_status=$?
18033 grep -v '^ *+' conftest.er1 >conftest.err
18034 rm -f conftest.er1
18035 cat conftest.err >&5
18036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18037 (exit $ac_status); } && {
18038 test -z "$ac_c_werror_flag" ||
18039 test ! -s conftest.err
18040 } && test -s conftest$ac_exeext &&
18041 $as_test_x conftest$ac_exeext; then
18042 eval "$as_ac_var=yes"
18043 else
18044 echo "$as_me: failed program was:" >&5
18045 sed 's/^/| /' conftest.$ac_ext >&5
18047 eval "$as_ac_var=no"
18050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18051 conftest$ac_exeext conftest.$ac_ext
18053 ac_res=`eval echo '${'$as_ac_var'}'`
18054 { echo "$as_me:$LINENO: result: $ac_res" >&5
18055 echo "${ECHO_T}$ac_res" >&6; }
18056 if test `eval echo '${'$as_ac_var'}'` = yes; then
18057 cat >>confdefs.h <<_ACEOF
18058 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18059 _ACEOF
18062 done
18067 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
18068 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
18069 cat >conftest.$ac_ext <<_ACEOF
18070 /* confdefs.h. */
18071 _ACEOF
18072 cat confdefs.h >>conftest.$ac_ext
18073 cat >>conftest.$ac_ext <<_ACEOF
18074 /* end confdefs.h. */
18075 #include <setjmp.h>
18077 main ()
18079 sigjmp_buf x; sigsetjmp(x, 1);
18081 return 0;
18083 _ACEOF
18084 rm -f conftest.$ac_objext conftest$ac_exeext
18085 if { (ac_try="$ac_link"
18086 case "(($ac_try" in
18087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18088 *) ac_try_echo=$ac_try;;
18089 esac
18090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18091 (eval "$ac_link") 2>conftest.er1
18092 ac_status=$?
18093 grep -v '^ *+' conftest.er1 >conftest.err
18094 rm -f conftest.er1
18095 cat conftest.err >&5
18096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18097 (exit $ac_status); } && {
18098 test -z "$ac_c_werror_flag" ||
18099 test ! -s conftest.err
18100 } && test -s conftest$ac_exeext &&
18101 $as_test_x conftest$ac_exeext; then
18103 cat >>confdefs.h <<\_ACEOF
18104 #define HAVE_SIGSETJMP 1
18105 _ACEOF
18107 { echo "$as_me:$LINENO: result: yes" >&5
18108 echo "${ECHO_T}yes" >&6; }
18109 else
18110 echo "$as_me: failed program was:" >&5
18111 sed 's/^/| /' conftest.$ac_ext >&5
18113 { echo "$as_me:$LINENO: result: no" >&5
18114 echo "${ECHO_T}no" >&6; }
18117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18118 conftest$ac_exeext conftest.$ac_ext
18120 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
18121 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
18122 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
18123 echo $ECHO_N "(cached) $ECHO_C" >&6
18124 else
18125 cat >conftest.$ac_ext <<_ACEOF
18126 /* confdefs.h. */
18127 _ACEOF
18128 cat confdefs.h >>conftest.$ac_ext
18129 cat >>conftest.$ac_ext <<_ACEOF
18130 /* end confdefs.h. */
18131 #include <signal.h>
18132 /* NetBSD declares sys_siglist in unistd.h. */
18133 #ifdef HAVE_UNISTD_H
18134 # include <unistd.h>
18135 #endif
18139 main ()
18141 #ifndef sys_siglist
18142 (void) sys_siglist;
18143 #endif
18146 return 0;
18148 _ACEOF
18149 rm -f conftest.$ac_objext
18150 if { (ac_try="$ac_compile"
18151 case "(($ac_try" in
18152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18153 *) ac_try_echo=$ac_try;;
18154 esac
18155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18156 (eval "$ac_compile") 2>conftest.er1
18157 ac_status=$?
18158 grep -v '^ *+' conftest.er1 >conftest.err
18159 rm -f conftest.er1
18160 cat conftest.err >&5
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); } && {
18163 test -z "$ac_c_werror_flag" ||
18164 test ! -s conftest.err
18165 } && test -s conftest.$ac_objext; then
18166 ac_cv_have_decl_sys_siglist=yes
18167 else
18168 echo "$as_me: failed program was:" >&5
18169 sed 's/^/| /' conftest.$ac_ext >&5
18171 ac_cv_have_decl_sys_siglist=no
18174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18176 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
18177 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
18178 if test $ac_cv_have_decl_sys_siglist = yes; then
18180 cat >>confdefs.h <<_ACEOF
18181 #define HAVE_DECL_SYS_SIGLIST 1
18182 _ACEOF
18185 else
18186 cat >>confdefs.h <<_ACEOF
18187 #define HAVE_DECL_SYS_SIGLIST 0
18188 _ACEOF
18196 { echo "$as_me:$LINENO: checking for syslog" >&5
18197 echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
18198 if test "${ac_cv_func_syslog+set}" = set; then
18199 echo $ECHO_N "(cached) $ECHO_C" >&6
18200 else
18201 cat >conftest.$ac_ext <<_ACEOF
18202 /* confdefs.h. */
18203 _ACEOF
18204 cat confdefs.h >>conftest.$ac_ext
18205 cat >>conftest.$ac_ext <<_ACEOF
18206 /* end confdefs.h. */
18207 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
18208 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18209 #define syslog innocuous_syslog
18211 /* System header to define __stub macros and hopefully few prototypes,
18212 which can conflict with char syslog (); below.
18213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18214 <limits.h> exists even on freestanding compilers. */
18216 #ifdef __STDC__
18217 # include <limits.h>
18218 #else
18219 # include <assert.h>
18220 #endif
18222 #undef syslog
18224 /* Override any GCC internal prototype to avoid an error.
18225 Use char because int might match the return type of a GCC
18226 builtin and then its argument prototype would still apply. */
18227 #ifdef __cplusplus
18228 extern "C"
18229 #endif
18230 char syslog ();
18231 /* The GNU C library defines this for functions which it implements
18232 to always fail with ENOSYS. Some functions are actually named
18233 something starting with __ and the normal name is an alias. */
18234 #if defined __stub_syslog || defined __stub___syslog
18235 choke me
18236 #endif
18239 main ()
18241 return syslog ();
18243 return 0;
18245 _ACEOF
18246 rm -f conftest.$ac_objext conftest$ac_exeext
18247 if { (ac_try="$ac_link"
18248 case "(($ac_try" in
18249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18250 *) ac_try_echo=$ac_try;;
18251 esac
18252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18253 (eval "$ac_link") 2>conftest.er1
18254 ac_status=$?
18255 grep -v '^ *+' conftest.er1 >conftest.err
18256 rm -f conftest.er1
18257 cat conftest.err >&5
18258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18259 (exit $ac_status); } && {
18260 test -z "$ac_c_werror_flag" ||
18261 test ! -s conftest.err
18262 } && test -s conftest$ac_exeext &&
18263 $as_test_x conftest$ac_exeext; then
18264 ac_cv_func_syslog=yes
18265 else
18266 echo "$as_me: failed program was:" >&5
18267 sed 's/^/| /' conftest.$ac_ext >&5
18269 ac_cv_func_syslog=no
18272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18273 conftest$ac_exeext conftest.$ac_ext
18275 { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
18276 echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
18277 if test $ac_cv_func_syslog = yes; then
18278 if test "${ac_cv_header_syslog_h+set}" = set; then
18279 { echo "$as_me:$LINENO: checking for syslog.h" >&5
18280 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
18281 if test "${ac_cv_header_syslog_h+set}" = set; then
18282 echo $ECHO_N "(cached) $ECHO_C" >&6
18284 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
18285 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
18286 else
18287 # Is the header compilable?
18288 { echo "$as_me:$LINENO: checking syslog.h usability" >&5
18289 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6; }
18290 cat >conftest.$ac_ext <<_ACEOF
18291 /* confdefs.h. */
18292 _ACEOF
18293 cat confdefs.h >>conftest.$ac_ext
18294 cat >>conftest.$ac_ext <<_ACEOF
18295 /* end confdefs.h. */
18296 $ac_includes_default
18297 #include <syslog.h>
18298 _ACEOF
18299 rm -f conftest.$ac_objext
18300 if { (ac_try="$ac_compile"
18301 case "(($ac_try" in
18302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18303 *) ac_try_echo=$ac_try;;
18304 esac
18305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18306 (eval "$ac_compile") 2>conftest.er1
18307 ac_status=$?
18308 grep -v '^ *+' conftest.er1 >conftest.err
18309 rm -f conftest.er1
18310 cat conftest.err >&5
18311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312 (exit $ac_status); } && {
18313 test -z "$ac_c_werror_flag" ||
18314 test ! -s conftest.err
18315 } && test -s conftest.$ac_objext; then
18316 ac_header_compiler=yes
18317 else
18318 echo "$as_me: failed program was:" >&5
18319 sed 's/^/| /' conftest.$ac_ext >&5
18321 ac_header_compiler=no
18324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18325 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18326 echo "${ECHO_T}$ac_header_compiler" >&6; }
18328 # Is the header present?
18329 { echo "$as_me:$LINENO: checking syslog.h presence" >&5
18330 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6; }
18331 cat >conftest.$ac_ext <<_ACEOF
18332 /* confdefs.h. */
18333 _ACEOF
18334 cat confdefs.h >>conftest.$ac_ext
18335 cat >>conftest.$ac_ext <<_ACEOF
18336 /* end confdefs.h. */
18337 #include <syslog.h>
18338 _ACEOF
18339 if { (ac_try="$ac_cpp conftest.$ac_ext"
18340 case "(($ac_try" in
18341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18342 *) ac_try_echo=$ac_try;;
18343 esac
18344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18345 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18346 ac_status=$?
18347 grep -v '^ *+' conftest.er1 >conftest.err
18348 rm -f conftest.er1
18349 cat conftest.err >&5
18350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351 (exit $ac_status); } >/dev/null && {
18352 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18353 test ! -s conftest.err
18354 }; then
18355 ac_header_preproc=yes
18356 else
18357 echo "$as_me: failed program was:" >&5
18358 sed 's/^/| /' conftest.$ac_ext >&5
18360 ac_header_preproc=no
18363 rm -f conftest.err conftest.$ac_ext
18364 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18365 echo "${ECHO_T}$ac_header_preproc" >&6; }
18367 # So? What about this header?
18368 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18369 yes:no: )
18370 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
18371 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18372 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
18373 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
18374 ac_header_preproc=yes
18376 no:yes:* )
18377 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
18378 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
18379 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
18380 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
18381 { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
18382 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
18383 { echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
18384 echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
18385 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
18386 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
18387 { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
18388 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
18389 ( cat <<\_ASBOX
18390 ## ---------------------------------------- ##
18391 ## Report this to pgsql-bugs@postgresql.org ##
18392 ## ---------------------------------------- ##
18393 _ASBOX
18394 ) | sed "s/^/$as_me: WARNING: /" >&2
18396 esac
18397 { echo "$as_me:$LINENO: checking for syslog.h" >&5
18398 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
18399 if test "${ac_cv_header_syslog_h+set}" = set; then
18400 echo $ECHO_N "(cached) $ECHO_C" >&6
18401 else
18402 ac_cv_header_syslog_h=$ac_header_preproc
18404 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
18405 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
18408 if test $ac_cv_header_syslog_h = yes; then
18410 cat >>confdefs.h <<\_ACEOF
18411 #define HAVE_SYSLOG 1
18412 _ACEOF
18420 { echo "$as_me:$LINENO: checking for optreset" >&5
18421 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
18422 if test "${pgac_cv_var_int_optreset+set}" = set; then
18423 echo $ECHO_N "(cached) $ECHO_C" >&6
18424 else
18425 cat >conftest.$ac_ext <<_ACEOF
18426 /* confdefs.h. */
18427 _ACEOF
18428 cat confdefs.h >>conftest.$ac_ext
18429 cat >>conftest.$ac_ext <<_ACEOF
18430 /* end confdefs.h. */
18431 #include <unistd.h>
18433 main ()
18435 extern int optreset; optreset = 1;
18437 return 0;
18439 _ACEOF
18440 rm -f conftest.$ac_objext conftest$ac_exeext
18441 if { (ac_try="$ac_link"
18442 case "(($ac_try" in
18443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18444 *) ac_try_echo=$ac_try;;
18445 esac
18446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18447 (eval "$ac_link") 2>conftest.er1
18448 ac_status=$?
18449 grep -v '^ *+' conftest.er1 >conftest.err
18450 rm -f conftest.er1
18451 cat conftest.err >&5
18452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453 (exit $ac_status); } && {
18454 test -z "$ac_c_werror_flag" ||
18455 test ! -s conftest.err
18456 } && test -s conftest$ac_exeext &&
18457 $as_test_x conftest$ac_exeext; then
18458 pgac_cv_var_int_optreset=yes
18459 else
18460 echo "$as_me: failed program was:" >&5
18461 sed 's/^/| /' conftest.$ac_ext >&5
18463 pgac_cv_var_int_optreset=no
18466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18467 conftest$ac_exeext conftest.$ac_ext
18469 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
18470 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6; }
18471 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
18473 cat >>confdefs.h <<\_ACEOF
18474 #define HAVE_INT_OPTRESET 1
18475 _ACEOF
18481 for ac_func in strtoll strtoq
18483 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18484 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18486 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18487 echo $ECHO_N "(cached) $ECHO_C" >&6
18488 else
18489 cat >conftest.$ac_ext <<_ACEOF
18490 /* confdefs.h. */
18491 _ACEOF
18492 cat confdefs.h >>conftest.$ac_ext
18493 cat >>conftest.$ac_ext <<_ACEOF
18494 /* end confdefs.h. */
18495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18497 #define $ac_func innocuous_$ac_func
18499 /* System header to define __stub macros and hopefully few prototypes,
18500 which can conflict with char $ac_func (); below.
18501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18502 <limits.h> exists even on freestanding compilers. */
18504 #ifdef __STDC__
18505 # include <limits.h>
18506 #else
18507 # include <assert.h>
18508 #endif
18510 #undef $ac_func
18512 /* Override any GCC internal prototype to avoid an error.
18513 Use char because int might match the return type of a GCC
18514 builtin and then its argument prototype would still apply. */
18515 #ifdef __cplusplus
18516 extern "C"
18517 #endif
18518 char $ac_func ();
18519 /* The GNU C library defines this for functions which it implements
18520 to always fail with ENOSYS. Some functions are actually named
18521 something starting with __ and the normal name is an alias. */
18522 #if defined __stub_$ac_func || defined __stub___$ac_func
18523 choke me
18524 #endif
18527 main ()
18529 return $ac_func ();
18531 return 0;
18533 _ACEOF
18534 rm -f conftest.$ac_objext conftest$ac_exeext
18535 if { (ac_try="$ac_link"
18536 case "(($ac_try" in
18537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18538 *) ac_try_echo=$ac_try;;
18539 esac
18540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18541 (eval "$ac_link") 2>conftest.er1
18542 ac_status=$?
18543 grep -v '^ *+' conftest.er1 >conftest.err
18544 rm -f conftest.er1
18545 cat conftest.err >&5
18546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547 (exit $ac_status); } && {
18548 test -z "$ac_c_werror_flag" ||
18549 test ! -s conftest.err
18550 } && test -s conftest$ac_exeext &&
18551 $as_test_x conftest$ac_exeext; then
18552 eval "$as_ac_var=yes"
18553 else
18554 echo "$as_me: failed program was:" >&5
18555 sed 's/^/| /' conftest.$ac_ext >&5
18557 eval "$as_ac_var=no"
18560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18561 conftest$ac_exeext conftest.$ac_ext
18563 ac_res=`eval echo '${'$as_ac_var'}'`
18564 { echo "$as_me:$LINENO: result: $ac_res" >&5
18565 echo "${ECHO_T}$ac_res" >&6; }
18566 if test `eval echo '${'$as_ac_var'}'` = yes; then
18567 cat >>confdefs.h <<_ACEOF
18568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18569 _ACEOF
18570 break
18572 done
18576 for ac_func in strtoull strtouq
18578 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18579 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18580 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18581 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18582 echo $ECHO_N "(cached) $ECHO_C" >&6
18583 else
18584 cat >conftest.$ac_ext <<_ACEOF
18585 /* confdefs.h. */
18586 _ACEOF
18587 cat confdefs.h >>conftest.$ac_ext
18588 cat >>conftest.$ac_ext <<_ACEOF
18589 /* end confdefs.h. */
18590 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18592 #define $ac_func innocuous_$ac_func
18594 /* System header to define __stub macros and hopefully few prototypes,
18595 which can conflict with char $ac_func (); below.
18596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18597 <limits.h> exists even on freestanding compilers. */
18599 #ifdef __STDC__
18600 # include <limits.h>
18601 #else
18602 # include <assert.h>
18603 #endif
18605 #undef $ac_func
18607 /* Override any GCC internal prototype to avoid an error.
18608 Use char because int might match the return type of a GCC
18609 builtin and then its argument prototype would still apply. */
18610 #ifdef __cplusplus
18611 extern "C"
18612 #endif
18613 char $ac_func ();
18614 /* The GNU C library defines this for functions which it implements
18615 to always fail with ENOSYS. Some functions are actually named
18616 something starting with __ and the normal name is an alias. */
18617 #if defined __stub_$ac_func || defined __stub___$ac_func
18618 choke me
18619 #endif
18622 main ()
18624 return $ac_func ();
18626 return 0;
18628 _ACEOF
18629 rm -f conftest.$ac_objext conftest$ac_exeext
18630 if { (ac_try="$ac_link"
18631 case "(($ac_try" in
18632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18633 *) ac_try_echo=$ac_try;;
18634 esac
18635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18636 (eval "$ac_link") 2>conftest.er1
18637 ac_status=$?
18638 grep -v '^ *+' conftest.er1 >conftest.err
18639 rm -f conftest.er1
18640 cat conftest.err >&5
18641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642 (exit $ac_status); } && {
18643 test -z "$ac_c_werror_flag" ||
18644 test ! -s conftest.err
18645 } && test -s conftest$ac_exeext &&
18646 $as_test_x conftest$ac_exeext; then
18647 eval "$as_ac_var=yes"
18648 else
18649 echo "$as_me: failed program was:" >&5
18650 sed 's/^/| /' conftest.$ac_ext >&5
18652 eval "$as_ac_var=no"
18655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18656 conftest$ac_exeext conftest.$ac_ext
18658 ac_res=`eval echo '${'$as_ac_var'}'`
18659 { echo "$as_me:$LINENO: result: $ac_res" >&5
18660 echo "${ECHO_T}$ac_res" >&6; }
18661 if test `eval echo '${'$as_ac_var'}'` = yes; then
18662 cat >>confdefs.h <<_ACEOF
18663 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18664 _ACEOF
18665 break
18667 done
18670 # Check for one of atexit() or on_exit()
18672 for ac_func in atexit
18674 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18675 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18676 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18677 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18678 echo $ECHO_N "(cached) $ECHO_C" >&6
18679 else
18680 cat >conftest.$ac_ext <<_ACEOF
18681 /* confdefs.h. */
18682 _ACEOF
18683 cat confdefs.h >>conftest.$ac_ext
18684 cat >>conftest.$ac_ext <<_ACEOF
18685 /* end confdefs.h. */
18686 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18687 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18688 #define $ac_func innocuous_$ac_func
18690 /* System header to define __stub macros and hopefully few prototypes,
18691 which can conflict with char $ac_func (); below.
18692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18693 <limits.h> exists even on freestanding compilers. */
18695 #ifdef __STDC__
18696 # include <limits.h>
18697 #else
18698 # include <assert.h>
18699 #endif
18701 #undef $ac_func
18703 /* Override any GCC internal prototype to avoid an error.
18704 Use char because int might match the return type of a GCC
18705 builtin and then its argument prototype would still apply. */
18706 #ifdef __cplusplus
18707 extern "C"
18708 #endif
18709 char $ac_func ();
18710 /* The GNU C library defines this for functions which it implements
18711 to always fail with ENOSYS. Some functions are actually named
18712 something starting with __ and the normal name is an alias. */
18713 #if defined __stub_$ac_func || defined __stub___$ac_func
18714 choke me
18715 #endif
18718 main ()
18720 return $ac_func ();
18722 return 0;
18724 _ACEOF
18725 rm -f conftest.$ac_objext conftest$ac_exeext
18726 if { (ac_try="$ac_link"
18727 case "(($ac_try" in
18728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18729 *) ac_try_echo=$ac_try;;
18730 esac
18731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18732 (eval "$ac_link") 2>conftest.er1
18733 ac_status=$?
18734 grep -v '^ *+' conftest.er1 >conftest.err
18735 rm -f conftest.er1
18736 cat conftest.err >&5
18737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738 (exit $ac_status); } && {
18739 test -z "$ac_c_werror_flag" ||
18740 test ! -s conftest.err
18741 } && test -s conftest$ac_exeext &&
18742 $as_test_x conftest$ac_exeext; then
18743 eval "$as_ac_var=yes"
18744 else
18745 echo "$as_me: failed program was:" >&5
18746 sed 's/^/| /' conftest.$ac_ext >&5
18748 eval "$as_ac_var=no"
18751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18752 conftest$ac_exeext conftest.$ac_ext
18754 ac_res=`eval echo '${'$as_ac_var'}'`
18755 { echo "$as_me:$LINENO: result: $ac_res" >&5
18756 echo "${ECHO_T}$ac_res" >&6; }
18757 if test `eval echo '${'$as_ac_var'}'` = yes; then
18758 cat >>confdefs.h <<_ACEOF
18759 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18760 _ACEOF
18762 else
18764 for ac_func in on_exit
18766 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18767 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18768 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18769 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18770 echo $ECHO_N "(cached) $ECHO_C" >&6
18771 else
18772 cat >conftest.$ac_ext <<_ACEOF
18773 /* confdefs.h. */
18774 _ACEOF
18775 cat confdefs.h >>conftest.$ac_ext
18776 cat >>conftest.$ac_ext <<_ACEOF
18777 /* end confdefs.h. */
18778 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18779 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18780 #define $ac_func innocuous_$ac_func
18782 /* System header to define __stub macros and hopefully few prototypes,
18783 which can conflict with char $ac_func (); below.
18784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18785 <limits.h> exists even on freestanding compilers. */
18787 #ifdef __STDC__
18788 # include <limits.h>
18789 #else
18790 # include <assert.h>
18791 #endif
18793 #undef $ac_func
18795 /* Override any GCC internal prototype to avoid an error.
18796 Use char because int might match the return type of a GCC
18797 builtin and then its argument prototype would still apply. */
18798 #ifdef __cplusplus
18799 extern "C"
18800 #endif
18801 char $ac_func ();
18802 /* The GNU C library defines this for functions which it implements
18803 to always fail with ENOSYS. Some functions are actually named
18804 something starting with __ and the normal name is an alias. */
18805 #if defined __stub_$ac_func || defined __stub___$ac_func
18806 choke me
18807 #endif
18810 main ()
18812 return $ac_func ();
18814 return 0;
18816 _ACEOF
18817 rm -f conftest.$ac_objext conftest$ac_exeext
18818 if { (ac_try="$ac_link"
18819 case "(($ac_try" in
18820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18821 *) ac_try_echo=$ac_try;;
18822 esac
18823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18824 (eval "$ac_link") 2>conftest.er1
18825 ac_status=$?
18826 grep -v '^ *+' conftest.er1 >conftest.err
18827 rm -f conftest.er1
18828 cat conftest.err >&5
18829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830 (exit $ac_status); } && {
18831 test -z "$ac_c_werror_flag" ||
18832 test ! -s conftest.err
18833 } && test -s conftest$ac_exeext &&
18834 $as_test_x conftest$ac_exeext; then
18835 eval "$as_ac_var=yes"
18836 else
18837 echo "$as_me: failed program was:" >&5
18838 sed 's/^/| /' conftest.$ac_ext >&5
18840 eval "$as_ac_var=no"
18843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18844 conftest$ac_exeext conftest.$ac_ext
18846 ac_res=`eval echo '${'$as_ac_var'}'`
18847 { echo "$as_me:$LINENO: result: $ac_res" >&5
18848 echo "${ECHO_T}$ac_res" >&6; }
18849 if test `eval echo '${'$as_ac_var'}'` = yes; then
18850 cat >>confdefs.h <<_ACEOF
18851 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18852 _ACEOF
18854 else
18855 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
18856 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
18857 { (exit 1); exit 1; }; }
18859 done
18862 done
18866 for ac_func in fseeko
18868 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18869 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18870 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18871 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18872 echo $ECHO_N "(cached) $ECHO_C" >&6
18873 else
18874 cat >conftest.$ac_ext <<_ACEOF
18875 /* confdefs.h. */
18876 _ACEOF
18877 cat confdefs.h >>conftest.$ac_ext
18878 cat >>conftest.$ac_ext <<_ACEOF
18879 /* end confdefs.h. */
18880 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18882 #define $ac_func innocuous_$ac_func
18884 /* System header to define __stub macros and hopefully few prototypes,
18885 which can conflict with char $ac_func (); below.
18886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18887 <limits.h> exists even on freestanding compilers. */
18889 #ifdef __STDC__
18890 # include <limits.h>
18891 #else
18892 # include <assert.h>
18893 #endif
18895 #undef $ac_func
18897 /* Override any GCC internal prototype to avoid an error.
18898 Use char because int might match the return type of a GCC
18899 builtin and then its argument prototype would still apply. */
18900 #ifdef __cplusplus
18901 extern "C"
18902 #endif
18903 char $ac_func ();
18904 /* The GNU C library defines this for functions which it implements
18905 to always fail with ENOSYS. Some functions are actually named
18906 something starting with __ and the normal name is an alias. */
18907 #if defined __stub_$ac_func || defined __stub___$ac_func
18908 choke me
18909 #endif
18912 main ()
18914 return $ac_func ();
18916 return 0;
18918 _ACEOF
18919 rm -f conftest.$ac_objext conftest$ac_exeext
18920 if { (ac_try="$ac_link"
18921 case "(($ac_try" in
18922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18923 *) ac_try_echo=$ac_try;;
18924 esac
18925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18926 (eval "$ac_link") 2>conftest.er1
18927 ac_status=$?
18928 grep -v '^ *+' conftest.er1 >conftest.err
18929 rm -f conftest.er1
18930 cat conftest.err >&5
18931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); } && {
18933 test -z "$ac_c_werror_flag" ||
18934 test ! -s conftest.err
18935 } && test -s conftest$ac_exeext &&
18936 $as_test_x conftest$ac_exeext; then
18937 eval "$as_ac_var=yes"
18938 else
18939 echo "$as_me: failed program was:" >&5
18940 sed 's/^/| /' conftest.$ac_ext >&5
18942 eval "$as_ac_var=no"
18945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18946 conftest$ac_exeext conftest.$ac_ext
18948 ac_res=`eval echo '${'$as_ac_var'}'`
18949 { echo "$as_me:$LINENO: result: $ac_res" >&5
18950 echo "${ECHO_T}$ac_res" >&6; }
18951 if test `eval echo '${'$as_ac_var'}'` = yes; then
18952 cat >>confdefs.h <<_ACEOF
18953 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18954 _ACEOF
18956 else
18957 case " $LIBOBJS " in
18958 *" $ac_func.$ac_objext "* ) ;;
18959 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18961 esac
18964 done
18967 case $host_os in
18968 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
18969 bsdi*|netbsd*)
18971 cat >>confdefs.h <<\_ACEOF
18972 #define HAVE_FSEEKO 1
18973 _ACEOF
18975 ac_cv_func_fseeko=yes;;
18977 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18978 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18979 if test "${ac_cv_sys_largefile_source+set}" = set; then
18980 echo $ECHO_N "(cached) $ECHO_C" >&6
18981 else
18982 while :; do
18983 cat >conftest.$ac_ext <<_ACEOF
18984 /* confdefs.h. */
18985 _ACEOF
18986 cat confdefs.h >>conftest.$ac_ext
18987 cat >>conftest.$ac_ext <<_ACEOF
18988 /* end confdefs.h. */
18989 #include <sys/types.h> /* for off_t */
18990 #include <stdio.h>
18992 main ()
18994 int (*fp) (FILE *, off_t, int) = fseeko;
18995 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18997 return 0;
18999 _ACEOF
19000 rm -f conftest.$ac_objext conftest$ac_exeext
19001 if { (ac_try="$ac_link"
19002 case "(($ac_try" in
19003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19004 *) ac_try_echo=$ac_try;;
19005 esac
19006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19007 (eval "$ac_link") 2>conftest.er1
19008 ac_status=$?
19009 grep -v '^ *+' conftest.er1 >conftest.err
19010 rm -f conftest.er1
19011 cat conftest.err >&5
19012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013 (exit $ac_status); } && {
19014 test -z "$ac_c_werror_flag" ||
19015 test ! -s conftest.err
19016 } && test -s conftest$ac_exeext &&
19017 $as_test_x conftest$ac_exeext; then
19018 ac_cv_sys_largefile_source=no; break
19019 else
19020 echo "$as_me: failed program was:" >&5
19021 sed 's/^/| /' conftest.$ac_ext >&5
19026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19027 conftest$ac_exeext conftest.$ac_ext
19028 cat >conftest.$ac_ext <<_ACEOF
19029 /* confdefs.h. */
19030 _ACEOF
19031 cat confdefs.h >>conftest.$ac_ext
19032 cat >>conftest.$ac_ext <<_ACEOF
19033 /* end confdefs.h. */
19034 #define _LARGEFILE_SOURCE 1
19035 #include <sys/types.h> /* for off_t */
19036 #include <stdio.h>
19038 main ()
19040 int (*fp) (FILE *, off_t, int) = fseeko;
19041 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19043 return 0;
19045 _ACEOF
19046 rm -f conftest.$ac_objext conftest$ac_exeext
19047 if { (ac_try="$ac_link"
19048 case "(($ac_try" in
19049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19050 *) ac_try_echo=$ac_try;;
19051 esac
19052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19053 (eval "$ac_link") 2>conftest.er1
19054 ac_status=$?
19055 grep -v '^ *+' conftest.er1 >conftest.err
19056 rm -f conftest.er1
19057 cat conftest.err >&5
19058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059 (exit $ac_status); } && {
19060 test -z "$ac_c_werror_flag" ||
19061 test ! -s conftest.err
19062 } && test -s conftest$ac_exeext &&
19063 $as_test_x conftest$ac_exeext; then
19064 ac_cv_sys_largefile_source=1; break
19065 else
19066 echo "$as_me: failed program was:" >&5
19067 sed 's/^/| /' conftest.$ac_ext >&5
19072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19073 conftest$ac_exeext conftest.$ac_ext
19074 ac_cv_sys_largefile_source=unknown
19075 break
19076 done
19078 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19079 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
19080 case $ac_cv_sys_largefile_source in #(
19081 no | unknown) ;;
19083 cat >>confdefs.h <<_ACEOF
19084 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19085 _ACEOF
19087 esac
19088 rm -f conftest*
19090 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19091 # in glibc 2.1.3, but that breaks too many other things.
19092 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19093 if test $ac_cv_sys_largefile_source != unknown; then
19095 cat >>confdefs.h <<\_ACEOF
19096 #define HAVE_FSEEKO 1
19097 _ACEOF
19101 esac
19105 # Pthreads
19107 # For each platform, we need to know about any special compile and link
19108 # libraries, and whether the normal C function names are thread-safe.
19109 # See the comment at the top of src/port/thread.c for more information.
19110 # WIN32 doesn't need the pthread tests; it always uses threads
19111 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
19115 ac_ext=c
19116 ac_cpp='$CPP $CPPFLAGS'
19117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19121 acx_pthread_ok=no
19123 # We used to check for pthread.h first, but this fails if pthread.h
19124 # requires special compiler flags (e.g. on True64 or Sequent).
19125 # It gets checked for in the link test anyway.
19127 # First of all, check if the user has set any of the PTHREAD_LIBS,
19128 # etcetera environment variables, and if threads linking works using
19129 # them:
19130 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
19131 save_CFLAGS="$CFLAGS"
19132 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19133 save_LIBS="$LIBS"
19134 LIBS="$PTHREAD_LIBS $LIBS"
19135 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
19136 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
19137 cat >conftest.$ac_ext <<_ACEOF
19138 /* confdefs.h. */
19139 _ACEOF
19140 cat confdefs.h >>conftest.$ac_ext
19141 cat >>conftest.$ac_ext <<_ACEOF
19142 /* end confdefs.h. */
19144 /* Override any GCC internal prototype to avoid an error.
19145 Use char because int might match the return type of a GCC
19146 builtin and then its argument prototype would still apply. */
19147 #ifdef __cplusplus
19148 extern "C"
19149 #endif
19150 char pthread_join ();
19152 main ()
19154 return pthread_join ();
19156 return 0;
19158 _ACEOF
19159 rm -f conftest.$ac_objext conftest$ac_exeext
19160 if { (ac_try="$ac_link"
19161 case "(($ac_try" in
19162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19163 *) ac_try_echo=$ac_try;;
19164 esac
19165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19166 (eval "$ac_link") 2>conftest.er1
19167 ac_status=$?
19168 grep -v '^ *+' conftest.er1 >conftest.err
19169 rm -f conftest.er1
19170 cat conftest.err >&5
19171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172 (exit $ac_status); } && {
19173 test -z "$ac_c_werror_flag" ||
19174 test ! -s conftest.err
19175 } && test -s conftest$ac_exeext &&
19176 $as_test_x conftest$ac_exeext; then
19177 acx_pthread_ok=yes
19178 else
19179 echo "$as_me: failed program was:" >&5
19180 sed 's/^/| /' conftest.$ac_ext >&5
19185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19186 conftest$ac_exeext conftest.$ac_ext
19187 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
19188 echo "${ECHO_T}$acx_pthread_ok" >&6; }
19189 if test x"$acx_pthread_ok" = xno; then
19190 PTHREAD_LIBS=""
19191 PTHREAD_CFLAGS=""
19193 LIBS="$save_LIBS"
19194 CFLAGS="$save_CFLAGS"
19197 # We must check for the threads library under a number of different
19198 # names; the ordering is very important because some systems
19199 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19200 # libraries is broken (non-POSIX).
19202 # Create a list of thread flags to try. Items starting with a "-" are
19203 # C compiler flags, and other items are library names, except for "none"
19204 # which indicates that we try without any flags at all, and "pthread-config"
19205 # which is a program returning the flags for the Pth emulation library.
19207 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
19209 # The ordering *is* (sometimes) important. Some notes on the
19210 # individual items follow:
19212 # pthreads: AIX (must check this before -lpthread)
19213 # none: in case threads are in libc; should be tried before -Kthread and
19214 # other compiler flags to prevent continual compiler warnings
19215 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19216 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19217 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19218 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
19219 # -pthreads: Solaris/gcc
19220 # -mthreads: Mingw32/gcc, Lynx/gcc
19221 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19222 # doesn't hurt to check since this sometimes defines pthreads too;
19223 # also defines -D_REENTRANT)
19224 # pthread: Linux, etcetera
19225 # --thread-safe: KAI C++
19226 # pthread-config: use pthread-config program (for GNU Pth library)
19228 case "${host_cpu}-${host_os}" in
19229 *solaris*)
19231 # On Solaris (at least, for some versions), libc contains stubbed
19232 # (non-functional) versions of the pthreads routines, so link-based
19233 # tests will erroneously succeed. (We need to link with -pthread or
19234 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
19235 # a function called by this macro, so we could check for that, but
19236 # who knows whether they'll stub that too in a future libc.) So,
19237 # we'll just look for -pthreads and -lpthread first:
19239 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
19241 esac
19243 if test x"$acx_pthread_ok" = xno; then
19244 for flag in $acx_pthread_flags; do
19246 tryPTHREAD_CFLAGS=""
19247 tryPTHREAD_LIBS=""
19248 case $flag in
19249 none)
19250 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
19251 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
19255 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
19256 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
19257 tryPTHREAD_CFLAGS="$flag"
19260 pthread-config)
19261 # skip this if we already have flags defined, for PostgreSQL
19262 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
19263 # Extract the first word of "pthread-config", so it can be a program name with args.
19264 set dummy pthread-config; ac_word=$2
19265 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19267 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
19268 echo $ECHO_N "(cached) $ECHO_C" >&6
19269 else
19270 if test -n "$acx_pthread_config"; then
19271 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
19272 else
19273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19274 for as_dir in $PATH
19276 IFS=$as_save_IFS
19277 test -z "$as_dir" && as_dir=.
19278 for ac_exec_ext in '' $ac_executable_extensions; do
19279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19280 ac_cv_prog_acx_pthread_config="yes"
19281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19282 break 2
19284 done
19285 done
19286 IFS=$as_save_IFS
19288 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
19291 acx_pthread_config=$ac_cv_prog_acx_pthread_config
19292 if test -n "$acx_pthread_config"; then
19293 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
19294 echo "${ECHO_T}$acx_pthread_config" >&6; }
19295 else
19296 { echo "$as_me:$LINENO: result: no" >&5
19297 echo "${ECHO_T}no" >&6; }
19301 if test x"$acx_pthread_config" = xno; then continue; fi
19302 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
19303 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
19307 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
19308 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
19309 tryPTHREAD_LIBS="-l$flag"
19311 esac
19313 save_LIBS="$LIBS"
19314 save_CFLAGS="$CFLAGS"
19315 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
19316 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
19318 # Check for various functions. We must include pthread.h,
19319 # since some functions may be macros. (On the Sequent, we
19320 # need a special flag -Kthread to make this header compile.)
19321 # We check for pthread_join because it is in -lpthread on IRIX
19322 # while pthread_create is in libc. We check for pthread_attr_init
19323 # due to DEC craziness with -lpthreads. We check for
19324 # pthread_cleanup_push because it is one of the few pthread
19325 # functions on Solaris that doesn't have a non-functional libc stub.
19326 # We try pthread_create on general principles.
19327 cat >conftest.$ac_ext <<_ACEOF
19328 /* confdefs.h. */
19329 _ACEOF
19330 cat confdefs.h >>conftest.$ac_ext
19331 cat >>conftest.$ac_ext <<_ACEOF
19332 /* end confdefs.h. */
19333 #include <pthread.h>
19335 main ()
19337 pthread_t th; pthread_join(th, 0);
19338 pthread_attr_init(0); pthread_cleanup_push(0, 0);
19339 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
19341 return 0;
19343 _ACEOF
19344 rm -f conftest.$ac_objext conftest$ac_exeext
19345 if { (ac_try="$ac_link"
19346 case "(($ac_try" in
19347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19348 *) ac_try_echo=$ac_try;;
19349 esac
19350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19351 (eval "$ac_link") 2>conftest.er1
19352 ac_status=$?
19353 grep -v '^ *+' conftest.er1 >conftest.err
19354 rm -f conftest.er1
19355 cat conftest.err >&5
19356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357 (exit $ac_status); } && {
19358 test -z "$ac_c_werror_flag" ||
19359 test ! -s conftest.err
19360 } && test -s conftest$ac_exeext &&
19361 $as_test_x conftest$ac_exeext; then
19362 acx_pthread_ok=yes
19363 else
19364 echo "$as_me: failed program was:" >&5
19365 sed 's/^/| /' conftest.$ac_ext >&5
19367 acx_pthread_ok=no
19370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19371 conftest$ac_exeext conftest.$ac_ext
19373 if test "x$acx_pthread_ok" = xyes; then
19374 # Don't use options that are ignored by the compiler.
19375 # We find them by checking stderror.
19376 cat >conftest.$ac_ext <<_ACEOF
19378 main (int argc, char **argv)
19380 (void) argc;
19381 (void) argv;
19382 return 0;
19384 _ACEOF
19385 rm -f conftest.$ac_objext conftest$ac_exeext
19386 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
19387 # we continue with more flags because Linux needs -lpthread
19388 # for libpq builds on PostgreSQL. The test above only
19389 # tests for building binaries, not shared libraries.
19390 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
19391 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
19392 else acx_pthread_ok=no
19396 LIBS="$save_LIBS"
19397 CFLAGS="$save_CFLAGS"
19399 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
19400 echo "${ECHO_T}$acx_pthread_ok" >&6; }
19401 done
19404 # Various other checks:
19405 if test "x$acx_pthread_ok" = xyes; then
19406 save_LIBS="$LIBS"
19407 LIBS="$PTHREAD_LIBS $LIBS"
19408 save_CFLAGS="$CFLAGS"
19409 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19411 # Detect AIX lossage: threads are created detached by default
19412 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
19413 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
19414 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
19415 cat >conftest.$ac_ext <<_ACEOF
19416 /* confdefs.h. */
19417 _ACEOF
19418 cat confdefs.h >>conftest.$ac_ext
19419 cat >>conftest.$ac_ext <<_ACEOF
19420 /* end confdefs.h. */
19421 #include <pthread.h>
19423 main ()
19425 int attr=PTHREAD_CREATE_JOINABLE;
19427 return 0;
19429 _ACEOF
19430 rm -f conftest.$ac_objext conftest$ac_exeext
19431 if { (ac_try="$ac_link"
19432 case "(($ac_try" in
19433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19434 *) ac_try_echo=$ac_try;;
19435 esac
19436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19437 (eval "$ac_link") 2>conftest.er1
19438 ac_status=$?
19439 grep -v '^ *+' conftest.er1 >conftest.err
19440 rm -f conftest.er1
19441 cat conftest.err >&5
19442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443 (exit $ac_status); } && {
19444 test -z "$ac_c_werror_flag" ||
19445 test ! -s conftest.err
19446 } && test -s conftest$ac_exeext &&
19447 $as_test_x conftest$ac_exeext; then
19448 ok=PTHREAD_CREATE_JOINABLE
19449 else
19450 echo "$as_me: failed program was:" >&5
19451 sed 's/^/| /' conftest.$ac_ext >&5
19453 ok=unknown
19456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19457 conftest$ac_exeext conftest.$ac_ext
19458 if test x"$ok" = xunknown; then
19459 cat >conftest.$ac_ext <<_ACEOF
19460 /* confdefs.h. */
19461 _ACEOF
19462 cat confdefs.h >>conftest.$ac_ext
19463 cat >>conftest.$ac_ext <<_ACEOF
19464 /* end confdefs.h. */
19465 #include <pthread.h>
19467 main ()
19469 int attr=PTHREAD_CREATE_UNDETACHED;
19471 return 0;
19473 _ACEOF
19474 rm -f conftest.$ac_objext conftest$ac_exeext
19475 if { (ac_try="$ac_link"
19476 case "(($ac_try" in
19477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19478 *) ac_try_echo=$ac_try;;
19479 esac
19480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19481 (eval "$ac_link") 2>conftest.er1
19482 ac_status=$?
19483 grep -v '^ *+' conftest.er1 >conftest.err
19484 rm -f conftest.er1
19485 cat conftest.err >&5
19486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487 (exit $ac_status); } && {
19488 test -z "$ac_c_werror_flag" ||
19489 test ! -s conftest.err
19490 } && test -s conftest$ac_exeext &&
19491 $as_test_x conftest$ac_exeext; then
19492 ok=PTHREAD_CREATE_UNDETACHED
19493 else
19494 echo "$as_me: failed program was:" >&5
19495 sed 's/^/| /' conftest.$ac_ext >&5
19497 ok=unknown
19500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19501 conftest$ac_exeext conftest.$ac_ext
19503 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
19505 cat >>confdefs.h <<\_ACEOF
19506 #define PTHREAD_CREATE_JOINABLE $ok
19507 _ACEOF
19510 { echo "$as_me:$LINENO: result: ${ok}" >&5
19511 echo "${ECHO_T}${ok}" >&6; }
19512 if test x"$ok" = xunknown; then
19513 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
19514 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
19517 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
19518 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
19519 flag=no
19520 # We always add these in PostgreSQL
19521 # case "${host_cpu}-${host_os}" in
19522 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
19523 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
19524 # esac
19525 { echo "$as_me:$LINENO: result: ${flag}" >&5
19526 echo "${ECHO_T}${flag}" >&6; }
19527 if test "x$flag" != xno; then
19528 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
19531 LIBS="$save_LIBS"
19532 CFLAGS="$save_CFLAGS"
19534 # Supporting cc_r would require a special CC in all places that
19535 # use libpq, and that is ugly, so we don't do it. Users can still
19536 # define their compiler as cc_r to do thread builds of everything.
19537 # More AIX lossage: must compile with cc_r
19538 # Extract the first word of "cc_r", so it can be a program name with args.
19539 set dummy cc_r; ac_word=$2
19540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19542 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
19543 echo $ECHO_N "(cached) $ECHO_C" >&6
19544 else
19545 if test -n "$PTHREAD_CC"; then
19546 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19547 else
19548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19549 for as_dir in $PATH
19551 IFS=$as_save_IFS
19552 test -z "$as_dir" && as_dir=.
19553 for ac_exec_ext in '' $ac_executable_extensions; do
19554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19555 ac_cv_prog_PTHREAD_CC="cc_r"
19556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19557 break 2
19559 done
19560 done
19561 IFS=$as_save_IFS
19563 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
19566 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19567 if test -n "$PTHREAD_CC"; then
19568 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
19569 echo "${ECHO_T}$PTHREAD_CC" >&6; }
19570 else
19571 { echo "$as_me:$LINENO: result: no" >&5
19572 echo "${ECHO_T}no" >&6; }
19576 else
19577 PTHREAD_CC="$CC"
19584 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
19585 if test x"$acx_pthread_ok" = xyes; then
19587 cat >>confdefs.h <<\_ACEOF
19588 #define HAVE_PTHREAD 1
19589 _ACEOF
19592 else
19593 acx_pthread_ok=no
19596 ac_ext=c
19597 ac_cpp='$CPP $CPPFLAGS'
19598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19602 # set thread flags
19604 # Some platforms use these, so just define them. They can't hurt if they
19605 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
19606 # enables 5-arg getpwuid_r, among other things.
19607 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
19610 # At this point, we don't want to muck with the compiler name for threading.
19611 # Let's see who fails, perhaps AIX. 2004-04-23
19612 if test "$PTHREAD_CC" != "$CC"; then
19613 { { echo "$as_me:$LINENO: error:
19614 PostgreSQL does not support platforms that require a special compiler
19615 for thread safety." >&5
19616 echo "$as_me: error:
19617 PostgreSQL does not support platforms that require a special compiler
19618 for thread safety." >&2;}
19619 { (exit 1); exit 1; }; }
19622 if test "$THREAD_SUPPORT" = no; then
19623 { { echo "$as_me:$LINENO: error: cannot enable threads on this platform
19624 This platform is known to not support thread-safe programs. For details,
19625 compile and run src/bin/pg_thread_test." >&5
19626 echo "$as_me: error: cannot enable threads on this platform
19627 This platform is known to not support thread-safe programs. For details,
19628 compile and run src/bin/pg_thread_test." >&2;}
19629 { (exit 1); exit 1; }; }
19632 # Check for *_r functions
19633 _CFLAGS="$CFLAGS"
19634 _LIBS="$LIBS"
19635 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19636 LIBS="$LIBS $PTHREAD_LIBS"
19638 if test "$PORTNAME" != "win32"; then
19639 if test "${ac_cv_header_pthread_h+set}" = set; then
19640 { echo "$as_me:$LINENO: checking for pthread.h" >&5
19641 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
19642 if test "${ac_cv_header_pthread_h+set}" = set; then
19643 echo $ECHO_N "(cached) $ECHO_C" >&6
19645 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
19646 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
19647 else
19648 # Is the header compilable?
19649 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
19650 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
19651 cat >conftest.$ac_ext <<_ACEOF
19652 /* confdefs.h. */
19653 _ACEOF
19654 cat confdefs.h >>conftest.$ac_ext
19655 cat >>conftest.$ac_ext <<_ACEOF
19656 /* end confdefs.h. */
19657 $ac_includes_default
19658 #include <pthread.h>
19659 _ACEOF
19660 rm -f conftest.$ac_objext
19661 if { (ac_try="$ac_compile"
19662 case "(($ac_try" in
19663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19664 *) ac_try_echo=$ac_try;;
19665 esac
19666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19667 (eval "$ac_compile") 2>conftest.er1
19668 ac_status=$?
19669 grep -v '^ *+' conftest.er1 >conftest.err
19670 rm -f conftest.er1
19671 cat conftest.err >&5
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); } && {
19674 test -z "$ac_c_werror_flag" ||
19675 test ! -s conftest.err
19676 } && test -s conftest.$ac_objext; then
19677 ac_header_compiler=yes
19678 else
19679 echo "$as_me: failed program was:" >&5
19680 sed 's/^/| /' conftest.$ac_ext >&5
19682 ac_header_compiler=no
19685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19686 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19687 echo "${ECHO_T}$ac_header_compiler" >&6; }
19689 # Is the header present?
19690 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
19691 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
19692 cat >conftest.$ac_ext <<_ACEOF
19693 /* confdefs.h. */
19694 _ACEOF
19695 cat confdefs.h >>conftest.$ac_ext
19696 cat >>conftest.$ac_ext <<_ACEOF
19697 /* end confdefs.h. */
19698 #include <pthread.h>
19699 _ACEOF
19700 if { (ac_try="$ac_cpp conftest.$ac_ext"
19701 case "(($ac_try" in
19702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19703 *) ac_try_echo=$ac_try;;
19704 esac
19705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19707 ac_status=$?
19708 grep -v '^ *+' conftest.er1 >conftest.err
19709 rm -f conftest.er1
19710 cat conftest.err >&5
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); } >/dev/null && {
19713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19714 test ! -s conftest.err
19715 }; then
19716 ac_header_preproc=yes
19717 else
19718 echo "$as_me: failed program was:" >&5
19719 sed 's/^/| /' conftest.$ac_ext >&5
19721 ac_header_preproc=no
19724 rm -f conftest.err conftest.$ac_ext
19725 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19726 echo "${ECHO_T}$ac_header_preproc" >&6; }
19728 # So? What about this header?
19729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19730 yes:no: )
19731 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
19732 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19733 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
19734 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
19735 ac_header_preproc=yes
19737 no:yes:* )
19738 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
19739 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
19740 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
19741 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
19742 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
19743 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
19744 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
19745 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
19746 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
19747 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
19748 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
19749 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
19750 ( cat <<\_ASBOX
19751 ## ---------------------------------------- ##
19752 ## Report this to pgsql-bugs@postgresql.org ##
19753 ## ---------------------------------------- ##
19754 _ASBOX
19755 ) | sed "s/^/$as_me: WARNING: /" >&2
19757 esac
19758 { echo "$as_me:$LINENO: checking for pthread.h" >&5
19759 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
19760 if test "${ac_cv_header_pthread_h+set}" = set; then
19761 echo $ECHO_N "(cached) $ECHO_C" >&6
19762 else
19763 ac_cv_header_pthread_h=$ac_header_preproc
19765 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
19766 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
19769 if test $ac_cv_header_pthread_h = yes; then
19771 else
19772 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
19773 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
19774 { (exit 1); exit 1; }; }
19783 for ac_func in strerror_r getpwuid_r gethostbyname_r
19785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19786 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19788 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19789 echo $ECHO_N "(cached) $ECHO_C" >&6
19790 else
19791 cat >conftest.$ac_ext <<_ACEOF
19792 /* confdefs.h. */
19793 _ACEOF
19794 cat confdefs.h >>conftest.$ac_ext
19795 cat >>conftest.$ac_ext <<_ACEOF
19796 /* end confdefs.h. */
19797 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19799 #define $ac_func innocuous_$ac_func
19801 /* System header to define __stub macros and hopefully few prototypes,
19802 which can conflict with char $ac_func (); below.
19803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19804 <limits.h> exists even on freestanding compilers. */
19806 #ifdef __STDC__
19807 # include <limits.h>
19808 #else
19809 # include <assert.h>
19810 #endif
19812 #undef $ac_func
19814 /* Override any GCC internal prototype to avoid an error.
19815 Use char because int might match the return type of a GCC
19816 builtin and then its argument prototype would still apply. */
19817 #ifdef __cplusplus
19818 extern "C"
19819 #endif
19820 char $ac_func ();
19821 /* The GNU C library defines this for functions which it implements
19822 to always fail with ENOSYS. Some functions are actually named
19823 something starting with __ and the normal name is an alias. */
19824 #if defined __stub_$ac_func || defined __stub___$ac_func
19825 choke me
19826 #endif
19829 main ()
19831 return $ac_func ();
19833 return 0;
19835 _ACEOF
19836 rm -f conftest.$ac_objext conftest$ac_exeext
19837 if { (ac_try="$ac_link"
19838 case "(($ac_try" in
19839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19840 *) ac_try_echo=$ac_try;;
19841 esac
19842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19843 (eval "$ac_link") 2>conftest.er1
19844 ac_status=$?
19845 grep -v '^ *+' conftest.er1 >conftest.err
19846 rm -f conftest.er1
19847 cat conftest.err >&5
19848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19849 (exit $ac_status); } && {
19850 test -z "$ac_c_werror_flag" ||
19851 test ! -s conftest.err
19852 } && test -s conftest$ac_exeext &&
19853 $as_test_x conftest$ac_exeext; then
19854 eval "$as_ac_var=yes"
19855 else
19856 echo "$as_me: failed program was:" >&5
19857 sed 's/^/| /' conftest.$ac_ext >&5
19859 eval "$as_ac_var=no"
19862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19863 conftest$ac_exeext conftest.$ac_ext
19865 ac_res=`eval echo '${'$as_ac_var'}'`
19866 { echo "$as_me:$LINENO: result: $ac_res" >&5
19867 echo "${ECHO_T}$ac_res" >&6; }
19868 if test `eval echo '${'$as_ac_var'}'` = yes; then
19869 cat >>confdefs.h <<_ACEOF
19870 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19871 _ACEOF
19874 done
19877 # Do test here with the proper thread flags
19878 { echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
19879 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6; }
19880 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
19881 echo $ECHO_N "(cached) $ECHO_C" >&6
19882 else
19883 cat >conftest.$ac_ext <<_ACEOF
19884 /* confdefs.h. */
19885 _ACEOF
19886 cat confdefs.h >>conftest.$ac_ext
19887 cat >>conftest.$ac_ext <<_ACEOF
19888 /* end confdefs.h. */
19889 #include <sys/types.h>
19890 #include <pwd.h>
19892 main ()
19894 uid_t uid;
19895 struct passwd *space;
19896 char *buf;
19897 size_t bufsize;
19898 struct passwd **result;
19899 getpwuid_r(uid, space, buf, bufsize, result);
19901 return 0;
19903 _ACEOF
19904 rm -f conftest.$ac_objext
19905 if { (ac_try="$ac_compile"
19906 case "(($ac_try" in
19907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19908 *) ac_try_echo=$ac_try;;
19909 esac
19910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19911 (eval "$ac_compile") 2>conftest.er1
19912 ac_status=$?
19913 grep -v '^ *+' conftest.er1 >conftest.err
19914 rm -f conftest.er1
19915 cat conftest.err >&5
19916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917 (exit $ac_status); } && {
19918 test -z "$ac_c_werror_flag" ||
19919 test ! -s conftest.err
19920 } && test -s conftest.$ac_objext; then
19921 pgac_cv_func_getpwuid_r_5arg=yes
19922 else
19923 echo "$as_me: failed program was:" >&5
19924 sed 's/^/| /' conftest.$ac_ext >&5
19926 pgac_cv_func_getpwuid_r_5arg=no
19929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19931 { echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
19932 echo "${ECHO_T}$pgac_cv_func_getpwuid_r_5arg" >&6; }
19933 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
19935 cat >>confdefs.h <<\_ACEOF
19936 #define GETPWUID_R_5ARG
19937 _ACEOF
19941 { echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
19942 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6; }
19943 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
19944 echo $ECHO_N "(cached) $ECHO_C" >&6
19945 else
19946 cat >conftest.$ac_ext <<_ACEOF
19947 /* confdefs.h. */
19948 _ACEOF
19949 cat confdefs.h >>conftest.$ac_ext
19950 cat >>conftest.$ac_ext <<_ACEOF
19951 /* end confdefs.h. */
19952 #include <string.h>
19954 main ()
19956 #ifndef _AIX
19957 int strerror_r(int, char *, size_t);
19958 #else
19959 /* Older AIX has 'int' for the third argument so we don't test the args. */
19960 int strerror_r();
19961 #endif
19963 return 0;
19965 _ACEOF
19966 rm -f conftest.$ac_objext
19967 if { (ac_try="$ac_compile"
19968 case "(($ac_try" in
19969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19970 *) ac_try_echo=$ac_try;;
19971 esac
19972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19973 (eval "$ac_compile") 2>conftest.er1
19974 ac_status=$?
19975 grep -v '^ *+' conftest.er1 >conftest.err
19976 rm -f conftest.er1
19977 cat conftest.err >&5
19978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979 (exit $ac_status); } && {
19980 test -z "$ac_c_werror_flag" ||
19981 test ! -s conftest.err
19982 } && test -s conftest.$ac_objext; then
19983 pgac_cv_func_strerror_r_int=yes
19984 else
19985 echo "$as_me: failed program was:" >&5
19986 sed 's/^/| /' conftest.$ac_ext >&5
19988 pgac_cv_func_strerror_r_int=no
19991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19993 { echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
19994 echo "${ECHO_T}$pgac_cv_func_strerror_r_int" >&6; }
19995 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
19997 cat >>confdefs.h <<\_ACEOF
19998 #define STRERROR_R_INT
19999 _ACEOF
20004 CFLAGS="$_CFLAGS"
20005 LIBS="$_LIBS"
20007 else
20008 # do not use values from template file
20009 PTHREAD_CFLAGS=
20010 PTHREAD_LIBS=
20017 # We can test for libldap_r only after we know PTHREAD_LIBS
20018 if test "$with_ldap" = yes ; then
20019 _LIBS="$LIBS"
20020 if test "$PORTNAME" != "win32"; then
20022 { echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
20023 echo $ECHO_N "checking for ldap_bind in -lldap... $ECHO_C" >&6; }
20024 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
20025 echo $ECHO_N "(cached) $ECHO_C" >&6
20026 else
20027 ac_check_lib_save_LIBS=$LIBS
20028 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
20029 cat >conftest.$ac_ext <<_ACEOF
20030 /* confdefs.h. */
20031 _ACEOF
20032 cat confdefs.h >>conftest.$ac_ext
20033 cat >>conftest.$ac_ext <<_ACEOF
20034 /* end confdefs.h. */
20036 /* Override any GCC internal prototype to avoid an error.
20037 Use char because int might match the return type of a GCC
20038 builtin and then its argument prototype would still apply. */
20039 #ifdef __cplusplus
20040 extern "C"
20041 #endif
20042 char ldap_bind ();
20044 main ()
20046 return ldap_bind ();
20048 return 0;
20050 _ACEOF
20051 rm -f conftest.$ac_objext conftest$ac_exeext
20052 if { (ac_try="$ac_link"
20053 case "(($ac_try" in
20054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20055 *) ac_try_echo=$ac_try;;
20056 esac
20057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20058 (eval "$ac_link") 2>conftest.er1
20059 ac_status=$?
20060 grep -v '^ *+' conftest.er1 >conftest.err
20061 rm -f conftest.er1
20062 cat conftest.err >&5
20063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064 (exit $ac_status); } && {
20065 test -z "$ac_c_werror_flag" ||
20066 test ! -s conftest.err
20067 } && test -s conftest$ac_exeext &&
20068 $as_test_x conftest$ac_exeext; then
20069 ac_cv_lib_ldap_ldap_bind=yes
20070 else
20071 echo "$as_me: failed program was:" >&5
20072 sed 's/^/| /' conftest.$ac_ext >&5
20074 ac_cv_lib_ldap_ldap_bind=no
20077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20078 conftest$ac_exeext conftest.$ac_ext
20079 LIBS=$ac_check_lib_save_LIBS
20081 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
20082 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_bind" >&6; }
20083 if test $ac_cv_lib_ldap_ldap_bind = yes; then
20084 cat >>confdefs.h <<_ACEOF
20085 #define HAVE_LIBLDAP 1
20086 _ACEOF
20088 LIBS="-lldap $LIBS"
20090 else
20091 { { echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
20092 echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
20093 { (exit 1); exit 1; }; }
20096 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
20097 if test "$enable_thread_safety" = yes; then
20098 # on some platforms ldap_r fails to link without PTHREAD_LIBS
20100 { echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
20101 echo $ECHO_N "checking for ldap_simple_bind in -lldap_r... $ECHO_C" >&6; }
20102 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
20103 echo $ECHO_N "(cached) $ECHO_C" >&6
20104 else
20105 ac_check_lib_save_LIBS=$LIBS
20106 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
20107 cat >conftest.$ac_ext <<_ACEOF
20108 /* confdefs.h. */
20109 _ACEOF
20110 cat confdefs.h >>conftest.$ac_ext
20111 cat >>conftest.$ac_ext <<_ACEOF
20112 /* end confdefs.h. */
20114 /* Override any GCC internal prototype to avoid an error.
20115 Use char because int might match the return type of a GCC
20116 builtin and then its argument prototype would still apply. */
20117 #ifdef __cplusplus
20118 extern "C"
20119 #endif
20120 char ldap_simple_bind ();
20122 main ()
20124 return ldap_simple_bind ();
20126 return 0;
20128 _ACEOF
20129 rm -f conftest.$ac_objext conftest$ac_exeext
20130 if { (ac_try="$ac_link"
20131 case "(($ac_try" in
20132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20133 *) ac_try_echo=$ac_try;;
20134 esac
20135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20136 (eval "$ac_link") 2>conftest.er1
20137 ac_status=$?
20138 grep -v '^ *+' conftest.er1 >conftest.err
20139 rm -f conftest.er1
20140 cat conftest.err >&5
20141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142 (exit $ac_status); } && {
20143 test -z "$ac_c_werror_flag" ||
20144 test ! -s conftest.err
20145 } && test -s conftest$ac_exeext &&
20146 $as_test_x conftest$ac_exeext; then
20147 ac_cv_lib_ldap_r_ldap_simple_bind=yes
20148 else
20149 echo "$as_me: failed program was:" >&5
20150 sed 's/^/| /' conftest.$ac_ext >&5
20152 ac_cv_lib_ldap_r_ldap_simple_bind=no
20155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20156 conftest$ac_exeext conftest.$ac_ext
20157 LIBS=$ac_check_lib_save_LIBS
20159 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
20160 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
20161 if test $ac_cv_lib_ldap_r_ldap_simple_bind = yes; then
20162 cat >>confdefs.h <<_ACEOF
20163 #define HAVE_LIBLDAP_R 1
20164 _ACEOF
20166 LIBS="-lldap_r $LIBS"
20168 else
20169 { { echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
20170 echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
20171 { (exit 1); exit 1; }; }
20174 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
20175 else
20176 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
20178 else
20180 { echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
20181 echo $ECHO_N "checking for ldap_bind in -lwldap32... $ECHO_C" >&6; }
20182 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
20183 echo $ECHO_N "(cached) $ECHO_C" >&6
20184 else
20185 ac_check_lib_save_LIBS=$LIBS
20186 LIBS="-lwldap32 $LIBS"
20187 cat >conftest.$ac_ext <<_ACEOF
20188 /* confdefs.h. */
20189 _ACEOF
20190 cat confdefs.h >>conftest.$ac_ext
20191 cat >>conftest.$ac_ext <<_ACEOF
20192 /* end confdefs.h. */
20194 /* Override any GCC internal prototype to avoid an error.
20195 Use char because int might match the return type of a GCC
20196 builtin and then its argument prototype would still apply. */
20197 #ifdef __cplusplus
20198 extern "C"
20199 #endif
20200 char ldap_bind ();
20202 main ()
20204 return ldap_bind ();
20206 return 0;
20208 _ACEOF
20209 rm -f conftest.$ac_objext conftest$ac_exeext
20210 if { (ac_try="$ac_link"
20211 case "(($ac_try" in
20212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20213 *) ac_try_echo=$ac_try;;
20214 esac
20215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20216 (eval "$ac_link") 2>conftest.er1
20217 ac_status=$?
20218 grep -v '^ *+' conftest.er1 >conftest.err
20219 rm -f conftest.er1
20220 cat conftest.err >&5
20221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222 (exit $ac_status); } && {
20223 test -z "$ac_c_werror_flag" ||
20224 test ! -s conftest.err
20225 } && test -s conftest$ac_exeext &&
20226 $as_test_x conftest$ac_exeext; then
20227 ac_cv_lib_wldap32_ldap_bind=yes
20228 else
20229 echo "$as_me: failed program was:" >&5
20230 sed 's/^/| /' conftest.$ac_ext >&5
20232 ac_cv_lib_wldap32_ldap_bind=no
20235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20236 conftest$ac_exeext conftest.$ac_ext
20237 LIBS=$ac_check_lib_save_LIBS
20239 { echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
20240 echo "${ECHO_T}$ac_cv_lib_wldap32_ldap_bind" >&6; }
20241 if test $ac_cv_lib_wldap32_ldap_bind = yes; then
20242 cat >>confdefs.h <<_ACEOF
20243 #define HAVE_LIBWLDAP32 1
20244 _ACEOF
20246 LIBS="-lwldap32 $LIBS"
20248 else
20249 { { echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
20250 echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
20251 { (exit 1); exit 1; }; }
20254 LDAP_LIBS_FE="-lwldap32"
20255 LDAP_LIBS_BE="-lwldap32"
20257 LIBS="$_LIBS"
20263 # This test makes sure that run tests work at all. Sometimes a shared
20264 # library is found by the linker, but the runtime linker can't find it.
20265 # This check should come after all modifications of compiler or linker
20266 # variables, and before any other run tests.
20267 { echo "$as_me:$LINENO: checking test program" >&5
20268 echo $ECHO_N "checking test program... $ECHO_C" >&6; }
20269 if test "$cross_compiling" = yes; then
20270 { echo "$as_me:$LINENO: result: cross-compiling" >&5
20271 echo "${ECHO_T}cross-compiling" >&6; }
20272 else
20273 cat >conftest.$ac_ext <<_ACEOF
20274 /* confdefs.h. */
20275 _ACEOF
20276 cat confdefs.h >>conftest.$ac_ext
20277 cat >>conftest.$ac_ext <<_ACEOF
20278 /* end confdefs.h. */
20279 int main() { return 0; }
20280 _ACEOF
20281 rm -f conftest$ac_exeext
20282 if { (ac_try="$ac_link"
20283 case "(($ac_try" in
20284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20285 *) ac_try_echo=$ac_try;;
20286 esac
20287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20288 (eval "$ac_link") 2>&5
20289 ac_status=$?
20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20292 { (case "(($ac_try" in
20293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20294 *) ac_try_echo=$ac_try;;
20295 esac
20296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20297 (eval "$ac_try") 2>&5
20298 ac_status=$?
20299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300 (exit $ac_status); }; }; then
20301 { echo "$as_me:$LINENO: result: ok" >&5
20302 echo "${ECHO_T}ok" >&6; }
20303 else
20304 echo "$as_me: program exited with status $ac_status" >&5
20305 echo "$as_me: failed program was:" >&5
20306 sed 's/^/| /' conftest.$ac_ext >&5
20308 ( exit $ac_status )
20309 { echo "$as_me:$LINENO: result: failed" >&5
20310 echo "${ECHO_T}failed" >&6; }
20311 { { echo "$as_me:$LINENO: error:
20312 Could not execute a simple test program. This may be a problem
20313 related to locating shared libraries. Check the file 'config.log'
20314 for the exact reason." >&5
20315 echo "$as_me: error:
20316 Could not execute a simple test program. This may be a problem
20317 related to locating shared libraries. Check the file 'config.log'
20318 for the exact reason." >&2;}
20319 { (exit 1); exit 1; }; }
20321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20326 # --------------------
20327 # Run tests below here
20328 # --------------------
20330 # Force use of our snprintf if system's doesn't do arg control
20331 # See comment above at snprintf test for details.
20332 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
20333 { echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
20334 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6; }
20335 if test "${pgac_cv_printf_arg_control+set}" = set; then
20336 echo $ECHO_N "(cached) $ECHO_C" >&6
20337 else
20338 if test "$cross_compiling" = yes; then
20339 pgac_cv_printf_arg_control=cross
20340 else
20341 cat >conftest.$ac_ext <<_ACEOF
20342 /* confdefs.h. */
20343 _ACEOF
20344 cat confdefs.h >>conftest.$ac_ext
20345 cat >>conftest.$ac_ext <<_ACEOF
20346 /* end confdefs.h. */
20347 #include <stdio.h>
20348 #include <string.h>
20350 int main()
20352 char buf[100];
20354 /* can it swap arguments? */
20355 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
20356 if (strcmp(buf, "4 3") != 0)
20357 return 1;
20358 return 0;
20360 _ACEOF
20361 rm -f conftest$ac_exeext
20362 if { (ac_try="$ac_link"
20363 case "(($ac_try" in
20364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20365 *) ac_try_echo=$ac_try;;
20366 esac
20367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20368 (eval "$ac_link") 2>&5
20369 ac_status=$?
20370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20372 { (case "(($ac_try" in
20373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20374 *) ac_try_echo=$ac_try;;
20375 esac
20376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20377 (eval "$ac_try") 2>&5
20378 ac_status=$?
20379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380 (exit $ac_status); }; }; then
20381 pgac_cv_printf_arg_control=yes
20382 else
20383 echo "$as_me: program exited with status $ac_status" >&5
20384 echo "$as_me: failed program was:" >&5
20385 sed 's/^/| /' conftest.$ac_ext >&5
20387 ( exit $ac_status )
20388 pgac_cv_printf_arg_control=no
20390 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20396 { echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
20397 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6; }
20399 if test $pgac_cv_printf_arg_control != yes ; then
20400 pgac_need_repl_snprintf=yes
20406 { echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
20407 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6; }
20408 if test "${pgac_cv_type_long_int_64+set}" = set; then
20409 echo $ECHO_N "(cached) $ECHO_C" >&6
20410 else
20411 if test "$cross_compiling" = yes; then
20412 # If cross-compiling, check the size reported by the compiler and
20413 # trust that the arithmetic works.
20414 cat >conftest.$ac_ext <<_ACEOF
20415 /* confdefs.h. */
20416 _ACEOF
20417 cat confdefs.h >>conftest.$ac_ext
20418 cat >>conftest.$ac_ext <<_ACEOF
20419 /* end confdefs.h. */
20422 main ()
20424 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
20425 test_array [0] = 0
20428 return 0;
20430 _ACEOF
20431 rm -f conftest.$ac_objext
20432 if { (ac_try="$ac_compile"
20433 case "(($ac_try" in
20434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20435 *) ac_try_echo=$ac_try;;
20436 esac
20437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20438 (eval "$ac_compile") 2>conftest.er1
20439 ac_status=$?
20440 grep -v '^ *+' conftest.er1 >conftest.err
20441 rm -f conftest.er1
20442 cat conftest.err >&5
20443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444 (exit $ac_status); } && {
20445 test -z "$ac_c_werror_flag" ||
20446 test ! -s conftest.err
20447 } && test -s conftest.$ac_objext; then
20448 pgac_cv_type_long_int_64=yes
20449 else
20450 echo "$as_me: failed program was:" >&5
20451 sed 's/^/| /' conftest.$ac_ext >&5
20453 pgac_cv_type_long_int_64=no
20456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20457 else
20458 cat >conftest.$ac_ext <<_ACEOF
20459 /* confdefs.h. */
20460 _ACEOF
20461 cat confdefs.h >>conftest.$ac_ext
20462 cat >>conftest.$ac_ext <<_ACEOF
20463 /* end confdefs.h. */
20464 typedef long int ac_int64;
20467 * These are globals to discourage the compiler from folding all the
20468 * arithmetic tests down to compile-time constants.
20470 ac_int64 a = 20000001;
20471 ac_int64 b = 40000005;
20473 int does_int64_work()
20475 ac_int64 c,d;
20477 if (sizeof(ac_int64) != 8)
20478 return 0; /* definitely not the right size */
20480 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
20481 c = a * b;
20482 d = (c + b) / b;
20483 if (d != a+1)
20484 return 0;
20485 return 1;
20487 main() {
20488 exit(! does_int64_work());
20490 _ACEOF
20491 rm -f conftest$ac_exeext
20492 if { (ac_try="$ac_link"
20493 case "(($ac_try" in
20494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20495 *) ac_try_echo=$ac_try;;
20496 esac
20497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20498 (eval "$ac_link") 2>&5
20499 ac_status=$?
20500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20502 { (case "(($ac_try" in
20503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20504 *) ac_try_echo=$ac_try;;
20505 esac
20506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20507 (eval "$ac_try") 2>&5
20508 ac_status=$?
20509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510 (exit $ac_status); }; }; then
20511 pgac_cv_type_long_int_64=yes
20512 else
20513 echo "$as_me: program exited with status $ac_status" >&5
20514 echo "$as_me: failed program was:" >&5
20515 sed 's/^/| /' conftest.$ac_ext >&5
20517 ( exit $ac_status )
20518 pgac_cv_type_long_int_64=no
20520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20525 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
20526 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6; }
20528 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
20529 if test x"$pgac_cv_type_long_int_64" = xyes ; then
20531 cat >>confdefs.h <<\_ACEOF
20532 #define HAVE_LONG_INT_64 1
20533 _ACEOF
20538 if test x"$HAVE_LONG_INT_64" = x"no" ; then
20539 { echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
20540 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6; }
20541 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
20542 echo $ECHO_N "(cached) $ECHO_C" >&6
20543 else
20544 if test "$cross_compiling" = yes; then
20545 # If cross-compiling, check the size reported by the compiler and
20546 # trust that the arithmetic works.
20547 cat >conftest.$ac_ext <<_ACEOF
20548 /* confdefs.h. */
20549 _ACEOF
20550 cat confdefs.h >>conftest.$ac_ext
20551 cat >>conftest.$ac_ext <<_ACEOF
20552 /* end confdefs.h. */
20555 main ()
20557 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
20558 test_array [0] = 0
20561 return 0;
20563 _ACEOF
20564 rm -f conftest.$ac_objext
20565 if { (ac_try="$ac_compile"
20566 case "(($ac_try" in
20567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20568 *) ac_try_echo=$ac_try;;
20569 esac
20570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20571 (eval "$ac_compile") 2>conftest.er1
20572 ac_status=$?
20573 grep -v '^ *+' conftest.er1 >conftest.err
20574 rm -f conftest.er1
20575 cat conftest.err >&5
20576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577 (exit $ac_status); } && {
20578 test -z "$ac_c_werror_flag" ||
20579 test ! -s conftest.err
20580 } && test -s conftest.$ac_objext; then
20581 pgac_cv_type_long_long_int_64=yes
20582 else
20583 echo "$as_me: failed program was:" >&5
20584 sed 's/^/| /' conftest.$ac_ext >&5
20586 pgac_cv_type_long_long_int_64=no
20589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20590 else
20591 cat >conftest.$ac_ext <<_ACEOF
20592 /* confdefs.h. */
20593 _ACEOF
20594 cat confdefs.h >>conftest.$ac_ext
20595 cat >>conftest.$ac_ext <<_ACEOF
20596 /* end confdefs.h. */
20597 typedef long long int ac_int64;
20600 * These are globals to discourage the compiler from folding all the
20601 * arithmetic tests down to compile-time constants.
20603 ac_int64 a = 20000001;
20604 ac_int64 b = 40000005;
20606 int does_int64_work()
20608 ac_int64 c,d;
20610 if (sizeof(ac_int64) != 8)
20611 return 0; /* definitely not the right size */
20613 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
20614 c = a * b;
20615 d = (c + b) / b;
20616 if (d != a+1)
20617 return 0;
20618 return 1;
20620 main() {
20621 exit(! does_int64_work());
20623 _ACEOF
20624 rm -f conftest$ac_exeext
20625 if { (ac_try="$ac_link"
20626 case "(($ac_try" in
20627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20628 *) ac_try_echo=$ac_try;;
20629 esac
20630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20631 (eval "$ac_link") 2>&5
20632 ac_status=$?
20633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20635 { (case "(($ac_try" in
20636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20637 *) ac_try_echo=$ac_try;;
20638 esac
20639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20640 (eval "$ac_try") 2>&5
20641 ac_status=$?
20642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643 (exit $ac_status); }; }; then
20644 pgac_cv_type_long_long_int_64=yes
20645 else
20646 echo "$as_me: program exited with status $ac_status" >&5
20647 echo "$as_me: failed program was:" >&5
20648 sed 's/^/| /' conftest.$ac_ext >&5
20650 ( exit $ac_status )
20651 pgac_cv_type_long_long_int_64=no
20653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20658 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
20659 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6; }
20661 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
20662 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
20664 cat >>confdefs.h <<\_ACEOF
20665 #define HAVE_LONG_LONG_INT_64 1
20666 _ACEOF
20674 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
20675 cat >conftest.$ac_ext <<_ACEOF
20676 /* confdefs.h. */
20677 _ACEOF
20678 cat confdefs.h >>conftest.$ac_ext
20679 cat >>conftest.$ac_ext <<_ACEOF
20680 /* end confdefs.h. */
20682 #define INT64CONST(x) x##LL
20683 long long int foo = INT64CONST(0x1234567890123456);
20686 main ()
20690 return 0;
20692 _ACEOF
20693 rm -f conftest.$ac_objext
20694 if { (ac_try="$ac_compile"
20695 case "(($ac_try" in
20696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20697 *) ac_try_echo=$ac_try;;
20698 esac
20699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20700 (eval "$ac_compile") 2>conftest.er1
20701 ac_status=$?
20702 grep -v '^ *+' conftest.er1 >conftest.err
20703 rm -f conftest.er1
20704 cat conftest.err >&5
20705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706 (exit $ac_status); } && {
20707 test -z "$ac_c_werror_flag" ||
20708 test ! -s conftest.err
20709 } && test -s conftest.$ac_objext; then
20711 cat >>confdefs.h <<\_ACEOF
20712 #define HAVE_LL_CONSTANTS 1
20713 _ACEOF
20715 else
20716 echo "$as_me: failed program was:" >&5
20717 sed 's/^/| /' conftest.$ac_ext >&5
20722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20726 # If we found "long int" is 64 bits, assume snprintf handles it. If
20727 # we found we need to use "long long int", better check. We cope with
20728 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
20729 # work, fall back to our own snprintf emulation (which we know uses %lld).
20731 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
20732 if test $pgac_need_repl_snprintf = no; then
20733 { echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
20734 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6; }
20735 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
20736 echo $ECHO_N "(cached) $ECHO_C" >&6
20737 else
20738 for pgac_format in '%lld' '%qd' '%I64d'; do
20739 if test "$cross_compiling" = yes; then
20740 pgac_cv_snprintf_long_long_int_format=cross; break
20741 else
20742 cat >conftest.$ac_ext <<_ACEOF
20743 /* confdefs.h. */
20744 _ACEOF
20745 cat confdefs.h >>conftest.$ac_ext
20746 cat >>conftest.$ac_ext <<_ACEOF
20747 /* end confdefs.h. */
20748 #include <stdio.h>
20749 typedef long long int ac_int64;
20750 #define INT64_FORMAT "$pgac_format"
20752 ac_int64 a = 20000001;
20753 ac_int64 b = 40000005;
20755 int does_int64_snprintf_work()
20757 ac_int64 c;
20758 char buf[100];
20760 if (sizeof(ac_int64) != 8)
20761 return 0; /* doesn't look like the right size */
20763 c = a * b;
20764 snprintf(buf, 100, INT64_FORMAT, c);
20765 if (strcmp(buf, "800000140000005") != 0)
20766 return 0; /* either multiply or snprintf is busted */
20767 return 1;
20769 main() {
20770 exit(! does_int64_snprintf_work());
20772 _ACEOF
20773 rm -f conftest$ac_exeext
20774 if { (ac_try="$ac_link"
20775 case "(($ac_try" in
20776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20777 *) ac_try_echo=$ac_try;;
20778 esac
20779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20780 (eval "$ac_link") 2>&5
20781 ac_status=$?
20782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20784 { (case "(($ac_try" in
20785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20786 *) ac_try_echo=$ac_try;;
20787 esac
20788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20789 (eval "$ac_try") 2>&5
20790 ac_status=$?
20791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792 (exit $ac_status); }; }; then
20793 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
20794 else
20795 echo "$as_me: program exited with status $ac_status" >&5
20796 echo "$as_me: failed program was:" >&5
20797 sed 's/^/| /' conftest.$ac_ext >&5
20800 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20804 done
20807 LONG_LONG_INT_FORMAT=''
20809 case $pgac_cv_snprintf_long_long_int_format in
20810 cross) { echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
20811 echo "${ECHO_T}cannot test (not on host machine)" >&6; };;
20812 ?*) { echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
20813 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6; }
20814 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
20815 *) { echo "$as_me:$LINENO: result: none" >&5
20816 echo "${ECHO_T}none" >&6; };;
20817 esac
20818 if test "$LONG_LONG_INT_FORMAT" = ""; then
20819 # Force usage of our own snprintf, since system snprintf is broken
20820 pgac_need_repl_snprintf=yes
20821 LONG_LONG_INT_FORMAT='%lld'
20823 else
20824 # Here if we previously decided we needed to use our own snprintf
20825 LONG_LONG_INT_FORMAT='%lld'
20827 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
20828 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
20829 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
20830 else
20831 # Here if we are not using 'long long int' at all
20832 INT64_FORMAT='"%ld"'
20833 UINT64_FORMAT='"%lu"'
20837 cat >>confdefs.h <<_ACEOF
20838 #define INT64_FORMAT $INT64_FORMAT
20839 _ACEOF
20843 cat >>confdefs.h <<_ACEOF
20844 #define UINT64_FORMAT $UINT64_FORMAT
20845 _ACEOF
20848 # Now we have checked all the reasons to replace snprintf
20849 if test $pgac_need_repl_snprintf = yes; then
20851 cat >>confdefs.h <<\_ACEOF
20852 #define USE_REPL_SNPRINTF 1
20853 _ACEOF
20855 case " $LIBOBJS " in
20856 *" snprintf.$ac_objext "* ) ;;
20857 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20859 esac
20863 # Need a #define for the size of Datum (unsigned long)
20864 { echo "$as_me:$LINENO: checking for unsigned long" >&5
20865 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
20866 if test "${ac_cv_type_unsigned_long+set}" = set; then
20867 echo $ECHO_N "(cached) $ECHO_C" >&6
20868 else
20869 cat >conftest.$ac_ext <<_ACEOF
20870 /* confdefs.h. */
20871 _ACEOF
20872 cat confdefs.h >>conftest.$ac_ext
20873 cat >>conftest.$ac_ext <<_ACEOF
20874 /* end confdefs.h. */
20875 $ac_includes_default
20876 typedef unsigned long ac__type_new_;
20878 main ()
20880 if ((ac__type_new_ *) 0)
20881 return 0;
20882 if (sizeof (ac__type_new_))
20883 return 0;
20885 return 0;
20887 _ACEOF
20888 rm -f conftest.$ac_objext
20889 if { (ac_try="$ac_compile"
20890 case "(($ac_try" in
20891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20892 *) ac_try_echo=$ac_try;;
20893 esac
20894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20895 (eval "$ac_compile") 2>conftest.er1
20896 ac_status=$?
20897 grep -v '^ *+' conftest.er1 >conftest.err
20898 rm -f conftest.er1
20899 cat conftest.err >&5
20900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901 (exit $ac_status); } && {
20902 test -z "$ac_c_werror_flag" ||
20903 test ! -s conftest.err
20904 } && test -s conftest.$ac_objext; then
20905 ac_cv_type_unsigned_long=yes
20906 else
20907 echo "$as_me: failed program was:" >&5
20908 sed 's/^/| /' conftest.$ac_ext >&5
20910 ac_cv_type_unsigned_long=no
20913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20915 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
20916 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
20918 # The cast to long int works around a bug in the HP C Compiler
20919 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20920 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20921 # This bug is HP SR number 8606223364.
20922 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
20923 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
20924 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
20925 echo $ECHO_N "(cached) $ECHO_C" >&6
20926 else
20927 if test "$cross_compiling" = yes; then
20928 # Depending upon the size, compute the lo and hi bounds.
20929 cat >conftest.$ac_ext <<_ACEOF
20930 /* confdefs.h. */
20931 _ACEOF
20932 cat confdefs.h >>conftest.$ac_ext
20933 cat >>conftest.$ac_ext <<_ACEOF
20934 /* end confdefs.h. */
20935 $ac_includes_default
20936 typedef unsigned long ac__type_sizeof_;
20938 main ()
20940 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20941 test_array [0] = 0
20944 return 0;
20946 _ACEOF
20947 rm -f conftest.$ac_objext
20948 if { (ac_try="$ac_compile"
20949 case "(($ac_try" in
20950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20951 *) ac_try_echo=$ac_try;;
20952 esac
20953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20954 (eval "$ac_compile") 2>conftest.er1
20955 ac_status=$?
20956 grep -v '^ *+' conftest.er1 >conftest.err
20957 rm -f conftest.er1
20958 cat conftest.err >&5
20959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20960 (exit $ac_status); } && {
20961 test -z "$ac_c_werror_flag" ||
20962 test ! -s conftest.err
20963 } && test -s conftest.$ac_objext; then
20964 ac_lo=0 ac_mid=0
20965 while :; do
20966 cat >conftest.$ac_ext <<_ACEOF
20967 /* confdefs.h. */
20968 _ACEOF
20969 cat confdefs.h >>conftest.$ac_ext
20970 cat >>conftest.$ac_ext <<_ACEOF
20971 /* end confdefs.h. */
20972 $ac_includes_default
20973 typedef unsigned long ac__type_sizeof_;
20975 main ()
20977 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20978 test_array [0] = 0
20981 return 0;
20983 _ACEOF
20984 rm -f conftest.$ac_objext
20985 if { (ac_try="$ac_compile"
20986 case "(($ac_try" in
20987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20988 *) ac_try_echo=$ac_try;;
20989 esac
20990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20991 (eval "$ac_compile") 2>conftest.er1
20992 ac_status=$?
20993 grep -v '^ *+' conftest.er1 >conftest.err
20994 rm -f conftest.er1
20995 cat conftest.err >&5
20996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997 (exit $ac_status); } && {
20998 test -z "$ac_c_werror_flag" ||
20999 test ! -s conftest.err
21000 } && test -s conftest.$ac_objext; then
21001 ac_hi=$ac_mid; break
21002 else
21003 echo "$as_me: failed program was:" >&5
21004 sed 's/^/| /' conftest.$ac_ext >&5
21006 ac_lo=`expr $ac_mid + 1`
21007 if test $ac_lo -le $ac_mid; then
21008 ac_lo= ac_hi=
21009 break
21011 ac_mid=`expr 2 '*' $ac_mid + 1`
21014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21015 done
21016 else
21017 echo "$as_me: failed program was:" >&5
21018 sed 's/^/| /' conftest.$ac_ext >&5
21020 cat >conftest.$ac_ext <<_ACEOF
21021 /* confdefs.h. */
21022 _ACEOF
21023 cat confdefs.h >>conftest.$ac_ext
21024 cat >>conftest.$ac_ext <<_ACEOF
21025 /* end confdefs.h. */
21026 $ac_includes_default
21027 typedef unsigned long ac__type_sizeof_;
21029 main ()
21031 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21032 test_array [0] = 0
21035 return 0;
21037 _ACEOF
21038 rm -f conftest.$ac_objext
21039 if { (ac_try="$ac_compile"
21040 case "(($ac_try" in
21041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21042 *) ac_try_echo=$ac_try;;
21043 esac
21044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21045 (eval "$ac_compile") 2>conftest.er1
21046 ac_status=$?
21047 grep -v '^ *+' conftest.er1 >conftest.err
21048 rm -f conftest.er1
21049 cat conftest.err >&5
21050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051 (exit $ac_status); } && {
21052 test -z "$ac_c_werror_flag" ||
21053 test ! -s conftest.err
21054 } && test -s conftest.$ac_objext; then
21055 ac_hi=-1 ac_mid=-1
21056 while :; do
21057 cat >conftest.$ac_ext <<_ACEOF
21058 /* confdefs.h. */
21059 _ACEOF
21060 cat confdefs.h >>conftest.$ac_ext
21061 cat >>conftest.$ac_ext <<_ACEOF
21062 /* end confdefs.h. */
21063 $ac_includes_default
21064 typedef unsigned long ac__type_sizeof_;
21066 main ()
21068 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21069 test_array [0] = 0
21072 return 0;
21074 _ACEOF
21075 rm -f conftest.$ac_objext
21076 if { (ac_try="$ac_compile"
21077 case "(($ac_try" in
21078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21079 *) ac_try_echo=$ac_try;;
21080 esac
21081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21082 (eval "$ac_compile") 2>conftest.er1
21083 ac_status=$?
21084 grep -v '^ *+' conftest.er1 >conftest.err
21085 rm -f conftest.er1
21086 cat conftest.err >&5
21087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088 (exit $ac_status); } && {
21089 test -z "$ac_c_werror_flag" ||
21090 test ! -s conftest.err
21091 } && test -s conftest.$ac_objext; then
21092 ac_lo=$ac_mid; break
21093 else
21094 echo "$as_me: failed program was:" >&5
21095 sed 's/^/| /' conftest.$ac_ext >&5
21097 ac_hi=`expr '(' $ac_mid ')' - 1`
21098 if test $ac_mid -le $ac_hi; then
21099 ac_lo= ac_hi=
21100 break
21102 ac_mid=`expr 2 '*' $ac_mid`
21105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21106 done
21107 else
21108 echo "$as_me: failed program was:" >&5
21109 sed 's/^/| /' conftest.$ac_ext >&5
21111 ac_lo= ac_hi=
21114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21118 # Binary search between lo and hi bounds.
21119 while test "x$ac_lo" != "x$ac_hi"; do
21120 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21121 cat >conftest.$ac_ext <<_ACEOF
21122 /* confdefs.h. */
21123 _ACEOF
21124 cat confdefs.h >>conftest.$ac_ext
21125 cat >>conftest.$ac_ext <<_ACEOF
21126 /* end confdefs.h. */
21127 $ac_includes_default
21128 typedef unsigned long ac__type_sizeof_;
21130 main ()
21132 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21133 test_array [0] = 0
21136 return 0;
21138 _ACEOF
21139 rm -f conftest.$ac_objext
21140 if { (ac_try="$ac_compile"
21141 case "(($ac_try" in
21142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21143 *) ac_try_echo=$ac_try;;
21144 esac
21145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21146 (eval "$ac_compile") 2>conftest.er1
21147 ac_status=$?
21148 grep -v '^ *+' conftest.er1 >conftest.err
21149 rm -f conftest.er1
21150 cat conftest.err >&5
21151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152 (exit $ac_status); } && {
21153 test -z "$ac_c_werror_flag" ||
21154 test ! -s conftest.err
21155 } && test -s conftest.$ac_objext; then
21156 ac_hi=$ac_mid
21157 else
21158 echo "$as_me: failed program was:" >&5
21159 sed 's/^/| /' conftest.$ac_ext >&5
21161 ac_lo=`expr '(' $ac_mid ')' + 1`
21164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21165 done
21166 case $ac_lo in
21167 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
21168 '') if test "$ac_cv_type_unsigned_long" = yes; then
21169 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
21170 See \`config.log' for more details." >&5
21171 echo "$as_me: error: cannot compute sizeof (unsigned long)
21172 See \`config.log' for more details." >&2;}
21173 { (exit 77); exit 77; }; }
21174 else
21175 ac_cv_sizeof_unsigned_long=0
21176 fi ;;
21177 esac
21178 else
21179 cat >conftest.$ac_ext <<_ACEOF
21180 /* confdefs.h. */
21181 _ACEOF
21182 cat confdefs.h >>conftest.$ac_ext
21183 cat >>conftest.$ac_ext <<_ACEOF
21184 /* end confdefs.h. */
21185 $ac_includes_default
21186 typedef unsigned long ac__type_sizeof_;
21187 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21188 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21189 #include <stdio.h>
21190 #include <stdlib.h>
21192 main ()
21195 FILE *f = fopen ("conftest.val", "w");
21196 if (! f)
21197 return 1;
21198 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21200 long int i = longval ();
21201 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21202 return 1;
21203 fprintf (f, "%ld\n", i);
21205 else
21207 unsigned long int i = ulongval ();
21208 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21209 return 1;
21210 fprintf (f, "%lu\n", i);
21212 return ferror (f) || fclose (f) != 0;
21215 return 0;
21217 _ACEOF
21218 rm -f conftest$ac_exeext
21219 if { (ac_try="$ac_link"
21220 case "(($ac_try" in
21221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21222 *) ac_try_echo=$ac_try;;
21223 esac
21224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21225 (eval "$ac_link") 2>&5
21226 ac_status=$?
21227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21229 { (case "(($ac_try" in
21230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21231 *) ac_try_echo=$ac_try;;
21232 esac
21233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21234 (eval "$ac_try") 2>&5
21235 ac_status=$?
21236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21237 (exit $ac_status); }; }; then
21238 ac_cv_sizeof_unsigned_long=`cat conftest.val`
21239 else
21240 echo "$as_me: program exited with status $ac_status" >&5
21241 echo "$as_me: failed program was:" >&5
21242 sed 's/^/| /' conftest.$ac_ext >&5
21244 ( exit $ac_status )
21245 if test "$ac_cv_type_unsigned_long" = yes; then
21246 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
21247 See \`config.log' for more details." >&5
21248 echo "$as_me: error: cannot compute sizeof (unsigned long)
21249 See \`config.log' for more details." >&2;}
21250 { (exit 77); exit 77; }; }
21251 else
21252 ac_cv_sizeof_unsigned_long=0
21255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21257 rm -f conftest.val
21259 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
21260 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
21264 cat >>confdefs.h <<_ACEOF
21265 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21266 _ACEOF
21270 # And one for the size of size_t (enables tweaks for > 32bit address space)
21271 { echo "$as_me:$LINENO: checking for size_t" >&5
21272 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21273 if test "${ac_cv_type_size_t+set}" = set; then
21274 echo $ECHO_N "(cached) $ECHO_C" >&6
21275 else
21276 cat >conftest.$ac_ext <<_ACEOF
21277 /* confdefs.h. */
21278 _ACEOF
21279 cat confdefs.h >>conftest.$ac_ext
21280 cat >>conftest.$ac_ext <<_ACEOF
21281 /* end confdefs.h. */
21282 $ac_includes_default
21283 typedef size_t ac__type_new_;
21285 main ()
21287 if ((ac__type_new_ *) 0)
21288 return 0;
21289 if (sizeof (ac__type_new_))
21290 return 0;
21292 return 0;
21294 _ACEOF
21295 rm -f conftest.$ac_objext
21296 if { (ac_try="$ac_compile"
21297 case "(($ac_try" in
21298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21299 *) ac_try_echo=$ac_try;;
21300 esac
21301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21302 (eval "$ac_compile") 2>conftest.er1
21303 ac_status=$?
21304 grep -v '^ *+' conftest.er1 >conftest.err
21305 rm -f conftest.er1
21306 cat conftest.err >&5
21307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308 (exit $ac_status); } && {
21309 test -z "$ac_c_werror_flag" ||
21310 test ! -s conftest.err
21311 } && test -s conftest.$ac_objext; then
21312 ac_cv_type_size_t=yes
21313 else
21314 echo "$as_me: failed program was:" >&5
21315 sed 's/^/| /' conftest.$ac_ext >&5
21317 ac_cv_type_size_t=no
21320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21322 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21323 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21325 # The cast to long int works around a bug in the HP C Compiler
21326 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21327 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21328 # This bug is HP SR number 8606223364.
21329 { echo "$as_me:$LINENO: checking size of size_t" >&5
21330 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
21331 if test "${ac_cv_sizeof_size_t+set}" = set; then
21332 echo $ECHO_N "(cached) $ECHO_C" >&6
21333 else
21334 if test "$cross_compiling" = yes; then
21335 # Depending upon the size, compute the lo and hi bounds.
21336 cat >conftest.$ac_ext <<_ACEOF
21337 /* confdefs.h. */
21338 _ACEOF
21339 cat confdefs.h >>conftest.$ac_ext
21340 cat >>conftest.$ac_ext <<_ACEOF
21341 /* end confdefs.h. */
21342 $ac_includes_default
21343 typedef size_t ac__type_sizeof_;
21345 main ()
21347 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21348 test_array [0] = 0
21351 return 0;
21353 _ACEOF
21354 rm -f conftest.$ac_objext
21355 if { (ac_try="$ac_compile"
21356 case "(($ac_try" in
21357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21358 *) ac_try_echo=$ac_try;;
21359 esac
21360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21361 (eval "$ac_compile") 2>conftest.er1
21362 ac_status=$?
21363 grep -v '^ *+' conftest.er1 >conftest.err
21364 rm -f conftest.er1
21365 cat conftest.err >&5
21366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21367 (exit $ac_status); } && {
21368 test -z "$ac_c_werror_flag" ||
21369 test ! -s conftest.err
21370 } && test -s conftest.$ac_objext; then
21371 ac_lo=0 ac_mid=0
21372 while :; do
21373 cat >conftest.$ac_ext <<_ACEOF
21374 /* confdefs.h. */
21375 _ACEOF
21376 cat confdefs.h >>conftest.$ac_ext
21377 cat >>conftest.$ac_ext <<_ACEOF
21378 /* end confdefs.h. */
21379 $ac_includes_default
21380 typedef size_t ac__type_sizeof_;
21382 main ()
21384 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21385 test_array [0] = 0
21388 return 0;
21390 _ACEOF
21391 rm -f conftest.$ac_objext
21392 if { (ac_try="$ac_compile"
21393 case "(($ac_try" in
21394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21395 *) ac_try_echo=$ac_try;;
21396 esac
21397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21398 (eval "$ac_compile") 2>conftest.er1
21399 ac_status=$?
21400 grep -v '^ *+' conftest.er1 >conftest.err
21401 rm -f conftest.er1
21402 cat conftest.err >&5
21403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21404 (exit $ac_status); } && {
21405 test -z "$ac_c_werror_flag" ||
21406 test ! -s conftest.err
21407 } && test -s conftest.$ac_objext; then
21408 ac_hi=$ac_mid; break
21409 else
21410 echo "$as_me: failed program was:" >&5
21411 sed 's/^/| /' conftest.$ac_ext >&5
21413 ac_lo=`expr $ac_mid + 1`
21414 if test $ac_lo -le $ac_mid; then
21415 ac_lo= ac_hi=
21416 break
21418 ac_mid=`expr 2 '*' $ac_mid + 1`
21421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21422 done
21423 else
21424 echo "$as_me: failed program was:" >&5
21425 sed 's/^/| /' conftest.$ac_ext >&5
21427 cat >conftest.$ac_ext <<_ACEOF
21428 /* confdefs.h. */
21429 _ACEOF
21430 cat confdefs.h >>conftest.$ac_ext
21431 cat >>conftest.$ac_ext <<_ACEOF
21432 /* end confdefs.h. */
21433 $ac_includes_default
21434 typedef size_t ac__type_sizeof_;
21436 main ()
21438 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21439 test_array [0] = 0
21442 return 0;
21444 _ACEOF
21445 rm -f conftest.$ac_objext
21446 if { (ac_try="$ac_compile"
21447 case "(($ac_try" in
21448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21449 *) ac_try_echo=$ac_try;;
21450 esac
21451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21452 (eval "$ac_compile") 2>conftest.er1
21453 ac_status=$?
21454 grep -v '^ *+' conftest.er1 >conftest.err
21455 rm -f conftest.er1
21456 cat conftest.err >&5
21457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458 (exit $ac_status); } && {
21459 test -z "$ac_c_werror_flag" ||
21460 test ! -s conftest.err
21461 } && test -s conftest.$ac_objext; then
21462 ac_hi=-1 ac_mid=-1
21463 while :; do
21464 cat >conftest.$ac_ext <<_ACEOF
21465 /* confdefs.h. */
21466 _ACEOF
21467 cat confdefs.h >>conftest.$ac_ext
21468 cat >>conftest.$ac_ext <<_ACEOF
21469 /* end confdefs.h. */
21470 $ac_includes_default
21471 typedef size_t ac__type_sizeof_;
21473 main ()
21475 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21476 test_array [0] = 0
21479 return 0;
21481 _ACEOF
21482 rm -f conftest.$ac_objext
21483 if { (ac_try="$ac_compile"
21484 case "(($ac_try" in
21485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21486 *) ac_try_echo=$ac_try;;
21487 esac
21488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21489 (eval "$ac_compile") 2>conftest.er1
21490 ac_status=$?
21491 grep -v '^ *+' conftest.er1 >conftest.err
21492 rm -f conftest.er1
21493 cat conftest.err >&5
21494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21495 (exit $ac_status); } && {
21496 test -z "$ac_c_werror_flag" ||
21497 test ! -s conftest.err
21498 } && test -s conftest.$ac_objext; then
21499 ac_lo=$ac_mid; break
21500 else
21501 echo "$as_me: failed program was:" >&5
21502 sed 's/^/| /' conftest.$ac_ext >&5
21504 ac_hi=`expr '(' $ac_mid ')' - 1`
21505 if test $ac_mid -le $ac_hi; then
21506 ac_lo= ac_hi=
21507 break
21509 ac_mid=`expr 2 '*' $ac_mid`
21512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21513 done
21514 else
21515 echo "$as_me: failed program was:" >&5
21516 sed 's/^/| /' conftest.$ac_ext >&5
21518 ac_lo= ac_hi=
21521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21525 # Binary search between lo and hi bounds.
21526 while test "x$ac_lo" != "x$ac_hi"; do
21527 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21528 cat >conftest.$ac_ext <<_ACEOF
21529 /* confdefs.h. */
21530 _ACEOF
21531 cat confdefs.h >>conftest.$ac_ext
21532 cat >>conftest.$ac_ext <<_ACEOF
21533 /* end confdefs.h. */
21534 $ac_includes_default
21535 typedef size_t ac__type_sizeof_;
21537 main ()
21539 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21540 test_array [0] = 0
21543 return 0;
21545 _ACEOF
21546 rm -f conftest.$ac_objext
21547 if { (ac_try="$ac_compile"
21548 case "(($ac_try" in
21549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21550 *) ac_try_echo=$ac_try;;
21551 esac
21552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21553 (eval "$ac_compile") 2>conftest.er1
21554 ac_status=$?
21555 grep -v '^ *+' conftest.er1 >conftest.err
21556 rm -f conftest.er1
21557 cat conftest.err >&5
21558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21559 (exit $ac_status); } && {
21560 test -z "$ac_c_werror_flag" ||
21561 test ! -s conftest.err
21562 } && test -s conftest.$ac_objext; then
21563 ac_hi=$ac_mid
21564 else
21565 echo "$as_me: failed program was:" >&5
21566 sed 's/^/| /' conftest.$ac_ext >&5
21568 ac_lo=`expr '(' $ac_mid ')' + 1`
21571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21572 done
21573 case $ac_lo in
21574 ?*) ac_cv_sizeof_size_t=$ac_lo;;
21575 '') if test "$ac_cv_type_size_t" = yes; then
21576 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21577 See \`config.log' for more details." >&5
21578 echo "$as_me: error: cannot compute sizeof (size_t)
21579 See \`config.log' for more details." >&2;}
21580 { (exit 77); exit 77; }; }
21581 else
21582 ac_cv_sizeof_size_t=0
21583 fi ;;
21584 esac
21585 else
21586 cat >conftest.$ac_ext <<_ACEOF
21587 /* confdefs.h. */
21588 _ACEOF
21589 cat confdefs.h >>conftest.$ac_ext
21590 cat >>conftest.$ac_ext <<_ACEOF
21591 /* end confdefs.h. */
21592 $ac_includes_default
21593 typedef size_t ac__type_sizeof_;
21594 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21595 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21596 #include <stdio.h>
21597 #include <stdlib.h>
21599 main ()
21602 FILE *f = fopen ("conftest.val", "w");
21603 if (! f)
21604 return 1;
21605 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21607 long int i = longval ();
21608 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21609 return 1;
21610 fprintf (f, "%ld\n", i);
21612 else
21614 unsigned long int i = ulongval ();
21615 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21616 return 1;
21617 fprintf (f, "%lu\n", i);
21619 return ferror (f) || fclose (f) != 0;
21622 return 0;
21624 _ACEOF
21625 rm -f conftest$ac_exeext
21626 if { (ac_try="$ac_link"
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_link") 2>&5
21633 ac_status=$?
21634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21636 { (case "(($ac_try" in
21637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21638 *) ac_try_echo=$ac_try;;
21639 esac
21640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21641 (eval "$ac_try") 2>&5
21642 ac_status=$?
21643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644 (exit $ac_status); }; }; then
21645 ac_cv_sizeof_size_t=`cat conftest.val`
21646 else
21647 echo "$as_me: program exited with status $ac_status" >&5
21648 echo "$as_me: failed program was:" >&5
21649 sed 's/^/| /' conftest.$ac_ext >&5
21651 ( exit $ac_status )
21652 if test "$ac_cv_type_size_t" = yes; then
21653 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21654 See \`config.log' for more details." >&5
21655 echo "$as_me: error: cannot compute sizeof (size_t)
21656 See \`config.log' for more details." >&2;}
21657 { (exit 77); exit 77; }; }
21658 else
21659 ac_cv_sizeof_size_t=0
21662 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21664 rm -f conftest.val
21666 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
21667 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
21671 cat >>confdefs.h <<_ACEOF
21672 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21673 _ACEOF
21677 # Decide whether float4 is passed by value: user-selectable, enabled by default
21678 { echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
21679 echo $ECHO_N "checking whether to build with float4 passed by value... $ECHO_C" >&6; }
21681 pgac_args="$pgac_args enable_float4_byval"
21683 # Check whether --enable-float4-byval was given.
21684 if test "${enable_float4_byval+set}" = set; then
21685 enableval=$enable_float4_byval;
21686 case $enableval in
21687 yes)
21689 cat >>confdefs.h <<\_ACEOF
21690 #define USE_FLOAT4_BYVAL 1
21691 _ACEOF
21693 float4passbyval=true
21696 float4passbyval=false
21699 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
21700 echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
21701 { (exit 1); exit 1; }; }
21703 esac
21705 else
21706 enable_float4_byval=yes
21708 cat >>confdefs.h <<\_ACEOF
21709 #define USE_FLOAT4_BYVAL 1
21710 _ACEOF
21712 float4passbyval=true
21716 { echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
21717 echo "${ECHO_T}$enable_float4_byval" >&6; }
21719 cat >>confdefs.h <<_ACEOF
21720 #define FLOAT4PASSBYVAL $float4passbyval
21721 _ACEOF
21724 # Decide whether float8 is passed by value.
21725 # Note: this setting also controls int8 and related types such as timestamp.
21726 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
21727 # If not, trying to select it is an error.
21728 { echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
21729 echo $ECHO_N "checking whether to build with float8 passed by value... $ECHO_C" >&6; }
21730 if test $ac_cv_sizeof_unsigned_long -ge 8 ; then
21732 pgac_args="$pgac_args enable_float8_byval"
21734 # Check whether --enable-float8-byval was given.
21735 if test "${enable_float8_byval+set}" = set; then
21736 enableval=$enable_float8_byval;
21737 case $enableval in
21738 yes)
21745 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
21746 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
21747 { (exit 1); exit 1; }; }
21749 esac
21751 else
21752 enable_float8_byval=yes
21757 else
21759 pgac_args="$pgac_args enable_float8_byval"
21761 # Check whether --enable-float8-byval was given.
21762 if test "${enable_float8_byval+set}" = set; then
21763 enableval=$enable_float8_byval;
21764 case $enableval in
21765 yes)
21772 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
21773 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
21774 { (exit 1); exit 1; }; }
21776 esac
21778 else
21779 enable_float8_byval=no
21784 if test "$enable_float8_byval" = yes ; then
21785 { { echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
21786 echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
21787 { (exit 1); exit 1; }; }
21790 if test "$enable_float8_byval" = yes ; then
21792 cat >>confdefs.h <<\_ACEOF
21793 #define USE_FLOAT8_BYVAL 1
21794 _ACEOF
21796 float8passbyval=true
21797 else
21798 float8passbyval=false
21800 { echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
21801 echo "${ECHO_T}$enable_float8_byval" >&6; }
21803 cat >>confdefs.h <<_ACEOF
21804 #define FLOAT8PASSBYVAL $float8passbyval
21805 _ACEOF
21808 # Determine memory alignment requirements for the basic C data types.
21810 { echo "$as_me:$LINENO: checking for short" >&5
21811 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
21812 if test "${ac_cv_type_short+set}" = set; then
21813 echo $ECHO_N "(cached) $ECHO_C" >&6
21814 else
21815 cat >conftest.$ac_ext <<_ACEOF
21816 /* confdefs.h. */
21817 _ACEOF
21818 cat confdefs.h >>conftest.$ac_ext
21819 cat >>conftest.$ac_ext <<_ACEOF
21820 /* end confdefs.h. */
21821 $ac_includes_default
21822 typedef short ac__type_new_;
21824 main ()
21826 if ((ac__type_new_ *) 0)
21827 return 0;
21828 if (sizeof (ac__type_new_))
21829 return 0;
21831 return 0;
21833 _ACEOF
21834 rm -f conftest.$ac_objext
21835 if { (ac_try="$ac_compile"
21836 case "(($ac_try" in
21837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21838 *) ac_try_echo=$ac_try;;
21839 esac
21840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21841 (eval "$ac_compile") 2>conftest.er1
21842 ac_status=$?
21843 grep -v '^ *+' conftest.er1 >conftest.err
21844 rm -f conftest.er1
21845 cat conftest.err >&5
21846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21847 (exit $ac_status); } && {
21848 test -z "$ac_c_werror_flag" ||
21849 test ! -s conftest.err
21850 } && test -s conftest.$ac_objext; then
21851 ac_cv_type_short=yes
21852 else
21853 echo "$as_me: failed program was:" >&5
21854 sed 's/^/| /' conftest.$ac_ext >&5
21856 ac_cv_type_short=no
21859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21861 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
21862 echo "${ECHO_T}$ac_cv_type_short" >&6; }
21864 # The cast to long int works around a bug in the HP C Compiler,
21865 # see AC_CHECK_SIZEOF for more information.
21866 { echo "$as_me:$LINENO: checking alignment of short" >&5
21867 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6; }
21868 if test "${ac_cv_alignof_short+set}" = set; then
21869 echo $ECHO_N "(cached) $ECHO_C" >&6
21870 else
21871 if test "$cross_compiling" = yes; then
21872 # Depending upon the size, compute the lo and hi bounds.
21873 cat >conftest.$ac_ext <<_ACEOF
21874 /* confdefs.h. */
21875 _ACEOF
21876 cat confdefs.h >>conftest.$ac_ext
21877 cat >>conftest.$ac_ext <<_ACEOF
21878 /* end confdefs.h. */
21879 $ac_includes_default
21880 #ifndef offsetof
21881 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21882 #endif
21883 typedef struct { char x; short y; } ac__type_alignof_;
21885 main ()
21887 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
21888 test_array [0] = 0
21891 return 0;
21893 _ACEOF
21894 rm -f conftest.$ac_objext
21895 if { (ac_try="$ac_compile"
21896 case "(($ac_try" in
21897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21898 *) ac_try_echo=$ac_try;;
21899 esac
21900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21901 (eval "$ac_compile") 2>conftest.er1
21902 ac_status=$?
21903 grep -v '^ *+' conftest.er1 >conftest.err
21904 rm -f conftest.er1
21905 cat conftest.err >&5
21906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907 (exit $ac_status); } && {
21908 test -z "$ac_c_werror_flag" ||
21909 test ! -s conftest.err
21910 } && test -s conftest.$ac_objext; then
21911 ac_lo=0 ac_mid=0
21912 while :; do
21913 cat >conftest.$ac_ext <<_ACEOF
21914 /* confdefs.h. */
21915 _ACEOF
21916 cat confdefs.h >>conftest.$ac_ext
21917 cat >>conftest.$ac_ext <<_ACEOF
21918 /* end confdefs.h. */
21919 $ac_includes_default
21920 #ifndef offsetof
21921 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21922 #endif
21923 typedef struct { char x; short y; } ac__type_alignof_;
21925 main ()
21927 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21928 test_array [0] = 0
21931 return 0;
21933 _ACEOF
21934 rm -f conftest.$ac_objext
21935 if { (ac_try="$ac_compile"
21936 case "(($ac_try" in
21937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21938 *) ac_try_echo=$ac_try;;
21939 esac
21940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21941 (eval "$ac_compile") 2>conftest.er1
21942 ac_status=$?
21943 grep -v '^ *+' conftest.er1 >conftest.err
21944 rm -f conftest.er1
21945 cat conftest.err >&5
21946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21947 (exit $ac_status); } && {
21948 test -z "$ac_c_werror_flag" ||
21949 test ! -s conftest.err
21950 } && test -s conftest.$ac_objext; then
21951 ac_hi=$ac_mid; break
21952 else
21953 echo "$as_me: failed program was:" >&5
21954 sed 's/^/| /' conftest.$ac_ext >&5
21956 ac_lo=`expr $ac_mid + 1`
21957 if test $ac_lo -le $ac_mid; then
21958 ac_lo= ac_hi=
21959 break
21961 ac_mid=`expr 2 '*' $ac_mid + 1`
21964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21965 done
21966 else
21967 echo "$as_me: failed program was:" >&5
21968 sed 's/^/| /' conftest.$ac_ext >&5
21970 cat >conftest.$ac_ext <<_ACEOF
21971 /* confdefs.h. */
21972 _ACEOF
21973 cat confdefs.h >>conftest.$ac_ext
21974 cat >>conftest.$ac_ext <<_ACEOF
21975 /* end confdefs.h. */
21976 $ac_includes_default
21977 #ifndef offsetof
21978 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21979 #endif
21980 typedef struct { char x; short y; } ac__type_alignof_;
21982 main ()
21984 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
21985 test_array [0] = 0
21988 return 0;
21990 _ACEOF
21991 rm -f conftest.$ac_objext
21992 if { (ac_try="$ac_compile"
21993 case "(($ac_try" in
21994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21995 *) ac_try_echo=$ac_try;;
21996 esac
21997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21998 (eval "$ac_compile") 2>conftest.er1
21999 ac_status=$?
22000 grep -v '^ *+' conftest.er1 >conftest.err
22001 rm -f conftest.er1
22002 cat conftest.err >&5
22003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22004 (exit $ac_status); } && {
22005 test -z "$ac_c_werror_flag" ||
22006 test ! -s conftest.err
22007 } && test -s conftest.$ac_objext; then
22008 ac_hi=-1 ac_mid=-1
22009 while :; do
22010 cat >conftest.$ac_ext <<_ACEOF
22011 /* confdefs.h. */
22012 _ACEOF
22013 cat confdefs.h >>conftest.$ac_ext
22014 cat >>conftest.$ac_ext <<_ACEOF
22015 /* end confdefs.h. */
22016 $ac_includes_default
22017 #ifndef offsetof
22018 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22019 #endif
22020 typedef struct { char x; short y; } ac__type_alignof_;
22022 main ()
22024 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22025 test_array [0] = 0
22028 return 0;
22030 _ACEOF
22031 rm -f conftest.$ac_objext
22032 if { (ac_try="$ac_compile"
22033 case "(($ac_try" in
22034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22035 *) ac_try_echo=$ac_try;;
22036 esac
22037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22038 (eval "$ac_compile") 2>conftest.er1
22039 ac_status=$?
22040 grep -v '^ *+' conftest.er1 >conftest.err
22041 rm -f conftest.er1
22042 cat conftest.err >&5
22043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22044 (exit $ac_status); } && {
22045 test -z "$ac_c_werror_flag" ||
22046 test ! -s conftest.err
22047 } && test -s conftest.$ac_objext; then
22048 ac_lo=$ac_mid; break
22049 else
22050 echo "$as_me: failed program was:" >&5
22051 sed 's/^/| /' conftest.$ac_ext >&5
22053 ac_hi=`expr '(' $ac_mid ')' - 1`
22054 if test $ac_mid -le $ac_hi; then
22055 ac_lo= ac_hi=
22056 break
22058 ac_mid=`expr 2 '*' $ac_mid`
22061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22062 done
22063 else
22064 echo "$as_me: failed program was:" >&5
22065 sed 's/^/| /' conftest.$ac_ext >&5
22067 ac_lo= ac_hi=
22070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22074 # Binary search between lo and hi bounds.
22075 while test "x$ac_lo" != "x$ac_hi"; do
22076 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22077 cat >conftest.$ac_ext <<_ACEOF
22078 /* confdefs.h. */
22079 _ACEOF
22080 cat confdefs.h >>conftest.$ac_ext
22081 cat >>conftest.$ac_ext <<_ACEOF
22082 /* end confdefs.h. */
22083 $ac_includes_default
22084 #ifndef offsetof
22085 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22086 #endif
22087 typedef struct { char x; short y; } ac__type_alignof_;
22089 main ()
22091 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22092 test_array [0] = 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_hi=$ac_mid
22116 else
22117 echo "$as_me: failed program was:" >&5
22118 sed 's/^/| /' conftest.$ac_ext >&5
22120 ac_lo=`expr '(' $ac_mid ')' + 1`
22123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22124 done
22125 case $ac_lo in
22126 ?*) ac_cv_alignof_short=$ac_lo;;
22127 '') if test "$ac_cv_type_short" = yes; then
22128 { { echo "$as_me:$LINENO: error: cannot compute alignment of short
22129 See \`config.log' for more details." >&5
22130 echo "$as_me: error: cannot compute alignment of short
22131 See \`config.log' for more details." >&2;}
22132 { (exit 77); exit 77; }; }
22133 else
22134 ac_cv_alignof_short=0
22135 fi ;;
22136 esac
22137 else
22138 cat >conftest.$ac_ext <<_ACEOF
22139 /* confdefs.h. */
22140 _ACEOF
22141 cat confdefs.h >>conftest.$ac_ext
22142 cat >>conftest.$ac_ext <<_ACEOF
22143 /* end confdefs.h. */
22144 $ac_includes_default
22145 #ifndef offsetof
22146 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22147 #endif
22148 typedef struct { char x; short y; } ac__type_alignof_;
22149 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22150 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22151 #include <stdio.h>
22152 #include <stdlib.h>
22154 main ()
22157 FILE *f = fopen ("conftest.val", "w");
22158 if (! f)
22159 return 1;
22160 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22162 long int i = longval ();
22163 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22164 return 1;
22165 fprintf (f, "%ld\n", i);
22167 else
22169 unsigned long int i = ulongval ();
22170 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22171 return 1;
22172 fprintf (f, "%lu\n", i);
22174 return ferror (f) || fclose (f) != 0;
22177 return 0;
22179 _ACEOF
22180 rm -f conftest$ac_exeext
22181 if { (ac_try="$ac_link"
22182 case "(($ac_try" in
22183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22184 *) ac_try_echo=$ac_try;;
22185 esac
22186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22187 (eval "$ac_link") 2>&5
22188 ac_status=$?
22189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22191 { (case "(($ac_try" in
22192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22193 *) ac_try_echo=$ac_try;;
22194 esac
22195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22196 (eval "$ac_try") 2>&5
22197 ac_status=$?
22198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199 (exit $ac_status); }; }; then
22200 ac_cv_alignof_short=`cat conftest.val`
22201 else
22202 echo "$as_me: program exited with status $ac_status" >&5
22203 echo "$as_me: failed program was:" >&5
22204 sed 's/^/| /' conftest.$ac_ext >&5
22206 ( exit $ac_status )
22207 if test "$ac_cv_type_short" = yes; then
22208 { { echo "$as_me:$LINENO: error: cannot compute alignment of short
22209 See \`config.log' for more details." >&5
22210 echo "$as_me: error: cannot compute alignment of short
22211 See \`config.log' for more details." >&2;}
22212 { (exit 77); exit 77; }; }
22213 else
22214 ac_cv_alignof_short=0
22217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22219 rm -f conftest.val
22221 { echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
22222 echo "${ECHO_T}$ac_cv_alignof_short" >&6; }
22226 cat >>confdefs.h <<_ACEOF
22227 #define ALIGNOF_SHORT $ac_cv_alignof_short
22228 _ACEOF
22231 { echo "$as_me:$LINENO: checking for int" >&5
22232 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
22233 if test "${ac_cv_type_int+set}" = set; then
22234 echo $ECHO_N "(cached) $ECHO_C" >&6
22235 else
22236 cat >conftest.$ac_ext <<_ACEOF
22237 /* confdefs.h. */
22238 _ACEOF
22239 cat confdefs.h >>conftest.$ac_ext
22240 cat >>conftest.$ac_ext <<_ACEOF
22241 /* end confdefs.h. */
22242 $ac_includes_default
22243 typedef int ac__type_new_;
22245 main ()
22247 if ((ac__type_new_ *) 0)
22248 return 0;
22249 if (sizeof (ac__type_new_))
22250 return 0;
22252 return 0;
22254 _ACEOF
22255 rm -f conftest.$ac_objext
22256 if { (ac_try="$ac_compile"
22257 case "(($ac_try" in
22258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22259 *) ac_try_echo=$ac_try;;
22260 esac
22261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22262 (eval "$ac_compile") 2>conftest.er1
22263 ac_status=$?
22264 grep -v '^ *+' conftest.er1 >conftest.err
22265 rm -f conftest.er1
22266 cat conftest.err >&5
22267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22268 (exit $ac_status); } && {
22269 test -z "$ac_c_werror_flag" ||
22270 test ! -s conftest.err
22271 } && test -s conftest.$ac_objext; then
22272 ac_cv_type_int=yes
22273 else
22274 echo "$as_me: failed program was:" >&5
22275 sed 's/^/| /' conftest.$ac_ext >&5
22277 ac_cv_type_int=no
22280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22282 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
22283 echo "${ECHO_T}$ac_cv_type_int" >&6; }
22285 # The cast to long int works around a bug in the HP C Compiler,
22286 # see AC_CHECK_SIZEOF for more information.
22287 { echo "$as_me:$LINENO: checking alignment of int" >&5
22288 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6; }
22289 if test "${ac_cv_alignof_int+set}" = set; then
22290 echo $ECHO_N "(cached) $ECHO_C" >&6
22291 else
22292 if test "$cross_compiling" = yes; then
22293 # Depending upon the size, compute the lo and hi bounds.
22294 cat >conftest.$ac_ext <<_ACEOF
22295 /* confdefs.h. */
22296 _ACEOF
22297 cat confdefs.h >>conftest.$ac_ext
22298 cat >>conftest.$ac_ext <<_ACEOF
22299 /* end confdefs.h. */
22300 $ac_includes_default
22301 #ifndef offsetof
22302 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22303 #endif
22304 typedef struct { char x; int y; } ac__type_alignof_;
22306 main ()
22308 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22309 test_array [0] = 0
22312 return 0;
22314 _ACEOF
22315 rm -f conftest.$ac_objext
22316 if { (ac_try="$ac_compile"
22317 case "(($ac_try" in
22318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22319 *) ac_try_echo=$ac_try;;
22320 esac
22321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22322 (eval "$ac_compile") 2>conftest.er1
22323 ac_status=$?
22324 grep -v '^ *+' conftest.er1 >conftest.err
22325 rm -f conftest.er1
22326 cat conftest.err >&5
22327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22328 (exit $ac_status); } && {
22329 test -z "$ac_c_werror_flag" ||
22330 test ! -s conftest.err
22331 } && test -s conftest.$ac_objext; then
22332 ac_lo=0 ac_mid=0
22333 while :; do
22334 cat >conftest.$ac_ext <<_ACEOF
22335 /* confdefs.h. */
22336 _ACEOF
22337 cat confdefs.h >>conftest.$ac_ext
22338 cat >>conftest.$ac_ext <<_ACEOF
22339 /* end confdefs.h. */
22340 $ac_includes_default
22341 #ifndef offsetof
22342 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22343 #endif
22344 typedef struct { char x; int y; } ac__type_alignof_;
22346 main ()
22348 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22349 test_array [0] = 0
22352 return 0;
22354 _ACEOF
22355 rm -f conftest.$ac_objext
22356 if { (ac_try="$ac_compile"
22357 case "(($ac_try" in
22358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22359 *) ac_try_echo=$ac_try;;
22360 esac
22361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22362 (eval "$ac_compile") 2>conftest.er1
22363 ac_status=$?
22364 grep -v '^ *+' conftest.er1 >conftest.err
22365 rm -f conftest.er1
22366 cat conftest.err >&5
22367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22368 (exit $ac_status); } && {
22369 test -z "$ac_c_werror_flag" ||
22370 test ! -s conftest.err
22371 } && test -s conftest.$ac_objext; then
22372 ac_hi=$ac_mid; break
22373 else
22374 echo "$as_me: failed program was:" >&5
22375 sed 's/^/| /' conftest.$ac_ext >&5
22377 ac_lo=`expr $ac_mid + 1`
22378 if test $ac_lo -le $ac_mid; then
22379 ac_lo= ac_hi=
22380 break
22382 ac_mid=`expr 2 '*' $ac_mid + 1`
22385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22386 done
22387 else
22388 echo "$as_me: failed program was:" >&5
22389 sed 's/^/| /' conftest.$ac_ext >&5
22391 cat >conftest.$ac_ext <<_ACEOF
22392 /* confdefs.h. */
22393 _ACEOF
22394 cat confdefs.h >>conftest.$ac_ext
22395 cat >>conftest.$ac_ext <<_ACEOF
22396 /* end confdefs.h. */
22397 $ac_includes_default
22398 #ifndef offsetof
22399 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22400 #endif
22401 typedef struct { char x; int y; } ac__type_alignof_;
22403 main ()
22405 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22406 test_array [0] = 0
22409 return 0;
22411 _ACEOF
22412 rm -f conftest.$ac_objext
22413 if { (ac_try="$ac_compile"
22414 case "(($ac_try" in
22415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22416 *) ac_try_echo=$ac_try;;
22417 esac
22418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22419 (eval "$ac_compile") 2>conftest.er1
22420 ac_status=$?
22421 grep -v '^ *+' conftest.er1 >conftest.err
22422 rm -f conftest.er1
22423 cat conftest.err >&5
22424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22425 (exit $ac_status); } && {
22426 test -z "$ac_c_werror_flag" ||
22427 test ! -s conftest.err
22428 } && test -s conftest.$ac_objext; then
22429 ac_hi=-1 ac_mid=-1
22430 while :; do
22431 cat >conftest.$ac_ext <<_ACEOF
22432 /* confdefs.h. */
22433 _ACEOF
22434 cat confdefs.h >>conftest.$ac_ext
22435 cat >>conftest.$ac_ext <<_ACEOF
22436 /* end confdefs.h. */
22437 $ac_includes_default
22438 #ifndef offsetof
22439 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22440 #endif
22441 typedef struct { char x; int y; } ac__type_alignof_;
22443 main ()
22445 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22446 test_array [0] = 0
22449 return 0;
22451 _ACEOF
22452 rm -f conftest.$ac_objext
22453 if { (ac_try="$ac_compile"
22454 case "(($ac_try" in
22455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22456 *) ac_try_echo=$ac_try;;
22457 esac
22458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22459 (eval "$ac_compile") 2>conftest.er1
22460 ac_status=$?
22461 grep -v '^ *+' conftest.er1 >conftest.err
22462 rm -f conftest.er1
22463 cat conftest.err >&5
22464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22465 (exit $ac_status); } && {
22466 test -z "$ac_c_werror_flag" ||
22467 test ! -s conftest.err
22468 } && test -s conftest.$ac_objext; then
22469 ac_lo=$ac_mid; break
22470 else
22471 echo "$as_me: failed program was:" >&5
22472 sed 's/^/| /' conftest.$ac_ext >&5
22474 ac_hi=`expr '(' $ac_mid ')' - 1`
22475 if test $ac_mid -le $ac_hi; then
22476 ac_lo= ac_hi=
22477 break
22479 ac_mid=`expr 2 '*' $ac_mid`
22482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22483 done
22484 else
22485 echo "$as_me: failed program was:" >&5
22486 sed 's/^/| /' conftest.$ac_ext >&5
22488 ac_lo= ac_hi=
22491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22495 # Binary search between lo and hi bounds.
22496 while test "x$ac_lo" != "x$ac_hi"; do
22497 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22498 cat >conftest.$ac_ext <<_ACEOF
22499 /* confdefs.h. */
22500 _ACEOF
22501 cat confdefs.h >>conftest.$ac_ext
22502 cat >>conftest.$ac_ext <<_ACEOF
22503 /* end confdefs.h. */
22504 $ac_includes_default
22505 #ifndef offsetof
22506 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22507 #endif
22508 typedef struct { char x; int y; } ac__type_alignof_;
22510 main ()
22512 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22513 test_array [0] = 0
22516 return 0;
22518 _ACEOF
22519 rm -f conftest.$ac_objext
22520 if { (ac_try="$ac_compile"
22521 case "(($ac_try" in
22522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22523 *) ac_try_echo=$ac_try;;
22524 esac
22525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22526 (eval "$ac_compile") 2>conftest.er1
22527 ac_status=$?
22528 grep -v '^ *+' conftest.er1 >conftest.err
22529 rm -f conftest.er1
22530 cat conftest.err >&5
22531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22532 (exit $ac_status); } && {
22533 test -z "$ac_c_werror_flag" ||
22534 test ! -s conftest.err
22535 } && test -s conftest.$ac_objext; then
22536 ac_hi=$ac_mid
22537 else
22538 echo "$as_me: failed program was:" >&5
22539 sed 's/^/| /' conftest.$ac_ext >&5
22541 ac_lo=`expr '(' $ac_mid ')' + 1`
22544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22545 done
22546 case $ac_lo in
22547 ?*) ac_cv_alignof_int=$ac_lo;;
22548 '') if test "$ac_cv_type_int" = yes; then
22549 { { echo "$as_me:$LINENO: error: cannot compute alignment of int
22550 See \`config.log' for more details." >&5
22551 echo "$as_me: error: cannot compute alignment of int
22552 See \`config.log' for more details." >&2;}
22553 { (exit 77); exit 77; }; }
22554 else
22555 ac_cv_alignof_int=0
22556 fi ;;
22557 esac
22558 else
22559 cat >conftest.$ac_ext <<_ACEOF
22560 /* confdefs.h. */
22561 _ACEOF
22562 cat confdefs.h >>conftest.$ac_ext
22563 cat >>conftest.$ac_ext <<_ACEOF
22564 /* end confdefs.h. */
22565 $ac_includes_default
22566 #ifndef offsetof
22567 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22568 #endif
22569 typedef struct { char x; int y; } ac__type_alignof_;
22570 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22571 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22572 #include <stdio.h>
22573 #include <stdlib.h>
22575 main ()
22578 FILE *f = fopen ("conftest.val", "w");
22579 if (! f)
22580 return 1;
22581 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22583 long int i = longval ();
22584 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22585 return 1;
22586 fprintf (f, "%ld\n", i);
22588 else
22590 unsigned long int i = ulongval ();
22591 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22592 return 1;
22593 fprintf (f, "%lu\n", i);
22595 return ferror (f) || fclose (f) != 0;
22598 return 0;
22600 _ACEOF
22601 rm -f conftest$ac_exeext
22602 if { (ac_try="$ac_link"
22603 case "(($ac_try" in
22604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22605 *) ac_try_echo=$ac_try;;
22606 esac
22607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22608 (eval "$ac_link") 2>&5
22609 ac_status=$?
22610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22611 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22612 { (case "(($ac_try" in
22613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22614 *) ac_try_echo=$ac_try;;
22615 esac
22616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22617 (eval "$ac_try") 2>&5
22618 ac_status=$?
22619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22620 (exit $ac_status); }; }; then
22621 ac_cv_alignof_int=`cat conftest.val`
22622 else
22623 echo "$as_me: program exited with status $ac_status" >&5
22624 echo "$as_me: failed program was:" >&5
22625 sed 's/^/| /' conftest.$ac_ext >&5
22627 ( exit $ac_status )
22628 if test "$ac_cv_type_int" = yes; then
22629 { { echo "$as_me:$LINENO: error: cannot compute alignment of int
22630 See \`config.log' for more details." >&5
22631 echo "$as_me: error: cannot compute alignment of int
22632 See \`config.log' for more details." >&2;}
22633 { (exit 77); exit 77; }; }
22634 else
22635 ac_cv_alignof_int=0
22638 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22640 rm -f conftest.val
22642 { echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
22643 echo "${ECHO_T}$ac_cv_alignof_int" >&6; }
22647 cat >>confdefs.h <<_ACEOF
22648 #define ALIGNOF_INT $ac_cv_alignof_int
22649 _ACEOF
22652 { echo "$as_me:$LINENO: checking for long" >&5
22653 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
22654 if test "${ac_cv_type_long+set}" = set; then
22655 echo $ECHO_N "(cached) $ECHO_C" >&6
22656 else
22657 cat >conftest.$ac_ext <<_ACEOF
22658 /* confdefs.h. */
22659 _ACEOF
22660 cat confdefs.h >>conftest.$ac_ext
22661 cat >>conftest.$ac_ext <<_ACEOF
22662 /* end confdefs.h. */
22663 $ac_includes_default
22664 typedef long ac__type_new_;
22666 main ()
22668 if ((ac__type_new_ *) 0)
22669 return 0;
22670 if (sizeof (ac__type_new_))
22671 return 0;
22673 return 0;
22675 _ACEOF
22676 rm -f conftest.$ac_objext
22677 if { (ac_try="$ac_compile"
22678 case "(($ac_try" in
22679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22680 *) ac_try_echo=$ac_try;;
22681 esac
22682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22683 (eval "$ac_compile") 2>conftest.er1
22684 ac_status=$?
22685 grep -v '^ *+' conftest.er1 >conftest.err
22686 rm -f conftest.er1
22687 cat conftest.err >&5
22688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22689 (exit $ac_status); } && {
22690 test -z "$ac_c_werror_flag" ||
22691 test ! -s conftest.err
22692 } && test -s conftest.$ac_objext; then
22693 ac_cv_type_long=yes
22694 else
22695 echo "$as_me: failed program was:" >&5
22696 sed 's/^/| /' conftest.$ac_ext >&5
22698 ac_cv_type_long=no
22701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22703 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
22704 echo "${ECHO_T}$ac_cv_type_long" >&6; }
22706 # The cast to long int works around a bug in the HP C Compiler,
22707 # see AC_CHECK_SIZEOF for more information.
22708 { echo "$as_me:$LINENO: checking alignment of long" >&5
22709 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6; }
22710 if test "${ac_cv_alignof_long+set}" = set; then
22711 echo $ECHO_N "(cached) $ECHO_C" >&6
22712 else
22713 if test "$cross_compiling" = yes; then
22714 # Depending upon the size, compute the lo and hi bounds.
22715 cat >conftest.$ac_ext <<_ACEOF
22716 /* confdefs.h. */
22717 _ACEOF
22718 cat confdefs.h >>conftest.$ac_ext
22719 cat >>conftest.$ac_ext <<_ACEOF
22720 /* end confdefs.h. */
22721 $ac_includes_default
22722 #ifndef offsetof
22723 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22724 #endif
22725 typedef struct { char x; long y; } ac__type_alignof_;
22727 main ()
22729 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22730 test_array [0] = 0
22733 return 0;
22735 _ACEOF
22736 rm -f conftest.$ac_objext
22737 if { (ac_try="$ac_compile"
22738 case "(($ac_try" in
22739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22740 *) ac_try_echo=$ac_try;;
22741 esac
22742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22743 (eval "$ac_compile") 2>conftest.er1
22744 ac_status=$?
22745 grep -v '^ *+' conftest.er1 >conftest.err
22746 rm -f conftest.er1
22747 cat conftest.err >&5
22748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22749 (exit $ac_status); } && {
22750 test -z "$ac_c_werror_flag" ||
22751 test ! -s conftest.err
22752 } && test -s conftest.$ac_objext; then
22753 ac_lo=0 ac_mid=0
22754 while :; do
22755 cat >conftest.$ac_ext <<_ACEOF
22756 /* confdefs.h. */
22757 _ACEOF
22758 cat confdefs.h >>conftest.$ac_ext
22759 cat >>conftest.$ac_ext <<_ACEOF
22760 /* end confdefs.h. */
22761 $ac_includes_default
22762 #ifndef offsetof
22763 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22764 #endif
22765 typedef struct { char x; long y; } ac__type_alignof_;
22767 main ()
22769 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22770 test_array [0] = 0
22773 return 0;
22775 _ACEOF
22776 rm -f conftest.$ac_objext
22777 if { (ac_try="$ac_compile"
22778 case "(($ac_try" in
22779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22780 *) ac_try_echo=$ac_try;;
22781 esac
22782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22783 (eval "$ac_compile") 2>conftest.er1
22784 ac_status=$?
22785 grep -v '^ *+' conftest.er1 >conftest.err
22786 rm -f conftest.er1
22787 cat conftest.err >&5
22788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22789 (exit $ac_status); } && {
22790 test -z "$ac_c_werror_flag" ||
22791 test ! -s conftest.err
22792 } && test -s conftest.$ac_objext; then
22793 ac_hi=$ac_mid; break
22794 else
22795 echo "$as_me: failed program was:" >&5
22796 sed 's/^/| /' conftest.$ac_ext >&5
22798 ac_lo=`expr $ac_mid + 1`
22799 if test $ac_lo -le $ac_mid; then
22800 ac_lo= ac_hi=
22801 break
22803 ac_mid=`expr 2 '*' $ac_mid + 1`
22806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22807 done
22808 else
22809 echo "$as_me: failed program was:" >&5
22810 sed 's/^/| /' conftest.$ac_ext >&5
22812 cat >conftest.$ac_ext <<_ACEOF
22813 /* confdefs.h. */
22814 _ACEOF
22815 cat confdefs.h >>conftest.$ac_ext
22816 cat >>conftest.$ac_ext <<_ACEOF
22817 /* end confdefs.h. */
22818 $ac_includes_default
22819 #ifndef offsetof
22820 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22821 #endif
22822 typedef struct { char x; long y; } ac__type_alignof_;
22824 main ()
22826 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22827 test_array [0] = 0
22830 return 0;
22832 _ACEOF
22833 rm -f conftest.$ac_objext
22834 if { (ac_try="$ac_compile"
22835 case "(($ac_try" in
22836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22837 *) ac_try_echo=$ac_try;;
22838 esac
22839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22840 (eval "$ac_compile") 2>conftest.er1
22841 ac_status=$?
22842 grep -v '^ *+' conftest.er1 >conftest.err
22843 rm -f conftest.er1
22844 cat conftest.err >&5
22845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22846 (exit $ac_status); } && {
22847 test -z "$ac_c_werror_flag" ||
22848 test ! -s conftest.err
22849 } && test -s conftest.$ac_objext; then
22850 ac_hi=-1 ac_mid=-1
22851 while :; do
22852 cat >conftest.$ac_ext <<_ACEOF
22853 /* confdefs.h. */
22854 _ACEOF
22855 cat confdefs.h >>conftest.$ac_ext
22856 cat >>conftest.$ac_ext <<_ACEOF
22857 /* end confdefs.h. */
22858 $ac_includes_default
22859 #ifndef offsetof
22860 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22861 #endif
22862 typedef struct { char x; long y; } ac__type_alignof_;
22864 main ()
22866 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22867 test_array [0] = 0
22870 return 0;
22872 _ACEOF
22873 rm -f conftest.$ac_objext
22874 if { (ac_try="$ac_compile"
22875 case "(($ac_try" in
22876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22877 *) ac_try_echo=$ac_try;;
22878 esac
22879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22880 (eval "$ac_compile") 2>conftest.er1
22881 ac_status=$?
22882 grep -v '^ *+' conftest.er1 >conftest.err
22883 rm -f conftest.er1
22884 cat conftest.err >&5
22885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22886 (exit $ac_status); } && {
22887 test -z "$ac_c_werror_flag" ||
22888 test ! -s conftest.err
22889 } && test -s conftest.$ac_objext; then
22890 ac_lo=$ac_mid; break
22891 else
22892 echo "$as_me: failed program was:" >&5
22893 sed 's/^/| /' conftest.$ac_ext >&5
22895 ac_hi=`expr '(' $ac_mid ')' - 1`
22896 if test $ac_mid -le $ac_hi; then
22897 ac_lo= ac_hi=
22898 break
22900 ac_mid=`expr 2 '*' $ac_mid`
22903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22904 done
22905 else
22906 echo "$as_me: failed program was:" >&5
22907 sed 's/^/| /' conftest.$ac_ext >&5
22909 ac_lo= ac_hi=
22912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22916 # Binary search between lo and hi bounds.
22917 while test "x$ac_lo" != "x$ac_hi"; do
22918 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22919 cat >conftest.$ac_ext <<_ACEOF
22920 /* confdefs.h. */
22921 _ACEOF
22922 cat confdefs.h >>conftest.$ac_ext
22923 cat >>conftest.$ac_ext <<_ACEOF
22924 /* end confdefs.h. */
22925 $ac_includes_default
22926 #ifndef offsetof
22927 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22928 #endif
22929 typedef struct { char x; long y; } ac__type_alignof_;
22931 main ()
22933 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22934 test_array [0] = 0
22937 return 0;
22939 _ACEOF
22940 rm -f conftest.$ac_objext
22941 if { (ac_try="$ac_compile"
22942 case "(($ac_try" in
22943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22944 *) ac_try_echo=$ac_try;;
22945 esac
22946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22947 (eval "$ac_compile") 2>conftest.er1
22948 ac_status=$?
22949 grep -v '^ *+' conftest.er1 >conftest.err
22950 rm -f conftest.er1
22951 cat conftest.err >&5
22952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22953 (exit $ac_status); } && {
22954 test -z "$ac_c_werror_flag" ||
22955 test ! -s conftest.err
22956 } && test -s conftest.$ac_objext; then
22957 ac_hi=$ac_mid
22958 else
22959 echo "$as_me: failed program was:" >&5
22960 sed 's/^/| /' conftest.$ac_ext >&5
22962 ac_lo=`expr '(' $ac_mid ')' + 1`
22965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22966 done
22967 case $ac_lo in
22968 ?*) ac_cv_alignof_long=$ac_lo;;
22969 '') if test "$ac_cv_type_long" = yes; then
22970 { { echo "$as_me:$LINENO: error: cannot compute alignment of long
22971 See \`config.log' for more details." >&5
22972 echo "$as_me: error: cannot compute alignment of long
22973 See \`config.log' for more details." >&2;}
22974 { (exit 77); exit 77; }; }
22975 else
22976 ac_cv_alignof_long=0
22977 fi ;;
22978 esac
22979 else
22980 cat >conftest.$ac_ext <<_ACEOF
22981 /* confdefs.h. */
22982 _ACEOF
22983 cat confdefs.h >>conftest.$ac_ext
22984 cat >>conftest.$ac_ext <<_ACEOF
22985 /* end confdefs.h. */
22986 $ac_includes_default
22987 #ifndef offsetof
22988 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22989 #endif
22990 typedef struct { char x; long y; } ac__type_alignof_;
22991 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22992 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22993 #include <stdio.h>
22994 #include <stdlib.h>
22996 main ()
22999 FILE *f = fopen ("conftest.val", "w");
23000 if (! f)
23001 return 1;
23002 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23004 long int i = longval ();
23005 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23006 return 1;
23007 fprintf (f, "%ld\n", i);
23009 else
23011 unsigned long int i = ulongval ();
23012 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23013 return 1;
23014 fprintf (f, "%lu\n", i);
23016 return ferror (f) || fclose (f) != 0;
23019 return 0;
23021 _ACEOF
23022 rm -f conftest$ac_exeext
23023 if { (ac_try="$ac_link"
23024 case "(($ac_try" in
23025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23026 *) ac_try_echo=$ac_try;;
23027 esac
23028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23029 (eval "$ac_link") 2>&5
23030 ac_status=$?
23031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23033 { (case "(($ac_try" in
23034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23035 *) ac_try_echo=$ac_try;;
23036 esac
23037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23038 (eval "$ac_try") 2>&5
23039 ac_status=$?
23040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23041 (exit $ac_status); }; }; then
23042 ac_cv_alignof_long=`cat conftest.val`
23043 else
23044 echo "$as_me: program exited with status $ac_status" >&5
23045 echo "$as_me: failed program was:" >&5
23046 sed 's/^/| /' conftest.$ac_ext >&5
23048 ( exit $ac_status )
23049 if test "$ac_cv_type_long" = yes; then
23050 { { echo "$as_me:$LINENO: error: cannot compute alignment of long
23051 See \`config.log' for more details." >&5
23052 echo "$as_me: error: cannot compute alignment of long
23053 See \`config.log' for more details." >&2;}
23054 { (exit 77); exit 77; }; }
23055 else
23056 ac_cv_alignof_long=0
23059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23061 rm -f conftest.val
23063 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
23064 echo "${ECHO_T}$ac_cv_alignof_long" >&6; }
23068 cat >>confdefs.h <<_ACEOF
23069 #define ALIGNOF_LONG $ac_cv_alignof_long
23070 _ACEOF
23073 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
23074 { echo "$as_me:$LINENO: checking for long long int" >&5
23075 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
23076 if test "${ac_cv_type_long_long_int+set}" = set; then
23077 echo $ECHO_N "(cached) $ECHO_C" >&6
23078 else
23079 cat >conftest.$ac_ext <<_ACEOF
23080 /* confdefs.h. */
23081 _ACEOF
23082 cat confdefs.h >>conftest.$ac_ext
23083 cat >>conftest.$ac_ext <<_ACEOF
23084 /* end confdefs.h. */
23085 $ac_includes_default
23086 typedef long long int ac__type_new_;
23088 main ()
23090 if ((ac__type_new_ *) 0)
23091 return 0;
23092 if (sizeof (ac__type_new_))
23093 return 0;
23095 return 0;
23097 _ACEOF
23098 rm -f conftest.$ac_objext
23099 if { (ac_try="$ac_compile"
23100 case "(($ac_try" in
23101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23102 *) ac_try_echo=$ac_try;;
23103 esac
23104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23105 (eval "$ac_compile") 2>conftest.er1
23106 ac_status=$?
23107 grep -v '^ *+' conftest.er1 >conftest.err
23108 rm -f conftest.er1
23109 cat conftest.err >&5
23110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23111 (exit $ac_status); } && {
23112 test -z "$ac_c_werror_flag" ||
23113 test ! -s conftest.err
23114 } && test -s conftest.$ac_objext; then
23115 ac_cv_type_long_long_int=yes
23116 else
23117 echo "$as_me: failed program was:" >&5
23118 sed 's/^/| /' conftest.$ac_ext >&5
23120 ac_cv_type_long_long_int=no
23123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23125 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
23126 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
23128 # The cast to long int works around a bug in the HP C Compiler,
23129 # see AC_CHECK_SIZEOF for more information.
23130 { echo "$as_me:$LINENO: checking alignment of long long int" >&5
23131 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6; }
23132 if test "${ac_cv_alignof_long_long_int+set}" = set; then
23133 echo $ECHO_N "(cached) $ECHO_C" >&6
23134 else
23135 if test "$cross_compiling" = yes; then
23136 # Depending upon the size, compute the lo and hi bounds.
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; long long int y; } ac__type_alignof_;
23149 main ()
23151 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
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_lo=0 ac_mid=0
23176 while :; do
23177 cat >conftest.$ac_ext <<_ACEOF
23178 /* confdefs.h. */
23179 _ACEOF
23180 cat confdefs.h >>conftest.$ac_ext
23181 cat >>conftest.$ac_ext <<_ACEOF
23182 /* end confdefs.h. */
23183 $ac_includes_default
23184 #ifndef offsetof
23185 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23186 #endif
23187 typedef struct { char x; long long int y; } ac__type_alignof_;
23189 main ()
23191 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23192 test_array [0] = 0
23195 return 0;
23197 _ACEOF
23198 rm -f conftest.$ac_objext
23199 if { (ac_try="$ac_compile"
23200 case "(($ac_try" in
23201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23202 *) ac_try_echo=$ac_try;;
23203 esac
23204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23205 (eval "$ac_compile") 2>conftest.er1
23206 ac_status=$?
23207 grep -v '^ *+' conftest.er1 >conftest.err
23208 rm -f conftest.er1
23209 cat conftest.err >&5
23210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23211 (exit $ac_status); } && {
23212 test -z "$ac_c_werror_flag" ||
23213 test ! -s conftest.err
23214 } && test -s conftest.$ac_objext; then
23215 ac_hi=$ac_mid; break
23216 else
23217 echo "$as_me: failed program was:" >&5
23218 sed 's/^/| /' conftest.$ac_ext >&5
23220 ac_lo=`expr $ac_mid + 1`
23221 if test $ac_lo -le $ac_mid; then
23222 ac_lo= ac_hi=
23223 break
23225 ac_mid=`expr 2 '*' $ac_mid + 1`
23228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23229 done
23230 else
23231 echo "$as_me: failed program was:" >&5
23232 sed 's/^/| /' conftest.$ac_ext >&5
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; long long int y; } ac__type_alignof_;
23246 main ()
23248 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
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_hi=-1 ac_mid=-1
23273 while :; do
23274 cat >conftest.$ac_ext <<_ACEOF
23275 /* confdefs.h. */
23276 _ACEOF
23277 cat confdefs.h >>conftest.$ac_ext
23278 cat >>conftest.$ac_ext <<_ACEOF
23279 /* end confdefs.h. */
23280 $ac_includes_default
23281 #ifndef offsetof
23282 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23283 #endif
23284 typedef struct { char x; long long int y; } ac__type_alignof_;
23286 main ()
23288 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
23289 test_array [0] = 0
23292 return 0;
23294 _ACEOF
23295 rm -f conftest.$ac_objext
23296 if { (ac_try="$ac_compile"
23297 case "(($ac_try" in
23298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23299 *) ac_try_echo=$ac_try;;
23300 esac
23301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23302 (eval "$ac_compile") 2>conftest.er1
23303 ac_status=$?
23304 grep -v '^ *+' conftest.er1 >conftest.err
23305 rm -f conftest.er1
23306 cat conftest.err >&5
23307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23308 (exit $ac_status); } && {
23309 test -z "$ac_c_werror_flag" ||
23310 test ! -s conftest.err
23311 } && test -s conftest.$ac_objext; then
23312 ac_lo=$ac_mid; break
23313 else
23314 echo "$as_me: failed program was:" >&5
23315 sed 's/^/| /' conftest.$ac_ext >&5
23317 ac_hi=`expr '(' $ac_mid ')' - 1`
23318 if test $ac_mid -le $ac_hi; then
23319 ac_lo= ac_hi=
23320 break
23322 ac_mid=`expr 2 '*' $ac_mid`
23325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23326 done
23327 else
23328 echo "$as_me: failed program was:" >&5
23329 sed 's/^/| /' conftest.$ac_ext >&5
23331 ac_lo= ac_hi=
23334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23338 # Binary search between lo and hi bounds.
23339 while test "x$ac_lo" != "x$ac_hi"; do
23340 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23341 cat >conftest.$ac_ext <<_ACEOF
23342 /* confdefs.h. */
23343 _ACEOF
23344 cat confdefs.h >>conftest.$ac_ext
23345 cat >>conftest.$ac_ext <<_ACEOF
23346 /* end confdefs.h. */
23347 $ac_includes_default
23348 #ifndef offsetof
23349 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23350 #endif
23351 typedef struct { char x; long long int y; } ac__type_alignof_;
23353 main ()
23355 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23356 test_array [0] = 0
23359 return 0;
23361 _ACEOF
23362 rm -f conftest.$ac_objext
23363 if { (ac_try="$ac_compile"
23364 case "(($ac_try" in
23365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23366 *) ac_try_echo=$ac_try;;
23367 esac
23368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23369 (eval "$ac_compile") 2>conftest.er1
23370 ac_status=$?
23371 grep -v '^ *+' conftest.er1 >conftest.err
23372 rm -f conftest.er1
23373 cat conftest.err >&5
23374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23375 (exit $ac_status); } && {
23376 test -z "$ac_c_werror_flag" ||
23377 test ! -s conftest.err
23378 } && test -s conftest.$ac_objext; then
23379 ac_hi=$ac_mid
23380 else
23381 echo "$as_me: failed program was:" >&5
23382 sed 's/^/| /' conftest.$ac_ext >&5
23384 ac_lo=`expr '(' $ac_mid ')' + 1`
23387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23388 done
23389 case $ac_lo in
23390 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
23391 '') if test "$ac_cv_type_long_long_int" = yes; then
23392 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
23393 See \`config.log' for more details." >&5
23394 echo "$as_me: error: cannot compute alignment of long long int
23395 See \`config.log' for more details." >&2;}
23396 { (exit 77); exit 77; }; }
23397 else
23398 ac_cv_alignof_long_long_int=0
23399 fi ;;
23400 esac
23401 else
23402 cat >conftest.$ac_ext <<_ACEOF
23403 /* confdefs.h. */
23404 _ACEOF
23405 cat confdefs.h >>conftest.$ac_ext
23406 cat >>conftest.$ac_ext <<_ACEOF
23407 /* end confdefs.h. */
23408 $ac_includes_default
23409 #ifndef offsetof
23410 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23411 #endif
23412 typedef struct { char x; long long int y; } ac__type_alignof_;
23413 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23414 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23415 #include <stdio.h>
23416 #include <stdlib.h>
23418 main ()
23421 FILE *f = fopen ("conftest.val", "w");
23422 if (! f)
23423 return 1;
23424 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23426 long int i = longval ();
23427 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23428 return 1;
23429 fprintf (f, "%ld\n", i);
23431 else
23433 unsigned long int i = ulongval ();
23434 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23435 return 1;
23436 fprintf (f, "%lu\n", i);
23438 return ferror (f) || fclose (f) != 0;
23441 return 0;
23443 _ACEOF
23444 rm -f conftest$ac_exeext
23445 if { (ac_try="$ac_link"
23446 case "(($ac_try" in
23447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23448 *) ac_try_echo=$ac_try;;
23449 esac
23450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23451 (eval "$ac_link") 2>&5
23452 ac_status=$?
23453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23454 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23455 { (case "(($ac_try" in
23456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23457 *) ac_try_echo=$ac_try;;
23458 esac
23459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23460 (eval "$ac_try") 2>&5
23461 ac_status=$?
23462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23463 (exit $ac_status); }; }; then
23464 ac_cv_alignof_long_long_int=`cat conftest.val`
23465 else
23466 echo "$as_me: program exited with status $ac_status" >&5
23467 echo "$as_me: failed program was:" >&5
23468 sed 's/^/| /' conftest.$ac_ext >&5
23470 ( exit $ac_status )
23471 if test "$ac_cv_type_long_long_int" = yes; then
23472 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
23473 See \`config.log' for more details." >&5
23474 echo "$as_me: error: cannot compute alignment of long long int
23475 See \`config.log' for more details." >&2;}
23476 { (exit 77); exit 77; }; }
23477 else
23478 ac_cv_alignof_long_long_int=0
23481 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23483 rm -f conftest.val
23485 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
23486 echo "${ECHO_T}$ac_cv_alignof_long_long_int" >&6; }
23490 cat >>confdefs.h <<_ACEOF
23491 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
23492 _ACEOF
23496 { echo "$as_me:$LINENO: checking for double" >&5
23497 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
23498 if test "${ac_cv_type_double+set}" = set; then
23499 echo $ECHO_N "(cached) $ECHO_C" >&6
23500 else
23501 cat >conftest.$ac_ext <<_ACEOF
23502 /* confdefs.h. */
23503 _ACEOF
23504 cat confdefs.h >>conftest.$ac_ext
23505 cat >>conftest.$ac_ext <<_ACEOF
23506 /* end confdefs.h. */
23507 $ac_includes_default
23508 typedef double ac__type_new_;
23510 main ()
23512 if ((ac__type_new_ *) 0)
23513 return 0;
23514 if (sizeof (ac__type_new_))
23515 return 0;
23517 return 0;
23519 _ACEOF
23520 rm -f conftest.$ac_objext
23521 if { (ac_try="$ac_compile"
23522 case "(($ac_try" in
23523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23524 *) ac_try_echo=$ac_try;;
23525 esac
23526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23527 (eval "$ac_compile") 2>conftest.er1
23528 ac_status=$?
23529 grep -v '^ *+' conftest.er1 >conftest.err
23530 rm -f conftest.er1
23531 cat conftest.err >&5
23532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23533 (exit $ac_status); } && {
23534 test -z "$ac_c_werror_flag" ||
23535 test ! -s conftest.err
23536 } && test -s conftest.$ac_objext; then
23537 ac_cv_type_double=yes
23538 else
23539 echo "$as_me: failed program was:" >&5
23540 sed 's/^/| /' conftest.$ac_ext >&5
23542 ac_cv_type_double=no
23545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23547 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
23548 echo "${ECHO_T}$ac_cv_type_double" >&6; }
23550 # The cast to long int works around a bug in the HP C Compiler,
23551 # see AC_CHECK_SIZEOF for more information.
23552 { echo "$as_me:$LINENO: checking alignment of double" >&5
23553 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6; }
23554 if test "${ac_cv_alignof_double+set}" = set; then
23555 echo $ECHO_N "(cached) $ECHO_C" >&6
23556 else
23557 if test "$cross_compiling" = yes; then
23558 # Depending upon the size, compute the lo and hi bounds.
23559 cat >conftest.$ac_ext <<_ACEOF
23560 /* confdefs.h. */
23561 _ACEOF
23562 cat confdefs.h >>conftest.$ac_ext
23563 cat >>conftest.$ac_ext <<_ACEOF
23564 /* end confdefs.h. */
23565 $ac_includes_default
23566 #ifndef offsetof
23567 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23568 #endif
23569 typedef struct { char x; double y; } ac__type_alignof_;
23571 main ()
23573 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
23574 test_array [0] = 0
23577 return 0;
23579 _ACEOF
23580 rm -f conftest.$ac_objext
23581 if { (ac_try="$ac_compile"
23582 case "(($ac_try" in
23583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23584 *) ac_try_echo=$ac_try;;
23585 esac
23586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23587 (eval "$ac_compile") 2>conftest.er1
23588 ac_status=$?
23589 grep -v '^ *+' conftest.er1 >conftest.err
23590 rm -f conftest.er1
23591 cat conftest.err >&5
23592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23593 (exit $ac_status); } && {
23594 test -z "$ac_c_werror_flag" ||
23595 test ! -s conftest.err
23596 } && test -s conftest.$ac_objext; then
23597 ac_lo=0 ac_mid=0
23598 while :; do
23599 cat >conftest.$ac_ext <<_ACEOF
23600 /* confdefs.h. */
23601 _ACEOF
23602 cat confdefs.h >>conftest.$ac_ext
23603 cat >>conftest.$ac_ext <<_ACEOF
23604 /* end confdefs.h. */
23605 $ac_includes_default
23606 #ifndef offsetof
23607 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23608 #endif
23609 typedef struct { char x; double y; } ac__type_alignof_;
23611 main ()
23613 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23614 test_array [0] = 0
23617 return 0;
23619 _ACEOF
23620 rm -f conftest.$ac_objext
23621 if { (ac_try="$ac_compile"
23622 case "(($ac_try" in
23623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23624 *) ac_try_echo=$ac_try;;
23625 esac
23626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23627 (eval "$ac_compile") 2>conftest.er1
23628 ac_status=$?
23629 grep -v '^ *+' conftest.er1 >conftest.err
23630 rm -f conftest.er1
23631 cat conftest.err >&5
23632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23633 (exit $ac_status); } && {
23634 test -z "$ac_c_werror_flag" ||
23635 test ! -s conftest.err
23636 } && test -s conftest.$ac_objext; then
23637 ac_hi=$ac_mid; break
23638 else
23639 echo "$as_me: failed program was:" >&5
23640 sed 's/^/| /' conftest.$ac_ext >&5
23642 ac_lo=`expr $ac_mid + 1`
23643 if test $ac_lo -le $ac_mid; then
23644 ac_lo= ac_hi=
23645 break
23647 ac_mid=`expr 2 '*' $ac_mid + 1`
23650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23651 done
23652 else
23653 echo "$as_me: failed program was:" >&5
23654 sed 's/^/| /' conftest.$ac_ext >&5
23656 cat >conftest.$ac_ext <<_ACEOF
23657 /* confdefs.h. */
23658 _ACEOF
23659 cat confdefs.h >>conftest.$ac_ext
23660 cat >>conftest.$ac_ext <<_ACEOF
23661 /* end confdefs.h. */
23662 $ac_includes_default
23663 #ifndef offsetof
23664 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23665 #endif
23666 typedef struct { char x; double y; } ac__type_alignof_;
23668 main ()
23670 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
23671 test_array [0] = 0
23674 return 0;
23676 _ACEOF
23677 rm -f conftest.$ac_objext
23678 if { (ac_try="$ac_compile"
23679 case "(($ac_try" in
23680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23681 *) ac_try_echo=$ac_try;;
23682 esac
23683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23684 (eval "$ac_compile") 2>conftest.er1
23685 ac_status=$?
23686 grep -v '^ *+' conftest.er1 >conftest.err
23687 rm -f conftest.er1
23688 cat conftest.err >&5
23689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23690 (exit $ac_status); } && {
23691 test -z "$ac_c_werror_flag" ||
23692 test ! -s conftest.err
23693 } && test -s conftest.$ac_objext; then
23694 ac_hi=-1 ac_mid=-1
23695 while :; do
23696 cat >conftest.$ac_ext <<_ACEOF
23697 /* confdefs.h. */
23698 _ACEOF
23699 cat confdefs.h >>conftest.$ac_ext
23700 cat >>conftest.$ac_ext <<_ACEOF
23701 /* end confdefs.h. */
23702 $ac_includes_default
23703 #ifndef offsetof
23704 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23705 #endif
23706 typedef struct { char x; double y; } ac__type_alignof_;
23708 main ()
23710 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
23711 test_array [0] = 0
23714 return 0;
23716 _ACEOF
23717 rm -f conftest.$ac_objext
23718 if { (ac_try="$ac_compile"
23719 case "(($ac_try" in
23720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23721 *) ac_try_echo=$ac_try;;
23722 esac
23723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23724 (eval "$ac_compile") 2>conftest.er1
23725 ac_status=$?
23726 grep -v '^ *+' conftest.er1 >conftest.err
23727 rm -f conftest.er1
23728 cat conftest.err >&5
23729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23730 (exit $ac_status); } && {
23731 test -z "$ac_c_werror_flag" ||
23732 test ! -s conftest.err
23733 } && test -s conftest.$ac_objext; then
23734 ac_lo=$ac_mid; break
23735 else
23736 echo "$as_me: failed program was:" >&5
23737 sed 's/^/| /' conftest.$ac_ext >&5
23739 ac_hi=`expr '(' $ac_mid ')' - 1`
23740 if test $ac_mid -le $ac_hi; then
23741 ac_lo= ac_hi=
23742 break
23744 ac_mid=`expr 2 '*' $ac_mid`
23747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23748 done
23749 else
23750 echo "$as_me: failed program was:" >&5
23751 sed 's/^/| /' conftest.$ac_ext >&5
23753 ac_lo= ac_hi=
23756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23760 # Binary search between lo and hi bounds.
23761 while test "x$ac_lo" != "x$ac_hi"; do
23762 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23763 cat >conftest.$ac_ext <<_ACEOF
23764 /* confdefs.h. */
23765 _ACEOF
23766 cat confdefs.h >>conftest.$ac_ext
23767 cat >>conftest.$ac_ext <<_ACEOF
23768 /* end confdefs.h. */
23769 $ac_includes_default
23770 #ifndef offsetof
23771 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23772 #endif
23773 typedef struct { char x; double y; } ac__type_alignof_;
23775 main ()
23777 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23778 test_array [0] = 0
23781 return 0;
23783 _ACEOF
23784 rm -f conftest.$ac_objext
23785 if { (ac_try="$ac_compile"
23786 case "(($ac_try" in
23787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23788 *) ac_try_echo=$ac_try;;
23789 esac
23790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23791 (eval "$ac_compile") 2>conftest.er1
23792 ac_status=$?
23793 grep -v '^ *+' conftest.er1 >conftest.err
23794 rm -f conftest.er1
23795 cat conftest.err >&5
23796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23797 (exit $ac_status); } && {
23798 test -z "$ac_c_werror_flag" ||
23799 test ! -s conftest.err
23800 } && test -s conftest.$ac_objext; then
23801 ac_hi=$ac_mid
23802 else
23803 echo "$as_me: failed program was:" >&5
23804 sed 's/^/| /' conftest.$ac_ext >&5
23806 ac_lo=`expr '(' $ac_mid ')' + 1`
23809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23810 done
23811 case $ac_lo in
23812 ?*) ac_cv_alignof_double=$ac_lo;;
23813 '') if test "$ac_cv_type_double" = yes; then
23814 { { echo "$as_me:$LINENO: error: cannot compute alignment of double
23815 See \`config.log' for more details." >&5
23816 echo "$as_me: error: cannot compute alignment of double
23817 See \`config.log' for more details." >&2;}
23818 { (exit 77); exit 77; }; }
23819 else
23820 ac_cv_alignof_double=0
23821 fi ;;
23822 esac
23823 else
23824 cat >conftest.$ac_ext <<_ACEOF
23825 /* confdefs.h. */
23826 _ACEOF
23827 cat confdefs.h >>conftest.$ac_ext
23828 cat >>conftest.$ac_ext <<_ACEOF
23829 /* end confdefs.h. */
23830 $ac_includes_default
23831 #ifndef offsetof
23832 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23833 #endif
23834 typedef struct { char x; double y; } ac__type_alignof_;
23835 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23836 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23837 #include <stdio.h>
23838 #include <stdlib.h>
23840 main ()
23843 FILE *f = fopen ("conftest.val", "w");
23844 if (! f)
23845 return 1;
23846 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23848 long int i = longval ();
23849 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23850 return 1;
23851 fprintf (f, "%ld\n", i);
23853 else
23855 unsigned long int i = ulongval ();
23856 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23857 return 1;
23858 fprintf (f, "%lu\n", i);
23860 return ferror (f) || fclose (f) != 0;
23863 return 0;
23865 _ACEOF
23866 rm -f conftest$ac_exeext
23867 if { (ac_try="$ac_link"
23868 case "(($ac_try" in
23869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23870 *) ac_try_echo=$ac_try;;
23871 esac
23872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23873 (eval "$ac_link") 2>&5
23874 ac_status=$?
23875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23876 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23877 { (case "(($ac_try" in
23878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23879 *) ac_try_echo=$ac_try;;
23880 esac
23881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23882 (eval "$ac_try") 2>&5
23883 ac_status=$?
23884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23885 (exit $ac_status); }; }; then
23886 ac_cv_alignof_double=`cat conftest.val`
23887 else
23888 echo "$as_me: program exited with status $ac_status" >&5
23889 echo "$as_me: failed program was:" >&5
23890 sed 's/^/| /' conftest.$ac_ext >&5
23892 ( exit $ac_status )
23893 if test "$ac_cv_type_double" = yes; then
23894 { { echo "$as_me:$LINENO: error: cannot compute alignment of double
23895 See \`config.log' for more details." >&5
23896 echo "$as_me: error: cannot compute alignment of double
23897 See \`config.log' for more details." >&2;}
23898 { (exit 77); exit 77; }; }
23899 else
23900 ac_cv_alignof_double=0
23903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23905 rm -f conftest.val
23907 { echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
23908 echo "${ECHO_T}$ac_cv_alignof_double" >&6; }
23912 cat >>confdefs.h <<_ACEOF
23913 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
23914 _ACEOF
23918 # Compute maximum alignment of any basic type.
23919 # We assume long's alignment is at least as strong as char, short, or int;
23920 # but we must check long long (if it exists) and double.
23922 MAX_ALIGNOF=$ac_cv_alignof_long
23923 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
23924 MAX_ALIGNOF=$ac_cv_alignof_double
23926 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
23927 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
23930 cat >>confdefs.h <<_ACEOF
23931 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
23932 _ACEOF
23936 # Some platforms predefine the types int8, int16, etc. Only check
23937 # a (hopefully) representative subset.
23938 { echo "$as_me:$LINENO: checking for int8" >&5
23939 echo $ECHO_N "checking for int8... $ECHO_C" >&6; }
23940 if test "${ac_cv_type_int8+set}" = set; then
23941 echo $ECHO_N "(cached) $ECHO_C" >&6
23942 else
23943 cat >conftest.$ac_ext <<_ACEOF
23944 /* confdefs.h. */
23945 _ACEOF
23946 cat confdefs.h >>conftest.$ac_ext
23947 cat >>conftest.$ac_ext <<_ACEOF
23948 /* end confdefs.h. */
23949 #include <stdio.h>
23950 #ifdef HAVE_SUPPORTDEFS_H
23951 #include <SupportDefs.h>
23952 #endif
23954 typedef int8 ac__type_new_;
23956 main ()
23958 if ((ac__type_new_ *) 0)
23959 return 0;
23960 if (sizeof (ac__type_new_))
23961 return 0;
23963 return 0;
23965 _ACEOF
23966 rm -f conftest.$ac_objext
23967 if { (ac_try="$ac_compile"
23968 case "(($ac_try" in
23969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23970 *) ac_try_echo=$ac_try;;
23971 esac
23972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23973 (eval "$ac_compile") 2>conftest.er1
23974 ac_status=$?
23975 grep -v '^ *+' conftest.er1 >conftest.err
23976 rm -f conftest.er1
23977 cat conftest.err >&5
23978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23979 (exit $ac_status); } && {
23980 test -z "$ac_c_werror_flag" ||
23981 test ! -s conftest.err
23982 } && test -s conftest.$ac_objext; then
23983 ac_cv_type_int8=yes
23984 else
23985 echo "$as_me: failed program was:" >&5
23986 sed 's/^/| /' conftest.$ac_ext >&5
23988 ac_cv_type_int8=no
23991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23993 { echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
23994 echo "${ECHO_T}$ac_cv_type_int8" >&6; }
23995 if test $ac_cv_type_int8 = yes; then
23997 cat >>confdefs.h <<_ACEOF
23998 #define HAVE_INT8 1
23999 _ACEOF
24003 { echo "$as_me:$LINENO: checking for uint8" >&5
24004 echo $ECHO_N "checking for uint8... $ECHO_C" >&6; }
24005 if test "${ac_cv_type_uint8+set}" = set; then
24006 echo $ECHO_N "(cached) $ECHO_C" >&6
24007 else
24008 cat >conftest.$ac_ext <<_ACEOF
24009 /* confdefs.h. */
24010 _ACEOF
24011 cat confdefs.h >>conftest.$ac_ext
24012 cat >>conftest.$ac_ext <<_ACEOF
24013 /* end confdefs.h. */
24014 #include <stdio.h>
24015 #ifdef HAVE_SUPPORTDEFS_H
24016 #include <SupportDefs.h>
24017 #endif
24019 typedef uint8 ac__type_new_;
24021 main ()
24023 if ((ac__type_new_ *) 0)
24024 return 0;
24025 if (sizeof (ac__type_new_))
24026 return 0;
24028 return 0;
24030 _ACEOF
24031 rm -f conftest.$ac_objext
24032 if { (ac_try="$ac_compile"
24033 case "(($ac_try" in
24034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24035 *) ac_try_echo=$ac_try;;
24036 esac
24037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24038 (eval "$ac_compile") 2>conftest.er1
24039 ac_status=$?
24040 grep -v '^ *+' conftest.er1 >conftest.err
24041 rm -f conftest.er1
24042 cat conftest.err >&5
24043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24044 (exit $ac_status); } && {
24045 test -z "$ac_c_werror_flag" ||
24046 test ! -s conftest.err
24047 } && test -s conftest.$ac_objext; then
24048 ac_cv_type_uint8=yes
24049 else
24050 echo "$as_me: failed program was:" >&5
24051 sed 's/^/| /' conftest.$ac_ext >&5
24053 ac_cv_type_uint8=no
24056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24058 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
24059 echo "${ECHO_T}$ac_cv_type_uint8" >&6; }
24060 if test $ac_cv_type_uint8 = yes; then
24062 cat >>confdefs.h <<_ACEOF
24063 #define HAVE_UINT8 1
24064 _ACEOF
24068 { echo "$as_me:$LINENO: checking for int64" >&5
24069 echo $ECHO_N "checking for int64... $ECHO_C" >&6; }
24070 if test "${ac_cv_type_int64+set}" = set; then
24071 echo $ECHO_N "(cached) $ECHO_C" >&6
24072 else
24073 cat >conftest.$ac_ext <<_ACEOF
24074 /* confdefs.h. */
24075 _ACEOF
24076 cat confdefs.h >>conftest.$ac_ext
24077 cat >>conftest.$ac_ext <<_ACEOF
24078 /* end confdefs.h. */
24079 #include <stdio.h>
24080 #ifdef HAVE_SUPPORTDEFS_H
24081 #include <SupportDefs.h>
24082 #endif
24084 typedef int64 ac__type_new_;
24086 main ()
24088 if ((ac__type_new_ *) 0)
24089 return 0;
24090 if (sizeof (ac__type_new_))
24091 return 0;
24093 return 0;
24095 _ACEOF
24096 rm -f conftest.$ac_objext
24097 if { (ac_try="$ac_compile"
24098 case "(($ac_try" in
24099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24100 *) ac_try_echo=$ac_try;;
24101 esac
24102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24103 (eval "$ac_compile") 2>conftest.er1
24104 ac_status=$?
24105 grep -v '^ *+' conftest.er1 >conftest.err
24106 rm -f conftest.er1
24107 cat conftest.err >&5
24108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24109 (exit $ac_status); } && {
24110 test -z "$ac_c_werror_flag" ||
24111 test ! -s conftest.err
24112 } && test -s conftest.$ac_objext; then
24113 ac_cv_type_int64=yes
24114 else
24115 echo "$as_me: failed program was:" >&5
24116 sed 's/^/| /' conftest.$ac_ext >&5
24118 ac_cv_type_int64=no
24121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24123 { echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
24124 echo "${ECHO_T}$ac_cv_type_int64" >&6; }
24125 if test $ac_cv_type_int64 = yes; then
24127 cat >>confdefs.h <<_ACEOF
24128 #define HAVE_INT64 1
24129 _ACEOF
24133 { echo "$as_me:$LINENO: checking for uint64" >&5
24134 echo $ECHO_N "checking for uint64... $ECHO_C" >&6; }
24135 if test "${ac_cv_type_uint64+set}" = set; then
24136 echo $ECHO_N "(cached) $ECHO_C" >&6
24137 else
24138 cat >conftest.$ac_ext <<_ACEOF
24139 /* confdefs.h. */
24140 _ACEOF
24141 cat confdefs.h >>conftest.$ac_ext
24142 cat >>conftest.$ac_ext <<_ACEOF
24143 /* end confdefs.h. */
24144 #include <stdio.h>
24145 #ifdef HAVE_SUPPORTDEFS_H
24146 #include <SupportDefs.h>
24147 #endif
24149 typedef uint64 ac__type_new_;
24151 main ()
24153 if ((ac__type_new_ *) 0)
24154 return 0;
24155 if (sizeof (ac__type_new_))
24156 return 0;
24158 return 0;
24160 _ACEOF
24161 rm -f conftest.$ac_objext
24162 if { (ac_try="$ac_compile"
24163 case "(($ac_try" in
24164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24165 *) ac_try_echo=$ac_try;;
24166 esac
24167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24168 (eval "$ac_compile") 2>conftest.er1
24169 ac_status=$?
24170 grep -v '^ *+' conftest.er1 >conftest.err
24171 rm -f conftest.er1
24172 cat conftest.err >&5
24173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24174 (exit $ac_status); } && {
24175 test -z "$ac_c_werror_flag" ||
24176 test ! -s conftest.err
24177 } && test -s conftest.$ac_objext; then
24178 ac_cv_type_uint64=yes
24179 else
24180 echo "$as_me: failed program was:" >&5
24181 sed 's/^/| /' conftest.$ac_ext >&5
24183 ac_cv_type_uint64=no
24186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24188 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
24189 echo "${ECHO_T}$ac_cv_type_uint64" >&6; }
24190 if test $ac_cv_type_uint64 = yes; then
24192 cat >>confdefs.h <<_ACEOF
24193 #define HAVE_UINT64 1
24194 _ACEOF
24200 # We also check for sig_atomic_t, which *should* be defined per ANSI
24201 # C, but is missing on some old platforms.
24202 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
24203 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
24204 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
24205 echo $ECHO_N "(cached) $ECHO_C" >&6
24206 else
24207 cat >conftest.$ac_ext <<_ACEOF
24208 /* confdefs.h. */
24209 _ACEOF
24210 cat confdefs.h >>conftest.$ac_ext
24211 cat >>conftest.$ac_ext <<_ACEOF
24212 /* end confdefs.h. */
24213 #include <signal.h>
24215 typedef sig_atomic_t ac__type_new_;
24217 main ()
24219 if ((ac__type_new_ *) 0)
24220 return 0;
24221 if (sizeof (ac__type_new_))
24222 return 0;
24224 return 0;
24226 _ACEOF
24227 rm -f conftest.$ac_objext
24228 if { (ac_try="$ac_compile"
24229 case "(($ac_try" in
24230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24231 *) ac_try_echo=$ac_try;;
24232 esac
24233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24234 (eval "$ac_compile") 2>conftest.er1
24235 ac_status=$?
24236 grep -v '^ *+' conftest.er1 >conftest.err
24237 rm -f conftest.er1
24238 cat conftest.err >&5
24239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24240 (exit $ac_status); } && {
24241 test -z "$ac_c_werror_flag" ||
24242 test ! -s conftest.err
24243 } && test -s conftest.$ac_objext; then
24244 ac_cv_type_sig_atomic_t=yes
24245 else
24246 echo "$as_me: failed program was:" >&5
24247 sed 's/^/| /' conftest.$ac_ext >&5
24249 ac_cv_type_sig_atomic_t=no
24252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24254 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
24255 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
24256 if test $ac_cv_type_sig_atomic_t = yes; then
24258 cat >>confdefs.h <<_ACEOF
24259 #define HAVE_SIG_ATOMIC_T 1
24260 _ACEOF
24267 # If the user did not disable integer datetimes, check that
24268 # there is a working 64-bit integral type to use.
24269 if test x"$USE_INTEGER_DATETIMES" = x"yes" &&
24270 test x"$HAVE_LONG_INT_64" = x"no" &&
24271 test x"$HAVE_LONG_LONG_INT_64" = x"no" &&
24272 test x"$HAVE_INT64" = x"no" ; then
24273 { { echo "$as_me:$LINENO: error:
24274 Integer-based datetime support requires a 64-bit integer type,
24275 but no such type could be found. The --disable-integer-datetimes
24276 configure option can be used to disable integer-based storage
24277 of datetime values." >&5
24278 echo "$as_me: error:
24279 Integer-based datetime support requires a 64-bit integer type,
24280 but no such type could be found. The --disable-integer-datetimes
24281 configure option can be used to disable integer-based storage
24282 of datetime values." >&2;}
24283 { (exit 1); exit 1; }; }
24287 if test "$PORTNAME" != "win32"
24288 then
24289 { echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
24290 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6; }
24291 if test "${pgac_cv_func_posix_signals+set}" = set; then
24292 echo $ECHO_N "(cached) $ECHO_C" >&6
24293 else
24294 cat >conftest.$ac_ext <<_ACEOF
24295 /* confdefs.h. */
24296 _ACEOF
24297 cat confdefs.h >>conftest.$ac_ext
24298 cat >>conftest.$ac_ext <<_ACEOF
24299 /* end confdefs.h. */
24300 #include <signal.h>
24303 main ()
24305 struct sigaction act, oact;
24306 sigemptyset(&act.sa_mask);
24307 act.sa_flags = SA_RESTART;
24308 sigaction(0, &act, &oact);
24310 return 0;
24312 _ACEOF
24313 rm -f conftest.$ac_objext conftest$ac_exeext
24314 if { (ac_try="$ac_link"
24315 case "(($ac_try" in
24316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24317 *) ac_try_echo=$ac_try;;
24318 esac
24319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24320 (eval "$ac_link") 2>conftest.er1
24321 ac_status=$?
24322 grep -v '^ *+' conftest.er1 >conftest.err
24323 rm -f conftest.er1
24324 cat conftest.err >&5
24325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24326 (exit $ac_status); } && {
24327 test -z "$ac_c_werror_flag" ||
24328 test ! -s conftest.err
24329 } && test -s conftest$ac_exeext &&
24330 $as_test_x conftest$ac_exeext; then
24331 pgac_cv_func_posix_signals=yes
24332 else
24333 echo "$as_me: failed program was:" >&5
24334 sed 's/^/| /' conftest.$ac_ext >&5
24336 pgac_cv_func_posix_signals=no
24339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24340 conftest$ac_exeext conftest.$ac_ext
24342 { echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
24343 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6; }
24344 if test x"$pgac_cv_func_posix_signals" = xyes ; then
24346 cat >>confdefs.h <<\_ACEOF
24347 #define HAVE_POSIX_SIGNALS
24348 _ACEOF
24351 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
24353 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
24354 { { echo "$as_me:$LINENO: error:
24355 Thread-safety requires POSIX signals, which are not supported by this
24356 operating system." >&5
24357 echo "$as_me: error:
24358 Thread-safety requires POSIX signals, which are not supported by this
24359 operating system." >&2;}
24360 { (exit 1); exit 1; }; }
24364 if test $ac_cv_func_fseeko = yes; then
24365 # Check whether --enable-largefile was given.
24366 if test "${enable_largefile+set}" = set; then
24367 enableval=$enable_largefile;
24370 if test "$enable_largefile" != no; then
24372 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
24373 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
24374 if test "${ac_cv_sys_largefile_CC+set}" = set; then
24375 echo $ECHO_N "(cached) $ECHO_C" >&6
24376 else
24377 ac_cv_sys_largefile_CC=no
24378 if test "$GCC" != yes; then
24379 ac_save_CC=$CC
24380 while :; do
24381 # IRIX 6.2 and later do not support large files by default,
24382 # so use the C compiler's -n32 option if that helps.
24383 cat >conftest.$ac_ext <<_ACEOF
24384 /* confdefs.h. */
24385 _ACEOF
24386 cat confdefs.h >>conftest.$ac_ext
24387 cat >>conftest.$ac_ext <<_ACEOF
24388 /* end confdefs.h. */
24389 #include <sys/types.h>
24390 /* Check that off_t can represent 2**63 - 1 correctly.
24391 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24392 since some C++ compilers masquerading as C compilers
24393 incorrectly reject 9223372036854775807. */
24394 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24395 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24396 && LARGE_OFF_T % 2147483647 == 1)
24397 ? 1 : -1];
24399 main ()
24403 return 0;
24405 _ACEOF
24406 rm -f conftest.$ac_objext
24407 if { (ac_try="$ac_compile"
24408 case "(($ac_try" in
24409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24410 *) ac_try_echo=$ac_try;;
24411 esac
24412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24413 (eval "$ac_compile") 2>conftest.er1
24414 ac_status=$?
24415 grep -v '^ *+' conftest.er1 >conftest.err
24416 rm -f conftest.er1
24417 cat conftest.err >&5
24418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24419 (exit $ac_status); } && {
24420 test -z "$ac_c_werror_flag" ||
24421 test ! -s conftest.err
24422 } && test -s conftest.$ac_objext; then
24423 break
24424 else
24425 echo "$as_me: failed program was:" >&5
24426 sed 's/^/| /' conftest.$ac_ext >&5
24431 rm -f core conftest.err conftest.$ac_objext
24432 CC="$CC -n32"
24433 rm -f conftest.$ac_objext
24434 if { (ac_try="$ac_compile"
24435 case "(($ac_try" in
24436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24437 *) ac_try_echo=$ac_try;;
24438 esac
24439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24440 (eval "$ac_compile") 2>conftest.er1
24441 ac_status=$?
24442 grep -v '^ *+' conftest.er1 >conftest.err
24443 rm -f conftest.er1
24444 cat conftest.err >&5
24445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24446 (exit $ac_status); } && {
24447 test -z "$ac_c_werror_flag" ||
24448 test ! -s conftest.err
24449 } && test -s conftest.$ac_objext; then
24450 ac_cv_sys_largefile_CC=' -n32'; break
24451 else
24452 echo "$as_me: failed program was:" >&5
24453 sed 's/^/| /' conftest.$ac_ext >&5
24458 rm -f core conftest.err conftest.$ac_objext
24459 break
24460 done
24461 CC=$ac_save_CC
24462 rm -f conftest.$ac_ext
24465 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
24466 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
24467 if test "$ac_cv_sys_largefile_CC" != no; then
24468 CC=$CC$ac_cv_sys_largefile_CC
24471 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
24472 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
24473 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
24474 echo $ECHO_N "(cached) $ECHO_C" >&6
24475 else
24476 while :; do
24477 cat >conftest.$ac_ext <<_ACEOF
24478 /* confdefs.h. */
24479 _ACEOF
24480 cat confdefs.h >>conftest.$ac_ext
24481 cat >>conftest.$ac_ext <<_ACEOF
24482 /* end confdefs.h. */
24483 #include <sys/types.h>
24484 /* Check that off_t can represent 2**63 - 1 correctly.
24485 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24486 since some C++ compilers masquerading as C compilers
24487 incorrectly reject 9223372036854775807. */
24488 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24489 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24490 && LARGE_OFF_T % 2147483647 == 1)
24491 ? 1 : -1];
24493 main ()
24497 return 0;
24499 _ACEOF
24500 rm -f conftest.$ac_objext
24501 if { (ac_try="$ac_compile"
24502 case "(($ac_try" in
24503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24504 *) ac_try_echo=$ac_try;;
24505 esac
24506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24507 (eval "$ac_compile") 2>conftest.er1
24508 ac_status=$?
24509 grep -v '^ *+' conftest.er1 >conftest.err
24510 rm -f conftest.er1
24511 cat conftest.err >&5
24512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24513 (exit $ac_status); } && {
24514 test -z "$ac_c_werror_flag" ||
24515 test ! -s conftest.err
24516 } && test -s conftest.$ac_objext; then
24517 ac_cv_sys_file_offset_bits=no; break
24518 else
24519 echo "$as_me: failed program was:" >&5
24520 sed 's/^/| /' conftest.$ac_ext >&5
24525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24526 cat >conftest.$ac_ext <<_ACEOF
24527 /* confdefs.h. */
24528 _ACEOF
24529 cat confdefs.h >>conftest.$ac_ext
24530 cat >>conftest.$ac_ext <<_ACEOF
24531 /* end confdefs.h. */
24532 #define _FILE_OFFSET_BITS 64
24533 #include <sys/types.h>
24534 /* Check that off_t can represent 2**63 - 1 correctly.
24535 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24536 since some C++ compilers masquerading as C compilers
24537 incorrectly reject 9223372036854775807. */
24538 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24539 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24540 && LARGE_OFF_T % 2147483647 == 1)
24541 ? 1 : -1];
24543 main ()
24547 return 0;
24549 _ACEOF
24550 rm -f conftest.$ac_objext
24551 if { (ac_try="$ac_compile"
24552 case "(($ac_try" in
24553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24554 *) ac_try_echo=$ac_try;;
24555 esac
24556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24557 (eval "$ac_compile") 2>conftest.er1
24558 ac_status=$?
24559 grep -v '^ *+' conftest.er1 >conftest.err
24560 rm -f conftest.er1
24561 cat conftest.err >&5
24562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24563 (exit $ac_status); } && {
24564 test -z "$ac_c_werror_flag" ||
24565 test ! -s conftest.err
24566 } && test -s conftest.$ac_objext; then
24567 ac_cv_sys_file_offset_bits=64; break
24568 else
24569 echo "$as_me: failed program was:" >&5
24570 sed 's/^/| /' conftest.$ac_ext >&5
24575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24576 ac_cv_sys_file_offset_bits=unknown
24577 break
24578 done
24580 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
24581 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
24582 case $ac_cv_sys_file_offset_bits in #(
24583 no | unknown) ;;
24585 cat >>confdefs.h <<_ACEOF
24586 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24587 _ACEOF
24589 esac
24590 rm -f conftest*
24591 if test $ac_cv_sys_file_offset_bits = unknown; then
24592 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
24593 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
24594 if test "${ac_cv_sys_large_files+set}" = set; then
24595 echo $ECHO_N "(cached) $ECHO_C" >&6
24596 else
24597 while :; do
24598 cat >conftest.$ac_ext <<_ACEOF
24599 /* confdefs.h. */
24600 _ACEOF
24601 cat confdefs.h >>conftest.$ac_ext
24602 cat >>conftest.$ac_ext <<_ACEOF
24603 /* end confdefs.h. */
24604 #include <sys/types.h>
24605 /* Check that off_t can represent 2**63 - 1 correctly.
24606 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24607 since some C++ compilers masquerading as C compilers
24608 incorrectly reject 9223372036854775807. */
24609 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24610 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24611 && LARGE_OFF_T % 2147483647 == 1)
24612 ? 1 : -1];
24614 main ()
24618 return 0;
24620 _ACEOF
24621 rm -f conftest.$ac_objext
24622 if { (ac_try="$ac_compile"
24623 case "(($ac_try" in
24624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24625 *) ac_try_echo=$ac_try;;
24626 esac
24627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24628 (eval "$ac_compile") 2>conftest.er1
24629 ac_status=$?
24630 grep -v '^ *+' conftest.er1 >conftest.err
24631 rm -f conftest.er1
24632 cat conftest.err >&5
24633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24634 (exit $ac_status); } && {
24635 test -z "$ac_c_werror_flag" ||
24636 test ! -s conftest.err
24637 } && test -s conftest.$ac_objext; then
24638 ac_cv_sys_large_files=no; break
24639 else
24640 echo "$as_me: failed program was:" >&5
24641 sed 's/^/| /' conftest.$ac_ext >&5
24646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24647 cat >conftest.$ac_ext <<_ACEOF
24648 /* confdefs.h. */
24649 _ACEOF
24650 cat confdefs.h >>conftest.$ac_ext
24651 cat >>conftest.$ac_ext <<_ACEOF
24652 /* end confdefs.h. */
24653 #define _LARGE_FILES 1
24654 #include <sys/types.h>
24655 /* Check that off_t can represent 2**63 - 1 correctly.
24656 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24657 since some C++ compilers masquerading as C compilers
24658 incorrectly reject 9223372036854775807. */
24659 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24660 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24661 && LARGE_OFF_T % 2147483647 == 1)
24662 ? 1 : -1];
24664 main ()
24668 return 0;
24670 _ACEOF
24671 rm -f conftest.$ac_objext
24672 if { (ac_try="$ac_compile"
24673 case "(($ac_try" in
24674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24675 *) ac_try_echo=$ac_try;;
24676 esac
24677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24678 (eval "$ac_compile") 2>conftest.er1
24679 ac_status=$?
24680 grep -v '^ *+' conftest.er1 >conftest.err
24681 rm -f conftest.er1
24682 cat conftest.err >&5
24683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24684 (exit $ac_status); } && {
24685 test -z "$ac_c_werror_flag" ||
24686 test ! -s conftest.err
24687 } && test -s conftest.$ac_objext; then
24688 ac_cv_sys_large_files=1; break
24689 else
24690 echo "$as_me: failed program was:" >&5
24691 sed 's/^/| /' conftest.$ac_ext >&5
24696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24697 ac_cv_sys_large_files=unknown
24698 break
24699 done
24701 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
24702 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
24703 case $ac_cv_sys_large_files in #(
24704 no | unknown) ;;
24706 cat >>confdefs.h <<_ACEOF
24707 #define _LARGE_FILES $ac_cv_sys_large_files
24708 _ACEOF
24710 esac
24711 rm -f conftest*
24717 # Check for largefile support (must be after AC_SYS_LARGEFILE)
24718 { echo "$as_me:$LINENO: checking for off_t" >&5
24719 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24720 if test "${ac_cv_type_off_t+set}" = set; then
24721 echo $ECHO_N "(cached) $ECHO_C" >&6
24722 else
24723 cat >conftest.$ac_ext <<_ACEOF
24724 /* confdefs.h. */
24725 _ACEOF
24726 cat confdefs.h >>conftest.$ac_ext
24727 cat >>conftest.$ac_ext <<_ACEOF
24728 /* end confdefs.h. */
24729 $ac_includes_default
24730 typedef off_t ac__type_new_;
24732 main ()
24734 if ((ac__type_new_ *) 0)
24735 return 0;
24736 if (sizeof (ac__type_new_))
24737 return 0;
24739 return 0;
24741 _ACEOF
24742 rm -f conftest.$ac_objext
24743 if { (ac_try="$ac_compile"
24744 case "(($ac_try" in
24745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24746 *) ac_try_echo=$ac_try;;
24747 esac
24748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24749 (eval "$ac_compile") 2>conftest.er1
24750 ac_status=$?
24751 grep -v '^ *+' conftest.er1 >conftest.err
24752 rm -f conftest.er1
24753 cat conftest.err >&5
24754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24755 (exit $ac_status); } && {
24756 test -z "$ac_c_werror_flag" ||
24757 test ! -s conftest.err
24758 } && test -s conftest.$ac_objext; then
24759 ac_cv_type_off_t=yes
24760 else
24761 echo "$as_me: failed program was:" >&5
24762 sed 's/^/| /' conftest.$ac_ext >&5
24764 ac_cv_type_off_t=no
24767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24769 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24770 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24772 # The cast to long int works around a bug in the HP C Compiler
24773 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24774 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24775 # This bug is HP SR number 8606223364.
24776 { echo "$as_me:$LINENO: checking size of off_t" >&5
24777 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
24778 if test "${ac_cv_sizeof_off_t+set}" = set; then
24779 echo $ECHO_N "(cached) $ECHO_C" >&6
24780 else
24781 if test "$cross_compiling" = yes; then
24782 # Depending upon the size, compute the lo and hi bounds.
24783 cat >conftest.$ac_ext <<_ACEOF
24784 /* confdefs.h. */
24785 _ACEOF
24786 cat confdefs.h >>conftest.$ac_ext
24787 cat >>conftest.$ac_ext <<_ACEOF
24788 /* end confdefs.h. */
24789 $ac_includes_default
24790 typedef off_t ac__type_sizeof_;
24792 main ()
24794 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24795 test_array [0] = 0
24798 return 0;
24800 _ACEOF
24801 rm -f conftest.$ac_objext
24802 if { (ac_try="$ac_compile"
24803 case "(($ac_try" in
24804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24805 *) ac_try_echo=$ac_try;;
24806 esac
24807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24808 (eval "$ac_compile") 2>conftest.er1
24809 ac_status=$?
24810 grep -v '^ *+' conftest.er1 >conftest.err
24811 rm -f conftest.er1
24812 cat conftest.err >&5
24813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24814 (exit $ac_status); } && {
24815 test -z "$ac_c_werror_flag" ||
24816 test ! -s conftest.err
24817 } && test -s conftest.$ac_objext; then
24818 ac_lo=0 ac_mid=0
24819 while :; do
24820 cat >conftest.$ac_ext <<_ACEOF
24821 /* confdefs.h. */
24822 _ACEOF
24823 cat confdefs.h >>conftest.$ac_ext
24824 cat >>conftest.$ac_ext <<_ACEOF
24825 /* end confdefs.h. */
24826 $ac_includes_default
24827 typedef off_t ac__type_sizeof_;
24829 main ()
24831 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24832 test_array [0] = 0
24835 return 0;
24837 _ACEOF
24838 rm -f conftest.$ac_objext
24839 if { (ac_try="$ac_compile"
24840 case "(($ac_try" in
24841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24842 *) ac_try_echo=$ac_try;;
24843 esac
24844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24845 (eval "$ac_compile") 2>conftest.er1
24846 ac_status=$?
24847 grep -v '^ *+' conftest.er1 >conftest.err
24848 rm -f conftest.er1
24849 cat conftest.err >&5
24850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24851 (exit $ac_status); } && {
24852 test -z "$ac_c_werror_flag" ||
24853 test ! -s conftest.err
24854 } && test -s conftest.$ac_objext; then
24855 ac_hi=$ac_mid; break
24856 else
24857 echo "$as_me: failed program was:" >&5
24858 sed 's/^/| /' conftest.$ac_ext >&5
24860 ac_lo=`expr $ac_mid + 1`
24861 if test $ac_lo -le $ac_mid; then
24862 ac_lo= ac_hi=
24863 break
24865 ac_mid=`expr 2 '*' $ac_mid + 1`
24868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24869 done
24870 else
24871 echo "$as_me: failed program was:" >&5
24872 sed 's/^/| /' conftest.$ac_ext >&5
24874 cat >conftest.$ac_ext <<_ACEOF
24875 /* confdefs.h. */
24876 _ACEOF
24877 cat confdefs.h >>conftest.$ac_ext
24878 cat >>conftest.$ac_ext <<_ACEOF
24879 /* end confdefs.h. */
24880 $ac_includes_default
24881 typedef off_t ac__type_sizeof_;
24883 main ()
24885 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24886 test_array [0] = 0
24889 return 0;
24891 _ACEOF
24892 rm -f conftest.$ac_objext
24893 if { (ac_try="$ac_compile"
24894 case "(($ac_try" in
24895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24896 *) ac_try_echo=$ac_try;;
24897 esac
24898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24899 (eval "$ac_compile") 2>conftest.er1
24900 ac_status=$?
24901 grep -v '^ *+' conftest.er1 >conftest.err
24902 rm -f conftest.er1
24903 cat conftest.err >&5
24904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24905 (exit $ac_status); } && {
24906 test -z "$ac_c_werror_flag" ||
24907 test ! -s conftest.err
24908 } && test -s conftest.$ac_objext; then
24909 ac_hi=-1 ac_mid=-1
24910 while :; do
24911 cat >conftest.$ac_ext <<_ACEOF
24912 /* confdefs.h. */
24913 _ACEOF
24914 cat confdefs.h >>conftest.$ac_ext
24915 cat >>conftest.$ac_ext <<_ACEOF
24916 /* end confdefs.h. */
24917 $ac_includes_default
24918 typedef off_t ac__type_sizeof_;
24920 main ()
24922 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24923 test_array [0] = 0
24926 return 0;
24928 _ACEOF
24929 rm -f conftest.$ac_objext
24930 if { (ac_try="$ac_compile"
24931 case "(($ac_try" in
24932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24933 *) ac_try_echo=$ac_try;;
24934 esac
24935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24936 (eval "$ac_compile") 2>conftest.er1
24937 ac_status=$?
24938 grep -v '^ *+' conftest.er1 >conftest.err
24939 rm -f conftest.er1
24940 cat conftest.err >&5
24941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24942 (exit $ac_status); } && {
24943 test -z "$ac_c_werror_flag" ||
24944 test ! -s conftest.err
24945 } && test -s conftest.$ac_objext; then
24946 ac_lo=$ac_mid; break
24947 else
24948 echo "$as_me: failed program was:" >&5
24949 sed 's/^/| /' conftest.$ac_ext >&5
24951 ac_hi=`expr '(' $ac_mid ')' - 1`
24952 if test $ac_mid -le $ac_hi; then
24953 ac_lo= ac_hi=
24954 break
24956 ac_mid=`expr 2 '*' $ac_mid`
24959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24960 done
24961 else
24962 echo "$as_me: failed program was:" >&5
24963 sed 's/^/| /' conftest.$ac_ext >&5
24965 ac_lo= ac_hi=
24968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24972 # Binary search between lo and hi bounds.
24973 while test "x$ac_lo" != "x$ac_hi"; do
24974 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24975 cat >conftest.$ac_ext <<_ACEOF
24976 /* confdefs.h. */
24977 _ACEOF
24978 cat confdefs.h >>conftest.$ac_ext
24979 cat >>conftest.$ac_ext <<_ACEOF
24980 /* end confdefs.h. */
24981 $ac_includes_default
24982 typedef off_t ac__type_sizeof_;
24984 main ()
24986 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24987 test_array [0] = 0
24990 return 0;
24992 _ACEOF
24993 rm -f conftest.$ac_objext
24994 if { (ac_try="$ac_compile"
24995 case "(($ac_try" in
24996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24997 *) ac_try_echo=$ac_try;;
24998 esac
24999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25000 (eval "$ac_compile") 2>conftest.er1
25001 ac_status=$?
25002 grep -v '^ *+' conftest.er1 >conftest.err
25003 rm -f conftest.er1
25004 cat conftest.err >&5
25005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25006 (exit $ac_status); } && {
25007 test -z "$ac_c_werror_flag" ||
25008 test ! -s conftest.err
25009 } && test -s conftest.$ac_objext; then
25010 ac_hi=$ac_mid
25011 else
25012 echo "$as_me: failed program was:" >&5
25013 sed 's/^/| /' conftest.$ac_ext >&5
25015 ac_lo=`expr '(' $ac_mid ')' + 1`
25018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25019 done
25020 case $ac_lo in
25021 ?*) ac_cv_sizeof_off_t=$ac_lo;;
25022 '') if test "$ac_cv_type_off_t" = yes; then
25023 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
25024 See \`config.log' for more details." >&5
25025 echo "$as_me: error: cannot compute sizeof (off_t)
25026 See \`config.log' for more details." >&2;}
25027 { (exit 77); exit 77; }; }
25028 else
25029 ac_cv_sizeof_off_t=0
25030 fi ;;
25031 esac
25032 else
25033 cat >conftest.$ac_ext <<_ACEOF
25034 /* confdefs.h. */
25035 _ACEOF
25036 cat confdefs.h >>conftest.$ac_ext
25037 cat >>conftest.$ac_ext <<_ACEOF
25038 /* end confdefs.h. */
25039 $ac_includes_default
25040 typedef off_t ac__type_sizeof_;
25041 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25042 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25043 #include <stdio.h>
25044 #include <stdlib.h>
25046 main ()
25049 FILE *f = fopen ("conftest.val", "w");
25050 if (! f)
25051 return 1;
25052 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25054 long int i = longval ();
25055 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25056 return 1;
25057 fprintf (f, "%ld\n", i);
25059 else
25061 unsigned long int i = ulongval ();
25062 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25063 return 1;
25064 fprintf (f, "%lu\n", i);
25066 return ferror (f) || fclose (f) != 0;
25069 return 0;
25071 _ACEOF
25072 rm -f conftest$ac_exeext
25073 if { (ac_try="$ac_link"
25074 case "(($ac_try" in
25075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25076 *) ac_try_echo=$ac_try;;
25077 esac
25078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25079 (eval "$ac_link") 2>&5
25080 ac_status=$?
25081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25082 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25083 { (case "(($ac_try" in
25084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25085 *) ac_try_echo=$ac_try;;
25086 esac
25087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25088 (eval "$ac_try") 2>&5
25089 ac_status=$?
25090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25091 (exit $ac_status); }; }; then
25092 ac_cv_sizeof_off_t=`cat conftest.val`
25093 else
25094 echo "$as_me: program exited with status $ac_status" >&5
25095 echo "$as_me: failed program was:" >&5
25096 sed 's/^/| /' conftest.$ac_ext >&5
25098 ( exit $ac_status )
25099 if test "$ac_cv_type_off_t" = yes; then
25100 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
25101 See \`config.log' for more details." >&5
25102 echo "$as_me: error: cannot compute sizeof (off_t)
25103 See \`config.log' for more details." >&2;}
25104 { (exit 77); exit 77; }; }
25105 else
25106 ac_cv_sizeof_off_t=0
25109 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25111 rm -f conftest.val
25113 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
25114 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
25118 cat >>confdefs.h <<_ACEOF
25119 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
25120 _ACEOF
25124 # If we don't have largefile support, can't handle segsize >= 2GB.
25125 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
25126 { { echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
25127 echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
25128 { (exit 1); exit 1; }; }
25131 # SunOS doesn't handle negative byte comparisons properly with +/- return
25132 { echo "$as_me:$LINENO: checking for working memcmp" >&5
25133 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
25134 if test "${ac_cv_func_memcmp_working+set}" = set; then
25135 echo $ECHO_N "(cached) $ECHO_C" >&6
25136 else
25137 if test "$cross_compiling" = yes; then
25138 ac_cv_func_memcmp_working=no
25139 else
25140 cat >conftest.$ac_ext <<_ACEOF
25141 /* confdefs.h. */
25142 _ACEOF
25143 cat confdefs.h >>conftest.$ac_ext
25144 cat >>conftest.$ac_ext <<_ACEOF
25145 /* end confdefs.h. */
25146 $ac_includes_default
25148 main ()
25151 /* Some versions of memcmp are not 8-bit clean. */
25152 char c0 = '\100', c1 = '\200', c2 = '\201';
25153 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25154 return 1;
25156 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25157 or more and with at least one buffer not starting on a 4-byte boundary.
25158 William Lewis provided this test program. */
25160 char foo[21];
25161 char bar[21];
25162 int i;
25163 for (i = 0; i < 4; i++)
25165 char *a = foo + i;
25166 char *b = bar + i;
25167 strcpy (a, "--------01111111");
25168 strcpy (b, "--------10000000");
25169 if (memcmp (a, b, 16) >= 0)
25170 return 1;
25172 return 0;
25176 return 0;
25178 _ACEOF
25179 rm -f conftest$ac_exeext
25180 if { (ac_try="$ac_link"
25181 case "(($ac_try" in
25182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25183 *) ac_try_echo=$ac_try;;
25184 esac
25185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25186 (eval "$ac_link") 2>&5
25187 ac_status=$?
25188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25189 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25190 { (case "(($ac_try" in
25191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25192 *) ac_try_echo=$ac_try;;
25193 esac
25194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25195 (eval "$ac_try") 2>&5
25196 ac_status=$?
25197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25198 (exit $ac_status); }; }; then
25199 ac_cv_func_memcmp_working=yes
25200 else
25201 echo "$as_me: program exited with status $ac_status" >&5
25202 echo "$as_me: failed program was:" >&5
25203 sed 's/^/| /' conftest.$ac_ext >&5
25205 ( exit $ac_status )
25206 ac_cv_func_memcmp_working=no
25208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25213 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
25214 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
25215 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
25216 *" memcmp.$ac_objext "* ) ;;
25217 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
25219 esac
25224 # Select semaphore implementation type.
25225 if test "$PORTNAME" != "win32"; then
25226 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
25228 cat >>confdefs.h <<\_ACEOF
25229 #define USE_NAMED_POSIX_SEMAPHORES 1
25230 _ACEOF
25232 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
25233 else
25234 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
25236 cat >>confdefs.h <<\_ACEOF
25237 #define USE_UNNAMED_POSIX_SEMAPHORES 1
25238 _ACEOF
25240 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
25241 else
25243 cat >>confdefs.h <<\_ACEOF
25244 #define USE_SYSV_SEMAPHORES 1
25245 _ACEOF
25247 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
25250 else
25252 cat >>confdefs.h <<\_ACEOF
25253 #define USE_WIN32_SEMAPHORES 1
25254 _ACEOF
25256 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
25260 # Select shared-memory implementation type.
25261 if test "$PORTNAME" != "win32"; then
25263 cat >>confdefs.h <<\_ACEOF
25264 #define USE_SYSV_SHARED_MEMORY 1
25265 _ACEOF
25267 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
25268 else
25270 cat >>confdefs.h <<\_ACEOF
25271 #define USE_WIN32_SHARED_MEMORY 1
25272 _ACEOF
25274 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
25277 # If not set in template file, set bytes to use libc memset()
25278 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
25279 MEMSET_LOOP_LIMIT=1024
25282 cat >>confdefs.h <<_ACEOF
25283 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
25284 _ACEOF
25288 if test "$enable_nls" = yes ; then
25290 { echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
25291 echo $ECHO_N "checking for library containing bind_textdomain_codeset... $ECHO_C" >&6; }
25292 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
25293 echo $ECHO_N "(cached) $ECHO_C" >&6
25294 else
25295 ac_func_search_save_LIBS=$LIBS
25296 cat >conftest.$ac_ext <<_ACEOF
25297 /* confdefs.h. */
25298 _ACEOF
25299 cat confdefs.h >>conftest.$ac_ext
25300 cat >>conftest.$ac_ext <<_ACEOF
25301 /* end confdefs.h. */
25303 /* Override any GCC internal prototype to avoid an error.
25304 Use char because int might match the return type of a GCC
25305 builtin and then its argument prototype would still apply. */
25306 #ifdef __cplusplus
25307 extern "C"
25308 #endif
25309 char bind_textdomain_codeset ();
25311 main ()
25313 return bind_textdomain_codeset ();
25315 return 0;
25317 _ACEOF
25318 for ac_lib in '' intl; do
25319 if test -z "$ac_lib"; then
25320 ac_res="none required"
25321 else
25322 ac_res=-l$ac_lib
25323 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25325 rm -f conftest.$ac_objext conftest$ac_exeext
25326 if { (ac_try="$ac_link"
25327 case "(($ac_try" in
25328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25329 *) ac_try_echo=$ac_try;;
25330 esac
25331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25332 (eval "$ac_link") 2>conftest.er1
25333 ac_status=$?
25334 grep -v '^ *+' conftest.er1 >conftest.err
25335 rm -f conftest.er1
25336 cat conftest.err >&5
25337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25338 (exit $ac_status); } && {
25339 test -z "$ac_c_werror_flag" ||
25340 test ! -s conftest.err
25341 } && test -s conftest$ac_exeext &&
25342 $as_test_x conftest$ac_exeext; then
25343 ac_cv_search_bind_textdomain_codeset=$ac_res
25344 else
25345 echo "$as_me: failed program was:" >&5
25346 sed 's/^/| /' conftest.$ac_ext >&5
25351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25352 conftest$ac_exeext
25353 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
25354 break
25356 done
25357 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
25359 else
25360 ac_cv_search_bind_textdomain_codeset=no
25362 rm conftest.$ac_ext
25363 LIBS=$ac_func_search_save_LIBS
25365 { echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
25366 echo "${ECHO_T}$ac_cv_search_bind_textdomain_codeset" >&6; }
25367 ac_res=$ac_cv_search_bind_textdomain_codeset
25368 if test "$ac_res" != no; then
25369 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25371 else
25372 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
25373 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
25374 { (exit 1); exit 1; }; }
25377 if test "${ac_cv_header_libintl_h+set}" = set; then
25378 { echo "$as_me:$LINENO: checking for libintl.h" >&5
25379 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
25380 if test "${ac_cv_header_libintl_h+set}" = set; then
25381 echo $ECHO_N "(cached) $ECHO_C" >&6
25383 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
25384 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
25385 else
25386 # Is the header compilable?
25387 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
25388 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
25389 cat >conftest.$ac_ext <<_ACEOF
25390 /* confdefs.h. */
25391 _ACEOF
25392 cat confdefs.h >>conftest.$ac_ext
25393 cat >>conftest.$ac_ext <<_ACEOF
25394 /* end confdefs.h. */
25395 $ac_includes_default
25396 #include <libintl.h>
25397 _ACEOF
25398 rm -f conftest.$ac_objext
25399 if { (ac_try="$ac_compile"
25400 case "(($ac_try" in
25401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25402 *) ac_try_echo=$ac_try;;
25403 esac
25404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25405 (eval "$ac_compile") 2>conftest.er1
25406 ac_status=$?
25407 grep -v '^ *+' conftest.er1 >conftest.err
25408 rm -f conftest.er1
25409 cat conftest.err >&5
25410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25411 (exit $ac_status); } && {
25412 test -z "$ac_c_werror_flag" ||
25413 test ! -s conftest.err
25414 } && test -s conftest.$ac_objext; then
25415 ac_header_compiler=yes
25416 else
25417 echo "$as_me: failed program was:" >&5
25418 sed 's/^/| /' conftest.$ac_ext >&5
25420 ac_header_compiler=no
25423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25424 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25425 echo "${ECHO_T}$ac_header_compiler" >&6; }
25427 # Is the header present?
25428 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
25429 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
25430 cat >conftest.$ac_ext <<_ACEOF
25431 /* confdefs.h. */
25432 _ACEOF
25433 cat confdefs.h >>conftest.$ac_ext
25434 cat >>conftest.$ac_ext <<_ACEOF
25435 /* end confdefs.h. */
25436 #include <libintl.h>
25437 _ACEOF
25438 if { (ac_try="$ac_cpp conftest.$ac_ext"
25439 case "(($ac_try" in
25440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25441 *) ac_try_echo=$ac_try;;
25442 esac
25443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25444 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25445 ac_status=$?
25446 grep -v '^ *+' conftest.er1 >conftest.err
25447 rm -f conftest.er1
25448 cat conftest.err >&5
25449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25450 (exit $ac_status); } >/dev/null && {
25451 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25452 test ! -s conftest.err
25453 }; then
25454 ac_header_preproc=yes
25455 else
25456 echo "$as_me: failed program was:" >&5
25457 sed 's/^/| /' conftest.$ac_ext >&5
25459 ac_header_preproc=no
25462 rm -f conftest.err conftest.$ac_ext
25463 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25464 echo "${ECHO_T}$ac_header_preproc" >&6; }
25466 # So? What about this header?
25467 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25468 yes:no: )
25469 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25470 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25471 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
25472 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
25473 ac_header_preproc=yes
25475 no:yes:* )
25476 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
25477 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
25478 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
25479 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
25480 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
25481 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
25482 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
25483 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
25484 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
25485 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
25486 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
25487 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
25488 ( cat <<\_ASBOX
25489 ## ---------------------------------------- ##
25490 ## Report this to pgsql-bugs@postgresql.org ##
25491 ## ---------------------------------------- ##
25492 _ASBOX
25493 ) | sed "s/^/$as_me: WARNING: /" >&2
25495 esac
25496 { echo "$as_me:$LINENO: checking for libintl.h" >&5
25497 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
25498 if test "${ac_cv_header_libintl_h+set}" = set; then
25499 echo $ECHO_N "(cached) $ECHO_C" >&6
25500 else
25501 ac_cv_header_libintl_h=$ac_header_preproc
25503 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
25504 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
25507 if test $ac_cv_header_libintl_h = yes; then
25509 else
25510 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
25511 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
25512 { (exit 1); exit 1; }; }
25516 for ac_prog in msgfmt
25518 # Extract the first word of "$ac_prog", so it can be a program name with args.
25519 set dummy $ac_prog; ac_word=$2
25520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25522 if test "${ac_cv_prog_MSGFMT+set}" = set; then
25523 echo $ECHO_N "(cached) $ECHO_C" >&6
25524 else
25525 if test -n "$MSGFMT"; then
25526 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
25527 else
25528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25529 for as_dir in $PATH
25531 IFS=$as_save_IFS
25532 test -z "$as_dir" && as_dir=.
25533 for ac_exec_ext in '' $ac_executable_extensions; do
25534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25535 ac_cv_prog_MSGFMT="$ac_prog"
25536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25537 break 2
25539 done
25540 done
25541 IFS=$as_save_IFS
25545 MSGFMT=$ac_cv_prog_MSGFMT
25546 if test -n "$MSGFMT"; then
25547 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
25548 echo "${ECHO_T}$MSGFMT" >&6; }
25549 else
25550 { echo "$as_me:$LINENO: result: no" >&5
25551 echo "${ECHO_T}no" >&6; }
25555 test -n "$MSGFMT" && break
25556 done
25558 if test -z "$MSGFMT"; then
25559 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
25560 echo "$as_me: error: msgfmt is required for NLS" >&2;}
25561 { (exit 1); exit 1; }; }
25563 for ac_prog in msgmerge
25565 # Extract the first word of "$ac_prog", so it can be a program name with args.
25566 set dummy $ac_prog; ac_word=$2
25567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25569 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
25570 echo $ECHO_N "(cached) $ECHO_C" >&6
25571 else
25572 if test -n "$MSGMERGE"; then
25573 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
25574 else
25575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25576 for as_dir in $PATH
25578 IFS=$as_save_IFS
25579 test -z "$as_dir" && as_dir=.
25580 for ac_exec_ext in '' $ac_executable_extensions; do
25581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25582 ac_cv_prog_MSGMERGE="$ac_prog"
25583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25584 break 2
25586 done
25587 done
25588 IFS=$as_save_IFS
25592 MSGMERGE=$ac_cv_prog_MSGMERGE
25593 if test -n "$MSGMERGE"; then
25594 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
25595 echo "${ECHO_T}$MSGMERGE" >&6; }
25596 else
25597 { echo "$as_me:$LINENO: result: no" >&5
25598 echo "${ECHO_T}no" >&6; }
25602 test -n "$MSGMERGE" && break
25603 done
25605 for ac_prog in xgettext
25607 # Extract the first word of "$ac_prog", so it can be a program name with args.
25608 set dummy $ac_prog; ac_word=$2
25609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25611 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
25612 echo $ECHO_N "(cached) $ECHO_C" >&6
25613 else
25614 if test -n "$XGETTEXT"; then
25615 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
25616 else
25617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25618 for as_dir in $PATH
25620 IFS=$as_save_IFS
25621 test -z "$as_dir" && as_dir=.
25622 for ac_exec_ext in '' $ac_executable_extensions; do
25623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25624 ac_cv_prog_XGETTEXT="$ac_prog"
25625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25626 break 2
25628 done
25629 done
25630 IFS=$as_save_IFS
25634 XGETTEXT=$ac_cv_prog_XGETTEXT
25635 if test -n "$XGETTEXT"; then
25636 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
25637 echo "${ECHO_T}$XGETTEXT" >&6; }
25638 else
25639 { echo "$as_me:$LINENO: result: no" >&5
25640 echo "${ECHO_T}no" >&6; }
25644 test -n "$XGETTEXT" && break
25645 done
25650 # Check for Tcl configuration script tclConfig.sh
25651 if test "$with_tcl" = yes; then
25652 for ac_prog in tclsh tcl tclsh8.5 tclsh8.4 tclsh8.3
25654 # Extract the first word of "$ac_prog", so it can be a program name with args.
25655 set dummy $ac_prog; ac_word=$2
25656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25658 if test "${ac_cv_path_TCLSH+set}" = set; then
25659 echo $ECHO_N "(cached) $ECHO_C" >&6
25660 else
25661 case $TCLSH in
25662 [\\/]* | ?:[\\/]*)
25663 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
25666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25667 for as_dir in $PATH
25669 IFS=$as_save_IFS
25670 test -z "$as_dir" && as_dir=.
25671 for ac_exec_ext in '' $ac_executable_extensions; do
25672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25673 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
25674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25675 break 2
25677 done
25678 done
25679 IFS=$as_save_IFS
25682 esac
25684 TCLSH=$ac_cv_path_TCLSH
25685 if test -n "$TCLSH"; then
25686 { echo "$as_me:$LINENO: result: $TCLSH" >&5
25687 echo "${ECHO_T}$TCLSH" >&6; }
25688 else
25689 { echo "$as_me:$LINENO: result: no" >&5
25690 echo "${ECHO_T}no" >&6; }
25694 test -n "$TCLSH" && break
25695 done
25697 if test x"$TCLSH" = x""; then
25698 { { echo "$as_me:$LINENO: error: Tcl shell not found" >&5
25699 echo "$as_me: error: Tcl shell not found" >&2;}
25700 { (exit 1); exit 1; }; }
25703 { echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
25704 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6; }
25705 # Let user override test
25706 if test -z "$TCL_CONFIG_SH"; then
25707 pgac_test_dirs="$with_tclconfig"
25709 set X $pgac_test_dirs; shift
25710 if test $# -eq 0; then
25711 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
25712 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
25713 { (exit 1); exit 1; }; }
25714 set X `echo 'puts $auto_path' | $TCLSH`; shift
25717 for pgac_dir do
25718 if test -r "$pgac_dir/tclConfig.sh"; then
25719 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
25720 break
25722 done
25725 if test -z "$TCL_CONFIG_SH"; then
25726 { echo "$as_me:$LINENO: result: no" >&5
25727 echo "${ECHO_T}no" >&6; }
25728 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
25729 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
25730 { (exit 1); exit 1; }; }
25731 else
25732 { echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
25733 echo "${ECHO_T}$TCL_CONFIG_SH" >&6; }
25738 . "$TCL_CONFIG_SH"
25739 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
25740 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
25741 eval TCL_LIBS=\"$TCL_LIBS\"
25742 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
25743 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
25745 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
25746 ac_save_CPPFLAGS=$CPPFLAGS
25747 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
25748 if test "${ac_cv_header_tcl_h+set}" = set; then
25749 { echo "$as_me:$LINENO: checking for tcl.h" >&5
25750 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
25751 if test "${ac_cv_header_tcl_h+set}" = set; then
25752 echo $ECHO_N "(cached) $ECHO_C" >&6
25754 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
25755 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
25756 else
25757 # Is the header compilable?
25758 { echo "$as_me:$LINENO: checking tcl.h usability" >&5
25759 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6; }
25760 cat >conftest.$ac_ext <<_ACEOF
25761 /* confdefs.h. */
25762 _ACEOF
25763 cat confdefs.h >>conftest.$ac_ext
25764 cat >>conftest.$ac_ext <<_ACEOF
25765 /* end confdefs.h. */
25766 $ac_includes_default
25767 #include <tcl.h>
25768 _ACEOF
25769 rm -f conftest.$ac_objext
25770 if { (ac_try="$ac_compile"
25771 case "(($ac_try" in
25772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25773 *) ac_try_echo=$ac_try;;
25774 esac
25775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25776 (eval "$ac_compile") 2>conftest.er1
25777 ac_status=$?
25778 grep -v '^ *+' conftest.er1 >conftest.err
25779 rm -f conftest.er1
25780 cat conftest.err >&5
25781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25782 (exit $ac_status); } && {
25783 test -z "$ac_c_werror_flag" ||
25784 test ! -s conftest.err
25785 } && test -s conftest.$ac_objext; then
25786 ac_header_compiler=yes
25787 else
25788 echo "$as_me: failed program was:" >&5
25789 sed 's/^/| /' conftest.$ac_ext >&5
25791 ac_header_compiler=no
25794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25795 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25796 echo "${ECHO_T}$ac_header_compiler" >&6; }
25798 # Is the header present?
25799 { echo "$as_me:$LINENO: checking tcl.h presence" >&5
25800 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6; }
25801 cat >conftest.$ac_ext <<_ACEOF
25802 /* confdefs.h. */
25803 _ACEOF
25804 cat confdefs.h >>conftest.$ac_ext
25805 cat >>conftest.$ac_ext <<_ACEOF
25806 /* end confdefs.h. */
25807 #include <tcl.h>
25808 _ACEOF
25809 if { (ac_try="$ac_cpp conftest.$ac_ext"
25810 case "(($ac_try" in
25811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25812 *) ac_try_echo=$ac_try;;
25813 esac
25814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25816 ac_status=$?
25817 grep -v '^ *+' conftest.er1 >conftest.err
25818 rm -f conftest.er1
25819 cat conftest.err >&5
25820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25821 (exit $ac_status); } >/dev/null && {
25822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25823 test ! -s conftest.err
25824 }; then
25825 ac_header_preproc=yes
25826 else
25827 echo "$as_me: failed program was:" >&5
25828 sed 's/^/| /' conftest.$ac_ext >&5
25830 ac_header_preproc=no
25833 rm -f conftest.err conftest.$ac_ext
25834 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25835 echo "${ECHO_T}$ac_header_preproc" >&6; }
25837 # So? What about this header?
25838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25839 yes:no: )
25840 { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25841 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25842 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
25843 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
25844 ac_header_preproc=yes
25846 no:yes:* )
25847 { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
25848 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
25849 { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
25850 echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
25851 { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
25852 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
25853 { echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
25854 echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
25855 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
25856 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
25857 { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
25858 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
25859 ( cat <<\_ASBOX
25860 ## ---------------------------------------- ##
25861 ## Report this to pgsql-bugs@postgresql.org ##
25862 ## ---------------------------------------- ##
25863 _ASBOX
25864 ) | sed "s/^/$as_me: WARNING: /" >&2
25866 esac
25867 { echo "$as_me:$LINENO: checking for tcl.h" >&5
25868 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
25869 if test "${ac_cv_header_tcl_h+set}" = set; then
25870 echo $ECHO_N "(cached) $ECHO_C" >&6
25871 else
25872 ac_cv_header_tcl_h=$ac_header_preproc
25874 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
25875 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
25878 if test $ac_cv_header_tcl_h = yes; then
25880 else
25881 { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
25882 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
25883 { (exit 1); exit 1; }; }
25887 CPPFLAGS=$ac_save_CPPFLAGS
25891 # Check for DocBook and tools
25893 for ac_prog in onsgmls nsgmls
25895 # Extract the first word of "$ac_prog", so it can be a program name with args.
25896 set dummy $ac_prog; ac_word=$2
25897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25899 if test "${ac_cv_prog_NSGMLS+set}" = set; then
25900 echo $ECHO_N "(cached) $ECHO_C" >&6
25901 else
25902 if test -n "$NSGMLS"; then
25903 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
25904 else
25905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25906 for as_dir in $PATH
25908 IFS=$as_save_IFS
25909 test -z "$as_dir" && as_dir=.
25910 for ac_exec_ext in '' $ac_executable_extensions; do
25911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25912 ac_cv_prog_NSGMLS="$ac_prog"
25913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25914 break 2
25916 done
25917 done
25918 IFS=$as_save_IFS
25922 NSGMLS=$ac_cv_prog_NSGMLS
25923 if test -n "$NSGMLS"; then
25924 { echo "$as_me:$LINENO: result: $NSGMLS" >&5
25925 echo "${ECHO_T}$NSGMLS" >&6; }
25926 else
25927 { echo "$as_me:$LINENO: result: no" >&5
25928 echo "${ECHO_T}no" >&6; }
25932 test -n "$NSGMLS" && break
25933 done
25935 for ac_prog in openjade jade
25937 # Extract the first word of "$ac_prog", so it can be a program name with args.
25938 set dummy $ac_prog; ac_word=$2
25939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25941 if test "${ac_cv_prog_JADE+set}" = set; then
25942 echo $ECHO_N "(cached) $ECHO_C" >&6
25943 else
25944 if test -n "$JADE"; then
25945 ac_cv_prog_JADE="$JADE" # Let the user override the test.
25946 else
25947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25948 for as_dir in $PATH
25950 IFS=$as_save_IFS
25951 test -z "$as_dir" && as_dir=.
25952 for ac_exec_ext in '' $ac_executable_extensions; do
25953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25954 ac_cv_prog_JADE="$ac_prog"
25955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25956 break 2
25958 done
25959 done
25960 IFS=$as_save_IFS
25964 JADE=$ac_cv_prog_JADE
25965 if test -n "$JADE"; then
25966 { echo "$as_me:$LINENO: result: $JADE" >&5
25967 echo "${ECHO_T}$JADE" >&6; }
25968 else
25969 { echo "$as_me:$LINENO: result: no" >&5
25970 echo "${ECHO_T}no" >&6; }
25974 test -n "$JADE" && break
25975 done
25978 { echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
25979 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6; }
25980 if test "${pgac_cv_check_docbook+set}" = set; then
25981 echo $ECHO_N "(cached) $ECHO_C" >&6
25982 else
25983 cat >conftest.sgml <<EOF
25984 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
25985 <book>
25986 <title>test</title>
25987 <chapter>
25988 <title>random</title>
25989 <sect1>
25990 <title>testsect</title>
25991 <para>text</para>
25992 </sect1>
25993 </chapter>
25994 </book>
25997 pgac_cv_check_docbook=no
25999 if test -n "$NSGMLS"; then
26000 $NSGMLS -s conftest.sgml 1>&5 2>&1
26001 if test $? -eq 0; then
26002 pgac_cv_check_docbook=yes
26005 rm -f conftest.sgml
26007 { echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
26008 echo "${ECHO_T}$pgac_cv_check_docbook" >&6; }
26010 have_docbook=$pgac_cv_check_docbook
26013 { echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
26014 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6; }
26015 if test "${pgac_cv_path_stylesheets+set}" = set; then
26016 echo $ECHO_N "(cached) $ECHO_C" >&6
26017 else
26018 if test -n "$DOCBOOKSTYLE"; then
26019 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
26020 else
26021 for pgac_prefix in /usr /usr/local /opt /sw; do
26022 for pgac_infix in share lib; do
26023 for pgac_postfix in \
26024 sgml/stylesheets/nwalsh-modular \
26025 sgml/stylesheets/docbook \
26026 sgml/stylesheets/dsssl/docbook \
26027 sgml/docbook-dsssl \
26028 sgml/docbook/dsssl/modular \
26029 sgml/docbook/stylesheet/dsssl/modular \
26030 sgml/docbook/dsssl-stylesheets \
26031 sgml/dsssl/docbook-dsssl-nwalsh
26033 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
26034 if test -r "$pgac_candidate/html/docbook.dsl" \
26035 && test -r "$pgac_candidate/print/docbook.dsl"
26036 then
26037 pgac_cv_path_stylesheets=$pgac_candidate
26038 break 3
26040 done
26041 done
26042 done
26046 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
26048 if test -n "$DOCBOOKSTYLE"; then
26049 { echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
26050 echo "${ECHO_T}$DOCBOOKSTYLE" >&6; }
26051 else
26052 { echo "$as_me:$LINENO: result: no" >&5
26053 echo "${ECHO_T}no" >&6; }
26055 if test -n "$DOCBOOKSTYLE"; then
26056 for ac_prog in collateindex.pl
26058 # Extract the first word of "$ac_prog", so it can be a program name with args.
26059 set dummy $ac_prog; ac_word=$2
26060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26062 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
26063 echo $ECHO_N "(cached) $ECHO_C" >&6
26064 else
26065 case $COLLATEINDEX in
26066 [\\/]* | ?:[\\/]*)
26067 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
26070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26071 for as_dir in $DOCBOOKSTYLE/bin $PATH
26073 IFS=$as_save_IFS
26074 test -z "$as_dir" && as_dir=.
26075 for ac_exec_ext in '' $ac_executable_extensions; do
26076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26077 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
26078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26079 break 2
26081 done
26082 done
26083 IFS=$as_save_IFS
26086 esac
26088 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
26089 if test -n "$COLLATEINDEX"; then
26090 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
26091 echo "${ECHO_T}$COLLATEINDEX" >&6; }
26092 else
26093 { echo "$as_me:$LINENO: result: no" >&5
26094 echo "${ECHO_T}no" >&6; }
26098 test -n "$COLLATEINDEX" && break
26099 done
26101 else
26102 for ac_prog in collateindex.pl
26104 # Extract the first word of "$ac_prog", so it can be a program name with args.
26105 set dummy $ac_prog; ac_word=$2
26106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26108 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
26109 echo $ECHO_N "(cached) $ECHO_C" >&6
26110 else
26111 case $COLLATEINDEX in
26112 [\\/]* | ?:[\\/]*)
26113 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
26116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26117 for as_dir in $PATH
26119 IFS=$as_save_IFS
26120 test -z "$as_dir" && as_dir=.
26121 for ac_exec_ext in '' $ac_executable_extensions; do
26122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26123 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
26124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26125 break 2
26127 done
26128 done
26129 IFS=$as_save_IFS
26132 esac
26134 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
26135 if test -n "$COLLATEINDEX"; then
26136 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
26137 echo "${ECHO_T}$COLLATEINDEX" >&6; }
26138 else
26139 { echo "$as_me:$LINENO: result: no" >&5
26140 echo "${ECHO_T}no" >&6; }
26144 test -n "$COLLATEINDEX" && break
26145 done
26148 for ac_prog in sgmlspl
26150 # Extract the first word of "$ac_prog", so it can be a program name with args.
26151 set dummy $ac_prog; ac_word=$2
26152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26154 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
26155 echo $ECHO_N "(cached) $ECHO_C" >&6
26156 else
26157 if test -n "$SGMLSPL"; then
26158 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
26159 else
26160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26161 for as_dir in $PATH
26163 IFS=$as_save_IFS
26164 test -z "$as_dir" && as_dir=.
26165 for ac_exec_ext in '' $ac_executable_extensions; do
26166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26167 ac_cv_prog_SGMLSPL="$ac_prog"
26168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26169 break 2
26171 done
26172 done
26173 IFS=$as_save_IFS
26177 SGMLSPL=$ac_cv_prog_SGMLSPL
26178 if test -n "$SGMLSPL"; then
26179 { echo "$as_me:$LINENO: result: $SGMLSPL" >&5
26180 echo "${ECHO_T}$SGMLSPL" >&6; }
26181 else
26182 { echo "$as_me:$LINENO: result: no" >&5
26183 echo "${ECHO_T}no" >&6; }
26187 test -n "$SGMLSPL" && break
26188 done
26190 { echo "$as_me:$LINENO: checking for docbook2man" >&5
26191 echo $ECHO_N "checking for docbook2man... $ECHO_C" >&6; }
26192 if test "${ac_cv_path_DOCBOOK2MAN+set}" = set; then
26193 echo $ECHO_N "(cached) $ECHO_C" >&6
26194 else
26195 if test -z "$DOCBOOK2MAN"; then
26196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26197 for as_dir in $PATH
26199 IFS=$as_save_IFS
26200 test -z "$as_dir" && as_dir=.
26201 for ac_prog in docbook2x-man db2x_docbook2man docbook2man; do
26202 ac_path="$as_dir/$ac_prog"
26203 { test -f "$ac_path" && $as_test_x "$ac_path"; } || continue
26204 if "$ac_path" --version 2>/dev/null | $GREP docbook2x >/dev/null 2>&1; then
26205 ac_cv_path_DOCBOOK2MAN=$ac_path
26206 break
26208 done
26209 done
26210 IFS=$as_save_IFS
26212 else
26213 ac_cv_path_DOCBOOK2MAN=$DOCBOOK2MAN
26216 { echo "$as_me:$LINENO: result: $ac_cv_path_DOCBOOK2MAN" >&5
26217 echo "${ECHO_T}$ac_cv_path_DOCBOOK2MAN" >&6; }
26218 DOCBOOK2MAN=$ac_cv_path_DOCBOOK2MAN
26222 # Thread testing
26224 # We have to run the thread test near the end so we have all our symbols
26225 # defined. Cross compiling throws a warning.
26227 if test "$enable_thread_safety_force" = yes; then
26228 if test "$PORTNAME" != "win32"
26229 then
26230 { echo "$as_me:$LINENO: WARNING:
26231 *** Skipping thread test program. --enable-thread-safety-force was used.
26232 *** Run the program in src/test/thread on the your machine and add proper
26233 *** locking function calls to your applications to guarantee thread safety.
26234 " >&5
26235 echo "$as_me: WARNING:
26236 *** Skipping thread test program. --enable-thread-safety-force was used.
26237 *** Run the program in src/test/thread on the your machine and add proper
26238 *** locking function calls to your applications to guarantee thread safety.
26239 " >&2;}
26240 else
26241 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
26242 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
26244 elif test "$enable_thread_safety" = yes; then
26245 if test "$PORTNAME" != "win32"
26246 then
26247 { echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
26248 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6; }
26250 _CFLAGS="$CFLAGS"
26251 _LIBS="$LIBS"
26252 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
26253 LIBS="$LIBS $PTHREAD_LIBS"
26254 if test "$cross_compiling" = yes; then
26255 { echo "$as_me:$LINENO: result: maybe" >&5
26256 echo "${ECHO_T}maybe" >&6; }
26257 { echo "$as_me:$LINENO: WARNING:
26258 *** Skipping thread test program because of cross-compile build.
26259 *** Run the program in src/test/thread on the target machine.
26260 " >&5
26261 echo "$as_me: WARNING:
26262 *** Skipping thread test program because of cross-compile build.
26263 *** Run the program in src/test/thread on the target machine.
26264 " >&2;}
26265 else
26266 cat >conftest.$ac_ext <<_ACEOF
26267 /* confdefs.h. */
26268 _ACEOF
26269 cat confdefs.h >>conftest.$ac_ext
26270 cat >>conftest.$ac_ext <<_ACEOF
26271 /* end confdefs.h. */
26272 #include "$srcdir/src/test/thread/thread_test.c"
26273 _ACEOF
26274 rm -f conftest$ac_exeext
26275 if { (ac_try="$ac_link"
26276 case "(($ac_try" in
26277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26278 *) ac_try_echo=$ac_try;;
26279 esac
26280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26281 (eval "$ac_link") 2>&5
26282 ac_status=$?
26283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26285 { (case "(($ac_try" in
26286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26287 *) ac_try_echo=$ac_try;;
26288 esac
26289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26290 (eval "$ac_try") 2>&5
26291 ac_status=$?
26292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26293 (exit $ac_status); }; }; then
26294 { echo "$as_me:$LINENO: result: yes" >&5
26295 echo "${ECHO_T}yes" >&6; }
26296 else
26297 echo "$as_me: program exited with status $ac_status" >&5
26298 echo "$as_me: failed program was:" >&5
26299 sed 's/^/| /' conftest.$ac_ext >&5
26301 ( exit $ac_status )
26302 { echo "$as_me:$LINENO: result: no" >&5
26303 echo "${ECHO_T}no" >&6; }
26304 { { echo "$as_me:$LINENO: error: thread test program failed
26305 This platform is not thread-safe. Check the file 'config.log' for the
26306 exact reason.
26308 You can use the configure option --enable-thread-safety-force to force
26309 threads to be enabled. But you must then run the program in
26310 src/test/thread and add locking function calls to your applications to
26311 guarantee thread safety." >&5
26312 echo "$as_me: error: thread test program failed
26313 This platform is not thread-safe. Check the file 'config.log' for the
26314 exact reason.
26316 You can use the configure option --enable-thread-safety-force to force
26317 threads to be enabled. But you must then run the program in
26318 src/test/thread and add locking function calls to your applications to
26319 guarantee thread safety." >&2;}
26320 { (exit 1); exit 1; }; }
26322 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26326 CFLAGS="$_CFLAGS"
26327 LIBS="$_LIBS"
26328 else
26329 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
26330 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
26334 # If compiler will take -Wl,--as-needed then add that to LDFLAGS.
26335 # This is much easier than trying to filter LIBS to the minimum for each
26336 # executable. (Note that shared library links won't use this switch, though.)
26337 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
26338 # libreadline; therefore we postpone testing it until we know what library
26339 # dependencies readline has. The test code will try to link with $LIBS.
26340 if test "$with_readline" = yes; then
26341 link_test_func=readline
26342 else
26343 link_test_func=exit
26345 if test "$PORTNAME" != "darwin"; then
26346 { echo "$as_me:$LINENO: checking if $CC supports -Wl,--as-needed" >&5
26347 echo $ECHO_N "checking if $CC supports -Wl,--as-needed... $ECHO_C" >&6; }
26348 pgac_save_LDFLAGS=$LDFLAGS
26349 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
26350 if test "$cross_compiling" = yes; then
26351 LDFLAGS="$pgac_save_LDFLAGS"
26352 { echo "$as_me:$LINENO: result: assuming no" >&5
26353 echo "${ECHO_T}assuming no" >&6; }
26354 else
26355 cat >conftest.$ac_ext <<_ACEOF
26356 /* confdefs.h. */
26357 _ACEOF
26358 cat confdefs.h >>conftest.$ac_ext
26359 cat >>conftest.$ac_ext <<_ACEOF
26360 /* end confdefs.h. */
26361 extern void $link_test_func (); void (*fptr) () = $link_test_func;
26363 main ()
26367 return 0;
26369 _ACEOF
26370 rm -f conftest$ac_exeext
26371 if { (ac_try="$ac_link"
26372 case "(($ac_try" in
26373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26374 *) ac_try_echo=$ac_try;;
26375 esac
26376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26377 (eval "$ac_link") 2>&5
26378 ac_status=$?
26379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26380 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26381 { (case "(($ac_try" in
26382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26383 *) ac_try_echo=$ac_try;;
26384 esac
26385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26386 (eval "$ac_try") 2>&5
26387 ac_status=$?
26388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26389 (exit $ac_status); }; }; then
26390 { echo "$as_me:$LINENO: result: yes" >&5
26391 echo "${ECHO_T}yes" >&6; }
26392 else
26393 echo "$as_me: program exited with status $ac_status" >&5
26394 echo "$as_me: failed program was:" >&5
26395 sed 's/^/| /' conftest.$ac_ext >&5
26397 ( exit $ac_status )
26398 LDFLAGS="$pgac_save_LDFLAGS"
26399 { echo "$as_me:$LINENO: result: no" >&5
26400 echo "${ECHO_T}no" >&6; }
26402 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26407 else
26408 # On Darwin it's spelled -Wl,-dead_strip_dylibs, but don't try that elsewhere
26409 { echo "$as_me:$LINENO: checking if $CC supports -Wl,-dead_strip_dylibs" >&5
26410 echo $ECHO_N "checking if $CC supports -Wl,-dead_strip_dylibs... $ECHO_C" >&6; }
26411 pgac_save_LDFLAGS=$LDFLAGS
26412 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
26413 if test "$cross_compiling" = yes; then
26414 LDFLAGS="$pgac_save_LDFLAGS"
26415 { echo "$as_me:$LINENO: result: assuming no" >&5
26416 echo "${ECHO_T}assuming no" >&6; }
26417 else
26418 cat >conftest.$ac_ext <<_ACEOF
26419 /* confdefs.h. */
26420 _ACEOF
26421 cat confdefs.h >>conftest.$ac_ext
26422 cat >>conftest.$ac_ext <<_ACEOF
26423 /* end confdefs.h. */
26424 extern void $link_test_func (); void (*fptr) () = $link_test_func;
26426 main ()
26430 return 0;
26432 _ACEOF
26433 rm -f conftest$ac_exeext
26434 if { (ac_try="$ac_link"
26435 case "(($ac_try" in
26436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26437 *) ac_try_echo=$ac_try;;
26438 esac
26439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26440 (eval "$ac_link") 2>&5
26441 ac_status=$?
26442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26443 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26444 { (case "(($ac_try" in
26445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26446 *) ac_try_echo=$ac_try;;
26447 esac
26448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26449 (eval "$ac_try") 2>&5
26450 ac_status=$?
26451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26452 (exit $ac_status); }; }; then
26453 { echo "$as_me:$LINENO: result: yes" >&5
26454 echo "${ECHO_T}yes" >&6; }
26455 else
26456 echo "$as_me: program exited with status $ac_status" >&5
26457 echo "$as_me: failed program was:" >&5
26458 sed 's/^/| /' conftest.$ac_ext >&5
26460 ( exit $ac_status )
26461 LDFLAGS="$pgac_save_LDFLAGS"
26462 { echo "$as_me:$LINENO: result: no" >&5
26463 echo "${ECHO_T}no" >&6; }
26465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26473 # Begin output steps
26475 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
26476 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
26477 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
26478 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
26479 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
26480 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
26482 # prepare build tree if outside source tree
26483 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
26484 # Note 2: /bin/pwd might be better than shell's built-in at getting
26485 # a symlink-free name.
26486 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
26487 vpath_build=no
26488 else
26489 vpath_build=yes
26490 if test "$no_create" != yes; then
26491 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
26492 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
26493 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
26494 || { { echo "$as_me:$LINENO: error: failed" >&5
26495 echo "$as_me: error: failed" >&2;}
26496 { (exit 1); exit 1; }; }
26497 { echo "$as_me:$LINENO: result: done" >&5
26498 echo "${ECHO_T}done" >&6; }
26504 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
26507 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}"
26510 if test "$PORTNAME" = "win32"; then
26511 ac_config_commands="$ac_config_commands check_win32_symlinks"
26515 ac_config_headers="$ac_config_headers src/include/pg_config.h"
26518 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
26521 cat >confcache <<\_ACEOF
26522 # This file is a shell script that caches the results of configure
26523 # tests run on this system so they can be shared between configure
26524 # scripts and configure runs, see configure's option --config-cache.
26525 # It is not useful on other systems. If it contains results you don't
26526 # want to keep, you may remove or edit it.
26528 # config.status only pays attention to the cache file if you give it
26529 # the --recheck option to rerun configure.
26531 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26532 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26533 # following values.
26535 _ACEOF
26537 # The following way of writing the cache mishandles newlines in values,
26538 # but we know of no workaround that is simple, portable, and efficient.
26539 # So, we kill variables containing newlines.
26540 # Ultrix sh set writes to stderr and can't be redirected directly,
26541 # and sets the high bit in the cache file unless we assign to the vars.
26543 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26544 eval ac_val=\$$ac_var
26545 case $ac_val in #(
26546 *${as_nl}*)
26547 case $ac_var in #(
26548 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26549 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26550 esac
26551 case $ac_var in #(
26552 _ | IFS | as_nl) ;; #(
26553 *) $as_unset $ac_var ;;
26554 esac ;;
26555 esac
26556 done
26558 (set) 2>&1 |
26559 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26560 *${as_nl}ac_space=\ *)
26561 # `set' does not quote correctly, so add quotes (double-quote
26562 # substitution turns \\\\ into \\, and sed turns \\ into \).
26563 sed -n \
26564 "s/'/'\\\\''/g;
26565 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26566 ;; #(
26568 # `set' quotes correctly as required by POSIX, so do not add quotes.
26569 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26571 esac |
26572 sort
26574 sed '
26575 /^ac_cv_env_/b end
26576 t clear
26577 :clear
26578 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26579 t end
26580 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26581 :end' >>confcache
26582 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26583 if test -w "$cache_file"; then
26584 test "x$cache_file" != "x/dev/null" &&
26585 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26586 echo "$as_me: updating cache $cache_file" >&6;}
26587 cat confcache >$cache_file
26588 else
26589 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26590 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26593 rm -f confcache
26595 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26596 # Let make expand exec_prefix.
26597 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26599 DEFS=-DHAVE_CONFIG_H
26601 ac_libobjs=
26602 ac_ltlibobjs=
26603 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26604 # 1. Remove the extension, and $U if already installed.
26605 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26606 ac_i=`echo "$ac_i" | sed "$ac_script"`
26607 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26608 # will be set to the directory where LIBOBJS objects are built.
26609 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26610 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26611 done
26612 LIBOBJS=$ac_libobjs
26614 LTLIBOBJS=$ac_ltlibobjs
26618 : ${CONFIG_STATUS=./config.status}
26619 ac_clean_files_save=$ac_clean_files
26620 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26621 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26622 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26623 cat >$CONFIG_STATUS <<_ACEOF
26624 #! $SHELL
26625 # Generated by $as_me.
26626 # Run this file to recreate the current configuration.
26627 # Compiler output produced by configure, useful for debugging
26628 # configure, is in config.log if it exists.
26630 debug=false
26631 ac_cs_recheck=false
26632 ac_cs_silent=false
26633 SHELL=\${CONFIG_SHELL-$SHELL}
26634 _ACEOF
26636 cat >>$CONFIG_STATUS <<\_ACEOF
26637 ## --------------------- ##
26638 ## M4sh Initialization. ##
26639 ## --------------------- ##
26641 # Be more Bourne compatible
26642 DUALCASE=1; export DUALCASE # for MKS sh
26643 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26644 emulate sh
26645 NULLCMD=:
26646 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26647 # is contrary to our usage. Disable this feature.
26648 alias -g '${1+"$@"}'='"$@"'
26649 setopt NO_GLOB_SUBST
26650 else
26651 case `(set -o) 2>/dev/null` in
26652 *posix*) set -o posix ;;
26653 esac
26660 # PATH needs CR
26661 # Avoid depending upon Character Ranges.
26662 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26663 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26664 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26665 as_cr_digits='0123456789'
26666 as_cr_alnum=$as_cr_Letters$as_cr_digits
26668 # The user is always right.
26669 if test "${PATH_SEPARATOR+set}" != set; then
26670 echo "#! /bin/sh" >conf$$.sh
26671 echo "exit 0" >>conf$$.sh
26672 chmod +x conf$$.sh
26673 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26674 PATH_SEPARATOR=';'
26675 else
26676 PATH_SEPARATOR=:
26678 rm -f conf$$.sh
26681 # Support unset when possible.
26682 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26683 as_unset=unset
26684 else
26685 as_unset=false
26689 # IFS
26690 # We need space, tab and new line, in precisely that order. Quoting is
26691 # there to prevent editors from complaining about space-tab.
26692 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26693 # splitting by setting IFS to empty value.)
26694 as_nl='
26696 IFS=" "" $as_nl"
26698 # Find who we are. Look in the path if we contain no directory separator.
26699 case $0 in
26700 *[\\/]* ) as_myself=$0 ;;
26701 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26702 for as_dir in $PATH
26704 IFS=$as_save_IFS
26705 test -z "$as_dir" && as_dir=.
26706 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26707 done
26708 IFS=$as_save_IFS
26711 esac
26712 # We did not find ourselves, most probably we were run as `sh COMMAND'
26713 # in which case we are not to be found in the path.
26714 if test "x$as_myself" = x; then
26715 as_myself=$0
26717 if test ! -f "$as_myself"; then
26718 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26719 { (exit 1); exit 1; }
26722 # Work around bugs in pre-3.0 UWIN ksh.
26723 for as_var in ENV MAIL MAILPATH
26724 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26725 done
26726 PS1='$ '
26727 PS2='> '
26728 PS4='+ '
26730 # NLS nuisances.
26731 for as_var in \
26732 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26733 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26734 LC_TELEPHONE LC_TIME
26736 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26737 eval $as_var=C; export $as_var
26738 else
26739 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26741 done
26743 # Required to use basename.
26744 if expr a : '\(a\)' >/dev/null 2>&1 &&
26745 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26746 as_expr=expr
26747 else
26748 as_expr=false
26751 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26752 as_basename=basename
26753 else
26754 as_basename=false
26758 # Name of the executable.
26759 as_me=`$as_basename -- "$0" ||
26760 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26761 X"$0" : 'X\(//\)$' \| \
26762 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26763 echo X/"$0" |
26764 sed '/^.*\/\([^/][^/]*\)\/*$/{
26765 s//\1/
26768 /^X\/\(\/\/\)$/{
26769 s//\1/
26772 /^X\/\(\/\).*/{
26773 s//\1/
26776 s/.*/./; q'`
26778 # CDPATH.
26779 $as_unset CDPATH
26783 as_lineno_1=$LINENO
26784 as_lineno_2=$LINENO
26785 test "x$as_lineno_1" != "x$as_lineno_2" &&
26786 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26788 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26789 # uniformly replaced by the line number. The first 'sed' inserts a
26790 # line-number line after each line using $LINENO; the second 'sed'
26791 # does the real work. The second script uses 'N' to pair each
26792 # line-number line with the line containing $LINENO, and appends
26793 # trailing '-' during substitution so that $LINENO is not a special
26794 # case at line end.
26795 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26796 # scripts with optimization help from Paolo Bonzini. Blame Lee
26797 # E. McMahon (1931-1989) for sed's syntax. :-)
26798 sed -n '
26800 /[$]LINENO/=
26801 ' <$as_myself |
26802 sed '
26803 s/[$]LINENO.*/&-/
26804 t lineno
26806 :lineno
26808 :loop
26809 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26810 t loop
26811 s/-\n.*//
26812 ' >$as_me.lineno &&
26813 chmod +x "$as_me.lineno" ||
26814 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26815 { (exit 1); exit 1; }; }
26817 # Don't try to exec as it changes $[0], causing all sort of problems
26818 # (the dirname of $[0] is not the place where we might find the
26819 # original and so on. Autoconf is especially sensitive to this).
26820 . "./$as_me.lineno"
26821 # Exit status is that of the last command.
26822 exit
26826 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26827 as_dirname=dirname
26828 else
26829 as_dirname=false
26832 ECHO_C= ECHO_N= ECHO_T=
26833 case `echo -n x` in
26834 -n*)
26835 case `echo 'x\c'` in
26836 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26837 *) ECHO_C='\c';;
26838 esac;;
26840 ECHO_N='-n';;
26841 esac
26843 if expr a : '\(a\)' >/dev/null 2>&1 &&
26844 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26845 as_expr=expr
26846 else
26847 as_expr=false
26850 rm -f conf$$ conf$$.exe conf$$.file
26851 if test -d conf$$.dir; then
26852 rm -f conf$$.dir/conf$$.file
26853 else
26854 rm -f conf$$.dir
26855 mkdir conf$$.dir
26857 echo >conf$$.file
26858 if ln -s conf$$.file conf$$ 2>/dev/null; then
26859 as_ln_s='ln -s'
26860 # ... but there are two gotchas:
26861 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26862 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26863 # In both cases, we have to default to `cp -p'.
26864 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26865 as_ln_s='cp -p'
26866 elif ln conf$$.file conf$$ 2>/dev/null; then
26867 as_ln_s=ln
26868 else
26869 as_ln_s='cp -p'
26871 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26872 rmdir conf$$.dir 2>/dev/null
26874 if mkdir -p . 2>/dev/null; then
26875 as_mkdir_p=:
26876 else
26877 test -d ./-p && rmdir ./-p
26878 as_mkdir_p=false
26881 if test -x / >/dev/null 2>&1; then
26882 as_test_x='test -x'
26883 else
26884 if ls -dL / >/dev/null 2>&1; then
26885 as_ls_L_option=L
26886 else
26887 as_ls_L_option=
26889 as_test_x='
26890 eval sh -c '\''
26891 if test -d "$1"; then
26892 test -d "$1/.";
26893 else
26894 case $1 in
26895 -*)set "./$1";;
26896 esac;
26897 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26898 ???[sx]*):;;*)false;;esac;fi
26899 '\'' sh
26902 as_executable_p=$as_test_x
26904 # Sed expression to map a string onto a valid CPP name.
26905 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26907 # Sed expression to map a string onto a valid variable name.
26908 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26911 exec 6>&1
26913 # Save the log message, to keep $[0] and so on meaningful, and to
26914 # report actual input values of CONFIG_FILES etc. instead of their
26915 # values after options handling.
26916 ac_log="
26917 This file was extended by PostgreSQL $as_me 8.4devel, which was
26918 generated by GNU Autoconf 2.61. Invocation command line was
26920 CONFIG_FILES = $CONFIG_FILES
26921 CONFIG_HEADERS = $CONFIG_HEADERS
26922 CONFIG_LINKS = $CONFIG_LINKS
26923 CONFIG_COMMANDS = $CONFIG_COMMANDS
26924 $ $0 $@
26926 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26929 _ACEOF
26931 cat >>$CONFIG_STATUS <<_ACEOF
26932 # Files that config.status was made for.
26933 config_files="$ac_config_files"
26934 config_headers="$ac_config_headers"
26935 config_links="$ac_config_links"
26936 config_commands="$ac_config_commands"
26938 _ACEOF
26940 cat >>$CONFIG_STATUS <<\_ACEOF
26941 ac_cs_usage="\
26942 \`$as_me' instantiates files from templates according to the
26943 current configuration.
26945 Usage: $0 [OPTIONS] [FILE]...
26947 -h, --help print this help, then exit
26948 -V, --version print version number and configuration settings, then exit
26949 -q, --quiet do not print progress messages
26950 -d, --debug don't remove temporary files
26951 --recheck update $as_me by reconfiguring in the same conditions
26952 --file=FILE[:TEMPLATE]
26953 instantiate the configuration file FILE
26954 --header=FILE[:TEMPLATE]
26955 instantiate the configuration header FILE
26957 Configuration files:
26958 $config_files
26960 Configuration headers:
26961 $config_headers
26963 Configuration links:
26964 $config_links
26966 Configuration commands:
26967 $config_commands
26969 Report bugs to <bug-autoconf@gnu.org>."
26971 _ACEOF
26972 cat >>$CONFIG_STATUS <<_ACEOF
26973 ac_cs_version="\\
26974 PostgreSQL config.status 8.4devel
26975 configured by $0, generated by GNU Autoconf 2.61,
26976 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26978 Copyright (C) 2006 Free Software Foundation, Inc.
26979 This config.status script is free software; the Free Software Foundation
26980 gives unlimited permission to copy, distribute and modify it."
26982 ac_pwd='$ac_pwd'
26983 srcdir='$srcdir'
26984 _ACEOF
26986 cat >>$CONFIG_STATUS <<\_ACEOF
26987 # If no file are specified by the user, then we need to provide default
26988 # value. By we need to know if files were specified by the user.
26989 ac_need_defaults=:
26990 while test $# != 0
26992 case $1 in
26993 --*=*)
26994 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26995 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26996 ac_shift=:
26999 ac_option=$1
27000 ac_optarg=$2
27001 ac_shift=shift
27003 esac
27005 case $ac_option in
27006 # Handling of the options.
27007 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27008 ac_cs_recheck=: ;;
27009 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27010 echo "$ac_cs_version"; exit ;;
27011 --debug | --debu | --deb | --de | --d | -d )
27012 debug=: ;;
27013 --file | --fil | --fi | --f )
27014 $ac_shift
27015 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27016 ac_need_defaults=false;;
27017 --header | --heade | --head | --hea )
27018 $ac_shift
27019 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27020 ac_need_defaults=false;;
27021 --he | --h)
27022 # Conflict between --help and --header
27023 { echo "$as_me: error: ambiguous option: $1
27024 Try \`$0 --help' for more information." >&2
27025 { (exit 1); exit 1; }; };;
27026 --help | --hel | -h )
27027 echo "$ac_cs_usage"; exit ;;
27028 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27029 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27030 ac_cs_silent=: ;;
27032 # This is an error.
27033 -*) { echo "$as_me: error: unrecognized option: $1
27034 Try \`$0 --help' for more information." >&2
27035 { (exit 1); exit 1; }; } ;;
27037 *) ac_config_targets="$ac_config_targets $1"
27038 ac_need_defaults=false ;;
27040 esac
27041 shift
27042 done
27044 ac_configure_extra_args=
27046 if $ac_cs_silent; then
27047 exec 6>/dev/null
27048 ac_configure_extra_args="$ac_configure_extra_args --silent"
27051 _ACEOF
27052 cat >>$CONFIG_STATUS <<_ACEOF
27053 if \$ac_cs_recheck; then
27054 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27055 CONFIG_SHELL=$SHELL
27056 export CONFIG_SHELL
27057 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27060 _ACEOF
27061 cat >>$CONFIG_STATUS <<\_ACEOF
27062 exec 5>>config.log
27064 echo
27065 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27066 ## Running $as_me. ##
27067 _ASBOX
27068 echo "$ac_log"
27069 } >&5
27071 _ACEOF
27072 cat >>$CONFIG_STATUS <<_ACEOF
27073 _ACEOF
27075 cat >>$CONFIG_STATUS <<\_ACEOF
27077 # Handling of arguments.
27078 for ac_config_target in $ac_config_targets
27080 case $ac_config_target in
27081 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
27082 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
27083 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
27084 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
27085 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
27086 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
27087 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
27088 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
27089 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
27090 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
27091 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
27092 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
27094 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27095 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27096 { (exit 1); exit 1; }; };;
27097 esac
27098 done
27101 # If the user did not use the arguments to specify the items to instantiate,
27102 # then the envvar interface is used. Set only those that are not.
27103 # We use the long form for the default assignment because of an extremely
27104 # bizarre bug on SunOS 4.1.3.
27105 if $ac_need_defaults; then
27106 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27107 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27108 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
27109 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27112 # Have a temporary directory for convenience. Make it in the build tree
27113 # simply because there is no reason against having it here, and in addition,
27114 # creating and moving files from /tmp can sometimes cause problems.
27115 # Hook for its removal unless debugging.
27116 # Note that there is a small window in which the directory will not be cleaned:
27117 # after its creation but before its name has been assigned to `$tmp'.
27118 $debug ||
27120 tmp=
27121 trap 'exit_status=$?
27122 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27124 trap '{ (exit 1); exit 1; }' 1 2 13 15
27126 # Create a (secure) tmp directory for tmp files.
27129 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27130 test -n "$tmp" && test -d "$tmp"
27131 } ||
27133 tmp=./conf$$-$RANDOM
27134 (umask 077 && mkdir "$tmp")
27135 } ||
27137 echo "$me: cannot create a temporary directory in ." >&2
27138 { (exit 1); exit 1; }
27142 # Set up the sed scripts for CONFIG_FILES section.
27145 # No need to generate the scripts if there are no CONFIG_FILES.
27146 # This happens for instance when ./config.status config.h
27147 if test -n "$CONFIG_FILES"; then
27149 _ACEOF
27153 ac_delim='%!_!# '
27154 for ac_last_try in false false false false false :; do
27155 cat >conf$$subs.sed <<_ACEOF
27156 SHELL!$SHELL$ac_delim
27157 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27158 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27159 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27160 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27161 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27162 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27163 exec_prefix!$exec_prefix$ac_delim
27164 prefix!$prefix$ac_delim
27165 program_transform_name!$program_transform_name$ac_delim
27166 bindir!$bindir$ac_delim
27167 sbindir!$sbindir$ac_delim
27168 libexecdir!$libexecdir$ac_delim
27169 datarootdir!$datarootdir$ac_delim
27170 datadir!$datadir$ac_delim
27171 sysconfdir!$sysconfdir$ac_delim
27172 sharedstatedir!$sharedstatedir$ac_delim
27173 localstatedir!$localstatedir$ac_delim
27174 includedir!$includedir$ac_delim
27175 oldincludedir!$oldincludedir$ac_delim
27176 docdir!$docdir$ac_delim
27177 infodir!$infodir$ac_delim
27178 htmldir!$htmldir$ac_delim
27179 dvidir!$dvidir$ac_delim
27180 pdfdir!$pdfdir$ac_delim
27181 psdir!$psdir$ac_delim
27182 libdir!$libdir$ac_delim
27183 localedir!$localedir$ac_delim
27184 mandir!$mandir$ac_delim
27185 DEFS!$DEFS$ac_delim
27186 ECHO_C!$ECHO_C$ac_delim
27187 ECHO_N!$ECHO_N$ac_delim
27188 ECHO_T!$ECHO_T$ac_delim
27189 LIBS!$LIBS$ac_delim
27190 build_alias!$build_alias$ac_delim
27191 host_alias!$host_alias$ac_delim
27192 target_alias!$target_alias$ac_delim
27193 configure_args!$configure_args$ac_delim
27194 PG_MAJORVERSION!$PG_MAJORVERSION$ac_delim
27195 build!$build$ac_delim
27196 build_cpu!$build_cpu$ac_delim
27197 build_vendor!$build_vendor$ac_delim
27198 build_os!$build_os$ac_delim
27199 host!$host$ac_delim
27200 host_cpu!$host_cpu$ac_delim
27201 host_vendor!$host_vendor$ac_delim
27202 host_os!$host_os$ac_delim
27203 PORTNAME!$PORTNAME$ac_delim
27204 enable_nls!$enable_nls$ac_delim
27205 WANTED_LANGUAGES!$WANTED_LANGUAGES$ac_delim
27206 default_port!$default_port$ac_delim
27207 enable_shared!$enable_shared$ac_delim
27208 enable_rpath!$enable_rpath$ac_delim
27209 enable_debug!$enable_debug$ac_delim
27210 enable_profiling!$enable_profiling$ac_delim
27211 GCOV!$GCOV$ac_delim
27212 LCOV!$LCOV$ac_delim
27213 GENHTML!$GENHTML$ac_delim
27214 enable_coverage!$enable_coverage$ac_delim
27215 DTRACE!$DTRACE$ac_delim
27216 DTRACEFLAGS!$DTRACEFLAGS$ac_delim
27217 enable_dtrace!$enable_dtrace$ac_delim
27218 CC!$CC$ac_delim
27219 CFLAGS!$CFLAGS$ac_delim
27220 LDFLAGS!$LDFLAGS$ac_delim
27221 CPPFLAGS!$CPPFLAGS$ac_delim
27222 ac_ct_CC!$ac_ct_CC$ac_delim
27223 EXEEXT!$EXEEXT$ac_delim
27224 OBJEXT!$OBJEXT$ac_delim
27225 SUN_STUDIO_CC!$SUN_STUDIO_CC$ac_delim
27226 CPP!$CPP$ac_delim
27227 GCC!$GCC$ac_delim
27228 TAS!$TAS$ac_delim
27229 autodepend!$autodepend$ac_delim
27230 INCLUDES!$INCLUDES$ac_delim
27231 enable_thread_safety!$enable_thread_safety$ac_delim
27232 with_tcl!$with_tcl$ac_delim
27233 with_perl!$with_perl$ac_delim
27234 with_python!$with_python$ac_delim
27235 with_gssapi!$with_gssapi$ac_delim
27236 with_krb5!$with_krb5$ac_delim
27237 krb_srvtab!$krb_srvtab$ac_delim
27238 with_pam!$with_pam$ac_delim
27239 with_ldap!$with_ldap$ac_delim
27240 with_bonjour!$with_bonjour$ac_delim
27241 with_openssl!$with_openssl$ac_delim
27242 with_ossp_uuid!$with_ossp_uuid$ac_delim
27243 XML2_CONFIG!$XML2_CONFIG$ac_delim
27244 with_libxml!$with_libxml$ac_delim
27245 with_libxslt!$with_libxslt$ac_delim
27246 with_system_tzdata!$with_system_tzdata$ac_delim
27247 with_zlib!$with_zlib$ac_delim
27248 GREP!$GREP$ac_delim
27249 EGREP!$EGREP$ac_delim
27250 ELF_SYS!$ELF_SYS$ac_delim
27251 LDFLAGS_SL!$LDFLAGS_SL$ac_delim
27252 LD!$LD$ac_delim
27253 _ACEOF
27255 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27256 break
27257 elif $ac_last_try; then
27258 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27259 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27260 { (exit 1); exit 1; }; }
27261 else
27262 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27264 done
27266 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27267 if test -n "$ac_eof"; then
27268 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27269 ac_eof=`expr $ac_eof + 1`
27272 cat >>$CONFIG_STATUS <<_ACEOF
27273 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27274 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27275 _ACEOF
27276 sed '
27277 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27278 s/^/s,@/; s/!/@,|#_!!_#|/
27281 s/'"$ac_delim"'$/,g/; t
27282 s/$/\\/; p
27283 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27284 ' >>$CONFIG_STATUS <conf$$subs.sed
27285 rm -f conf$$subs.sed
27286 cat >>$CONFIG_STATUS <<_ACEOF
27287 CEOF$ac_eof
27288 _ACEOF
27291 ac_delim='%!_!# '
27292 for ac_last_try in false false false false false :; do
27293 cat >conf$$subs.sed <<_ACEOF
27294 with_gnu_ld!$with_gnu_ld$ac_delim
27295 ld_R_works!$ld_R_works$ac_delim
27296 RANLIB!$RANLIB$ac_delim
27297 STRIP!$STRIP$ac_delim
27298 STRIP_STATIC_LIB!$STRIP_STATIC_LIB$ac_delim
27299 STRIP_SHARED_LIB!$STRIP_SHARED_LIB$ac_delim
27300 AR!$AR$ac_delim
27301 DLLTOOL!$DLLTOOL$ac_delim
27302 DLLWRAP!$DLLWRAP$ac_delim
27303 WINDRES!$WINDRES$ac_delim
27304 TAR!$TAR$ac_delim
27305 LN_S!$LN_S$ac_delim
27306 AWK!$AWK$ac_delim
27307 BISON!$BISON$ac_delim
27308 BISONFLAGS!$BISONFLAGS$ac_delim
27309 FLEX!$FLEX$ac_delim
27310 FLEXFLAGS!$FLEXFLAGS$ac_delim
27311 PERL!$PERL$ac_delim
27312 perl_archlibexp!$perl_archlibexp$ac_delim
27313 perl_privlibexp!$perl_privlibexp$ac_delim
27314 perl_useshrplib!$perl_useshrplib$ac_delim
27315 perl_embed_ldflags!$perl_embed_ldflags$ac_delim
27316 PYTHON!$PYTHON$ac_delim
27317 python_version!$python_version$ac_delim
27318 python_configdir!$python_configdir$ac_delim
27319 python_includespec!$python_includespec$ac_delim
27320 python_libdir!$python_libdir$ac_delim
27321 python_libspec!$python_libspec$ac_delim
27322 python_additional_libs!$python_additional_libs$ac_delim
27323 OSSP_UUID_LIBS!$OSSP_UUID_LIBS$ac_delim
27324 HAVE_IPV6!$HAVE_IPV6$ac_delim
27325 LIBOBJS!$LIBOBJS$ac_delim
27326 acx_pthread_config!$acx_pthread_config$ac_delim
27327 PTHREAD_CC!$PTHREAD_CC$ac_delim
27328 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
27329 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
27330 LDAP_LIBS_FE!$LDAP_LIBS_FE$ac_delim
27331 LDAP_LIBS_BE!$LDAP_LIBS_BE$ac_delim
27332 HAVE_POSIX_SIGNALS!$HAVE_POSIX_SIGNALS$ac_delim
27333 MSGFMT!$MSGFMT$ac_delim
27334 MSGMERGE!$MSGMERGE$ac_delim
27335 XGETTEXT!$XGETTEXT$ac_delim
27336 TCLSH!$TCLSH$ac_delim
27337 TCL_CONFIG_SH!$TCL_CONFIG_SH$ac_delim
27338 TCL_INCLUDE_SPEC!$TCL_INCLUDE_SPEC$ac_delim
27339 TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim
27340 TCL_LIBS!$TCL_LIBS$ac_delim
27341 TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim
27342 TCL_SHARED_BUILD!$TCL_SHARED_BUILD$ac_delim
27343 TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim
27344 NSGMLS!$NSGMLS$ac_delim
27345 JADE!$JADE$ac_delim
27346 have_docbook!$have_docbook$ac_delim
27347 DOCBOOKSTYLE!$DOCBOOKSTYLE$ac_delim
27348 COLLATEINDEX!$COLLATEINDEX$ac_delim
27349 SGMLSPL!$SGMLSPL$ac_delim
27350 DOCBOOK2MAN!$DOCBOOK2MAN$ac_delim
27351 vpath_build!$vpath_build$ac_delim
27352 LTLIBOBJS!$LTLIBOBJS$ac_delim
27353 _ACEOF
27355 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 59; then
27356 break
27357 elif $ac_last_try; then
27358 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27359 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27360 { (exit 1); exit 1; }; }
27361 else
27362 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27364 done
27366 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27367 if test -n "$ac_eof"; then
27368 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27369 ac_eof=`expr $ac_eof + 1`
27372 cat >>$CONFIG_STATUS <<_ACEOF
27373 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27374 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27375 _ACEOF
27376 sed '
27377 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27378 s/^/s,@/; s/!/@,|#_!!_#|/
27381 s/'"$ac_delim"'$/,g/; t
27382 s/$/\\/; p
27383 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27384 ' >>$CONFIG_STATUS <conf$$subs.sed
27385 rm -f conf$$subs.sed
27386 cat >>$CONFIG_STATUS <<_ACEOF
27387 :end
27388 s/|#_!!_#|//g
27389 CEOF$ac_eof
27390 _ACEOF
27393 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27394 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27395 # trailing colons and then remove the whole line if VPATH becomes empty
27396 # (actually we leave an empty line to preserve line numbers).
27397 if test "x$srcdir" = x.; then
27398 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27399 s/:*\$(srcdir):*/:/
27400 s/:*\${srcdir}:*/:/
27401 s/:*@srcdir@:*/:/
27402 s/^\([^=]*=[ ]*\):*/\1/
27403 s/:*$//
27404 s/^[^=]*=[ ]*$//
27408 cat >>$CONFIG_STATUS <<\_ACEOF
27409 fi # test -n "$CONFIG_FILES"
27412 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS
27414 case $ac_tag in
27415 :[FHLC]) ac_mode=$ac_tag; continue;;
27416 esac
27417 case $ac_mode$ac_tag in
27418 :[FHL]*:*);;
27419 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27420 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27421 { (exit 1); exit 1; }; };;
27422 :[FH]-) ac_tag=-:-;;
27423 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27424 esac
27425 ac_save_IFS=$IFS
27426 IFS=:
27427 set x $ac_tag
27428 IFS=$ac_save_IFS
27429 shift
27430 ac_file=$1
27431 shift
27433 case $ac_mode in
27434 :L) ac_source=$1;;
27435 :[FH])
27436 ac_file_inputs=
27437 for ac_f
27439 case $ac_f in
27440 -) ac_f="$tmp/stdin";;
27441 *) # Look for the file first in the build tree, then in the source tree
27442 # (if the path is not absolute). The absolute path cannot be DOS-style,
27443 # because $ac_f cannot contain `:'.
27444 test -f "$ac_f" ||
27445 case $ac_f in
27446 [\\/$]*) false;;
27447 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27448 esac ||
27449 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27450 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27451 { (exit 1); exit 1; }; };;
27452 esac
27453 ac_file_inputs="$ac_file_inputs $ac_f"
27454 done
27456 # Let's still pretend it is `configure' which instantiates (i.e., don't
27457 # use $as_me), people would be surprised to read:
27458 # /* config.h. Generated by config.status. */
27459 configure_input="Generated from "`IFS=:
27460 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27461 if test x"$ac_file" != x-; then
27462 configure_input="$ac_file. $configure_input"
27463 { echo "$as_me:$LINENO: creating $ac_file" >&5
27464 echo "$as_me: creating $ac_file" >&6;}
27467 case $ac_tag in
27468 *:-:* | *:-) cat >"$tmp/stdin";;
27469 esac
27471 esac
27473 ac_dir=`$as_dirname -- "$ac_file" ||
27474 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27475 X"$ac_file" : 'X\(//\)[^/]' \| \
27476 X"$ac_file" : 'X\(//\)$' \| \
27477 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27478 echo X"$ac_file" |
27479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27480 s//\1/
27483 /^X\(\/\/\)[^/].*/{
27484 s//\1/
27487 /^X\(\/\/\)$/{
27488 s//\1/
27491 /^X\(\/\).*/{
27492 s//\1/
27495 s/.*/./; q'`
27496 { as_dir="$ac_dir"
27497 case $as_dir in #(
27498 -*) as_dir=./$as_dir;;
27499 esac
27500 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27501 as_dirs=
27502 while :; do
27503 case $as_dir in #(
27504 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27505 *) as_qdir=$as_dir;;
27506 esac
27507 as_dirs="'$as_qdir' $as_dirs"
27508 as_dir=`$as_dirname -- "$as_dir" ||
27509 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27510 X"$as_dir" : 'X\(//\)[^/]' \| \
27511 X"$as_dir" : 'X\(//\)$' \| \
27512 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27513 echo X"$as_dir" |
27514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27515 s//\1/
27518 /^X\(\/\/\)[^/].*/{
27519 s//\1/
27522 /^X\(\/\/\)$/{
27523 s//\1/
27526 /^X\(\/\).*/{
27527 s//\1/
27530 s/.*/./; q'`
27531 test -d "$as_dir" && break
27532 done
27533 test -z "$as_dirs" || eval "mkdir $as_dirs"
27534 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27535 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27536 { (exit 1); exit 1; }; }; }
27537 ac_builddir=.
27539 case "$ac_dir" in
27540 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27542 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27543 # A ".." for each directory in $ac_dir_suffix.
27544 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27545 case $ac_top_builddir_sub in
27546 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27547 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27548 esac ;;
27549 esac
27550 ac_abs_top_builddir=$ac_pwd
27551 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27552 # for backward compatibility:
27553 ac_top_builddir=$ac_top_build_prefix
27555 case $srcdir in
27556 .) # We are building in place.
27557 ac_srcdir=.
27558 ac_top_srcdir=$ac_top_builddir_sub
27559 ac_abs_top_srcdir=$ac_pwd ;;
27560 [\\/]* | ?:[\\/]* ) # Absolute name.
27561 ac_srcdir=$srcdir$ac_dir_suffix;
27562 ac_top_srcdir=$srcdir
27563 ac_abs_top_srcdir=$srcdir ;;
27564 *) # Relative name.
27565 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27566 ac_top_srcdir=$ac_top_build_prefix$srcdir
27567 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27568 esac
27569 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27572 case $ac_mode in
27575 # CONFIG_FILE
27578 _ACEOF
27580 cat >>$CONFIG_STATUS <<\_ACEOF
27581 # If the template does not know about datarootdir, expand it.
27582 # FIXME: This hack should be removed a few years after 2.60.
27583 ac_datarootdir_hack=; ac_datarootdir_seen=
27585 case `sed -n '/datarootdir/ {
27589 /@datadir@/p
27590 /@docdir@/p
27591 /@infodir@/p
27592 /@localedir@/p
27593 /@mandir@/p
27594 ' $ac_file_inputs` in
27595 *datarootdir*) ac_datarootdir_seen=yes;;
27596 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27597 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27598 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27599 _ACEOF
27600 cat >>$CONFIG_STATUS <<_ACEOF
27601 ac_datarootdir_hack='
27602 s&@datadir@&$datadir&g
27603 s&@docdir@&$docdir&g
27604 s&@infodir@&$infodir&g
27605 s&@localedir@&$localedir&g
27606 s&@mandir@&$mandir&g
27607 s&\\\${datarootdir}&$datarootdir&g' ;;
27608 esac
27609 _ACEOF
27611 # Neutralize VPATH when `$srcdir' = `.'.
27612 # Shell code in configure.ac might set extrasub.
27613 # FIXME: do we really want to maintain this feature?
27614 cat >>$CONFIG_STATUS <<_ACEOF
27615 sed "$ac_vpsub
27616 $extrasub
27617 _ACEOF
27618 cat >>$CONFIG_STATUS <<\_ACEOF
27620 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27621 s&@configure_input@&$configure_input&;t t
27622 s&@top_builddir@&$ac_top_builddir_sub&;t t
27623 s&@srcdir@&$ac_srcdir&;t t
27624 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27625 s&@top_srcdir@&$ac_top_srcdir&;t t
27626 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27627 s&@builddir@&$ac_builddir&;t t
27628 s&@abs_builddir@&$ac_abs_builddir&;t t
27629 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27630 $ac_datarootdir_hack
27631 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27633 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27634 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27635 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27636 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27637 which seems to be undefined. Please make sure it is defined." >&5
27638 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27639 which seems to be undefined. Please make sure it is defined." >&2;}
27641 rm -f "$tmp/stdin"
27642 case $ac_file in
27643 -) cat "$tmp/out"; rm -f "$tmp/out";;
27644 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27645 esac
27649 # CONFIG_HEADER
27651 _ACEOF
27653 # Transform confdefs.h into a sed script `conftest.defines', that
27654 # substitutes the proper values into config.h.in to produce config.h.
27655 rm -f conftest.defines conftest.tail
27656 # First, append a space to every undef/define line, to ease matching.
27657 echo 's/$/ /' >conftest.defines
27658 # Then, protect against being on the right side of a sed subst, or in
27659 # an unquoted here document, in config.status. If some macros were
27660 # called several times there might be several #defines for the same
27661 # symbol, which is useless. But do not sort them, since the last
27662 # AC_DEFINE must be honored.
27663 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27664 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27665 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27666 # PARAMS is the parameter list in the macro definition--in most cases, it's
27667 # just an empty string.
27668 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
27669 ac_dB='\\)[ (].*,\\1define\\2'
27670 ac_dC=' '
27671 ac_dD=' ,'
27673 uniq confdefs.h |
27674 sed -n '
27675 t rset
27676 :rset
27677 s/^[ ]*#[ ]*define[ ][ ]*//
27678 t ok
27681 s/[\\&,]/\\&/g
27682 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27683 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27684 ' >>conftest.defines
27686 # Remove the space that was appended to ease matching.
27687 # Then replace #undef with comments. This is necessary, for
27688 # example, in the case of _POSIX_SOURCE, which is predefined and required
27689 # on some systems where configure will not decide to define it.
27690 # (The regexp can be short, since the line contains either #define or #undef.)
27691 echo 's/ $//
27692 s,^[ #]*u.*,/* & */,' >>conftest.defines
27694 # Break up conftest.defines:
27695 ac_max_sed_lines=50
27697 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27698 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27699 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27700 # et cetera.
27701 ac_in='$ac_file_inputs'
27702 ac_out='"$tmp/out1"'
27703 ac_nxt='"$tmp/out2"'
27705 while :
27707 # Write a here document:
27708 cat >>$CONFIG_STATUS <<_ACEOF
27709 # First, check the format of the line:
27710 cat >"\$tmp/defines.sed" <<\\CEOF
27711 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27712 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27714 :def
27715 _ACEOF
27716 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27717 echo 'CEOF
27718 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27719 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27720 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27721 grep . conftest.tail >/dev/null || break
27722 rm -f conftest.defines
27723 mv conftest.tail conftest.defines
27724 done
27725 rm -f conftest.defines conftest.tail
27727 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27728 cat >>$CONFIG_STATUS <<\_ACEOF
27729 if test x"$ac_file" != x-; then
27730 echo "/* $configure_input */" >"$tmp/config.h"
27731 cat "$ac_result" >>"$tmp/config.h"
27732 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27733 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27734 echo "$as_me: $ac_file is unchanged" >&6;}
27735 else
27736 rm -f $ac_file
27737 mv "$tmp/config.h" $ac_file
27739 else
27740 echo "/* $configure_input */"
27741 cat "$ac_result"
27743 rm -f "$tmp/out12"
27747 # CONFIG_LINK
27750 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
27751 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
27753 if test ! -r "$srcdir/$ac_source"; then
27754 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
27755 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
27756 { (exit 1); exit 1; }; }
27758 rm -f "$ac_file"
27760 # Try a relative symlink, then a hard link, then a copy.
27761 case $srcdir in
27762 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
27763 *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;;
27764 esac
27765 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
27766 ln "$srcdir/$ac_source" "$ac_file" 2>/dev/null ||
27767 cp -p "$srcdir/$ac_source" "$ac_file" ||
27768 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
27769 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
27770 { (exit 1); exit 1; }; }
27772 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27773 echo "$as_me: executing $ac_file commands" >&6;}
27775 esac
27778 case $ac_file$ac_mode in
27779 "check_win32_symlinks":C)
27780 # Links sometimes fail undetected on Mingw -
27781 # so here we detect it and warn the user
27782 for FILE in $CONFIG_LINKS
27784 # test -e works for symlinks in the MinGW console
27785 test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
27786 echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
27787 done
27789 "src/include/pg_config.h":H)
27790 # Update timestamp for pg_config.h (see Makefile.global)
27791 echo >src/include/stamp-h
27794 esac
27795 done # for ac_tag
27798 { (exit 0); exit 0; }
27799 _ACEOF
27800 chmod +x $CONFIG_STATUS
27801 ac_clean_files=$ac_clean_files_save
27804 # configure is writing to config.log, and then calls config.status.
27805 # config.status does its own redirection, appending to config.log.
27806 # Unfortunately, on DOS this fails, as config.log is still kept open
27807 # by configure, so config.status won't be able to write to it; its
27808 # output is simply discarded. So we exec the FD to /dev/null,
27809 # effectively closing config.log, so it can be properly (re)opened and
27810 # appended to by config.status. When coming back to configure, we
27811 # need to make the FD available again.
27812 if test "$no_create" != yes; then
27813 ac_cs_success=:
27814 ac_config_status_args=
27815 test "$silent" = yes &&
27816 ac_config_status_args="$ac_config_status_args --quiet"
27817 exec 5>/dev/null
27818 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27819 exec 5>>config.log
27820 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27821 # would make configure fail if this is the last instruction.
27822 $ac_cs_success || { (exit 1); exit 1; }
27826 # Warn about unknown options
27827 for pgac_var in `set | sed 's/=.*//' | $EGREP 'with_|enable_'`; do
27828 for pgac_arg in $pgac_args with_gnu_ld; do
27829 if test "$pgac_var" = "$pgac_arg"; then
27830 continue 2
27832 done
27833 pgac_txt=`echo $pgac_var | sed 's/_/-/g'`
27834 { echo "$as_me:$LINENO: WARNING: option ignored: --$pgac_txt" >&5
27835 echo "$as_me: WARNING: option ignored: --$pgac_txt" >&2;}
27836 done