Provide support for multiplexing SIGUSR1 signal. The upcoming synchronous
[PostgreSQL.git] / configure
blobd4fde181c14464dbf5ca9357b8c5c4a9880e4104
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 build
660 build_cpu
661 build_vendor
662 build_os
663 host
664 host_cpu
665 host_vendor
666 host_os
667 PORTNAME
668 enable_nls
669 WANTED_LANGUAGES
670 default_port
671 enable_shared
672 enable_rpath
673 enable_debug
674 enable_profiling
675 GCOV
676 LCOV
677 GENHTML
678 enable_coverage
679 DTRACE
680 DTRACEFLAGS
681 enable_dtrace
683 CFLAGS
684 LDFLAGS
685 CPPFLAGS
686 ac_ct_CC
687 EXEEXT
688 OBJEXT
689 SUN_STUDIO_CC
693 autodepend
694 INCLUDES
695 enable_thread_safety
696 with_tcl
697 with_perl
698 with_python
699 with_gssapi
700 with_krb5
701 krb_srvtab
702 with_pam
703 with_ldap
704 with_bonjour
705 with_openssl
706 with_ossp_uuid
707 XML2_CONFIG
708 with_libxml
709 with_libxslt
710 with_system_tzdata
711 with_zlib
712 GREP
713 EGREP
714 ELF_SYS
715 LDFLAGS_SL
717 with_gnu_ld
718 ld_R_works
719 RANLIB
720 STRIP
721 STRIP_STATIC_LIB
722 STRIP_SHARED_LIB
724 DLLTOOL
725 DLLWRAP
726 WINDRES
728 LN_S
730 BISON
731 BISONFLAGS
732 FLEX
733 FLEXFLAGS
734 PERL
735 perl_archlibexp
736 perl_privlibexp
737 perl_useshrplib
738 perl_embed_ldflags
739 PYTHON
740 python_version
741 python_configdir
742 python_includespec
743 python_libdir
744 python_libspec
745 python_additional_libs
746 OSSP_UUID_LIBS
747 HAVE_IPV6
748 LIBOBJS
749 acx_pthread_config
750 PTHREAD_CC
751 PTHREAD_LIBS
752 PTHREAD_CFLAGS
753 LDAP_LIBS_FE
754 LDAP_LIBS_BE
755 HAVE_POSIX_SIGNALS
756 MSGFMT
757 MSGMERGE
758 XGETTEXT
759 TCLSH
760 TCL_CONFIG_SH
761 TCL_INCLUDE_SPEC
762 TCL_LIB_FILE
763 TCL_LIBS
764 TCL_LIB_SPEC
765 TCL_SHARED_BUILD
766 TCL_SHLIB_LD_LIBS
767 NSGMLS
768 JADE
769 have_docbook
770 DOCBOOKSTYLE
771 COLLATEINDEX
772 SGMLSPL
773 DOCBOOK2MAN
774 vpath_build
775 LTLIBOBJS'
776 ac_subst_files=''
777 ac_precious_vars='build_alias
778 host_alias
779 target_alias
781 CFLAGS
782 LDFLAGS
783 LIBS
784 CPPFLAGS
786 LDFLAGS_SL
787 DOCBOOKSTYLE'
790 # Initialize some variables set by options.
791 ac_init_help=
792 ac_init_version=false
793 # The variables have the same names as the options, with
794 # dashes changed to underlines.
795 cache_file=/dev/null
796 exec_prefix=NONE
797 no_create=
798 no_recursion=
799 prefix=NONE
800 program_prefix=NONE
801 program_suffix=NONE
802 program_transform_name=s,x,x,
803 silent=
804 site=
805 srcdir=
806 verbose=
807 x_includes=NONE
808 x_libraries=NONE
810 # Installation directory options.
811 # These are left unexpanded so users can "make install exec_prefix=/foo"
812 # and all the variables that are supposed to be based on exec_prefix
813 # by default will actually change.
814 # Use braces instead of parens because sh, perl, etc. also accept them.
815 # (The list follows the same order as the GNU Coding Standards.)
816 bindir='${exec_prefix}/bin'
817 sbindir='${exec_prefix}/sbin'
818 libexecdir='${exec_prefix}/libexec'
819 datarootdir='${prefix}/share'
820 datadir='${datarootdir}'
821 sysconfdir='${prefix}/etc'
822 sharedstatedir='${prefix}/com'
823 localstatedir='${prefix}/var'
824 includedir='${prefix}/include'
825 oldincludedir='/usr/include'
826 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
827 infodir='${datarootdir}/info'
828 htmldir='${docdir}'
829 dvidir='${docdir}'
830 pdfdir='${docdir}'
831 psdir='${docdir}'
832 libdir='${exec_prefix}/lib'
833 localedir='${datarootdir}/locale'
834 mandir='${datarootdir}/man'
836 ac_prev=
837 ac_dashdash=
838 for ac_option
840 # If the previous option needs an argument, assign it.
841 if test -n "$ac_prev"; then
842 eval $ac_prev=\$ac_option
843 ac_prev=
844 continue
847 case $ac_option in
848 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
849 *) ac_optarg=yes ;;
850 esac
852 # Accept the important Cygnus configure options, so we can diagnose typos.
854 case $ac_dashdash$ac_option in
856 ac_dashdash=yes ;;
858 -bindir | --bindir | --bindi | --bind | --bin | --bi)
859 ac_prev=bindir ;;
860 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
861 bindir=$ac_optarg ;;
863 -build | --build | --buil | --bui | --bu)
864 ac_prev=build_alias ;;
865 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
866 build_alias=$ac_optarg ;;
868 -cache-file | --cache-file | --cache-fil | --cache-fi \
869 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
870 ac_prev=cache_file ;;
871 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
872 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
873 cache_file=$ac_optarg ;;
875 --config-cache | -C)
876 cache_file=config.cache ;;
878 -datadir | --datadir | --datadi | --datad)
879 ac_prev=datadir ;;
880 -datadir=* | --datadir=* | --datadi=* | --datad=*)
881 datadir=$ac_optarg ;;
883 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
884 | --dataroo | --dataro | --datar)
885 ac_prev=datarootdir ;;
886 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
887 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
888 datarootdir=$ac_optarg ;;
890 -disable-* | --disable-*)
891 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
892 # Reject names that are not valid shell variable names.
893 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
894 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
895 { (exit 1); exit 1; }; }
896 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
897 eval enable_$ac_feature=no ;;
899 -docdir | --docdir | --docdi | --doc | --do)
900 ac_prev=docdir ;;
901 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
902 docdir=$ac_optarg ;;
904 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
905 ac_prev=dvidir ;;
906 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
907 dvidir=$ac_optarg ;;
909 -enable-* | --enable-*)
910 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
911 # Reject names that are not valid shell variable names.
912 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
913 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
914 { (exit 1); exit 1; }; }
915 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
916 eval enable_$ac_feature=\$ac_optarg ;;
918 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
919 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
920 | --exec | --exe | --ex)
921 ac_prev=exec_prefix ;;
922 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
923 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
924 | --exec=* | --exe=* | --ex=*)
925 exec_prefix=$ac_optarg ;;
927 -gas | --gas | --ga | --g)
928 # Obsolete; use --with-gas.
929 with_gas=yes ;;
931 -help | --help | --hel | --he | -h)
932 ac_init_help=long ;;
933 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
934 ac_init_help=recursive ;;
935 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
936 ac_init_help=short ;;
938 -host | --host | --hos | --ho)
939 ac_prev=host_alias ;;
940 -host=* | --host=* | --hos=* | --ho=*)
941 host_alias=$ac_optarg ;;
943 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
944 ac_prev=htmldir ;;
945 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
946 | --ht=*)
947 htmldir=$ac_optarg ;;
949 -includedir | --includedir | --includedi | --included | --include \
950 | --includ | --inclu | --incl | --inc)
951 ac_prev=includedir ;;
952 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
953 | --includ=* | --inclu=* | --incl=* | --inc=*)
954 includedir=$ac_optarg ;;
956 -infodir | --infodir | --infodi | --infod | --info | --inf)
957 ac_prev=infodir ;;
958 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
959 infodir=$ac_optarg ;;
961 -libdir | --libdir | --libdi | --libd)
962 ac_prev=libdir ;;
963 -libdir=* | --libdir=* | --libdi=* | --libd=*)
964 libdir=$ac_optarg ;;
966 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
967 | --libexe | --libex | --libe)
968 ac_prev=libexecdir ;;
969 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
970 | --libexe=* | --libex=* | --libe=*)
971 libexecdir=$ac_optarg ;;
973 -localedir | --localedir | --localedi | --localed | --locale)
974 ac_prev=localedir ;;
975 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
976 localedir=$ac_optarg ;;
978 -localstatedir | --localstatedir | --localstatedi | --localstated \
979 | --localstate | --localstat | --localsta | --localst | --locals)
980 ac_prev=localstatedir ;;
981 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
982 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
983 localstatedir=$ac_optarg ;;
985 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
986 ac_prev=mandir ;;
987 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
988 mandir=$ac_optarg ;;
990 -nfp | --nfp | --nf)
991 # Obsolete; use --without-fp.
992 with_fp=no ;;
994 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
995 | --no-cr | --no-c | -n)
996 no_create=yes ;;
998 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
999 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1000 no_recursion=yes ;;
1002 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1003 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1004 | --oldin | --oldi | --old | --ol | --o)
1005 ac_prev=oldincludedir ;;
1006 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1007 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1008 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1009 oldincludedir=$ac_optarg ;;
1011 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1012 ac_prev=prefix ;;
1013 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1014 prefix=$ac_optarg ;;
1016 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1017 | --program-pre | --program-pr | --program-p)
1018 ac_prev=program_prefix ;;
1019 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1020 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1021 program_prefix=$ac_optarg ;;
1023 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1024 | --program-suf | --program-su | --program-s)
1025 ac_prev=program_suffix ;;
1026 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1027 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1028 program_suffix=$ac_optarg ;;
1030 -program-transform-name | --program-transform-name \
1031 | --program-transform-nam | --program-transform-na \
1032 | --program-transform-n | --program-transform- \
1033 | --program-transform | --program-transfor \
1034 | --program-transfo | --program-transf \
1035 | --program-trans | --program-tran \
1036 | --progr-tra | --program-tr | --program-t)
1037 ac_prev=program_transform_name ;;
1038 -program-transform-name=* | --program-transform-name=* \
1039 | --program-transform-nam=* | --program-transform-na=* \
1040 | --program-transform-n=* | --program-transform-=* \
1041 | --program-transform=* | --program-transfor=* \
1042 | --program-transfo=* | --program-transf=* \
1043 | --program-trans=* | --program-tran=* \
1044 | --progr-tra=* | --program-tr=* | --program-t=*)
1045 program_transform_name=$ac_optarg ;;
1047 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1048 ac_prev=pdfdir ;;
1049 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1050 pdfdir=$ac_optarg ;;
1052 -psdir | --psdir | --psdi | --psd | --ps)
1053 ac_prev=psdir ;;
1054 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1055 psdir=$ac_optarg ;;
1057 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1058 | -silent | --silent | --silen | --sile | --sil)
1059 silent=yes ;;
1061 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1062 ac_prev=sbindir ;;
1063 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1064 | --sbi=* | --sb=*)
1065 sbindir=$ac_optarg ;;
1067 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1068 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1069 | --sharedst | --shareds | --shared | --share | --shar \
1070 | --sha | --sh)
1071 ac_prev=sharedstatedir ;;
1072 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1073 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1074 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1075 | --sha=* | --sh=*)
1076 sharedstatedir=$ac_optarg ;;
1078 -site | --site | --sit)
1079 ac_prev=site ;;
1080 -site=* | --site=* | --sit=*)
1081 site=$ac_optarg ;;
1083 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1084 ac_prev=srcdir ;;
1085 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1086 srcdir=$ac_optarg ;;
1088 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1089 | --syscon | --sysco | --sysc | --sys | --sy)
1090 ac_prev=sysconfdir ;;
1091 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1092 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1093 sysconfdir=$ac_optarg ;;
1095 -target | --target | --targe | --targ | --tar | --ta | --t)
1096 ac_prev=target_alias ;;
1097 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1098 target_alias=$ac_optarg ;;
1100 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1101 verbose=yes ;;
1103 -version | --version | --versio | --versi | --vers | -V)
1104 ac_init_version=: ;;
1106 -with-* | --with-*)
1107 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1108 # Reject names that are not valid shell variable names.
1109 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1110 { echo "$as_me: error: invalid package name: $ac_package" >&2
1111 { (exit 1); exit 1; }; }
1112 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1113 eval with_$ac_package=\$ac_optarg ;;
1115 -without-* | --without-*)
1116 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1117 # Reject names that are not valid shell variable names.
1118 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1119 { echo "$as_me: error: invalid package name: $ac_package" >&2
1120 { (exit 1); exit 1; }; }
1121 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1122 eval with_$ac_package=no ;;
1124 --x)
1125 # Obsolete; use --with-x.
1126 with_x=yes ;;
1128 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1129 | --x-incl | --x-inc | --x-in | --x-i)
1130 ac_prev=x_includes ;;
1131 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1132 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1133 x_includes=$ac_optarg ;;
1135 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1136 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1137 ac_prev=x_libraries ;;
1138 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1139 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1140 x_libraries=$ac_optarg ;;
1142 -*) { echo "$as_me: error: unrecognized option: $ac_option
1143 Try \`$0 --help' for more information." >&2
1144 { (exit 1); exit 1; }; }
1147 *=*)
1148 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1151 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1152 { (exit 1); exit 1; }; }
1153 eval $ac_envvar=\$ac_optarg
1154 export $ac_envvar ;;
1157 # FIXME: should be removed in autoconf 3.0.
1158 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1159 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1160 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1161 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1164 esac
1165 done
1167 if test -n "$ac_prev"; then
1168 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1169 { echo "$as_me: error: missing argument to $ac_option" >&2
1170 { (exit 1); exit 1; }; }
1173 # Be sure to have absolute directory names.
1174 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1175 datadir sysconfdir sharedstatedir localstatedir includedir \
1176 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1177 libdir localedir mandir
1179 eval ac_val=\$$ac_var
1180 case $ac_val in
1181 [\\/$]* | ?:[\\/]* ) continue;;
1182 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1183 esac
1184 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1185 { (exit 1); exit 1; }; }
1186 done
1188 # There might be people who depend on the old broken behavior: `$host'
1189 # used to hold the argument of --host etc.
1190 # FIXME: To remove some day.
1191 build=$build_alias
1192 host=$host_alias
1193 target=$target_alias
1195 # FIXME: To remove some day.
1196 if test "x$host_alias" != x; then
1197 if test "x$build_alias" = x; then
1198 cross_compiling=maybe
1199 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1200 If a cross compiler is detected then cross compile mode will be used." >&2
1201 elif test "x$build_alias" != "x$host_alias"; then
1202 cross_compiling=yes
1206 ac_tool_prefix=
1207 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1209 test "$silent" = yes && exec 6>/dev/null
1212 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1213 ac_ls_di=`ls -di .` &&
1214 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1215 { echo "$as_me: error: Working directory cannot be determined" >&2
1216 { (exit 1); exit 1; }; }
1217 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1218 { echo "$as_me: error: pwd does not report name of working directory" >&2
1219 { (exit 1); exit 1; }; }
1222 # Find the source files, if location was not specified.
1223 if test -z "$srcdir"; then
1224 ac_srcdir_defaulted=yes
1225 # Try the directory containing this script, then the parent directory.
1226 ac_confdir=`$as_dirname -- "$0" ||
1227 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1228 X"$0" : 'X\(//\)[^/]' \| \
1229 X"$0" : 'X\(//\)$' \| \
1230 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1231 echo X"$0" |
1232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1233 s//\1/
1236 /^X\(\/\/\)[^/].*/{
1237 s//\1/
1240 /^X\(\/\/\)$/{
1241 s//\1/
1244 /^X\(\/\).*/{
1245 s//\1/
1248 s/.*/./; q'`
1249 srcdir=$ac_confdir
1250 if test ! -r "$srcdir/$ac_unique_file"; then
1251 srcdir=..
1253 else
1254 ac_srcdir_defaulted=no
1256 if test ! -r "$srcdir/$ac_unique_file"; then
1257 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1258 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1259 { (exit 1); exit 1; }; }
1261 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1262 ac_abs_confdir=`(
1263 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1264 { (exit 1); exit 1; }; }
1265 pwd)`
1266 # When building in place, set srcdir=.
1267 if test "$ac_abs_confdir" = "$ac_pwd"; then
1268 srcdir=.
1270 # Remove unnecessary trailing slashes from srcdir.
1271 # Double slashes in file names in object file debugging info
1272 # mess up M-x gdb in Emacs.
1273 case $srcdir in
1274 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1275 esac
1276 for ac_var in $ac_precious_vars; do
1277 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1278 eval ac_env_${ac_var}_value=\$${ac_var}
1279 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1280 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1281 done
1284 # Report the --help message.
1286 if test "$ac_init_help" = "long"; then
1287 # Omit some internal or obsolete options to make the list less imposing.
1288 # This message is too long to be a string in the A/UX 3.1 sh.
1289 cat <<_ACEOF
1290 \`configure' configures PostgreSQL 8.4devel to adapt to many kinds of systems.
1292 Usage: $0 [OPTION]... [VAR=VALUE]...
1294 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1295 VAR=VALUE. See below for descriptions of some of the useful variables.
1297 Defaults for the options are specified in brackets.
1299 Configuration:
1300 -h, --help display this help and exit
1301 --help=short display options specific to this package
1302 --help=recursive display the short help of all the included packages
1303 -V, --version display version information and exit
1304 -q, --quiet, --silent do not print \`checking...' messages
1305 --cache-file=FILE cache test results in FILE [disabled]
1306 -C, --config-cache alias for \`--cache-file=config.cache'
1307 -n, --no-create do not create output files
1308 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1310 Installation directories:
1311 --prefix=PREFIX install architecture-independent files in PREFIX
1312 [$ac_default_prefix]
1313 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1314 [PREFIX]
1316 By default, \`make install' will install all the files in
1317 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1318 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1319 for instance \`--prefix=\$HOME'.
1321 For better control, use the options below.
1323 Fine tuning of the installation directories:
1324 --bindir=DIR user executables [EPREFIX/bin]
1325 --sbindir=DIR system admin executables [EPREFIX/sbin]
1326 --libexecdir=DIR program executables [EPREFIX/libexec]
1327 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1328 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1329 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1330 --libdir=DIR object code libraries [EPREFIX/lib]
1331 --includedir=DIR C header files [PREFIX/include]
1332 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1333 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1334 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1335 --infodir=DIR info documentation [DATAROOTDIR/info]
1336 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1337 --mandir=DIR man documentation [DATAROOTDIR/man]
1338 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1339 --htmldir=DIR html documentation [DOCDIR]
1340 --dvidir=DIR dvi documentation [DOCDIR]
1341 --pdfdir=DIR pdf documentation [DOCDIR]
1342 --psdir=DIR ps documentation [DOCDIR]
1343 _ACEOF
1345 cat <<\_ACEOF
1347 System types:
1348 --build=BUILD configure for building on BUILD [guessed]
1349 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1350 _ACEOF
1353 if test -n "$ac_init_help"; then
1354 case $ac_init_help in
1355 short | recursive ) echo "Configuration of PostgreSQL 8.4devel:";;
1356 esac
1357 cat <<\_ACEOF
1359 Optional Features:
1360 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1361 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1362 --disable-integer-datetimes
1363 disable 64-bit integer date/time support
1364 --enable-nls[=LANGUAGES]
1365 enable Native Language Support
1366 --disable-shared do not build shared libraries
1367 --disable-rpath do not embed shared library search path in
1368 executables
1369 --disable-spinlocks do not use spinlocks
1370 --enable-debug build with debugging symbols (-g)
1371 --enable-profiling build with profiling enabled
1372 --enable-coverage build with coverage testing instrumentation
1373 --enable-dtrace build with DTrace support
1374 --enable-depend turn on automatic dependency tracking
1375 --enable-cassert enable assertion checks (for debugging)
1376 --enable-thread-safety make client libraries thread-safe
1377 --enable-thread-safety-force
1378 force thread-safety despite thread test failure
1379 --disable-float4-byval disable float4 passed by value
1380 --disable-float8-byval disable float8 passed by value
1381 --disable-largefile omit support for large files
1383 Optional Packages:
1384 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1385 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1386 --with-template=NAME override operating system template
1387 --with-includes=DIRS look for additional header files in DIRS
1388 --with-libraries=DIRS look for additional libraries in DIRS
1389 --with-libs=DIRS alternative spelling of --with-libraries
1390 --with-pgport=PORTNUM set default port number [5432]
1391 --with-blocksize=BLOCKSIZE
1392 set table block size in kB [8]
1393 --with-segsize=SEGSIZE set table segment size in GB [1]
1394 --with-wal-blocksize=BLOCKSIZE
1395 set WAL block size in kB [8]
1396 --with-wal-segsize=SEGSIZE
1397 set WAL segment size in MB [16]
1398 --with-CC=CMD set compiler (deprecated)
1399 --with-tcl build Tcl modules (PL/Tcl)
1400 --with-tclconfig=DIR tclConfig.sh is in DIR
1401 --with-perl build Perl modules (PL/Perl)
1402 --with-python build Python modules (PL/Python)
1403 --with-gssapi build with GSSAPI support
1404 --with-krb5 build with Kerberos 5 support
1405 --with-krb-srvnam=NAME default service principal name in Kerberos
1406 [postgres]
1407 --with-pam build with PAM support
1408 --with-ldap build with LDAP support
1409 --with-bonjour build with Bonjour support
1410 --with-openssl build with OpenSSL support
1411 --without-readline do not use GNU Readline nor BSD Libedit for editing
1412 --with-libedit-preferred
1413 prefer BSD Libedit over GNU Readline
1414 --with-ossp-uuid use OSSP UUID library when building
1415 contrib/uuid-ossp
1416 --with-libxml build with XML support
1417 --with-libxslt use XSLT support when building contrib/xml2
1418 --with-system-tzdata=DIR
1419 use system time zone data in DIR
1420 --without-zlib do not use Zlib
1421 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1423 Some influential environment variables:
1424 CC C compiler command
1425 CFLAGS C compiler flags
1426 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1427 nonstandard directory <lib dir>
1428 LIBS libraries to pass to the linker, e.g. -l<library>
1429 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1430 you have headers in a nonstandard directory <include dir>
1431 CPP C preprocessor
1432 LDFLAGS_SL
1433 DOCBOOKSTYLE
1434 location of DocBook stylesheets
1436 Use these variables to override the choices made by `configure' or to help
1437 it to find libraries and programs with nonstandard names/locations.
1439 Report bugs to <pgsql-bugs@postgresql.org>.
1440 _ACEOF
1441 ac_status=$?
1444 if test "$ac_init_help" = "recursive"; then
1445 # If there are subdirs, report their specific --help.
1446 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1447 test -d "$ac_dir" || continue
1448 ac_builddir=.
1450 case "$ac_dir" in
1451 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1453 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1454 # A ".." for each directory in $ac_dir_suffix.
1455 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1456 case $ac_top_builddir_sub in
1457 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1458 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1459 esac ;;
1460 esac
1461 ac_abs_top_builddir=$ac_pwd
1462 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1463 # for backward compatibility:
1464 ac_top_builddir=$ac_top_build_prefix
1466 case $srcdir in
1467 .) # We are building in place.
1468 ac_srcdir=.
1469 ac_top_srcdir=$ac_top_builddir_sub
1470 ac_abs_top_srcdir=$ac_pwd ;;
1471 [\\/]* | ?:[\\/]* ) # Absolute name.
1472 ac_srcdir=$srcdir$ac_dir_suffix;
1473 ac_top_srcdir=$srcdir
1474 ac_abs_top_srcdir=$srcdir ;;
1475 *) # Relative name.
1476 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1477 ac_top_srcdir=$ac_top_build_prefix$srcdir
1478 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1479 esac
1480 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1482 cd "$ac_dir" || { ac_status=$?; continue; }
1483 # Check for guested configure.
1484 if test -f "$ac_srcdir/configure.gnu"; then
1485 echo &&
1486 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1487 elif test -f "$ac_srcdir/configure"; then
1488 echo &&
1489 $SHELL "$ac_srcdir/configure" --help=recursive
1490 else
1491 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1492 fi || ac_status=$?
1493 cd "$ac_pwd" || { ac_status=$?; break; }
1494 done
1497 test -n "$ac_init_help" && exit $ac_status
1498 if $ac_init_version; then
1499 cat <<\_ACEOF
1500 PostgreSQL configure 8.4devel
1501 generated by GNU Autoconf 2.61
1503 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1504 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1505 This configure script is free software; the Free Software Foundation
1506 gives unlimited permission to copy, distribute and modify it.
1508 Copyright (c) 1996-2008, PostgreSQL Global Development Group
1509 _ACEOF
1510 exit
1512 cat >config.log <<_ACEOF
1513 This file contains any messages produced by compilers while
1514 running configure, to aid debugging if configure makes a mistake.
1516 It was created by PostgreSQL $as_me 8.4devel, which was
1517 generated by GNU Autoconf 2.61. Invocation command line was
1519 $ $0 $@
1521 _ACEOF
1522 exec 5>>config.log
1524 cat <<_ASUNAME
1525 ## --------- ##
1526 ## Platform. ##
1527 ## --------- ##
1529 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1530 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1531 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1532 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1533 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1535 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1536 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1538 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1539 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1540 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1541 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1542 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1543 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1544 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1546 _ASUNAME
1548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1549 for as_dir in $PATH
1551 IFS=$as_save_IFS
1552 test -z "$as_dir" && as_dir=.
1553 echo "PATH: $as_dir"
1554 done
1555 IFS=$as_save_IFS
1557 } >&5
1559 cat >&5 <<_ACEOF
1562 ## ----------- ##
1563 ## Core tests. ##
1564 ## ----------- ##
1566 _ACEOF
1569 # Keep a trace of the command line.
1570 # Strip out --no-create and --no-recursion so they do not pile up.
1571 # Strip out --silent because we don't want to record it for future runs.
1572 # Also quote any args containing shell meta-characters.
1573 # Make two passes to allow for proper duplicate-argument suppression.
1574 ac_configure_args=
1575 ac_configure_args0=
1576 ac_configure_args1=
1577 ac_must_keep_next=false
1578 for ac_pass in 1 2
1580 for ac_arg
1582 case $ac_arg in
1583 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1584 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1585 | -silent | --silent | --silen | --sile | --sil)
1586 continue ;;
1587 *\'*)
1588 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1589 esac
1590 case $ac_pass in
1591 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1593 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1594 if test $ac_must_keep_next = true; then
1595 ac_must_keep_next=false # Got value, back to normal.
1596 else
1597 case $ac_arg in
1598 *=* | --config-cache | -C | -disable-* | --disable-* \
1599 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1600 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1601 | -with-* | --with-* | -without-* | --without-* | --x)
1602 case "$ac_configure_args0 " in
1603 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1604 esac
1606 -* ) ac_must_keep_next=true ;;
1607 esac
1609 ac_configure_args="$ac_configure_args '$ac_arg'"
1611 esac
1612 done
1613 done
1614 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1615 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1617 # When interrupted or exit'd, cleanup temporary files, and complete
1618 # config.log. We remove comments because anyway the quotes in there
1619 # would cause problems or look ugly.
1620 # WARNING: Use '\'' to represent an apostrophe within the trap.
1621 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1622 trap 'exit_status=$?
1623 # Save into config.log some information that might help in debugging.
1625 echo
1627 cat <<\_ASBOX
1628 ## ---------------- ##
1629 ## Cache variables. ##
1630 ## ---------------- ##
1631 _ASBOX
1632 echo
1633 # The following way of writing the cache mishandles newlines in values,
1635 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1636 eval ac_val=\$$ac_var
1637 case $ac_val in #(
1638 *${as_nl}*)
1639 case $ac_var in #(
1640 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1641 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1642 esac
1643 case $ac_var in #(
1644 _ | IFS | as_nl) ;; #(
1645 *) $as_unset $ac_var ;;
1646 esac ;;
1647 esac
1648 done
1649 (set) 2>&1 |
1650 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1651 *${as_nl}ac_space=\ *)
1652 sed -n \
1653 "s/'\''/'\''\\\\'\'''\''/g;
1654 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1655 ;; #(
1657 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1659 esac |
1660 sort
1662 echo
1664 cat <<\_ASBOX
1665 ## ----------------- ##
1666 ## Output variables. ##
1667 ## ----------------- ##
1668 _ASBOX
1669 echo
1670 for ac_var in $ac_subst_vars
1672 eval ac_val=\$$ac_var
1673 case $ac_val in
1674 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1675 esac
1676 echo "$ac_var='\''$ac_val'\''"
1677 done | sort
1678 echo
1680 if test -n "$ac_subst_files"; then
1681 cat <<\_ASBOX
1682 ## ------------------- ##
1683 ## File substitutions. ##
1684 ## ------------------- ##
1685 _ASBOX
1686 echo
1687 for ac_var in $ac_subst_files
1689 eval ac_val=\$$ac_var
1690 case $ac_val in
1691 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1692 esac
1693 echo "$ac_var='\''$ac_val'\''"
1694 done | sort
1695 echo
1698 if test -s confdefs.h; then
1699 cat <<\_ASBOX
1700 ## ----------- ##
1701 ## confdefs.h. ##
1702 ## ----------- ##
1703 _ASBOX
1704 echo
1705 cat confdefs.h
1706 echo
1708 test "$ac_signal" != 0 &&
1709 echo "$as_me: caught signal $ac_signal"
1710 echo "$as_me: exit $exit_status"
1711 } >&5
1712 rm -f core *.core core.conftest.* &&
1713 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1714 exit $exit_status
1716 for ac_signal in 1 2 13 15; do
1717 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1718 done
1719 ac_signal=0
1721 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1722 rm -f -r conftest* confdefs.h
1724 # Predefined preprocessor variables.
1726 cat >>confdefs.h <<_ACEOF
1727 #define PACKAGE_NAME "$PACKAGE_NAME"
1728 _ACEOF
1731 cat >>confdefs.h <<_ACEOF
1732 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1733 _ACEOF
1736 cat >>confdefs.h <<_ACEOF
1737 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1738 _ACEOF
1741 cat >>confdefs.h <<_ACEOF
1742 #define PACKAGE_STRING "$PACKAGE_STRING"
1743 _ACEOF
1746 cat >>confdefs.h <<_ACEOF
1747 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1748 _ACEOF
1751 # Let the site file select an alternate cache file if it wants to.
1752 # Prefer explicitly selected file to automatically selected ones.
1753 if test -n "$CONFIG_SITE"; then
1754 set x "$CONFIG_SITE"
1755 elif test "x$prefix" != xNONE; then
1756 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1757 else
1758 set x "$ac_default_prefix/share/config.site" \
1759 "$ac_default_prefix/etc/config.site"
1761 shift
1762 for ac_site_file
1764 if test -r "$ac_site_file"; then
1765 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1766 echo "$as_me: loading site script $ac_site_file" >&6;}
1767 sed 's/^/| /' "$ac_site_file" >&5
1768 . "$ac_site_file"
1770 done
1772 if test -r "$cache_file"; then
1773 # Some versions of bash will fail to source /dev/null (special
1774 # files actually), so we avoid doing that.
1775 if test -f "$cache_file"; then
1776 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1777 echo "$as_me: loading cache $cache_file" >&6;}
1778 case $cache_file in
1779 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1780 *) . "./$cache_file";;
1781 esac
1783 else
1784 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1785 echo "$as_me: creating cache $cache_file" >&6;}
1786 >$cache_file
1789 # Check that the precious variables saved in the cache have kept the same
1790 # value.
1791 ac_cache_corrupted=false
1792 for ac_var in $ac_precious_vars; do
1793 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1794 eval ac_new_set=\$ac_env_${ac_var}_set
1795 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1796 eval ac_new_val=\$ac_env_${ac_var}_value
1797 case $ac_old_set,$ac_new_set in
1798 set,)
1799 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1800 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1801 ac_cache_corrupted=: ;;
1802 ,set)
1803 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1804 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1805 ac_cache_corrupted=: ;;
1806 ,);;
1808 if test "x$ac_old_val" != "x$ac_new_val"; then
1809 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1810 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1811 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1812 echo "$as_me: former value: $ac_old_val" >&2;}
1813 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1814 echo "$as_me: current value: $ac_new_val" >&2;}
1815 ac_cache_corrupted=:
1816 fi;;
1817 esac
1818 # Pass precious variables to config.status.
1819 if test "$ac_new_set" = set; then
1820 case $ac_new_val in
1821 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1822 *) ac_arg=$ac_var=$ac_new_val ;;
1823 esac
1824 case " $ac_configure_args " in
1825 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1826 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1827 esac
1829 done
1830 if $ac_cache_corrupted; then
1831 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1832 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1833 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1834 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1835 { (exit 1); exit 1; }; }
1862 ac_ext=c
1863 ac_cpp='$CPP $CPPFLAGS'
1864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1873 ac_aux_dir=
1874 for ac_dir in config "$srcdir"/config; do
1875 if test -f "$ac_dir/install-sh"; then
1876 ac_aux_dir=$ac_dir
1877 ac_install_sh="$ac_aux_dir/install-sh -c"
1878 break
1879 elif test -f "$ac_dir/install.sh"; then
1880 ac_aux_dir=$ac_dir
1881 ac_install_sh="$ac_aux_dir/install.sh -c"
1882 break
1883 elif test -f "$ac_dir/shtool"; then
1884 ac_aux_dir=$ac_dir
1885 ac_install_sh="$ac_aux_dir/shtool install -c"
1886 break
1888 done
1889 if test -z "$ac_aux_dir"; then
1890 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1891 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1892 { (exit 1); exit 1; }; }
1895 # These three variables are undocumented and unsupported,
1896 # and are intended to be withdrawn in a future Autoconf release.
1897 # They can cause serious problems if a builder's source tree is in a directory
1898 # whose full name contains unusual characters.
1899 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1900 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1901 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1905 configure_args=$ac_configure_args
1909 cat >>confdefs.h <<_ACEOF
1910 #define PG_VERSION "$PACKAGE_VERSION"
1911 _ACEOF
1914 # Make sure we can run config.sub.
1915 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1916 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1917 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1918 { (exit 1); exit 1; }; }
1920 { echo "$as_me:$LINENO: checking build system type" >&5
1921 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1922 if test "${ac_cv_build+set}" = set; then
1923 echo $ECHO_N "(cached) $ECHO_C" >&6
1924 else
1925 ac_build_alias=$build_alias
1926 test "x$ac_build_alias" = x &&
1927 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1928 test "x$ac_build_alias" = x &&
1929 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1930 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1931 { (exit 1); exit 1; }; }
1932 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1933 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1934 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1935 { (exit 1); exit 1; }; }
1938 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1939 echo "${ECHO_T}$ac_cv_build" >&6; }
1940 case $ac_cv_build in
1941 *-*-*) ;;
1942 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1943 echo "$as_me: error: invalid value of canonical build" >&2;}
1944 { (exit 1); exit 1; }; };;
1945 esac
1946 build=$ac_cv_build
1947 ac_save_IFS=$IFS; IFS='-'
1948 set x $ac_cv_build
1949 shift
1950 build_cpu=$1
1951 build_vendor=$2
1952 shift; shift
1953 # Remember, the first character of IFS is used to create $*,
1954 # except with old shells:
1955 build_os=$*
1956 IFS=$ac_save_IFS
1957 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1960 { echo "$as_me:$LINENO: checking host system type" >&5
1961 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1962 if test "${ac_cv_host+set}" = set; then
1963 echo $ECHO_N "(cached) $ECHO_C" >&6
1964 else
1965 if test "x$host_alias" = x; then
1966 ac_cv_host=$ac_cv_build
1967 else
1968 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1969 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1970 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1971 { (exit 1); exit 1; }; }
1975 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1976 echo "${ECHO_T}$ac_cv_host" >&6; }
1977 case $ac_cv_host in
1978 *-*-*) ;;
1979 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1980 echo "$as_me: error: invalid value of canonical host" >&2;}
1981 { (exit 1); exit 1; }; };;
1982 esac
1983 host=$ac_cv_host
1984 ac_save_IFS=$IFS; IFS='-'
1985 set x $ac_cv_host
1986 shift
1987 host_cpu=$1
1988 host_vendor=$2
1989 shift; shift
1990 # Remember, the first character of IFS is used to create $*,
1991 # except with old shells:
1992 host_os=$*
1993 IFS=$ac_save_IFS
1994 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1998 template=
1999 { echo "$as_me:$LINENO: checking which template to use" >&5
2000 echo $ECHO_N "checking which template to use... $ECHO_C" >&6; }
2003 pgac_args="$pgac_args with_template"
2006 # Check whether --with-template was given.
2007 if test "${with_template+set}" = set; then
2008 withval=$with_template;
2009 case $withval in
2010 yes)
2011 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2012 echo "$as_me: error: argument required for --with-template option" >&2;}
2013 { (exit 1); exit 1; }; }
2016 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2017 echo "$as_me: error: argument required for --with-template option" >&2;}
2018 { (exit 1); exit 1; }; }
2022 case $withval in
2023 list) echo; ls "$srcdir/src/template"; exit;;
2024 *) if test -f "$srcdir/src/template/$with_template" ; then
2025 template=$withval
2026 else
2027 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2028 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2029 { (exit 1); exit 1; }; }
2030 fi;;
2031 esac
2034 esac
2036 else
2038 # --with-template not given
2040 case $host_os in
2041 aix*) template=aix ;;
2042 bsdi*) template=bsdi ;;
2043 cygwin*) template=cygwin ;;
2044 darwin*) template=darwin ;;
2045 dgux*) template=dgux ;;
2046 freebsd*) template=freebsd ;;
2047 hpux*) template=hpux ;;
2048 irix*) template=irix ;;
2049 linux*|gnu*|k*bsd*-gnu)
2050 template=linux ;;
2051 mingw*) template=win32 ;;
2052 netbsd*) template=netbsd ;;
2053 nextstep*) template=nextstep ;;
2054 openbsd*) template=openbsd ;;
2055 osf*) template=osf ;;
2056 sco*) template=sco ;;
2057 solaris*) template=solaris ;;
2058 sunos*) template=sunos4 ;;
2059 sysv4.2*)
2060 case $host_vendor in
2061 univel) template=univel ;;
2062 esac ;;
2063 sysv4*) template=svr4 ;;
2064 sysv5*) template=unixware ;;
2065 ultrix*) template=ultrix4 ;;
2066 esac
2068 if test x"$template" = x"" ; then
2069 { { echo "$as_me:$LINENO: error:
2070 *******************************************************************
2071 PostgreSQL has apparently not been ported to your platform yet.
2072 To try a manual configuration, look into the src/template directory
2073 for a similar platform and use the '--with-template=' option.
2075 Please also contact <pgsql-ports@postgresql.org> to see about
2076 rectifying this. Include the above 'checking host system type...'
2077 line.
2078 *******************************************************************
2079 " >&5
2080 echo "$as_me: error:
2081 *******************************************************************
2082 PostgreSQL has apparently not been ported to your platform yet.
2083 To try a manual configuration, look into the src/template directory
2084 for a similar platform and use the '--with-template=' option.
2086 Please also contact <pgsql-ports@postgresql.org> to see about
2087 rectifying this. Include the above 'checking host system type...'
2088 line.
2089 *******************************************************************
2090 " >&2;}
2091 { (exit 1); exit 1; }; }
2099 { echo "$as_me:$LINENO: result: $template" >&5
2100 echo "${ECHO_T}$template" >&6; }
2102 PORTNAME=$template
2105 # Initialize default assumption that we do not need separate assembly code
2106 # for TAS (test-and-set). This can be overridden by the template file
2107 # when it's executed.
2108 need_tas=no
2109 tas_file=dummy.s
2114 ## Command line options
2118 # Add non-standard directories to the include path
2121 pgac_args="$pgac_args with_includes"
2124 # Check whether --with-includes was given.
2125 if test "${with_includes+set}" = set; then
2126 withval=$with_includes;
2127 case $withval in
2128 yes)
2129 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2130 echo "$as_me: error: argument required for --with-includes option" >&2;}
2131 { (exit 1); exit 1; }; }
2134 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2135 echo "$as_me: error: argument required for --with-includes option" >&2;}
2136 { (exit 1); exit 1; }; }
2141 esac
2149 # Add non-standard directories to the library search path
2152 pgac_args="$pgac_args with_libraries"
2155 # Check whether --with-libraries was given.
2156 if test "${with_libraries+set}" = set; then
2157 withval=$with_libraries;
2158 case $withval in
2159 yes)
2160 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2161 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2162 { (exit 1); exit 1; }; }
2165 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2166 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2167 { (exit 1); exit 1; }; }
2170 LIBRARY_DIRS=$withval
2172 esac
2179 pgac_args="$pgac_args with_libs"
2182 # Check whether --with-libs was given.
2183 if test "${with_libs+set}" = set; then
2184 withval=$with_libs;
2185 case $withval in
2186 yes)
2187 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2188 echo "$as_me: error: argument required for --with-libs option" >&2;}
2189 { (exit 1); exit 1; }; }
2192 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2193 echo "$as_me: error: argument required for --with-libs option" >&2;}
2194 { (exit 1); exit 1; }; }
2197 LIBRARY_DIRS=$withval
2199 esac
2207 # 64-bit integer date/time storage: enabled by default.
2209 { echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2210 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6; }
2212 pgac_args="$pgac_args enable_integer_datetimes"
2214 # Check whether --enable-integer-datetimes was given.
2215 if test "${enable_integer_datetimes+set}" = set; then
2216 enableval=$enable_integer_datetimes;
2217 case $enableval in
2218 yes)
2220 cat >>confdefs.h <<\_ACEOF
2221 #define USE_INTEGER_DATETIMES 1
2222 _ACEOF
2229 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2230 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2231 { (exit 1); exit 1; }; }
2233 esac
2235 else
2236 enable_integer_datetimes=yes
2238 cat >>confdefs.h <<\_ACEOF
2239 #define USE_INTEGER_DATETIMES 1
2240 _ACEOF
2245 { echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2246 echo "${ECHO_T}$enable_integer_datetimes" >&6; }
2250 # NLS
2252 { echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2253 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6; }
2255 pgac_args="$pgac_args enable_nls"
2257 # Check whether --enable-nls was given.
2258 if test "${enable_nls+set}" = set; then
2259 enableval=$enable_nls;
2260 case $enableval in
2261 yes)
2268 enable_nls=yes
2269 WANTED_LANGUAGES=$enableval
2271 esac
2273 else
2274 enable_nls=no
2279 if test "$enable_nls" = yes; then
2281 cat >>confdefs.h <<\_ACEOF
2282 #define ENABLE_NLS 1
2283 _ACEOF
2287 { echo "$as_me:$LINENO: result: $enable_nls" >&5
2288 echo "${ECHO_T}$enable_nls" >&6; }
2293 # Default port number (--with-pgport), default 5432
2295 { echo "$as_me:$LINENO: checking for default port number" >&5
2296 echo $ECHO_N "checking for default port number... $ECHO_C" >&6; }
2298 pgac_args="$pgac_args with_pgport"
2301 # Check whether --with-pgport was given.
2302 if test "${with_pgport+set}" = set; then
2303 withval=$with_pgport;
2304 case $withval in
2305 yes)
2306 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2307 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2308 { (exit 1); exit 1; }; }
2311 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2312 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2313 { (exit 1); exit 1; }; }
2316 default_port=$withval
2318 esac
2320 else
2321 default_port=5432
2325 { echo "$as_me:$LINENO: result: $default_port" >&5
2326 echo "${ECHO_T}$default_port" >&6; }
2327 # Need both of these because some places want an integer and some a string
2329 cat >>confdefs.h <<_ACEOF
2330 #define DEF_PGPORT ${default_port}
2331 _ACEOF
2334 cat >>confdefs.h <<_ACEOF
2335 #define DEF_PGPORT_STR "${default_port}"
2336 _ACEOF
2341 # Option to disable shared libraries
2344 pgac_args="$pgac_args enable_shared"
2346 # Check whether --enable-shared was given.
2347 if test "${enable_shared+set}" = set; then
2348 enableval=$enable_shared;
2349 case $enableval in
2350 yes)
2357 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2358 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2359 { (exit 1); exit 1; }; }
2361 esac
2363 else
2364 enable_shared=yes
2372 # '-rpath'-like feature can be disabled
2375 pgac_args="$pgac_args enable_rpath"
2377 # Check whether --enable-rpath was given.
2378 if test "${enable_rpath+set}" = set; then
2379 enableval=$enable_rpath;
2380 case $enableval in
2381 yes)
2388 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2389 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2390 { (exit 1); exit 1; }; }
2392 esac
2394 else
2395 enable_rpath=yes
2403 # Spinlocks
2406 pgac_args="$pgac_args enable_spinlocks"
2408 # Check whether --enable-spinlocks was given.
2409 if test "${enable_spinlocks+set}" = set; then
2410 enableval=$enable_spinlocks;
2411 case $enableval in
2412 yes)
2419 { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2420 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2421 { (exit 1); exit 1; }; }
2423 esac
2425 else
2426 enable_spinlocks=yes
2433 # --enable-debug adds -g to compiler flags
2436 pgac_args="$pgac_args enable_debug"
2438 # Check whether --enable-debug was given.
2439 if test "${enable_debug+set}" = set; then
2440 enableval=$enable_debug;
2441 case $enableval in
2442 yes)
2449 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2450 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2451 { (exit 1); exit 1; }; }
2453 esac
2455 else
2456 enable_debug=no
2464 # --enable-profiling enables gcc profiling
2467 pgac_args="$pgac_args enable_profiling"
2469 # Check whether --enable-profiling was given.
2470 if test "${enable_profiling+set}" = set; then
2471 enableval=$enable_profiling;
2472 case $enableval in
2473 yes)
2480 { { echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2481 echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2482 { (exit 1); exit 1; }; }
2484 esac
2486 else
2487 enable_profiling=no
2495 # --enable-coverage enables generation of code coverage metrics with gcov
2498 pgac_args="$pgac_args enable_coverage"
2500 # Check whether --enable-coverage was given.
2501 if test "${enable_coverage+set}" = set; then
2502 enableval=$enable_coverage;
2503 case $enableval in
2504 yes)
2505 for ac_prog in gcov
2507 # Extract the first word of "$ac_prog", so it can be a program name with args.
2508 set dummy $ac_prog; ac_word=$2
2509 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2511 if test "${ac_cv_prog_GCOV+set}" = set; then
2512 echo $ECHO_N "(cached) $ECHO_C" >&6
2513 else
2514 if test -n "$GCOV"; then
2515 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2516 else
2517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2518 for as_dir in $PATH
2520 IFS=$as_save_IFS
2521 test -z "$as_dir" && as_dir=.
2522 for ac_exec_ext in '' $ac_executable_extensions; do
2523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2524 ac_cv_prog_GCOV="$ac_prog"
2525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2526 break 2
2528 done
2529 done
2530 IFS=$as_save_IFS
2534 GCOV=$ac_cv_prog_GCOV
2535 if test -n "$GCOV"; then
2536 { echo "$as_me:$LINENO: result: $GCOV" >&5
2537 echo "${ECHO_T}$GCOV" >&6; }
2538 else
2539 { echo "$as_me:$LINENO: result: no" >&5
2540 echo "${ECHO_T}no" >&6; }
2544 test -n "$GCOV" && break
2545 done
2547 if test -z "$GCOV"; then
2548 { { echo "$as_me:$LINENO: error: gcov not found" >&5
2549 echo "$as_me: error: gcov not found" >&2;}
2550 { (exit 1); exit 1; }; }
2552 for ac_prog in lcov
2554 # Extract the first word of "$ac_prog", so it can be a program name with args.
2555 set dummy $ac_prog; ac_word=$2
2556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2558 if test "${ac_cv_prog_LCOV+set}" = set; then
2559 echo $ECHO_N "(cached) $ECHO_C" >&6
2560 else
2561 if test -n "$LCOV"; then
2562 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2563 else
2564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565 for as_dir in $PATH
2567 IFS=$as_save_IFS
2568 test -z "$as_dir" && as_dir=.
2569 for ac_exec_ext in '' $ac_executable_extensions; do
2570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2571 ac_cv_prog_LCOV="$ac_prog"
2572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2573 break 2
2575 done
2576 done
2577 IFS=$as_save_IFS
2581 LCOV=$ac_cv_prog_LCOV
2582 if test -n "$LCOV"; then
2583 { echo "$as_me:$LINENO: result: $LCOV" >&5
2584 echo "${ECHO_T}$LCOV" >&6; }
2585 else
2586 { echo "$as_me:$LINENO: result: no" >&5
2587 echo "${ECHO_T}no" >&6; }
2591 test -n "$LCOV" && break
2592 done
2594 if test -z "$LCOV"; then
2595 { { echo "$as_me:$LINENO: error: lcov not found" >&5
2596 echo "$as_me: error: lcov not found" >&2;}
2597 { (exit 1); exit 1; }; }
2599 for ac_prog in genhtml
2601 # Extract the first word of "$ac_prog", so it can be a program name with args.
2602 set dummy $ac_prog; ac_word=$2
2603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2605 if test "${ac_cv_prog_GENHTML+set}" = set; then
2606 echo $ECHO_N "(cached) $ECHO_C" >&6
2607 else
2608 if test -n "$GENHTML"; then
2609 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2610 else
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 for as_dir in $PATH
2614 IFS=$as_save_IFS
2615 test -z "$as_dir" && as_dir=.
2616 for ac_exec_ext in '' $ac_executable_extensions; do
2617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2618 ac_cv_prog_GENHTML="$ac_prog"
2619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2620 break 2
2622 done
2623 done
2624 IFS=$as_save_IFS
2628 GENHTML=$ac_cv_prog_GENHTML
2629 if test -n "$GENHTML"; then
2630 { echo "$as_me:$LINENO: result: $GENHTML" >&5
2631 echo "${ECHO_T}$GENHTML" >&6; }
2632 else
2633 { echo "$as_me:$LINENO: result: no" >&5
2634 echo "${ECHO_T}no" >&6; }
2638 test -n "$GENHTML" && break
2639 done
2641 if test -z "$GENHTML"; then
2642 { { echo "$as_me:$LINENO: error: genhtml not found" >&5
2643 echo "$as_me: error: genhtml not found" >&2;}
2644 { (exit 1); exit 1; }; }
2651 { { echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2652 echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2653 { (exit 1); exit 1; }; }
2655 esac
2657 else
2658 enable_coverage=no
2666 # DTrace
2669 pgac_args="$pgac_args enable_dtrace"
2671 # Check whether --enable-dtrace was given.
2672 if test "${enable_dtrace+set}" = set; then
2673 enableval=$enable_dtrace;
2674 case $enableval in
2675 yes)
2677 cat >>confdefs.h <<\_ACEOF
2678 #define ENABLE_DTRACE 1
2679 _ACEOF
2681 for ac_prog in dtrace
2683 # Extract the first word of "$ac_prog", so it can be a program name with args.
2684 set dummy $ac_prog; ac_word=$2
2685 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2687 if test "${ac_cv_prog_DTRACE+set}" = set; then
2688 echo $ECHO_N "(cached) $ECHO_C" >&6
2689 else
2690 if test -n "$DTRACE"; then
2691 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2692 else
2693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694 for as_dir in $PATH
2696 IFS=$as_save_IFS
2697 test -z "$as_dir" && as_dir=.
2698 for ac_exec_ext in '' $ac_executable_extensions; do
2699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2700 ac_cv_prog_DTRACE="$ac_prog"
2701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2702 break 2
2704 done
2705 done
2706 IFS=$as_save_IFS
2710 DTRACE=$ac_cv_prog_DTRACE
2711 if test -n "$DTRACE"; then
2712 { echo "$as_me:$LINENO: result: $DTRACE" >&5
2713 echo "${ECHO_T}$DTRACE" >&6; }
2714 else
2715 { echo "$as_me:$LINENO: result: no" >&5
2716 echo "${ECHO_T}no" >&6; }
2720 test -n "$DTRACE" && break
2721 done
2723 if test -z "$DTRACE"; then
2724 { { echo "$as_me:$LINENO: error: dtrace not found" >&5
2725 echo "$as_me: error: dtrace not found" >&2;}
2726 { (exit 1); exit 1; }; }
2734 { { echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2735 echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2736 { (exit 1); exit 1; }; }
2738 esac
2740 else
2741 enable_dtrace=no
2749 # Block size
2751 { echo "$as_me:$LINENO: checking for block size" >&5
2752 echo $ECHO_N "checking for block size... $ECHO_C" >&6; }
2754 pgac_args="$pgac_args with_blocksize"
2757 # Check whether --with-blocksize was given.
2758 if test "${with_blocksize+set}" = set; then
2759 withval=$with_blocksize;
2760 case $withval in
2761 yes)
2762 { { echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2763 echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2764 { (exit 1); exit 1; }; }
2767 { { echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2768 echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2769 { (exit 1); exit 1; }; }
2772 blocksize=$withval
2774 esac
2776 else
2777 blocksize=8
2781 case ${blocksize} in
2782 1) BLCKSZ=1024;;
2783 2) BLCKSZ=2048;;
2784 4) BLCKSZ=4096;;
2785 8) BLCKSZ=8192;;
2786 16) BLCKSZ=16384;;
2787 32) BLCKSZ=32768;;
2788 *) { { echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2789 echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2790 { (exit 1); exit 1; }; }
2791 esac
2792 { echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2793 echo "${ECHO_T}${blocksize}kB" >&6; }
2796 cat >>confdefs.h <<_ACEOF
2797 #define BLCKSZ ${BLCKSZ}
2798 _ACEOF
2802 # Relation segment size
2804 { echo "$as_me:$LINENO: checking for segment size" >&5
2805 echo $ECHO_N "checking for segment size... $ECHO_C" >&6; }
2807 pgac_args="$pgac_args with_segsize"
2810 # Check whether --with-segsize was given.
2811 if test "${with_segsize+set}" = set; then
2812 withval=$with_segsize;
2813 case $withval in
2814 yes)
2815 { { echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2816 echo "$as_me: error: argument required for --with-segsize option" >&2;}
2817 { (exit 1); exit 1; }; }
2820 { { echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2821 echo "$as_me: error: argument required for --with-segsize option" >&2;}
2822 { (exit 1); exit 1; }; }
2825 segsize=$withval
2827 esac
2829 else
2830 segsize=1
2834 # this expression is set up to avoid unnecessary integer overflow
2835 # blocksize is already guaranteed to be a factor of 1024
2836 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2837 test $? -eq 0 || exit 1
2838 { echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2839 echo "${ECHO_T}${segsize}GB" >&6; }
2842 cat >>confdefs.h <<_ACEOF
2843 #define RELSEG_SIZE ${RELSEG_SIZE}
2844 _ACEOF
2848 # WAL block size
2850 { echo "$as_me:$LINENO: checking for WAL block size" >&5
2851 echo $ECHO_N "checking for WAL block size... $ECHO_C" >&6; }
2853 pgac_args="$pgac_args with_wal_blocksize"
2856 # Check whether --with-wal-blocksize was given.
2857 if test "${with_wal_blocksize+set}" = set; then
2858 withval=$with_wal_blocksize;
2859 case $withval in
2860 yes)
2861 { { echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2862 echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2863 { (exit 1); exit 1; }; }
2866 { { echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2867 echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2868 { (exit 1); exit 1; }; }
2871 wal_blocksize=$withval
2873 esac
2875 else
2876 wal_blocksize=8
2880 case ${wal_blocksize} in
2881 1) XLOG_BLCKSZ=1024;;
2882 2) XLOG_BLCKSZ=2048;;
2883 4) XLOG_BLCKSZ=4096;;
2884 8) XLOG_BLCKSZ=8192;;
2885 16) XLOG_BLCKSZ=16384;;
2886 32) XLOG_BLCKSZ=32768;;
2887 64) XLOG_BLCKSZ=65536;;
2888 *) { { echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
2889 echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2890 { (exit 1); exit 1; }; }
2891 esac
2892 { echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
2893 echo "${ECHO_T}${wal_blocksize}kB" >&6; }
2896 cat >>confdefs.h <<_ACEOF
2897 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
2898 _ACEOF
2902 # WAL segment size
2904 { echo "$as_me:$LINENO: checking for WAL segment size" >&5
2905 echo $ECHO_N "checking for WAL segment size... $ECHO_C" >&6; }
2907 pgac_args="$pgac_args with_wal_segsize"
2910 # Check whether --with-wal-segsize was given.
2911 if test "${with_wal_segsize+set}" = set; then
2912 withval=$with_wal_segsize;
2913 case $withval in
2914 yes)
2915 { { echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
2916 echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
2917 { (exit 1); exit 1; }; }
2920 { { echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
2921 echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
2922 { (exit 1); exit 1; }; }
2925 wal_segsize=$withval
2927 esac
2929 else
2930 wal_segsize=16
2934 case ${wal_segsize} in
2935 1) ;;
2936 2) ;;
2937 4) ;;
2938 8) ;;
2939 16) ;;
2940 32) ;;
2941 64) ;;
2942 *) { { echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
2943 echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2944 { (exit 1); exit 1; }; }
2945 esac
2946 { echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
2947 echo "${ECHO_T}${wal_segsize}MB" >&6; }
2950 cat >>confdefs.h <<_ACEOF
2951 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
2952 _ACEOF
2956 # C compiler
2959 # For historical reasons you can also use --with-CC to specify the C compiler
2960 # to use, although the standard way to do this is to set the CC environment
2961 # variable.
2963 pgac_args="$pgac_args with_CC"
2966 # Check whether --with-CC was given.
2967 if test "${with_CC+set}" = set; then
2968 withval=$with_CC;
2969 case $withval in
2970 yes)
2971 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2972 echo "$as_me: error: argument required for --with-CC option" >&2;}
2973 { (exit 1); exit 1; }; }
2976 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2977 echo "$as_me: error: argument required for --with-CC option" >&2;}
2978 { (exit 1); exit 1; }; }
2981 CC=$with_CC
2983 esac
2989 case $template in
2990 aix) pgac_cc_list="gcc xlc";;
2991 irix) pgac_cc_list="cc";; # no gcc
2992 *) pgac_cc_list="gcc cc";;
2993 esac
2995 ac_ext=c
2996 ac_cpp='$CPP $CPPFLAGS'
2997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3000 if test -n "$ac_tool_prefix"; then
3001 for ac_prog in $pgac_cc_list
3003 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3004 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3007 if test "${ac_cv_prog_CC+set}" = set; then
3008 echo $ECHO_N "(cached) $ECHO_C" >&6
3009 else
3010 if test -n "$CC"; then
3011 ac_cv_prog_CC="$CC" # Let the user override the test.
3012 else
3013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014 for as_dir in $PATH
3016 IFS=$as_save_IFS
3017 test -z "$as_dir" && as_dir=.
3018 for ac_exec_ext in '' $ac_executable_extensions; do
3019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3020 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3022 break 2
3024 done
3025 done
3026 IFS=$as_save_IFS
3030 CC=$ac_cv_prog_CC
3031 if test -n "$CC"; then
3032 { echo "$as_me:$LINENO: result: $CC" >&5
3033 echo "${ECHO_T}$CC" >&6; }
3034 else
3035 { echo "$as_me:$LINENO: result: no" >&5
3036 echo "${ECHO_T}no" >&6; }
3040 test -n "$CC" && break
3041 done
3043 if test -z "$CC"; then
3044 ac_ct_CC=$CC
3045 for ac_prog in $pgac_cc_list
3047 # Extract the first word of "$ac_prog", so it can be a program name with args.
3048 set dummy $ac_prog; ac_word=$2
3049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3051 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3052 echo $ECHO_N "(cached) $ECHO_C" >&6
3053 else
3054 if test -n "$ac_ct_CC"; then
3055 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3056 else
3057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058 for as_dir in $PATH
3060 IFS=$as_save_IFS
3061 test -z "$as_dir" && as_dir=.
3062 for ac_exec_ext in '' $ac_executable_extensions; do
3063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3064 ac_cv_prog_ac_ct_CC="$ac_prog"
3065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3066 break 2
3068 done
3069 done
3070 IFS=$as_save_IFS
3074 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3075 if test -n "$ac_ct_CC"; then
3076 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3077 echo "${ECHO_T}$ac_ct_CC" >&6; }
3078 else
3079 { echo "$as_me:$LINENO: result: no" >&5
3080 echo "${ECHO_T}no" >&6; }
3084 test -n "$ac_ct_CC" && break
3085 done
3087 if test "x$ac_ct_CC" = x; then
3088 CC=""
3089 else
3090 case $cross_compiling:$ac_tool_warned in
3091 yes:)
3092 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3093 whose name does not start with the host triplet. If you think this
3094 configuration is useful to you, please write to autoconf@gnu.org." >&5
3095 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3096 whose name does not start with the host triplet. If you think this
3097 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3098 ac_tool_warned=yes ;;
3099 esac
3100 CC=$ac_ct_CC
3105 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3106 See \`config.log' for more details." >&5
3107 echo "$as_me: error: no acceptable C compiler found in \$PATH
3108 See \`config.log' for more details." >&2;}
3109 { (exit 1); exit 1; }; }
3111 # Provide some information about the compiler.
3112 echo "$as_me:$LINENO: checking for C compiler version" >&5
3113 ac_compiler=`set X $ac_compile; echo $2`
3114 { (ac_try="$ac_compiler --version >&5"
3115 case "(($ac_try" in
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3118 esac
3119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120 (eval "$ac_compiler --version >&5") 2>&5
3121 ac_status=$?
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); }
3124 { (ac_try="$ac_compiler -v >&5"
3125 case "(($ac_try" in
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3128 esac
3129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3130 (eval "$ac_compiler -v >&5") 2>&5
3131 ac_status=$?
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); }
3134 { (ac_try="$ac_compiler -V >&5"
3135 case "(($ac_try" in
3136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137 *) ac_try_echo=$ac_try;;
3138 esac
3139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3140 (eval "$ac_compiler -V >&5") 2>&5
3141 ac_status=$?
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); }
3145 cat >conftest.$ac_ext <<_ACEOF
3146 /* confdefs.h. */
3147 _ACEOF
3148 cat confdefs.h >>conftest.$ac_ext
3149 cat >>conftest.$ac_ext <<_ACEOF
3150 /* end confdefs.h. */
3153 main ()
3157 return 0;
3159 _ACEOF
3160 ac_clean_files_save=$ac_clean_files
3161 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3162 # Try to create an executable without -o first, disregard a.out.
3163 # It will help us diagnose broken compilers, and finding out an intuition
3164 # of exeext.
3165 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3166 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3167 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3169 # List of possible output files, starting from the most likely.
3170 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3171 # only as a last resort. b.out is created by i960 compilers.
3172 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3174 # The IRIX 6 linker writes into existing files which may not be
3175 # executable, retaining their permissions. Remove them first so a
3176 # subsequent execution test works.
3177 ac_rmfiles=
3178 for ac_file in $ac_files
3180 case $ac_file in
3181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3182 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3183 esac
3184 done
3185 rm -f $ac_rmfiles
3187 if { (ac_try="$ac_link_default"
3188 case "(($ac_try" in
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3191 esac
3192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3193 (eval "$ac_link_default") 2>&5
3194 ac_status=$?
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }; then
3197 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3198 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3199 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3200 # so that the user can short-circuit this test for compilers unknown to
3201 # Autoconf.
3202 for ac_file in $ac_files ''
3204 test -f "$ac_file" || continue
3205 case $ac_file in
3206 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3208 [ab].out )
3209 # We found the default executable, but exeext='' is most
3210 # certainly right.
3211 break;;
3212 *.* )
3213 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3214 then :; else
3215 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3217 # We set ac_cv_exeext here because the later test for it is not
3218 # safe: cross compilers may not add the suffix if given an `-o'
3219 # argument, so we may need to know it at that point already.
3220 # Even if this section looks crufty: it has the advantage of
3221 # actually working.
3222 break;;
3224 break;;
3225 esac
3226 done
3227 test "$ac_cv_exeext" = no && ac_cv_exeext=
3229 else
3230 ac_file=''
3233 { echo "$as_me:$LINENO: result: $ac_file" >&5
3234 echo "${ECHO_T}$ac_file" >&6; }
3235 if test -z "$ac_file"; then
3236 echo "$as_me: failed program was:" >&5
3237 sed 's/^/| /' conftest.$ac_ext >&5
3239 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3240 See \`config.log' for more details." >&5
3241 echo "$as_me: error: C compiler cannot create executables
3242 See \`config.log' for more details." >&2;}
3243 { (exit 77); exit 77; }; }
3246 ac_exeext=$ac_cv_exeext
3248 # Check that the compiler produces executables we can run. If not, either
3249 # the compiler is broken, or we cross compile.
3250 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3251 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3252 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3253 # If not cross compiling, check that we can run a simple program.
3254 if test "$cross_compiling" != yes; then
3255 if { ac_try='./$ac_file'
3256 { (case "(($ac_try" in
3257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258 *) ac_try_echo=$ac_try;;
3259 esac
3260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3261 (eval "$ac_try") 2>&5
3262 ac_status=$?
3263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); }; }; then
3265 cross_compiling=no
3266 else
3267 if test "$cross_compiling" = maybe; then
3268 cross_compiling=yes
3269 else
3270 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3271 If you meant to cross compile, use \`--host'.
3272 See \`config.log' for more details." >&5
3273 echo "$as_me: error: cannot run C compiled programs.
3274 If you meant to cross compile, use \`--host'.
3275 See \`config.log' for more details." >&2;}
3276 { (exit 1); exit 1; }; }
3280 { echo "$as_me:$LINENO: result: yes" >&5
3281 echo "${ECHO_T}yes" >&6; }
3283 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3284 ac_clean_files=$ac_clean_files_save
3285 # Check that the compiler produces executables we can run. If not, either
3286 # the compiler is broken, or we cross compile.
3287 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3288 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3289 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3290 echo "${ECHO_T}$cross_compiling" >&6; }
3292 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3293 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3294 if { (ac_try="$ac_link"
3295 case "(($ac_try" in
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3298 esac
3299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3300 (eval "$ac_link") 2>&5
3301 ac_status=$?
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); }; then
3304 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3305 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3306 # work properly (i.e., refer to `conftest.exe'), while it won't with
3307 # `rm'.
3308 for ac_file in conftest.exe conftest conftest.*; do
3309 test -f "$ac_file" || continue
3310 case $ac_file in
3311 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3312 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3313 break;;
3314 * ) break;;
3315 esac
3316 done
3317 else
3318 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3319 See \`config.log' for more details." >&5
3320 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3321 See \`config.log' for more details." >&2;}
3322 { (exit 1); exit 1; }; }
3325 rm -f conftest$ac_cv_exeext
3326 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3327 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3329 rm -f conftest.$ac_ext
3330 EXEEXT=$ac_cv_exeext
3331 ac_exeext=$EXEEXT
3332 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3333 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3334 if test "${ac_cv_objext+set}" = set; then
3335 echo $ECHO_N "(cached) $ECHO_C" >&6
3336 else
3337 cat >conftest.$ac_ext <<_ACEOF
3338 /* confdefs.h. */
3339 _ACEOF
3340 cat confdefs.h >>conftest.$ac_ext
3341 cat >>conftest.$ac_ext <<_ACEOF
3342 /* end confdefs.h. */
3345 main ()
3349 return 0;
3351 _ACEOF
3352 rm -f conftest.o conftest.obj
3353 if { (ac_try="$ac_compile"
3354 case "(($ac_try" in
3355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3356 *) ac_try_echo=$ac_try;;
3357 esac
3358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3359 (eval "$ac_compile") 2>&5
3360 ac_status=$?
3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362 (exit $ac_status); }; then
3363 for ac_file in conftest.o conftest.obj conftest.*; do
3364 test -f "$ac_file" || continue;
3365 case $ac_file in
3366 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3367 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3368 break;;
3369 esac
3370 done
3371 else
3372 echo "$as_me: failed program was:" >&5
3373 sed 's/^/| /' conftest.$ac_ext >&5
3375 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3376 See \`config.log' for more details." >&5
3377 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3378 See \`config.log' for more details." >&2;}
3379 { (exit 1); exit 1; }; }
3382 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3384 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3385 echo "${ECHO_T}$ac_cv_objext" >&6; }
3386 OBJEXT=$ac_cv_objext
3387 ac_objext=$OBJEXT
3388 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3389 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3390 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3391 echo $ECHO_N "(cached) $ECHO_C" >&6
3392 else
3393 cat >conftest.$ac_ext <<_ACEOF
3394 /* confdefs.h. */
3395 _ACEOF
3396 cat confdefs.h >>conftest.$ac_ext
3397 cat >>conftest.$ac_ext <<_ACEOF
3398 /* end confdefs.h. */
3401 main ()
3403 #ifndef __GNUC__
3404 choke me
3405 #endif
3408 return 0;
3410 _ACEOF
3411 rm -f conftest.$ac_objext
3412 if { (ac_try="$ac_compile"
3413 case "(($ac_try" in
3414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415 *) ac_try_echo=$ac_try;;
3416 esac
3417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3418 (eval "$ac_compile") 2>conftest.er1
3419 ac_status=$?
3420 grep -v '^ *+' conftest.er1 >conftest.err
3421 rm -f conftest.er1
3422 cat conftest.err >&5
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); } && {
3425 test -z "$ac_c_werror_flag" ||
3426 test ! -s conftest.err
3427 } && test -s conftest.$ac_objext; then
3428 ac_compiler_gnu=yes
3429 else
3430 echo "$as_me: failed program was:" >&5
3431 sed 's/^/| /' conftest.$ac_ext >&5
3433 ac_compiler_gnu=no
3436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3437 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3440 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3441 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3442 GCC=`test $ac_compiler_gnu = yes && echo yes`
3443 ac_test_CFLAGS=${CFLAGS+set}
3444 ac_save_CFLAGS=$CFLAGS
3445 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3446 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3447 if test "${ac_cv_prog_cc_g+set}" = set; then
3448 echo $ECHO_N "(cached) $ECHO_C" >&6
3449 else
3450 ac_save_c_werror_flag=$ac_c_werror_flag
3451 ac_c_werror_flag=yes
3452 ac_cv_prog_cc_g=no
3453 CFLAGS="-g"
3454 cat >conftest.$ac_ext <<_ACEOF
3455 /* confdefs.h. */
3456 _ACEOF
3457 cat confdefs.h >>conftest.$ac_ext
3458 cat >>conftest.$ac_ext <<_ACEOF
3459 /* end confdefs.h. */
3462 main ()
3466 return 0;
3468 _ACEOF
3469 rm -f conftest.$ac_objext
3470 if { (ac_try="$ac_compile"
3471 case "(($ac_try" in
3472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473 *) ac_try_echo=$ac_try;;
3474 esac
3475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3476 (eval "$ac_compile") 2>conftest.er1
3477 ac_status=$?
3478 grep -v '^ *+' conftest.er1 >conftest.err
3479 rm -f conftest.er1
3480 cat conftest.err >&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); } && {
3483 test -z "$ac_c_werror_flag" ||
3484 test ! -s conftest.err
3485 } && test -s conftest.$ac_objext; then
3486 ac_cv_prog_cc_g=yes
3487 else
3488 echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.$ac_ext >&5
3491 CFLAGS=""
3492 cat >conftest.$ac_ext <<_ACEOF
3493 /* confdefs.h. */
3494 _ACEOF
3495 cat confdefs.h >>conftest.$ac_ext
3496 cat >>conftest.$ac_ext <<_ACEOF
3497 /* end confdefs.h. */
3500 main ()
3504 return 0;
3506 _ACEOF
3507 rm -f conftest.$ac_objext
3508 if { (ac_try="$ac_compile"
3509 case "(($ac_try" in
3510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3511 *) ac_try_echo=$ac_try;;
3512 esac
3513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3514 (eval "$ac_compile") 2>conftest.er1
3515 ac_status=$?
3516 grep -v '^ *+' conftest.er1 >conftest.err
3517 rm -f conftest.er1
3518 cat conftest.err >&5
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); } && {
3521 test -z "$ac_c_werror_flag" ||
3522 test ! -s conftest.err
3523 } && test -s conftest.$ac_objext; then
3525 else
3526 echo "$as_me: failed program was:" >&5
3527 sed 's/^/| /' conftest.$ac_ext >&5
3529 ac_c_werror_flag=$ac_save_c_werror_flag
3530 CFLAGS="-g"
3531 cat >conftest.$ac_ext <<_ACEOF
3532 /* confdefs.h. */
3533 _ACEOF
3534 cat confdefs.h >>conftest.$ac_ext
3535 cat >>conftest.$ac_ext <<_ACEOF
3536 /* end confdefs.h. */
3539 main ()
3543 return 0;
3545 _ACEOF
3546 rm -f conftest.$ac_objext
3547 if { (ac_try="$ac_compile"
3548 case "(($ac_try" in
3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550 *) ac_try_echo=$ac_try;;
3551 esac
3552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3553 (eval "$ac_compile") 2>conftest.er1
3554 ac_status=$?
3555 grep -v '^ *+' conftest.er1 >conftest.err
3556 rm -f conftest.er1
3557 cat conftest.err >&5
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); } && {
3560 test -z "$ac_c_werror_flag" ||
3561 test ! -s conftest.err
3562 } && test -s conftest.$ac_objext; then
3563 ac_cv_prog_cc_g=yes
3564 else
3565 echo "$as_me: failed program was:" >&5
3566 sed 's/^/| /' conftest.$ac_ext >&5
3571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3578 ac_c_werror_flag=$ac_save_c_werror_flag
3580 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3581 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3582 if test "$ac_test_CFLAGS" = set; then
3583 CFLAGS=$ac_save_CFLAGS
3584 elif test $ac_cv_prog_cc_g = yes; then
3585 if test "$GCC" = yes; then
3586 CFLAGS="-g -O2"
3587 else
3588 CFLAGS="-g"
3590 else
3591 if test "$GCC" = yes; then
3592 CFLAGS="-O2"
3593 else
3594 CFLAGS=
3597 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3598 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3599 if test "${ac_cv_prog_cc_c89+set}" = set; then
3600 echo $ECHO_N "(cached) $ECHO_C" >&6
3601 else
3602 ac_cv_prog_cc_c89=no
3603 ac_save_CC=$CC
3604 cat >conftest.$ac_ext <<_ACEOF
3605 /* confdefs.h. */
3606 _ACEOF
3607 cat confdefs.h >>conftest.$ac_ext
3608 cat >>conftest.$ac_ext <<_ACEOF
3609 /* end confdefs.h. */
3610 #include <stdarg.h>
3611 #include <stdio.h>
3612 #include <sys/types.h>
3613 #include <sys/stat.h>
3614 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3615 struct buf { int x; };
3616 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3617 static char *e (p, i)
3618 char **p;
3619 int i;
3621 return p[i];
3623 static char *f (char * (*g) (char **, int), char **p, ...)
3625 char *s;
3626 va_list v;
3627 va_start (v,p);
3628 s = g (p, va_arg (v,int));
3629 va_end (v);
3630 return s;
3633 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3634 function prototypes and stuff, but not '\xHH' hex character constants.
3635 These don't provoke an error unfortunately, instead are silently treated
3636 as 'x'. The following induces an error, until -std is added to get
3637 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3638 array size at least. It's necessary to write '\x00'==0 to get something
3639 that's true only with -std. */
3640 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3642 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3643 inside strings and character constants. */
3644 #define FOO(x) 'x'
3645 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3647 int test (int i, double x);
3648 struct s1 {int (*f) (int a);};
3649 struct s2 {int (*f) (double a);};
3650 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3651 int argc;
3652 char **argv;
3654 main ()
3656 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3658 return 0;
3660 _ACEOF
3661 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3662 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3664 CC="$ac_save_CC $ac_arg"
3665 rm -f conftest.$ac_objext
3666 if { (ac_try="$ac_compile"
3667 case "(($ac_try" in
3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669 *) ac_try_echo=$ac_try;;
3670 esac
3671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3672 (eval "$ac_compile") 2>conftest.er1
3673 ac_status=$?
3674 grep -v '^ *+' conftest.er1 >conftest.err
3675 rm -f conftest.er1
3676 cat conftest.err >&5
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); } && {
3679 test -z "$ac_c_werror_flag" ||
3680 test ! -s conftest.err
3681 } && test -s conftest.$ac_objext; then
3682 ac_cv_prog_cc_c89=$ac_arg
3683 else
3684 echo "$as_me: failed program was:" >&5
3685 sed 's/^/| /' conftest.$ac_ext >&5
3690 rm -f core conftest.err conftest.$ac_objext
3691 test "x$ac_cv_prog_cc_c89" != "xno" && break
3692 done
3693 rm -f conftest.$ac_ext
3694 CC=$ac_save_CC
3697 # AC_CACHE_VAL
3698 case "x$ac_cv_prog_cc_c89" in
3700 { echo "$as_me:$LINENO: result: none needed" >&5
3701 echo "${ECHO_T}none needed" >&6; } ;;
3702 xno)
3703 { echo "$as_me:$LINENO: result: unsupported" >&5
3704 echo "${ECHO_T}unsupported" >&6; } ;;
3706 CC="$CC $ac_cv_prog_cc_c89"
3707 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3708 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3709 esac
3712 ac_ext=c
3713 ac_cpp='$CPP $CPPFLAGS'
3714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3719 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3720 # but has idiosyncrasies of its own. We assume icc will define
3721 # __INTEL_COMPILER regardless of CFLAGS.
3723 cat >conftest.$ac_ext <<_ACEOF
3724 /* confdefs.h. */
3725 _ACEOF
3726 cat confdefs.h >>conftest.$ac_ext
3727 cat >>conftest.$ac_ext <<_ACEOF
3728 /* end confdefs.h. */
3731 main ()
3733 #ifndef __INTEL_COMPILER
3734 choke me
3735 #endif
3737 return 0;
3739 _ACEOF
3740 rm -f conftest.$ac_objext
3741 if { (ac_try="$ac_compile"
3742 case "(($ac_try" in
3743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3744 *) ac_try_echo=$ac_try;;
3745 esac
3746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3747 (eval "$ac_compile") 2>conftest.er1
3748 ac_status=$?
3749 grep -v '^ *+' conftest.er1 >conftest.err
3750 rm -f conftest.er1
3751 cat conftest.err >&5
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); } && {
3754 test -z "$ac_c_werror_flag" ||
3755 test ! -s conftest.err
3756 } && test -s conftest.$ac_objext; then
3757 ICC=yes
3758 else
3759 echo "$as_me: failed program was:" >&5
3760 sed 's/^/| /' conftest.$ac_ext >&5
3762 ICC=no
3765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3767 # Check if it's Sun Studio compiler. We assume that
3768 # __SUNPRO_C will be defined for Sun Studio compilers
3769 cat >conftest.$ac_ext <<_ACEOF
3770 /* confdefs.h. */
3771 _ACEOF
3772 cat confdefs.h >>conftest.$ac_ext
3773 cat >>conftest.$ac_ext <<_ACEOF
3774 /* end confdefs.h. */
3777 main ()
3779 #ifndef __SUNPRO_C
3780 choke me
3781 #endif
3783 return 0;
3785 _ACEOF
3786 rm -f conftest.$ac_objext
3787 if { (ac_try="$ac_compile"
3788 case "(($ac_try" in
3789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3790 *) ac_try_echo=$ac_try;;
3791 esac
3792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3793 (eval "$ac_compile") 2>conftest.er1
3794 ac_status=$?
3795 grep -v '^ *+' conftest.er1 >conftest.err
3796 rm -f conftest.er1
3797 cat conftest.err >&5
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); } && {
3800 test -z "$ac_c_werror_flag" ||
3801 test ! -s conftest.err
3802 } && test -s conftest.$ac_objext; then
3803 SUN_STUDIO_CC=yes
3804 else
3805 echo "$as_me: failed program was:" >&5
3806 sed 's/^/| /' conftest.$ac_ext >&5
3808 SUN_STUDIO_CC=no
3811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3815 unset CFLAGS
3818 # Read the template
3820 . "$srcdir/src/template/$template" || exit
3822 # CFLAGS are selected so:
3823 # If the user specifies something in the environment, that is used.
3824 # else: If the template file set something, that is used.
3825 # else: If coverage was enabled, don't set anything.
3826 # else: If the compiler is GCC, then we use -O2.
3827 # else: If the compiler is something else, then we use -O.
3829 if test "$ac_env_CFLAGS_set" = set; then
3830 CFLAGS=$ac_env_CFLAGS_value
3831 elif test "${CFLAGS+set}" = set; then
3832 : # (keep what template set)
3833 elif test "$enable_coverage" = yes; then
3834 : # no optimization by default
3835 elif test "$GCC" = yes; then
3836 CFLAGS="-O2"
3837 else
3838 # if the user selected debug mode, don't use -O
3839 if test "$enable_debug" != yes; then
3840 CFLAGS="-O"
3844 # Some versions of GCC support some additional useful warning flags.
3845 # Check whether they are supported, and add them to CFLAGS if so.
3846 # ICC pretends to be GCC but it's lying; it doesn't support these options.
3848 if test "$GCC" = yes -a "$ICC" = no; then
3849 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
3850 # These work in some but not all gcc versions
3851 { echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
3852 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6; }
3853 pgac_save_CFLAGS=$CFLAGS
3854 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
3855 cat >conftest.$ac_ext <<_ACEOF
3856 /* confdefs.h. */
3857 _ACEOF
3858 cat confdefs.h >>conftest.$ac_ext
3859 cat >>conftest.$ac_ext <<_ACEOF
3860 /* end confdefs.h. */
3863 main ()
3867 return 0;
3869 _ACEOF
3870 rm -f conftest.$ac_objext
3871 if { (ac_try="$ac_compile"
3872 case "(($ac_try" in
3873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3874 *) ac_try_echo=$ac_try;;
3875 esac
3876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3877 (eval "$ac_compile") 2>conftest.er1
3878 ac_status=$?
3879 grep -v '^ *+' conftest.er1 >conftest.err
3880 rm -f conftest.er1
3881 cat conftest.err >&5
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); } && {
3884 test -z "$ac_c_werror_flag" ||
3885 test ! -s conftest.err
3886 } && test -s conftest.$ac_objext; then
3887 { echo "$as_me:$LINENO: result: yes" >&5
3888 echo "${ECHO_T}yes" >&6; }
3889 else
3890 echo "$as_me: failed program was:" >&5
3891 sed 's/^/| /' conftest.$ac_ext >&5
3893 CFLAGS="$pgac_save_CFLAGS"
3894 { echo "$as_me:$LINENO: result: no" >&5
3895 echo "${ECHO_T}no" >&6; }
3898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3900 { echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
3901 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6; }
3902 pgac_save_CFLAGS=$CFLAGS
3903 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
3904 cat >conftest.$ac_ext <<_ACEOF
3905 /* confdefs.h. */
3906 _ACEOF
3907 cat confdefs.h >>conftest.$ac_ext
3908 cat >>conftest.$ac_ext <<_ACEOF
3909 /* end confdefs.h. */
3912 main ()
3916 return 0;
3918 _ACEOF
3919 rm -f conftest.$ac_objext
3920 if { (ac_try="$ac_compile"
3921 case "(($ac_try" in
3922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3923 *) ac_try_echo=$ac_try;;
3924 esac
3925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3926 (eval "$ac_compile") 2>conftest.er1
3927 ac_status=$?
3928 grep -v '^ *+' conftest.er1 >conftest.err
3929 rm -f conftest.er1
3930 cat conftest.err >&5
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); } && {
3933 test -z "$ac_c_werror_flag" ||
3934 test ! -s conftest.err
3935 } && test -s conftest.$ac_objext; then
3936 { echo "$as_me:$LINENO: result: yes" >&5
3937 echo "${ECHO_T}yes" >&6; }
3938 else
3939 echo "$as_me: failed program was:" >&5
3940 sed 's/^/| /' conftest.$ac_ext >&5
3942 CFLAGS="$pgac_save_CFLAGS"
3943 { echo "$as_me:$LINENO: result: no" >&5
3944 echo "${ECHO_T}no" >&6; }
3947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3949 # Disable strict-aliasing rules; needed for gcc 3.3+
3950 { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3951 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
3952 pgac_save_CFLAGS=$CFLAGS
3953 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
3954 cat >conftest.$ac_ext <<_ACEOF
3955 /* confdefs.h. */
3956 _ACEOF
3957 cat confdefs.h >>conftest.$ac_ext
3958 cat >>conftest.$ac_ext <<_ACEOF
3959 /* end confdefs.h. */
3962 main ()
3966 return 0;
3968 _ACEOF
3969 rm -f conftest.$ac_objext
3970 if { (ac_try="$ac_compile"
3971 case "(($ac_try" in
3972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3973 *) ac_try_echo=$ac_try;;
3974 esac
3975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3976 (eval "$ac_compile") 2>conftest.er1
3977 ac_status=$?
3978 grep -v '^ *+' conftest.er1 >conftest.err
3979 rm -f conftest.er1
3980 cat conftest.err >&5
3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982 (exit $ac_status); } && {
3983 test -z "$ac_c_werror_flag" ||
3984 test ! -s conftest.err
3985 } && test -s conftest.$ac_objext; then
3986 { echo "$as_me:$LINENO: result: yes" >&5
3987 echo "${ECHO_T}yes" >&6; }
3988 else
3989 echo "$as_me: failed program was:" >&5
3990 sed 's/^/| /' conftest.$ac_ext >&5
3992 CFLAGS="$pgac_save_CFLAGS"
3993 { echo "$as_me:$LINENO: result: no" >&5
3994 echo "${ECHO_T}no" >&6; }
3997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3999 # Disable optimizations that assume no overflow; needed for gcc 4.3+
4000 { echo "$as_me:$LINENO: checking if $CC supports -fwrapv" >&5
4001 echo $ECHO_N "checking if $CC supports -fwrapv... $ECHO_C" >&6; }
4002 pgac_save_CFLAGS=$CFLAGS
4003 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4004 cat >conftest.$ac_ext <<_ACEOF
4005 /* confdefs.h. */
4006 _ACEOF
4007 cat confdefs.h >>conftest.$ac_ext
4008 cat >>conftest.$ac_ext <<_ACEOF
4009 /* end confdefs.h. */
4012 main ()
4016 return 0;
4018 _ACEOF
4019 rm -f conftest.$ac_objext
4020 if { (ac_try="$ac_compile"
4021 case "(($ac_try" in
4022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4023 *) ac_try_echo=$ac_try;;
4024 esac
4025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4026 (eval "$ac_compile") 2>conftest.er1
4027 ac_status=$?
4028 grep -v '^ *+' conftest.er1 >conftest.err
4029 rm -f conftest.er1
4030 cat conftest.err >&5
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); } && {
4033 test -z "$ac_c_werror_flag" ||
4034 test ! -s conftest.err
4035 } && test -s conftest.$ac_objext; then
4036 { echo "$as_me:$LINENO: result: yes" >&5
4037 echo "${ECHO_T}yes" >&6; }
4038 else
4039 echo "$as_me: failed program was:" >&5
4040 sed 's/^/| /' conftest.$ac_ext >&5
4042 CFLAGS="$pgac_save_CFLAGS"
4043 { echo "$as_me:$LINENO: result: no" >&5
4044 echo "${ECHO_T}no" >&6; }
4047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4049 elif test "$ICC" = yes; then
4050 # Intel's compiler has a bug/misoptimization in checking for
4051 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4052 { echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
4053 echo $ECHO_N "checking if $CC supports -mp1... $ECHO_C" >&6; }
4054 pgac_save_CFLAGS=$CFLAGS
4055 CFLAGS="$pgac_save_CFLAGS -mp1"
4056 cat >conftest.$ac_ext <<_ACEOF
4057 /* confdefs.h. */
4058 _ACEOF
4059 cat confdefs.h >>conftest.$ac_ext
4060 cat >>conftest.$ac_ext <<_ACEOF
4061 /* end confdefs.h. */
4064 main ()
4068 return 0;
4070 _ACEOF
4071 rm -f conftest.$ac_objext
4072 if { (ac_try="$ac_compile"
4073 case "(($ac_try" in
4074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075 *) ac_try_echo=$ac_try;;
4076 esac
4077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4078 (eval "$ac_compile") 2>conftest.er1
4079 ac_status=$?
4080 grep -v '^ *+' conftest.er1 >conftest.err
4081 rm -f conftest.er1
4082 cat conftest.err >&5
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); } && {
4085 test -z "$ac_c_werror_flag" ||
4086 test ! -s conftest.err
4087 } && test -s conftest.$ac_objext; then
4088 { echo "$as_me:$LINENO: result: yes" >&5
4089 echo "${ECHO_T}yes" >&6; }
4090 else
4091 echo "$as_me: failed program was:" >&5
4092 sed 's/^/| /' conftest.$ac_ext >&5
4094 CFLAGS="$pgac_save_CFLAGS"
4095 { echo "$as_me:$LINENO: result: no" >&5
4096 echo "${ECHO_T}no" >&6; }
4099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4101 # Make sure strict aliasing is off (though this is said to be the default)
4102 { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
4103 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
4104 pgac_save_CFLAGS=$CFLAGS
4105 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4106 cat >conftest.$ac_ext <<_ACEOF
4107 /* confdefs.h. */
4108 _ACEOF
4109 cat confdefs.h >>conftest.$ac_ext
4110 cat >>conftest.$ac_ext <<_ACEOF
4111 /* end confdefs.h. */
4114 main ()
4118 return 0;
4120 _ACEOF
4121 rm -f conftest.$ac_objext
4122 if { (ac_try="$ac_compile"
4123 case "(($ac_try" in
4124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4125 *) ac_try_echo=$ac_try;;
4126 esac
4127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4128 (eval "$ac_compile") 2>conftest.er1
4129 ac_status=$?
4130 grep -v '^ *+' conftest.er1 >conftest.err
4131 rm -f conftest.er1
4132 cat conftest.err >&5
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); } && {
4135 test -z "$ac_c_werror_flag" ||
4136 test ! -s conftest.err
4137 } && test -s conftest.$ac_objext; then
4138 { echo "$as_me:$LINENO: result: yes" >&5
4139 echo "${ECHO_T}yes" >&6; }
4140 else
4141 echo "$as_me: failed program was:" >&5
4142 sed 's/^/| /' conftest.$ac_ext >&5
4144 CFLAGS="$pgac_save_CFLAGS"
4145 { echo "$as_me:$LINENO: result: no" >&5
4146 echo "${ECHO_T}no" >&6; }
4149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4151 elif test x"${CC}" = x"xlc"; then
4152 # AIX xlc has to have strict aliasing turned off too
4153 { echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
4154 echo $ECHO_N "checking if $CC supports -qnoansialias... $ECHO_C" >&6; }
4155 pgac_save_CFLAGS=$CFLAGS
4156 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4157 cat >conftest.$ac_ext <<_ACEOF
4158 /* confdefs.h. */
4159 _ACEOF
4160 cat confdefs.h >>conftest.$ac_ext
4161 cat >>conftest.$ac_ext <<_ACEOF
4162 /* end confdefs.h. */
4165 main ()
4169 return 0;
4171 _ACEOF
4172 rm -f conftest.$ac_objext
4173 if { (ac_try="$ac_compile"
4174 case "(($ac_try" in
4175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176 *) ac_try_echo=$ac_try;;
4177 esac
4178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4179 (eval "$ac_compile") 2>conftest.er1
4180 ac_status=$?
4181 grep -v '^ *+' conftest.er1 >conftest.err
4182 rm -f conftest.er1
4183 cat conftest.err >&5
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); } && {
4186 test -z "$ac_c_werror_flag" ||
4187 test ! -s conftest.err
4188 } && test -s conftest.$ac_objext; then
4189 { echo "$as_me:$LINENO: result: yes" >&5
4190 echo "${ECHO_T}yes" >&6; }
4191 else
4192 echo "$as_me: failed program was:" >&5
4193 sed 's/^/| /' conftest.$ac_ext >&5
4195 CFLAGS="$pgac_save_CFLAGS"
4196 { echo "$as_me:$LINENO: result: no" >&5
4197 echo "${ECHO_T}no" >&6; }
4200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4204 # supply -g if --enable-debug
4205 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4206 CFLAGS="$CFLAGS -g"
4209 # enable code coverage if --enable-coverage
4210 if test "$enable_coverage" = yes; then
4211 if test "$GCC" = yes; then
4212 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4213 else
4214 { { echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4215 echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4216 { (exit 1); exit 1; }; }
4220 # enable profiling if --enable-profiling
4221 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4222 if test "$GCC" = yes; then
4224 cat >>confdefs.h <<\_ACEOF
4225 #define PROFILE_PID_DIR 1
4226 _ACEOF
4228 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4229 else
4230 { { echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4231 echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4232 { (exit 1); exit 1; }; }
4236 # We already have this in Makefile.win32, but configure needs it too
4237 if test "$PORTNAME" = "win32"; then
4238 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4241 # Check if the compiler still works with the template settings
4242 { echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4243 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6; }
4244 cat >conftest.$ac_ext <<_ACEOF
4245 /* confdefs.h. */
4246 _ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h. */
4252 main ()
4254 return 0;
4256 return 0;
4258 _ACEOF
4259 rm -f conftest.$ac_objext conftest$ac_exeext
4260 if { (ac_try="$ac_link"
4261 case "(($ac_try" in
4262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263 *) ac_try_echo=$ac_try;;
4264 esac
4265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4266 (eval "$ac_link") 2>conftest.er1
4267 ac_status=$?
4268 grep -v '^ *+' conftest.er1 >conftest.err
4269 rm -f conftest.er1
4270 cat conftest.err >&5
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); } && {
4273 test -z "$ac_c_werror_flag" ||
4274 test ! -s conftest.err
4275 } && test -s conftest$ac_exeext &&
4276 $as_test_x conftest$ac_exeext; then
4277 { echo "$as_me:$LINENO: result: yes" >&5
4278 echo "${ECHO_T}yes" >&6; }
4279 else
4280 echo "$as_me: failed program was:" >&5
4281 sed 's/^/| /' conftest.$ac_ext >&5
4283 { echo "$as_me:$LINENO: result: no" >&5
4284 echo "${ECHO_T}no" >&6; }
4285 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
4286 echo "$as_me: error: cannot proceed" >&2;}
4287 { (exit 1); exit 1; }; }
4290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4291 conftest$ac_exeext conftest.$ac_ext
4293 # Defend against gcc -ffast-math
4294 if test "$GCC" = yes; then
4295 cat >conftest.$ac_ext <<_ACEOF
4296 /* confdefs.h. */
4297 _ACEOF
4298 cat confdefs.h >>conftest.$ac_ext
4299 cat >>conftest.$ac_ext <<_ACEOF
4300 /* end confdefs.h. */
4303 main ()
4305 #ifdef __FAST_MATH__
4306 choke me
4307 #endif
4309 return 0;
4311 _ACEOF
4312 rm -f conftest.$ac_objext
4313 if { (ac_try="$ac_compile"
4314 case "(($ac_try" in
4315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4316 *) ac_try_echo=$ac_try;;
4317 esac
4318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4319 (eval "$ac_compile") 2>conftest.er1
4320 ac_status=$?
4321 grep -v '^ *+' conftest.er1 >conftest.err
4322 rm -f conftest.er1
4323 cat conftest.err >&5
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); } && {
4326 test -z "$ac_c_werror_flag" ||
4327 test ! -s conftest.err
4328 } && test -s conftest.$ac_objext; then
4330 else
4331 echo "$as_me: failed program was:" >&5
4332 sed 's/^/| /' conftest.$ac_ext >&5
4334 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4335 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4336 { (exit 1); exit 1; }; }
4339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4342 ac_ext=c
4343 ac_cpp='$CPP $CPPFLAGS'
4344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4347 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4348 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4349 # On Suns, sometimes $CPP names a directory.
4350 if test -n "$CPP" && test -d "$CPP"; then
4351 CPP=
4353 if test -z "$CPP"; then
4354 if test "${ac_cv_prog_CPP+set}" = set; then
4355 echo $ECHO_N "(cached) $ECHO_C" >&6
4356 else
4357 # Double quotes because CPP needs to be expanded
4358 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4360 ac_preproc_ok=false
4361 for ac_c_preproc_warn_flag in '' yes
4363 # Use a header file that comes with gcc, so configuring glibc
4364 # with a fresh cross-compiler works.
4365 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4366 # <limits.h> exists even on freestanding compilers.
4367 # On the NeXT, cc -E runs the code through the compiler's parser,
4368 # not just through cpp. "Syntax error" is here to catch this case.
4369 cat >conftest.$ac_ext <<_ACEOF
4370 /* confdefs.h. */
4371 _ACEOF
4372 cat confdefs.h >>conftest.$ac_ext
4373 cat >>conftest.$ac_ext <<_ACEOF
4374 /* end confdefs.h. */
4375 #ifdef __STDC__
4376 # include <limits.h>
4377 #else
4378 # include <assert.h>
4379 #endif
4380 Syntax error
4381 _ACEOF
4382 if { (ac_try="$ac_cpp conftest.$ac_ext"
4383 case "(($ac_try" in
4384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4385 *) ac_try_echo=$ac_try;;
4386 esac
4387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4389 ac_status=$?
4390 grep -v '^ *+' conftest.er1 >conftest.err
4391 rm -f conftest.er1
4392 cat conftest.err >&5
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); } >/dev/null && {
4395 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4396 test ! -s conftest.err
4397 }; then
4399 else
4400 echo "$as_me: failed program was:" >&5
4401 sed 's/^/| /' conftest.$ac_ext >&5
4403 # Broken: fails on valid input.
4404 continue
4407 rm -f conftest.err conftest.$ac_ext
4409 # OK, works on sane cases. Now check whether nonexistent headers
4410 # can be detected and how.
4411 cat >conftest.$ac_ext <<_ACEOF
4412 /* confdefs.h. */
4413 _ACEOF
4414 cat confdefs.h >>conftest.$ac_ext
4415 cat >>conftest.$ac_ext <<_ACEOF
4416 /* end confdefs.h. */
4417 #include <ac_nonexistent.h>
4418 _ACEOF
4419 if { (ac_try="$ac_cpp conftest.$ac_ext"
4420 case "(($ac_try" in
4421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4422 *) ac_try_echo=$ac_try;;
4423 esac
4424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4425 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4426 ac_status=$?
4427 grep -v '^ *+' conftest.er1 >conftest.err
4428 rm -f conftest.er1
4429 cat conftest.err >&5
4430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431 (exit $ac_status); } >/dev/null && {
4432 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4433 test ! -s conftest.err
4434 }; then
4435 # Broken: success on invalid input.
4436 continue
4437 else
4438 echo "$as_me: failed program was:" >&5
4439 sed 's/^/| /' conftest.$ac_ext >&5
4441 # Passes both tests.
4442 ac_preproc_ok=:
4443 break
4446 rm -f conftest.err conftest.$ac_ext
4448 done
4449 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4450 rm -f conftest.err conftest.$ac_ext
4451 if $ac_preproc_ok; then
4452 break
4455 done
4456 ac_cv_prog_CPP=$CPP
4459 CPP=$ac_cv_prog_CPP
4460 else
4461 ac_cv_prog_CPP=$CPP
4463 { echo "$as_me:$LINENO: result: $CPP" >&5
4464 echo "${ECHO_T}$CPP" >&6; }
4465 ac_preproc_ok=false
4466 for ac_c_preproc_warn_flag in '' yes
4468 # Use a header file that comes with gcc, so configuring glibc
4469 # with a fresh cross-compiler works.
4470 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4471 # <limits.h> exists even on freestanding compilers.
4472 # On the NeXT, cc -E runs the code through the compiler's parser,
4473 # not just through cpp. "Syntax error" is here to catch this case.
4474 cat >conftest.$ac_ext <<_ACEOF
4475 /* confdefs.h. */
4476 _ACEOF
4477 cat confdefs.h >>conftest.$ac_ext
4478 cat >>conftest.$ac_ext <<_ACEOF
4479 /* end confdefs.h. */
4480 #ifdef __STDC__
4481 # include <limits.h>
4482 #else
4483 # include <assert.h>
4484 #endif
4485 Syntax error
4486 _ACEOF
4487 if { (ac_try="$ac_cpp conftest.$ac_ext"
4488 case "(($ac_try" in
4489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4490 *) ac_try_echo=$ac_try;;
4491 esac
4492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4493 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4494 ac_status=$?
4495 grep -v '^ *+' conftest.er1 >conftest.err
4496 rm -f conftest.er1
4497 cat conftest.err >&5
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); } >/dev/null && {
4500 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4501 test ! -s conftest.err
4502 }; then
4504 else
4505 echo "$as_me: failed program was:" >&5
4506 sed 's/^/| /' conftest.$ac_ext >&5
4508 # Broken: fails on valid input.
4509 continue
4512 rm -f conftest.err conftest.$ac_ext
4514 # OK, works on sane cases. Now check whether nonexistent headers
4515 # can be detected and how.
4516 cat >conftest.$ac_ext <<_ACEOF
4517 /* confdefs.h. */
4518 _ACEOF
4519 cat confdefs.h >>conftest.$ac_ext
4520 cat >>conftest.$ac_ext <<_ACEOF
4521 /* end confdefs.h. */
4522 #include <ac_nonexistent.h>
4523 _ACEOF
4524 if { (ac_try="$ac_cpp conftest.$ac_ext"
4525 case "(($ac_try" in
4526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4527 *) ac_try_echo=$ac_try;;
4528 esac
4529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4530 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4531 ac_status=$?
4532 grep -v '^ *+' conftest.er1 >conftest.err
4533 rm -f conftest.er1
4534 cat conftest.err >&5
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); } >/dev/null && {
4537 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4538 test ! -s conftest.err
4539 }; then
4540 # Broken: success on invalid input.
4541 continue
4542 else
4543 echo "$as_me: failed program was:" >&5
4544 sed 's/^/| /' conftest.$ac_ext >&5
4546 # Passes both tests.
4547 ac_preproc_ok=:
4548 break
4551 rm -f conftest.err conftest.$ac_ext
4553 done
4554 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4555 rm -f conftest.err conftest.$ac_ext
4556 if $ac_preproc_ok; then
4558 else
4559 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4560 See \`config.log' for more details." >&5
4561 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4562 See \`config.log' for more details." >&2;}
4563 { (exit 1); exit 1; }; }
4566 ac_ext=c
4567 ac_cpp='$CPP $CPPFLAGS'
4568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4574 # Create compiler version string
4575 if test x"$GCC" = x"yes" ; then
4576 cc_string="GCC `${CC} --version | sed q`"
4577 else
4578 cc_string=$CC
4581 cat >>confdefs.h <<_ACEOF
4582 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
4583 _ACEOF
4588 # Set up TAS assembly code if needed; the template file has now had its
4589 # chance to request this.
4591 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
4594 if test "$need_tas" = yes ; then
4595 TAS=tas.o
4596 else
4597 TAS=""
4603 # Automatic dependency tracking
4606 pgac_args="$pgac_args enable_depend"
4608 # Check whether --enable-depend was given.
4609 if test "${enable_depend+set}" = set; then
4610 enableval=$enable_depend;
4611 case $enableval in
4612 yes)
4613 autodepend=yes
4619 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
4620 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
4621 { (exit 1); exit 1; }; }
4623 esac
4625 else
4626 enable_depend=no
4635 # Enable assert checks
4638 pgac_args="$pgac_args enable_cassert"
4640 # Check whether --enable-cassert was given.
4641 if test "${enable_cassert+set}" = set; then
4642 enableval=$enable_cassert;
4643 case $enableval in
4644 yes)
4646 cat >>confdefs.h <<\_ACEOF
4647 #define USE_ASSERT_CHECKING 1
4648 _ACEOF
4655 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
4656 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
4657 { (exit 1); exit 1; }; }
4659 esac
4661 else
4662 enable_cassert=no
4670 # Include directories
4672 ac_save_IFS=$IFS
4673 IFS="${IFS}${PATH_SEPARATOR}"
4674 # SRCH_INC comes from the template file
4675 for dir in $with_includes $SRCH_INC; do
4676 if test -d "$dir"; then
4677 INCLUDES="$INCLUDES -I$dir"
4678 else
4679 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
4680 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
4682 done
4683 IFS=$ac_save_IFS
4688 # Library directories
4690 ac_save_IFS=$IFS
4691 IFS="${IFS}${PATH_SEPARATOR}"
4692 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
4693 for dir in $LIBRARY_DIRS $SRCH_LIB; do
4694 if test -d "$dir"; then
4695 LIBDIRS="$LIBDIRS -L$dir"
4696 else
4697 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
4698 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
4700 done
4701 IFS=$ac_save_IFS
4704 # Enable thread-safe client libraries
4706 { echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
4707 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6; }
4708 if test "$PORTNAME" != "win32"; then
4710 pgac_args="$pgac_args enable_thread_safety"
4712 # Check whether --enable-thread-safety was given.
4713 if test "${enable_thread_safety+set}" = set; then
4714 enableval=$enable_thread_safety;
4715 case $enableval in
4716 yes)
4723 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4724 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4725 { (exit 1); exit 1; }; }
4727 esac
4729 else
4730 enable_thread_safety=no
4735 else
4736 # Win32 should always use threads
4738 pgac_args="$pgac_args enable_thread_safety"
4740 # Check whether --enable-thread-safety was given.
4741 if test "${enable_thread_safety+set}" = set; then
4742 enableval=$enable_thread_safety;
4743 case $enableval in
4744 yes)
4751 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4752 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4753 { (exit 1); exit 1; }; }
4755 esac
4757 else
4758 enable_thread_safety=yes
4766 pgac_args="$pgac_args enable_thread_safety_force"
4768 # Check whether --enable-thread-safety-force was given.
4769 if test "${enable_thread_safety_force+set}" = set; then
4770 enableval=$enable_thread_safety_force;
4771 case $enableval in
4772 yes)
4779 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
4780 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
4781 { (exit 1); exit 1; }; }
4783 esac
4785 else
4786 enable_thread_safety_force=no
4791 if test "$enable_thread_safety" = yes -o \
4792 "$enable_thread_safety_force" = yes; then
4793 enable_thread_safety="yes" # for 'force'
4795 cat >>confdefs.h <<\_ACEOF
4796 #define ENABLE_THREAD_SAFETY 1
4797 _ACEOF
4800 { echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
4801 echo "${ECHO_T}$enable_thread_safety" >&6; }
4805 # Optionally build Tcl modules (PL/Tcl)
4807 { echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
4808 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6; }
4810 pgac_args="$pgac_args with_tcl"
4813 # Check whether --with-tcl was given.
4814 if test "${with_tcl+set}" = set; then
4815 withval=$with_tcl;
4816 case $withval in
4817 yes)
4824 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
4825 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
4826 { (exit 1); exit 1; }; }
4828 esac
4830 else
4831 with_tcl=no
4836 { echo "$as_me:$LINENO: result: $with_tcl" >&5
4837 echo "${ECHO_T}$with_tcl" >&6; }
4840 # We see if the path to the Tcl/Tk configuration scripts is specified.
4841 # This will override the use of tclsh to find the paths to search.
4844 pgac_args="$pgac_args with_tclconfig"
4847 # Check whether --with-tclconfig was given.
4848 if test "${with_tclconfig+set}" = set; then
4849 withval=$with_tclconfig;
4850 case $withval in
4851 yes)
4852 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4853 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4854 { (exit 1); exit 1; }; }
4857 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4858 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4859 { (exit 1); exit 1; }; }
4864 esac
4871 # Optionally build Perl modules (PL/Perl)
4873 { echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
4874 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6; }
4876 pgac_args="$pgac_args with_perl"
4879 # Check whether --with-perl was given.
4880 if test "${with_perl+set}" = set; then
4881 withval=$with_perl;
4882 case $withval in
4883 yes)
4890 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
4891 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
4892 { (exit 1); exit 1; }; }
4894 esac
4896 else
4897 with_perl=no
4902 { echo "$as_me:$LINENO: result: $with_perl" >&5
4903 echo "${ECHO_T}$with_perl" >&6; }
4907 # Optionally build Python modules (PL/Python)
4909 { echo "$as_me:$LINENO: checking whether to build Python modules" >&5
4910 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6; }
4912 pgac_args="$pgac_args with_python"
4915 # Check whether --with-python was given.
4916 if test "${with_python+set}" = set; then
4917 withval=$with_python;
4918 case $withval in
4919 yes)
4926 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
4927 echo "$as_me: error: no argument expected for --with-python option" >&2;}
4928 { (exit 1); exit 1; }; }
4930 esac
4932 else
4933 with_python=no
4938 { echo "$as_me:$LINENO: result: $with_python" >&5
4939 echo "${ECHO_T}$with_python" >&6; }
4943 # GSSAPI
4945 { echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
4946 echo $ECHO_N "checking whether to build with GSSAPI support... $ECHO_C" >&6; }
4948 pgac_args="$pgac_args with_gssapi"
4951 # Check whether --with-gssapi was given.
4952 if test "${with_gssapi+set}" = set; then
4953 withval=$with_gssapi;
4954 case $withval in
4955 yes)
4958 cat >>confdefs.h <<\_ACEOF
4959 #define ENABLE_GSS 1
4960 _ACEOF
4962 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
4969 { { echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
4970 echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
4971 { (exit 1); exit 1; }; }
4973 esac
4975 else
4976 with_gssapi=no
4981 { echo "$as_me:$LINENO: result: $with_gssapi" >&5
4982 echo "${ECHO_T}$with_gssapi" >&6; }
4986 # Kerberos 5
4988 { echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
4989 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6; }
4991 pgac_args="$pgac_args with_krb5"
4994 # Check whether --with-krb5 was given.
4995 if test "${with_krb5+set}" = set; then
4996 withval=$with_krb5;
4997 case $withval in
4998 yes)
5001 cat >>confdefs.h <<\_ACEOF
5002 #define KRB5 1
5003 _ACEOF
5005 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5012 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5013 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5014 { (exit 1); exit 1; }; }
5016 esac
5018 else
5019 with_krb5=no
5024 { echo "$as_me:$LINENO: result: $with_krb5" >&5
5025 echo "${ECHO_T}$with_krb5" >&6; }
5033 # Kerberos configuration parameters
5036 pgac_args="$pgac_args with_krb_srvnam"
5039 # Check whether --with-krb-srvnam was given.
5040 if test "${with_krb_srvnam+set}" = set; then
5041 withval=$with_krb_srvnam;
5042 case $withval in
5043 yes)
5044 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5045 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5046 { (exit 1); exit 1; }; }
5049 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5050 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5051 { (exit 1); exit 1; }; }
5056 esac
5058 else
5059 with_krb_srvnam="postgres"
5064 cat >>confdefs.h <<_ACEOF
5065 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5066 _ACEOF
5071 # PAM
5073 { echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5074 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6; }
5076 pgac_args="$pgac_args with_pam"
5079 # Check whether --with-pam was given.
5080 if test "${with_pam+set}" = set; then
5081 withval=$with_pam;
5082 case $withval in
5083 yes)
5085 cat >>confdefs.h <<\_ACEOF
5086 #define USE_PAM 1
5087 _ACEOF
5094 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5095 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5096 { (exit 1); exit 1; }; }
5098 esac
5100 else
5101 with_pam=no
5106 { echo "$as_me:$LINENO: result: $with_pam" >&5
5107 echo "${ECHO_T}$with_pam" >&6; }
5112 # LDAP
5114 { echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5115 echo $ECHO_N "checking whether to build with LDAP support... $ECHO_C" >&6; }
5117 pgac_args="$pgac_args with_ldap"
5120 # Check whether --with-ldap was given.
5121 if test "${with_ldap+set}" = set; then
5122 withval=$with_ldap;
5123 case $withval in
5124 yes)
5126 cat >>confdefs.h <<\_ACEOF
5127 #define USE_LDAP 1
5128 _ACEOF
5135 { { echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5136 echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5137 { (exit 1); exit 1; }; }
5139 esac
5141 else
5142 with_ldap=no
5147 { echo "$as_me:$LINENO: result: $with_ldap" >&5
5148 echo "${ECHO_T}$with_ldap" >&6; }
5153 # Bonjour
5155 { echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5156 echo $ECHO_N "checking whether to build with Bonjour support... $ECHO_C" >&6; }
5158 pgac_args="$pgac_args with_bonjour"
5161 # Check whether --with-bonjour was given.
5162 if test "${with_bonjour+set}" = set; then
5163 withval=$with_bonjour;
5164 case $withval in
5165 yes)
5167 cat >>confdefs.h <<\_ACEOF
5168 #define USE_BONJOUR 1
5169 _ACEOF
5176 { { echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5177 echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5178 { (exit 1); exit 1; }; }
5180 esac
5182 else
5183 with_bonjour=no
5188 { echo "$as_me:$LINENO: result: $with_bonjour" >&5
5189 echo "${ECHO_T}$with_bonjour" >&6; }
5194 # OpenSSL
5196 { echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5197 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6; }
5199 pgac_args="$pgac_args with_openssl"
5202 # Check whether --with-openssl was given.
5203 if test "${with_openssl+set}" = set; then
5204 withval=$with_openssl;
5205 case $withval in
5206 yes)
5208 cat >>confdefs.h <<\_ACEOF
5209 #define USE_SSL 1
5210 _ACEOF
5217 { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5218 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5219 { (exit 1); exit 1; }; }
5221 esac
5223 else
5224 with_openssl=no
5229 { echo "$as_me:$LINENO: result: $with_openssl" >&5
5230 echo "${ECHO_T}$with_openssl" >&6; }
5235 # Readline
5238 pgac_args="$pgac_args with_readline"
5241 # Check whether --with-readline was given.
5242 if test "${with_readline+set}" = set; then
5243 withval=$with_readline;
5244 case $withval in
5245 yes)
5252 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5253 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5254 { (exit 1); exit 1; }; }
5256 esac
5258 else
5259 with_readline=yes
5264 # readline on MinGW has problems with backslashes in psql and other bugs.
5265 # This is particularly a problem with non-US code pages.
5266 # Therefore disable its use until we understand the cause. 2004-07-20
5267 if test "$PORTNAME" = "win32"; then
5268 if test "$with_readline" = yes; then
5269 { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5270 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5271 with_readline=no
5277 # Prefer libedit
5280 pgac_args="$pgac_args with_libedit_preferred"
5283 # Check whether --with-libedit-preferred was given.
5284 if test "${with_libedit_preferred+set}" = set; then
5285 withval=$with_libedit_preferred;
5286 case $withval in
5287 yes)
5294 { { echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5295 echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5296 { (exit 1); exit 1; }; }
5298 esac
5300 else
5301 with_libedit_preferred=no
5309 # OSSP UUID library
5312 pgac_args="$pgac_args with_ossp_uuid"
5315 # Check whether --with-ossp-uuid was given.
5316 if test "${with_ossp_uuid+set}" = set; then
5317 withval=$with_ossp_uuid;
5318 case $withval in
5319 yes)
5326 { { echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5327 echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5328 { (exit 1); exit 1; }; }
5330 esac
5332 else
5333 with_ossp_uuid=no
5342 # XML
5345 pgac_args="$pgac_args with_libxml"
5348 # Check whether --with-libxml was given.
5349 if test "${with_libxml+set}" = set; then
5350 withval=$with_libxml;
5351 case $withval in
5352 yes)
5354 cat >>confdefs.h <<\_ACEOF
5355 #define USE_LIBXML 1
5356 _ACEOF
5363 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5364 echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5365 { (exit 1); exit 1; }; }
5367 esac
5369 else
5370 with_libxml=no
5376 if test "$with_libxml" = yes ; then
5377 for ac_prog in xml2-config
5379 # Extract the first word of "$ac_prog", so it can be a program name with args.
5380 set dummy $ac_prog; ac_word=$2
5381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5383 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5384 echo $ECHO_N "(cached) $ECHO_C" >&6
5385 else
5386 if test -n "$XML2_CONFIG"; then
5387 ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5388 else
5389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390 for as_dir in $PATH
5392 IFS=$as_save_IFS
5393 test -z "$as_dir" && as_dir=.
5394 for ac_exec_ext in '' $ac_executable_extensions; do
5395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5396 ac_cv_prog_XML2_CONFIG="$ac_prog"
5397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5398 break 2
5400 done
5401 done
5402 IFS=$as_save_IFS
5406 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5407 if test -n "$XML2_CONFIG"; then
5408 { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5409 echo "${ECHO_T}$XML2_CONFIG" >&6; }
5410 else
5411 { echo "$as_me:$LINENO: result: no" >&5
5412 echo "${ECHO_T}no" >&6; }
5416 test -n "$XML2_CONFIG" && break
5417 done
5419 if test -n "$XML2_CONFIG"; then
5420 for pgac_option in `$XML2_CONFIG --cflags`; do
5421 case $pgac_option in
5422 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5423 esac
5424 done
5425 for pgac_option in `$XML2_CONFIG --libs`; do
5426 case $pgac_option in
5427 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5428 esac
5429 done
5436 # XSLT
5439 pgac_args="$pgac_args with_libxslt"
5442 # Check whether --with-libxslt was given.
5443 if test "${with_libxslt+set}" = set; then
5444 withval=$with_libxslt;
5445 case $withval in
5446 yes)
5448 cat >>confdefs.h <<\_ACEOF
5449 #define USE_LIBXSLT 1
5450 _ACEOF
5457 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5458 echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5459 { (exit 1); exit 1; }; }
5461 esac
5463 else
5464 with_libxslt=no
5474 # tzdata
5477 pgac_args="$pgac_args with_system_tzdata"
5480 # Check whether --with-system-tzdata was given.
5481 if test "${with_system_tzdata+set}" = set; then
5482 withval=$with_system_tzdata;
5483 case $withval in
5484 yes)
5485 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5486 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5487 { (exit 1); exit 1; }; }
5490 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5491 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5492 { (exit 1); exit 1; }; }
5497 esac
5505 # Zlib
5508 pgac_args="$pgac_args with_zlib"
5511 # Check whether --with-zlib was given.
5512 if test "${with_zlib+set}" = set; then
5513 withval=$with_zlib;
5514 case $withval in
5515 yes)
5522 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5523 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5524 { (exit 1); exit 1; }; }
5526 esac
5528 else
5529 with_zlib=yes
5537 # Elf
5540 # Assume system is ELF if it predefines __ELF__ as 1,
5541 # otherwise believe host_os based default.
5542 case $host_os in
5543 freebsd1*|freebsd2*) elf=no;;
5544 freebsd3*|freebsd4*) elf=yes;;
5545 esac
5548 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5549 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5550 if test "${ac_cv_path_GREP+set}" = set; then
5551 echo $ECHO_N "(cached) $ECHO_C" >&6
5552 else
5553 # Extract the first word of "grep ggrep" to use in msg output
5554 if test -z "$GREP"; then
5555 set dummy grep ggrep; ac_prog_name=$2
5556 if test "${ac_cv_path_GREP+set}" = set; then
5557 echo $ECHO_N "(cached) $ECHO_C" >&6
5558 else
5559 ac_path_GREP_found=false
5560 # Loop through the user's path and test for each of PROGNAME-LIST
5561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5562 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5564 IFS=$as_save_IFS
5565 test -z "$as_dir" && as_dir=.
5566 for ac_prog in grep ggrep; do
5567 for ac_exec_ext in '' $ac_executable_extensions; do
5568 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5569 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5570 # Check for GNU ac_path_GREP and select it if it is found.
5571 # Check for GNU $ac_path_GREP
5572 case `"$ac_path_GREP" --version 2>&1` in
5573 *GNU*)
5574 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5576 ac_count=0
5577 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5578 while :
5580 cat "conftest.in" "conftest.in" >"conftest.tmp"
5581 mv "conftest.tmp" "conftest.in"
5582 cp "conftest.in" "conftest.nl"
5583 echo 'GREP' >> "conftest.nl"
5584 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5585 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5586 ac_count=`expr $ac_count + 1`
5587 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5588 # Best one so far, save it but keep looking for a better one
5589 ac_cv_path_GREP="$ac_path_GREP"
5590 ac_path_GREP_max=$ac_count
5592 # 10*(2^10) chars as input seems more than enough
5593 test $ac_count -gt 10 && break
5594 done
5595 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5596 esac
5599 $ac_path_GREP_found && break 3
5600 done
5601 done
5603 done
5604 IFS=$as_save_IFS
5609 GREP="$ac_cv_path_GREP"
5610 if test -z "$GREP"; then
5611 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5612 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5613 { (exit 1); exit 1; }; }
5616 else
5617 ac_cv_path_GREP=$GREP
5622 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5623 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5624 GREP="$ac_cv_path_GREP"
5627 { echo "$as_me:$LINENO: checking for egrep" >&5
5628 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5629 if test "${ac_cv_path_EGREP+set}" = set; then
5630 echo $ECHO_N "(cached) $ECHO_C" >&6
5631 else
5632 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5633 then ac_cv_path_EGREP="$GREP -E"
5634 else
5635 # Extract the first word of "egrep" to use in msg output
5636 if test -z "$EGREP"; then
5637 set dummy egrep; ac_prog_name=$2
5638 if test "${ac_cv_path_EGREP+set}" = set; then
5639 echo $ECHO_N "(cached) $ECHO_C" >&6
5640 else
5641 ac_path_EGREP_found=false
5642 # Loop through the user's path and test for each of PROGNAME-LIST
5643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5646 IFS=$as_save_IFS
5647 test -z "$as_dir" && as_dir=.
5648 for ac_prog in egrep; do
5649 for ac_exec_ext in '' $ac_executable_extensions; do
5650 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5651 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5652 # Check for GNU ac_path_EGREP and select it if it is found.
5653 # Check for GNU $ac_path_EGREP
5654 case `"$ac_path_EGREP" --version 2>&1` in
5655 *GNU*)
5656 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5658 ac_count=0
5659 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5660 while :
5662 cat "conftest.in" "conftest.in" >"conftest.tmp"
5663 mv "conftest.tmp" "conftest.in"
5664 cp "conftest.in" "conftest.nl"
5665 echo 'EGREP' >> "conftest.nl"
5666 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5667 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5668 ac_count=`expr $ac_count + 1`
5669 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5670 # Best one so far, save it but keep looking for a better one
5671 ac_cv_path_EGREP="$ac_path_EGREP"
5672 ac_path_EGREP_max=$ac_count
5674 # 10*(2^10) chars as input seems more than enough
5675 test $ac_count -gt 10 && break
5676 done
5677 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5678 esac
5681 $ac_path_EGREP_found && break 3
5682 done
5683 done
5685 done
5686 IFS=$as_save_IFS
5691 EGREP="$ac_cv_path_EGREP"
5692 if test -z "$EGREP"; then
5693 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5694 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5695 { (exit 1); exit 1; }; }
5698 else
5699 ac_cv_path_EGREP=$EGREP
5705 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5706 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5707 EGREP="$ac_cv_path_EGREP"
5710 cat >conftest.$ac_ext <<_ACEOF
5711 /* confdefs.h. */
5712 _ACEOF
5713 cat confdefs.h >>conftest.$ac_ext
5714 cat >>conftest.$ac_ext <<_ACEOF
5715 /* end confdefs.h. */
5716 #if __ELF__
5718 #endif
5720 _ACEOF
5721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5722 $EGREP "yes" >/dev/null 2>&1; then
5723 ELF_SYS=true
5724 else
5725 if test "X$elf" = "Xyes" ; then
5726 ELF_SYS=true
5727 else
5728 ELF_SYS=
5731 rm -f conftest*
5736 # Assignments
5739 CPPFLAGS="$CPPFLAGS $INCLUDES"
5740 LDFLAGS="$LDFLAGS $LIBDIRS"
5745 # Check whether --with-gnu-ld was given.
5746 if test "${with_gnu_ld+set}" = set; then
5747 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5748 else
5749 with_gnu_ld=no
5752 ac_prog=ld
5753 if test "$GCC" = yes; then
5754 # Check if gcc -print-prog-name=ld gives a path.
5755 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5756 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
5757 case $host in
5758 *-*-mingw*)
5759 # gcc leaves a trailing carriage return which upsets mingw
5760 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5762 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5763 esac
5764 case "$ac_prog" in
5765 # Accept absolute paths.
5766 [\\/]* | [A-Za-z]:[\\/]*)
5767 re_direlt='/[^/][^/]*/\.\./'
5768 # Canonicalize the path of ld
5769 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5770 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5771 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5772 done
5773 test -z "$LD" && LD="$ac_prog"
5776 # If it fails, then pretend we aren't using GCC.
5777 ac_prog=ld
5780 # If it is relative, then search for the first ld in PATH.
5781 with_gnu_ld=unknown
5783 esac
5784 elif test "$with_gnu_ld" = yes; then
5785 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5786 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5787 else
5788 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5789 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5791 if test "${ac_cv_path_LD+set}" = set; then
5792 echo $ECHO_N "(cached) $ECHO_C" >&6
5793 else
5794 if test -z "$LD"; then
5795 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5796 for ac_dir in $PATH; do
5797 test -z "$ac_dir" && ac_dir=.
5798 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5799 ac_cv_path_LD="$ac_dir/$ac_prog"
5800 # Check to see if the program is GNU ld. I'd rather use --version,
5801 # but apparently some GNU ld's only accept -v.
5802 # Break only if it was the GNU/non-GNU ld that we prefer.
5803 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5804 test "$with_gnu_ld" != no && break
5805 else
5806 test "$with_gnu_ld" != yes && break
5809 done
5810 IFS="$ac_save_ifs"
5811 else
5812 ac_cv_path_LD="$LD" # Let the user override the test with a path.
5816 LD="$ac_cv_path_LD"
5817 if test -n "$LD"; then
5818 { echo "$as_me:$LINENO: result: $LD" >&5
5819 echo "${ECHO_T}$LD" >&6; }
5820 else
5821 { echo "$as_me:$LINENO: result: no" >&5
5822 echo "${ECHO_T}no" >&6; }
5824 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5825 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5826 { (exit 1); exit 1; }; }
5827 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5828 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5829 if test "${ac_cv_prog_gnu_ld+set}" = set; then
5830 echo $ECHO_N "(cached) $ECHO_C" >&6
5831 else
5832 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5833 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5834 ac_cv_prog_gnu_ld=yes
5835 else
5836 ac_cv_prog_gnu_ld=no
5839 { echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
5840 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6; }
5841 with_gnu_ld=$ac_cv_prog_gnu_ld
5846 case $host_os in sysv5*)
5847 { echo "$as_me:$LINENO: checking whether ld -R works" >&5
5848 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6; }
5849 if test "${pgac_cv_prog_ld_R+set}" = set; then
5850 echo $ECHO_N "(cached) $ECHO_C" >&6
5851 else
5853 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
5854 cat >conftest.$ac_ext <<_ACEOF
5855 /* confdefs.h. */
5856 _ACEOF
5857 cat confdefs.h >>conftest.$ac_ext
5858 cat >>conftest.$ac_ext <<_ACEOF
5859 /* end confdefs.h. */
5862 main ()
5866 return 0;
5868 _ACEOF
5869 rm -f conftest.$ac_objext conftest$ac_exeext
5870 if { (ac_try="$ac_link"
5871 case "(($ac_try" in
5872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5873 *) ac_try_echo=$ac_try;;
5874 esac
5875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5876 (eval "$ac_link") 2>conftest.er1
5877 ac_status=$?
5878 grep -v '^ *+' conftest.er1 >conftest.err
5879 rm -f conftest.er1
5880 cat conftest.err >&5
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); } && {
5883 test -z "$ac_c_werror_flag" ||
5884 test ! -s conftest.err
5885 } && test -s conftest$ac_exeext &&
5886 $as_test_x conftest$ac_exeext; then
5887 pgac_cv_prog_ld_R=yes
5888 else
5889 echo "$as_me: failed program was:" >&5
5890 sed 's/^/| /' conftest.$ac_ext >&5
5892 pgac_cv_prog_ld_R=no
5895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5896 conftest$ac_exeext conftest.$ac_ext
5897 LDFLAGS=$pgac_save_LDFLAGS
5900 { echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
5901 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6; }
5902 ld_R_works=$pgac_cv_prog_ld_R
5904 esac
5905 if test -n "$ac_tool_prefix"; then
5906 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5907 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5910 if test "${ac_cv_prog_RANLIB+set}" = set; then
5911 echo $ECHO_N "(cached) $ECHO_C" >&6
5912 else
5913 if test -n "$RANLIB"; then
5914 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5915 else
5916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917 for as_dir in $PATH
5919 IFS=$as_save_IFS
5920 test -z "$as_dir" && as_dir=.
5921 for ac_exec_ext in '' $ac_executable_extensions; do
5922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5923 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5925 break 2
5927 done
5928 done
5929 IFS=$as_save_IFS
5933 RANLIB=$ac_cv_prog_RANLIB
5934 if test -n "$RANLIB"; then
5935 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5936 echo "${ECHO_T}$RANLIB" >&6; }
5937 else
5938 { echo "$as_me:$LINENO: result: no" >&5
5939 echo "${ECHO_T}no" >&6; }
5944 if test -z "$ac_cv_prog_RANLIB"; then
5945 ac_ct_RANLIB=$RANLIB
5946 # Extract the first word of "ranlib", so it can be a program name with args.
5947 set dummy ranlib; ac_word=$2
5948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5950 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5951 echo $ECHO_N "(cached) $ECHO_C" >&6
5952 else
5953 if test -n "$ac_ct_RANLIB"; then
5954 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5955 else
5956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957 for as_dir in $PATH
5959 IFS=$as_save_IFS
5960 test -z "$as_dir" && as_dir=.
5961 for ac_exec_ext in '' $ac_executable_extensions; do
5962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5963 ac_cv_prog_ac_ct_RANLIB="ranlib"
5964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5965 break 2
5967 done
5968 done
5969 IFS=$as_save_IFS
5973 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5974 if test -n "$ac_ct_RANLIB"; then
5975 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5976 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5977 else
5978 { echo "$as_me:$LINENO: result: no" >&5
5979 echo "${ECHO_T}no" >&6; }
5982 if test "x$ac_ct_RANLIB" = x; then
5983 RANLIB=":"
5984 else
5985 case $cross_compiling:$ac_tool_warned in
5986 yes:)
5987 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5988 whose name does not start with the host triplet. If you think this
5989 configuration is useful to you, please write to autoconf@gnu.org." >&5
5990 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5991 whose name does not start with the host triplet. If you think this
5992 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5993 ac_tool_warned=yes ;;
5994 esac
5995 RANLIB=$ac_ct_RANLIB
5997 else
5998 RANLIB="$ac_cv_prog_RANLIB"
6002 if test -n "$ac_tool_prefix"; then
6003 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6004 set dummy ${ac_tool_prefix}strip; ac_word=$2
6005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6007 if test "${ac_cv_prog_STRIP+set}" = set; then
6008 echo $ECHO_N "(cached) $ECHO_C" >&6
6009 else
6010 if test -n "$STRIP"; then
6011 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6012 else
6013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014 for as_dir in $PATH
6016 IFS=$as_save_IFS
6017 test -z "$as_dir" && as_dir=.
6018 for ac_exec_ext in '' $ac_executable_extensions; do
6019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6020 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6022 break 2
6024 done
6025 done
6026 IFS=$as_save_IFS
6030 STRIP=$ac_cv_prog_STRIP
6031 if test -n "$STRIP"; then
6032 { echo "$as_me:$LINENO: result: $STRIP" >&5
6033 echo "${ECHO_T}$STRIP" >&6; }
6034 else
6035 { echo "$as_me:$LINENO: result: no" >&5
6036 echo "${ECHO_T}no" >&6; }
6041 if test -z "$ac_cv_prog_STRIP"; then
6042 ac_ct_STRIP=$STRIP
6043 # Extract the first word of "strip", so it can be a program name with args.
6044 set dummy strip; ac_word=$2
6045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6047 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6049 else
6050 if test -n "$ac_ct_STRIP"; then
6051 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6052 else
6053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6054 for as_dir in $PATH
6056 IFS=$as_save_IFS
6057 test -z "$as_dir" && as_dir=.
6058 for ac_exec_ext in '' $ac_executable_extensions; do
6059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6060 ac_cv_prog_ac_ct_STRIP="strip"
6061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6062 break 2
6064 done
6065 done
6066 IFS=$as_save_IFS
6070 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6071 if test -n "$ac_ct_STRIP"; then
6072 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6073 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6074 else
6075 { echo "$as_me:$LINENO: result: no" >&5
6076 echo "${ECHO_T}no" >&6; }
6079 if test "x$ac_ct_STRIP" = x; then
6080 STRIP=":"
6081 else
6082 case $cross_compiling:$ac_tool_warned in
6083 yes:)
6084 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6085 whose name does not start with the host triplet. If you think this
6086 configuration is useful to you, please write to autoconf@gnu.org." >&5
6087 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6088 whose name does not start with the host triplet. If you think this
6089 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6090 ac_tool_warned=yes ;;
6091 esac
6092 STRIP=$ac_ct_STRIP
6094 else
6095 STRIP="$ac_cv_prog_STRIP"
6099 { echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6100 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6; }
6101 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6102 STRIP_STATIC_LIB="$STRIP -x"
6103 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6104 { echo "$as_me:$LINENO: result: yes" >&5
6105 echo "${ECHO_T}yes" >&6; }
6106 else
6107 STRIP_STATIC_LIB=:
6108 STRIP_SHARED_LIB=:
6109 { echo "$as_me:$LINENO: result: no" >&5
6110 echo "${ECHO_T}no" >&6; }
6115 if test -n "$ac_tool_prefix"; then
6116 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6117 set dummy ${ac_tool_prefix}ar; ac_word=$2
6118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6120 if test "${ac_cv_prog_AR+set}" = set; then
6121 echo $ECHO_N "(cached) $ECHO_C" >&6
6122 else
6123 if test -n "$AR"; then
6124 ac_cv_prog_AR="$AR" # Let the user override the test.
6125 else
6126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127 for as_dir in $PATH
6129 IFS=$as_save_IFS
6130 test -z "$as_dir" && as_dir=.
6131 for ac_exec_ext in '' $ac_executable_extensions; do
6132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6133 ac_cv_prog_AR="${ac_tool_prefix}ar"
6134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6135 break 2
6137 done
6138 done
6139 IFS=$as_save_IFS
6143 AR=$ac_cv_prog_AR
6144 if test -n "$AR"; then
6145 { echo "$as_me:$LINENO: result: $AR" >&5
6146 echo "${ECHO_T}$AR" >&6; }
6147 else
6148 { echo "$as_me:$LINENO: result: no" >&5
6149 echo "${ECHO_T}no" >&6; }
6154 if test -z "$ac_cv_prog_AR"; then
6155 ac_ct_AR=$AR
6156 # Extract the first word of "ar", so it can be a program name with args.
6157 set dummy ar; ac_word=$2
6158 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6160 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6161 echo $ECHO_N "(cached) $ECHO_C" >&6
6162 else
6163 if test -n "$ac_ct_AR"; then
6164 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6165 else
6166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6167 for as_dir in $PATH
6169 IFS=$as_save_IFS
6170 test -z "$as_dir" && as_dir=.
6171 for ac_exec_ext in '' $ac_executable_extensions; do
6172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6173 ac_cv_prog_ac_ct_AR="ar"
6174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6175 break 2
6177 done
6178 done
6179 IFS=$as_save_IFS
6183 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6184 if test -n "$ac_ct_AR"; then
6185 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6186 echo "${ECHO_T}$ac_ct_AR" >&6; }
6187 else
6188 { echo "$as_me:$LINENO: result: no" >&5
6189 echo "${ECHO_T}no" >&6; }
6192 if test "x$ac_ct_AR" = x; then
6193 AR="ar"
6194 else
6195 case $cross_compiling:$ac_tool_warned in
6196 yes:)
6197 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6198 whose name does not start with the host triplet. If you think this
6199 configuration is useful to you, please write to autoconf@gnu.org." >&5
6200 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6201 whose name does not start with the host triplet. If you think this
6202 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6203 ac_tool_warned=yes ;;
6204 esac
6205 AR=$ac_ct_AR
6207 else
6208 AR="$ac_cv_prog_AR"
6211 if test "$PORTNAME" = "win32"; then
6212 if test -n "$ac_tool_prefix"; then
6213 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6214 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6217 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6218 echo $ECHO_N "(cached) $ECHO_C" >&6
6219 else
6220 if test -n "$DLLTOOL"; then
6221 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6222 else
6223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6224 for as_dir in $PATH
6226 IFS=$as_save_IFS
6227 test -z "$as_dir" && as_dir=.
6228 for ac_exec_ext in '' $ac_executable_extensions; do
6229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6230 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6232 break 2
6234 done
6235 done
6236 IFS=$as_save_IFS
6240 DLLTOOL=$ac_cv_prog_DLLTOOL
6241 if test -n "$DLLTOOL"; then
6242 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6243 echo "${ECHO_T}$DLLTOOL" >&6; }
6244 else
6245 { echo "$as_me:$LINENO: result: no" >&5
6246 echo "${ECHO_T}no" >&6; }
6251 if test -z "$ac_cv_prog_DLLTOOL"; then
6252 ac_ct_DLLTOOL=$DLLTOOL
6253 # Extract the first word of "dlltool", so it can be a program name with args.
6254 set dummy dlltool; ac_word=$2
6255 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6257 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6258 echo $ECHO_N "(cached) $ECHO_C" >&6
6259 else
6260 if test -n "$ac_ct_DLLTOOL"; then
6261 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6262 else
6263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264 for as_dir in $PATH
6266 IFS=$as_save_IFS
6267 test -z "$as_dir" && as_dir=.
6268 for ac_exec_ext in '' $ac_executable_extensions; do
6269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6270 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6272 break 2
6274 done
6275 done
6276 IFS=$as_save_IFS
6280 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6281 if test -n "$ac_ct_DLLTOOL"; then
6282 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6283 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
6284 else
6285 { echo "$as_me:$LINENO: result: no" >&5
6286 echo "${ECHO_T}no" >&6; }
6289 if test "x$ac_ct_DLLTOOL" = x; then
6290 DLLTOOL="dlltool"
6291 else
6292 case $cross_compiling:$ac_tool_warned in
6293 yes:)
6294 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6295 whose name does not start with the host triplet. If you think this
6296 configuration is useful to you, please write to autoconf@gnu.org." >&5
6297 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6298 whose name does not start with the host triplet. If you think this
6299 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6300 ac_tool_warned=yes ;;
6301 esac
6302 DLLTOOL=$ac_ct_DLLTOOL
6304 else
6305 DLLTOOL="$ac_cv_prog_DLLTOOL"
6308 if test -n "$ac_tool_prefix"; then
6309 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6310 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6313 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6314 echo $ECHO_N "(cached) $ECHO_C" >&6
6315 else
6316 if test -n "$DLLWRAP"; then
6317 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6318 else
6319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6320 for as_dir in $PATH
6322 IFS=$as_save_IFS
6323 test -z "$as_dir" && as_dir=.
6324 for ac_exec_ext in '' $ac_executable_extensions; do
6325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6326 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6328 break 2
6330 done
6331 done
6332 IFS=$as_save_IFS
6336 DLLWRAP=$ac_cv_prog_DLLWRAP
6337 if test -n "$DLLWRAP"; then
6338 { echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6339 echo "${ECHO_T}$DLLWRAP" >&6; }
6340 else
6341 { echo "$as_me:$LINENO: result: no" >&5
6342 echo "${ECHO_T}no" >&6; }
6347 if test -z "$ac_cv_prog_DLLWRAP"; then
6348 ac_ct_DLLWRAP=$DLLWRAP
6349 # Extract the first word of "dllwrap", so it can be a program name with args.
6350 set dummy dllwrap; ac_word=$2
6351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6353 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6354 echo $ECHO_N "(cached) $ECHO_C" >&6
6355 else
6356 if test -n "$ac_ct_DLLWRAP"; then
6357 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6358 else
6359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360 for as_dir in $PATH
6362 IFS=$as_save_IFS
6363 test -z "$as_dir" && as_dir=.
6364 for ac_exec_ext in '' $ac_executable_extensions; do
6365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6366 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6368 break 2
6370 done
6371 done
6372 IFS=$as_save_IFS
6376 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6377 if test -n "$ac_ct_DLLWRAP"; then
6378 { echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6379 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6; }
6380 else
6381 { echo "$as_me:$LINENO: result: no" >&5
6382 echo "${ECHO_T}no" >&6; }
6385 if test "x$ac_ct_DLLWRAP" = x; then
6386 DLLWRAP="dllwrap"
6387 else
6388 case $cross_compiling:$ac_tool_warned in
6389 yes:)
6390 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6391 whose name does not start with the host triplet. If you think this
6392 configuration is useful to you, please write to autoconf@gnu.org." >&5
6393 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6394 whose name does not start with the host triplet. If you think this
6395 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6396 ac_tool_warned=yes ;;
6397 esac
6398 DLLWRAP=$ac_ct_DLLWRAP
6400 else
6401 DLLWRAP="$ac_cv_prog_DLLWRAP"
6404 if test -n "$ac_tool_prefix"; then
6405 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6406 set dummy ${ac_tool_prefix}windres; ac_word=$2
6407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6409 if test "${ac_cv_prog_WINDRES+set}" = set; then
6410 echo $ECHO_N "(cached) $ECHO_C" >&6
6411 else
6412 if test -n "$WINDRES"; then
6413 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6414 else
6415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6416 for as_dir in $PATH
6418 IFS=$as_save_IFS
6419 test -z "$as_dir" && as_dir=.
6420 for ac_exec_ext in '' $ac_executable_extensions; do
6421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6422 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6424 break 2
6426 done
6427 done
6428 IFS=$as_save_IFS
6432 WINDRES=$ac_cv_prog_WINDRES
6433 if test -n "$WINDRES"; then
6434 { echo "$as_me:$LINENO: result: $WINDRES" >&5
6435 echo "${ECHO_T}$WINDRES" >&6; }
6436 else
6437 { echo "$as_me:$LINENO: result: no" >&5
6438 echo "${ECHO_T}no" >&6; }
6443 if test -z "$ac_cv_prog_WINDRES"; then
6444 ac_ct_WINDRES=$WINDRES
6445 # Extract the first word of "windres", so it can be a program name with args.
6446 set dummy windres; ac_word=$2
6447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6449 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6450 echo $ECHO_N "(cached) $ECHO_C" >&6
6451 else
6452 if test -n "$ac_ct_WINDRES"; then
6453 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6454 else
6455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456 for as_dir in $PATH
6458 IFS=$as_save_IFS
6459 test -z "$as_dir" && as_dir=.
6460 for ac_exec_ext in '' $ac_executable_extensions; do
6461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6462 ac_cv_prog_ac_ct_WINDRES="windres"
6463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6464 break 2
6466 done
6467 done
6468 IFS=$as_save_IFS
6472 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6473 if test -n "$ac_ct_WINDRES"; then
6474 { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6475 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
6476 else
6477 { echo "$as_me:$LINENO: result: no" >&5
6478 echo "${ECHO_T}no" >&6; }
6481 if test "x$ac_ct_WINDRES" = x; then
6482 WINDRES="windres"
6483 else
6484 case $cross_compiling:$ac_tool_warned in
6485 yes:)
6486 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6487 whose name does not start with the host triplet. If you think this
6488 configuration is useful to you, please write to autoconf@gnu.org." >&5
6489 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6490 whose name does not start with the host triplet. If you think this
6491 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6492 ac_tool_warned=yes ;;
6493 esac
6494 WINDRES=$ac_ct_WINDRES
6496 else
6497 WINDRES="$ac_cv_prog_WINDRES"
6502 # Extract the first word of "tar", so it can be a program name with args.
6503 set dummy tar; ac_word=$2
6504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6506 if test "${ac_cv_path_TAR+set}" = set; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6508 else
6509 case $TAR in
6510 [\\/]* | ?:[\\/]*)
6511 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6515 for as_dir in $PATH
6517 IFS=$as_save_IFS
6518 test -z "$as_dir" && as_dir=.
6519 for ac_exec_ext in '' $ac_executable_extensions; do
6520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6521 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6523 break 2
6525 done
6526 done
6527 IFS=$as_save_IFS
6530 esac
6532 TAR=$ac_cv_path_TAR
6533 if test -n "$TAR"; then
6534 { echo "$as_me:$LINENO: result: $TAR" >&5
6535 echo "${ECHO_T}$TAR" >&6; }
6536 else
6537 { echo "$as_me:$LINENO: result: no" >&5
6538 echo "${ECHO_T}no" >&6; }
6542 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6543 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6544 LN_S=$as_ln_s
6545 if test "$LN_S" = "ln -s"; then
6546 { echo "$as_me:$LINENO: result: yes" >&5
6547 echo "${ECHO_T}yes" >&6; }
6548 else
6549 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6550 echo "${ECHO_T}no, using $LN_S" >&6; }
6553 for ac_prog in gawk mawk nawk awk
6555 # Extract the first word of "$ac_prog", so it can be a program name with args.
6556 set dummy $ac_prog; ac_word=$2
6557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6559 if test "${ac_cv_prog_AWK+set}" = set; then
6560 echo $ECHO_N "(cached) $ECHO_C" >&6
6561 else
6562 if test -n "$AWK"; then
6563 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6564 else
6565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566 for as_dir in $PATH
6568 IFS=$as_save_IFS
6569 test -z "$as_dir" && as_dir=.
6570 for ac_exec_ext in '' $ac_executable_extensions; do
6571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6572 ac_cv_prog_AWK="$ac_prog"
6573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6574 break 2
6576 done
6577 done
6578 IFS=$as_save_IFS
6582 AWK=$ac_cv_prog_AWK
6583 if test -n "$AWK"; then
6584 { echo "$as_me:$LINENO: result: $AWK" >&5
6585 echo "${ECHO_T}$AWK" >&6; }
6586 else
6587 { echo "$as_me:$LINENO: result: no" >&5
6588 echo "${ECHO_T}no" >&6; }
6592 test -n "$AWK" && break
6593 done
6596 # Let the user override the search
6597 if test -z "$BISON"; then
6598 for ac_prog in bison
6600 # Extract the first word of "$ac_prog", so it can be a program name with args.
6601 set dummy $ac_prog; ac_word=$2
6602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6604 if test "${ac_cv_prog_BISON+set}" = set; then
6605 echo $ECHO_N "(cached) $ECHO_C" >&6
6606 else
6607 if test -n "$BISON"; then
6608 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6609 else
6610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6611 for as_dir in $PATH
6613 IFS=$as_save_IFS
6614 test -z "$as_dir" && as_dir=.
6615 for ac_exec_ext in '' $ac_executable_extensions; do
6616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6617 ac_cv_prog_BISON="$ac_prog"
6618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6619 break 2
6621 done
6622 done
6623 IFS=$as_save_IFS
6627 BISON=$ac_cv_prog_BISON
6628 if test -n "$BISON"; then
6629 { echo "$as_me:$LINENO: result: $BISON" >&5
6630 echo "${ECHO_T}$BISON" >&6; }
6631 else
6632 { echo "$as_me:$LINENO: result: no" >&5
6633 echo "${ECHO_T}no" >&6; }
6637 test -n "$BISON" && break
6638 done
6642 if test "$BISON"; then
6643 pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
6644 { echo "$as_me:$LINENO: using $pgac_bison_version" >&5
6645 echo "$as_me: using $pgac_bison_version" >&6;}
6646 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
6647 then
6648 { echo "$as_me:$LINENO: WARNING:
6649 *** The installed version of Bison is too old to use with PostgreSQL.
6650 *** Bison version 1.875 or later is required." >&5
6651 echo "$as_me: WARNING:
6652 *** The installed version of Bison is too old to use with PostgreSQL.
6653 *** Bison version 1.875 or later is required." >&2;}
6654 BISON=""
6658 if test -z "$BISON"; then
6659 { echo "$as_me:$LINENO: WARNING:
6660 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6661 *** change any of the parser definition files. You can obtain Bison from
6662 *** a GNU mirror site. (If you are using the official distribution of
6663 *** PostgreSQL then you do not need to worry about this, because the Bison
6664 *** output is pre-generated.)" >&5
6665 echo "$as_me: WARNING:
6666 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6667 *** change any of the parser definition files. You can obtain Bison from
6668 *** a GNU mirror site. (If you are using the official distribution of
6669 *** PostgreSQL then you do not need to worry about this, because the Bison
6670 *** output is pre-generated.)" >&2;}
6672 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
6675 { echo "$as_me:$LINENO: checking for flex" >&5
6676 echo $ECHO_N "checking for flex... $ECHO_C" >&6; }
6677 if test "${pgac_cv_path_flex+set}" = set; then
6678 echo $ECHO_N "(cached) $ECHO_C" >&6
6679 else
6680 # Let the user override the test
6681 if test -n "$FLEX"; then
6682 pgac_cv_path_flex=$FLEX
6683 else
6684 pgac_save_IFS=$IFS
6685 IFS=$PATH_SEPARATOR
6686 for pgac_dir in $PATH; do
6687 IFS=$pgac_save_IFS
6688 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
6689 pgac_dir=`pwd`
6691 for pgac_prog in flex lex; do
6692 pgac_candidate="$pgac_dir/$pgac_prog"
6693 if test -f "$pgac_candidate" \
6694 && $pgac_candidate --version </dev/null >/dev/null 2>&1
6695 then
6696 echo '%%' > conftest.l
6697 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
6698 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
6699 pgac_broken_flex=$pgac_candidate
6700 continue
6703 pgac_cv_path_flex=$pgac_candidate
6704 break 2
6707 done
6708 done
6709 rm -f conftest.l lex.yy.c
6710 : ${pgac_cv_path_flex=no}
6714 { echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
6715 echo "${ECHO_T}$pgac_cv_path_flex" >&6; }
6716 if test x"$pgac_cv_path_flex" = x"no"; then
6717 if test -n "$pgac_broken_flex"; then
6718 { echo "$as_me:$LINENO: WARNING:
6719 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
6720 *** should get version 2.5.4 or later." >&5
6721 echo "$as_me: WARNING:
6722 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
6723 *** should get version 2.5.4 or later." >&2;}
6726 { echo "$as_me:$LINENO: WARNING:
6727 *** Without Flex you will not be able to build PostgreSQL from CVS or
6728 *** change any of the scanner definition files. You can obtain Flex from
6729 *** a GNU mirror site. (If you are using the official distribution of
6730 *** PostgreSQL then you do not need to worry about this because the Flex
6731 *** output is pre-generated.)" >&5
6732 echo "$as_me: WARNING:
6733 *** Without Flex you will not be able to build PostgreSQL from CVS or
6734 *** change any of the scanner definition files. You can obtain Flex from
6735 *** a GNU mirror site. (If you are using the official distribution of
6736 *** PostgreSQL then you do not need to worry about this because the Flex
6737 *** output is pre-generated.)" >&2;}
6739 FLEX=
6740 else
6741 FLEX=$pgac_cv_path_flex
6742 pgac_flex_version=`$FLEX -V 2>/dev/null`
6743 { echo "$as_me:$LINENO: using $pgac_flex_version" >&5
6744 echo "$as_me: using $pgac_flex_version" >&6;}
6751 # Extract the first word of "perl", so it can be a program name with args.
6752 set dummy perl; ac_word=$2
6753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6755 if test "${ac_cv_path_PERL+set}" = set; then
6756 echo $ECHO_N "(cached) $ECHO_C" >&6
6757 else
6758 case $PERL in
6759 [\\/]* | ?:[\\/]*)
6760 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764 for as_dir in $PATH
6766 IFS=$as_save_IFS
6767 test -z "$as_dir" && as_dir=.
6768 for ac_exec_ext in '' $ac_executable_extensions; do
6769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6770 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6772 break 2
6774 done
6775 done
6776 IFS=$as_save_IFS
6779 esac
6781 PERL=$ac_cv_path_PERL
6782 if test -n "$PERL"; then
6783 { echo "$as_me:$LINENO: result: $PERL" >&5
6784 echo "${ECHO_T}$PERL" >&6; }
6785 else
6786 { echo "$as_me:$LINENO: result: no" >&5
6787 echo "${ECHO_T}no" >&6; }
6791 if test "$with_perl" = yes; then
6793 { echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
6794 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6; }
6795 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
6796 { echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
6797 echo "${ECHO_T}$perl_archlibexp" >&6; }
6798 { echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
6799 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6; }
6800 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
6801 { echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
6802 echo "${ECHO_T}$perl_privlibexp" >&6; }
6803 { echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
6804 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6; }
6805 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
6806 { echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
6807 echo "${ECHO_T}$perl_useshrplib" >&6; }
6809 { echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
6810 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6; }
6811 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
6812 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
6813 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
6814 if test -z "$perl_embed_ldflags" ; then
6815 { echo "$as_me:$LINENO: result: no" >&5
6816 echo "${ECHO_T}no" >&6; }
6817 { { echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
6818 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6819 installed." >&5
6820 echo "$as_me: error: could not determine flags for linking embedded Perl.
6821 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6822 installed." >&2;}
6823 { (exit 1); exit 1; }; }
6824 else
6825 { echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
6826 echo "${ECHO_T}$perl_embed_ldflags" >&6; }
6831 if test "$with_python" = yes; then
6832 # Extract the first word of "python", so it can be a program name with args.
6833 set dummy python; ac_word=$2
6834 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6836 if test "${ac_cv_path_PYTHON+set}" = set; then
6837 echo $ECHO_N "(cached) $ECHO_C" >&6
6838 else
6839 case $PYTHON in
6840 [\\/]* | ?:[\\/]*)
6841 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
6844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845 for as_dir in $PATH
6847 IFS=$as_save_IFS
6848 test -z "$as_dir" && as_dir=.
6849 for ac_exec_ext in '' $ac_executable_extensions; do
6850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6851 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
6852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6853 break 2
6855 done
6856 done
6857 IFS=$as_save_IFS
6860 esac
6862 PYTHON=$ac_cv_path_PYTHON
6863 if test -n "$PYTHON"; then
6864 { echo "$as_me:$LINENO: result: $PYTHON" >&5
6865 echo "${ECHO_T}$PYTHON" >&6; }
6866 else
6867 { echo "$as_me:$LINENO: result: no" >&5
6868 echo "${ECHO_T}no" >&6; }
6872 if test x"$PYTHON" = x""; then
6873 { { echo "$as_me:$LINENO: error: Python not found" >&5
6874 echo "$as_me: error: Python not found" >&2;}
6875 { (exit 1); exit 1; }; }
6879 { echo "$as_me:$LINENO: checking for Python distutils module" >&5
6880 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6; }
6881 if "${PYTHON}" 2>&- -c 'import distutils'
6882 then
6883 { echo "$as_me:$LINENO: result: yes" >&5
6884 echo "${ECHO_T}yes" >&6; }
6885 else
6886 { echo "$as_me:$LINENO: result: no" >&5
6887 echo "${ECHO_T}no" >&6; }
6888 { { echo "$as_me:$LINENO: error: distutils module not found" >&5
6889 echo "$as_me: error: distutils module not found" >&2;}
6890 { (exit 1); exit 1; }; }
6892 { echo "$as_me:$LINENO: checking Python configuration directory" >&5
6893 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6; }
6894 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
6895 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')"`
6896 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print '-I'+distutils.sysconfig.get_python_inc()"`
6898 # This should be enough of a message.
6899 { echo "$as_me:$LINENO: result: $python_configdir" >&5
6900 echo "${ECHO_T}$python_configdir" >&6; }
6903 { echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
6904 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6; }
6906 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR')))"`
6907 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY')))"`
6908 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('SO')))"`
6909 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
6911 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
6912 then
6913 # New way: use the official shared library
6914 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
6915 python_libspec="-L${python_libdir} -l${ldlibrary}"
6916 else
6917 # Old way: use libpython from python_configdir
6918 python_libdir="${python_configdir}"
6919 python_libspec="-L${python_libdir} -lpython${python_version}"
6922 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS')))"`
6924 { echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
6925 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6; }
6928 # threaded python is not supported on bsd's
6929 { echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
6930 echo $ECHO_N "checking whether Python is compiled with thread support... $ECHO_C" >&6; }
6931 pythreads=`${PYTHON} -c "import sys; print int('thread' in sys.builtin_module_names)"`
6932 if test "$pythreads" = "1"; then
6933 { echo "$as_me:$LINENO: result: yes" >&5
6934 echo "${ECHO_T}yes" >&6; }
6935 case $host_os in
6936 openbsd*|freebsd*)
6937 { { echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
6938 echo "$as_me: error: threaded Python not supported on this platform" >&2;}
6939 { (exit 1); exit 1; }; }
6941 esac
6942 else
6943 { echo "$as_me:$LINENO: result: no" >&5
6944 echo "${ECHO_T}no" >&6; }
6950 # Supply a numeric version string for use by 3rd party add-ons
6951 # awk -F is a regex on some platforms, and not on others, so make "." a tab
6952 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
6953 tr '.' ' ' |
6954 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
6956 cat >>confdefs.h <<_ACEOF
6957 #define PG_VERSION_NUM $PG_VERSION_NUM
6958 _ACEOF
6962 ## Libraries
6964 ## Most libraries are included only if they demonstrably provide a function
6965 ## we need, but libm is an exception: always include it, because there are
6966 ## too many compilers that play cute optimization games that will break
6967 ## probes for standard functions such as pow().
6971 { echo "$as_me:$LINENO: checking for main in -lm" >&5
6972 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
6973 if test "${ac_cv_lib_m_main+set}" = set; then
6974 echo $ECHO_N "(cached) $ECHO_C" >&6
6975 else
6976 ac_check_lib_save_LIBS=$LIBS
6977 LIBS="-lm $LIBS"
6978 cat >conftest.$ac_ext <<_ACEOF
6979 /* confdefs.h. */
6980 _ACEOF
6981 cat confdefs.h >>conftest.$ac_ext
6982 cat >>conftest.$ac_ext <<_ACEOF
6983 /* end confdefs.h. */
6987 main ()
6989 return main ();
6991 return 0;
6993 _ACEOF
6994 rm -f conftest.$ac_objext conftest$ac_exeext
6995 if { (ac_try="$ac_link"
6996 case "(($ac_try" in
6997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6998 *) ac_try_echo=$ac_try;;
6999 esac
7000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7001 (eval "$ac_link") 2>conftest.er1
7002 ac_status=$?
7003 grep -v '^ *+' conftest.er1 >conftest.err
7004 rm -f conftest.er1
7005 cat conftest.err >&5
7006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007 (exit $ac_status); } && {
7008 test -z "$ac_c_werror_flag" ||
7009 test ! -s conftest.err
7010 } && test -s conftest$ac_exeext &&
7011 $as_test_x conftest$ac_exeext; then
7012 ac_cv_lib_m_main=yes
7013 else
7014 echo "$as_me: failed program was:" >&5
7015 sed 's/^/| /' conftest.$ac_ext >&5
7017 ac_cv_lib_m_main=no
7020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7021 conftest$ac_exeext conftest.$ac_ext
7022 LIBS=$ac_check_lib_save_LIBS
7024 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7025 echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
7026 if test $ac_cv_lib_m_main = yes; then
7027 cat >>confdefs.h <<_ACEOF
7028 #define HAVE_LIBM 1
7029 _ACEOF
7031 LIBS="-lm $LIBS"
7035 { echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7036 echo $ECHO_N "checking for library containing setproctitle... $ECHO_C" >&6; }
7037 if test "${ac_cv_search_setproctitle+set}" = set; then
7038 echo $ECHO_N "(cached) $ECHO_C" >&6
7039 else
7040 ac_func_search_save_LIBS=$LIBS
7041 cat >conftest.$ac_ext <<_ACEOF
7042 /* confdefs.h. */
7043 _ACEOF
7044 cat confdefs.h >>conftest.$ac_ext
7045 cat >>conftest.$ac_ext <<_ACEOF
7046 /* end confdefs.h. */
7048 /* Override any GCC internal prototype to avoid an error.
7049 Use char because int might match the return type of a GCC
7050 builtin and then its argument prototype would still apply. */
7051 #ifdef __cplusplus
7052 extern "C"
7053 #endif
7054 char setproctitle ();
7056 main ()
7058 return setproctitle ();
7060 return 0;
7062 _ACEOF
7063 for ac_lib in '' util; do
7064 if test -z "$ac_lib"; then
7065 ac_res="none required"
7066 else
7067 ac_res=-l$ac_lib
7068 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7070 rm -f conftest.$ac_objext conftest$ac_exeext
7071 if { (ac_try="$ac_link"
7072 case "(($ac_try" in
7073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7074 *) ac_try_echo=$ac_try;;
7075 esac
7076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7077 (eval "$ac_link") 2>conftest.er1
7078 ac_status=$?
7079 grep -v '^ *+' conftest.er1 >conftest.err
7080 rm -f conftest.er1
7081 cat conftest.err >&5
7082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083 (exit $ac_status); } && {
7084 test -z "$ac_c_werror_flag" ||
7085 test ! -s conftest.err
7086 } && test -s conftest$ac_exeext &&
7087 $as_test_x conftest$ac_exeext; then
7088 ac_cv_search_setproctitle=$ac_res
7089 else
7090 echo "$as_me: failed program was:" >&5
7091 sed 's/^/| /' conftest.$ac_ext >&5
7096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7097 conftest$ac_exeext
7098 if test "${ac_cv_search_setproctitle+set}" = set; then
7099 break
7101 done
7102 if test "${ac_cv_search_setproctitle+set}" = set; then
7104 else
7105 ac_cv_search_setproctitle=no
7107 rm conftest.$ac_ext
7108 LIBS=$ac_func_search_save_LIBS
7110 { echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7111 echo "${ECHO_T}$ac_cv_search_setproctitle" >&6; }
7112 ac_res=$ac_cv_search_setproctitle
7113 if test "$ac_res" != no; then
7114 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7118 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7119 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
7120 if test "${ac_cv_search_dlopen+set}" = set; then
7121 echo $ECHO_N "(cached) $ECHO_C" >&6
7122 else
7123 ac_func_search_save_LIBS=$LIBS
7124 cat >conftest.$ac_ext <<_ACEOF
7125 /* confdefs.h. */
7126 _ACEOF
7127 cat confdefs.h >>conftest.$ac_ext
7128 cat >>conftest.$ac_ext <<_ACEOF
7129 /* end confdefs.h. */
7131 /* Override any GCC internal prototype to avoid an error.
7132 Use char because int might match the return type of a GCC
7133 builtin and then its argument prototype would still apply. */
7134 #ifdef __cplusplus
7135 extern "C"
7136 #endif
7137 char dlopen ();
7139 main ()
7141 return dlopen ();
7143 return 0;
7145 _ACEOF
7146 for ac_lib in '' dl; do
7147 if test -z "$ac_lib"; then
7148 ac_res="none required"
7149 else
7150 ac_res=-l$ac_lib
7151 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7153 rm -f conftest.$ac_objext conftest$ac_exeext
7154 if { (ac_try="$ac_link"
7155 case "(($ac_try" in
7156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7157 *) ac_try_echo=$ac_try;;
7158 esac
7159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7160 (eval "$ac_link") 2>conftest.er1
7161 ac_status=$?
7162 grep -v '^ *+' conftest.er1 >conftest.err
7163 rm -f conftest.er1
7164 cat conftest.err >&5
7165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166 (exit $ac_status); } && {
7167 test -z "$ac_c_werror_flag" ||
7168 test ! -s conftest.err
7169 } && test -s conftest$ac_exeext &&
7170 $as_test_x conftest$ac_exeext; then
7171 ac_cv_search_dlopen=$ac_res
7172 else
7173 echo "$as_me: failed program was:" >&5
7174 sed 's/^/| /' conftest.$ac_ext >&5
7179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7180 conftest$ac_exeext
7181 if test "${ac_cv_search_dlopen+set}" = set; then
7182 break
7184 done
7185 if test "${ac_cv_search_dlopen+set}" = set; then
7187 else
7188 ac_cv_search_dlopen=no
7190 rm conftest.$ac_ext
7191 LIBS=$ac_func_search_save_LIBS
7193 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7194 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
7195 ac_res=$ac_cv_search_dlopen
7196 if test "$ac_res" != no; then
7197 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7201 { echo "$as_me:$LINENO: checking for library containing socket" >&5
7202 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
7203 if test "${ac_cv_search_socket+set}" = set; then
7204 echo $ECHO_N "(cached) $ECHO_C" >&6
7205 else
7206 ac_func_search_save_LIBS=$LIBS
7207 cat >conftest.$ac_ext <<_ACEOF
7208 /* confdefs.h. */
7209 _ACEOF
7210 cat confdefs.h >>conftest.$ac_ext
7211 cat >>conftest.$ac_ext <<_ACEOF
7212 /* end confdefs.h. */
7214 /* Override any GCC internal prototype to avoid an error.
7215 Use char because int might match the return type of a GCC
7216 builtin and then its argument prototype would still apply. */
7217 #ifdef __cplusplus
7218 extern "C"
7219 #endif
7220 char socket ();
7222 main ()
7224 return socket ();
7226 return 0;
7228 _ACEOF
7229 for ac_lib in '' socket wsock32; do
7230 if test -z "$ac_lib"; then
7231 ac_res="none required"
7232 else
7233 ac_res=-l$ac_lib
7234 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7236 rm -f conftest.$ac_objext conftest$ac_exeext
7237 if { (ac_try="$ac_link"
7238 case "(($ac_try" in
7239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7240 *) ac_try_echo=$ac_try;;
7241 esac
7242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7243 (eval "$ac_link") 2>conftest.er1
7244 ac_status=$?
7245 grep -v '^ *+' conftest.er1 >conftest.err
7246 rm -f conftest.er1
7247 cat conftest.err >&5
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); } && {
7250 test -z "$ac_c_werror_flag" ||
7251 test ! -s conftest.err
7252 } && test -s conftest$ac_exeext &&
7253 $as_test_x conftest$ac_exeext; then
7254 ac_cv_search_socket=$ac_res
7255 else
7256 echo "$as_me: failed program was:" >&5
7257 sed 's/^/| /' conftest.$ac_ext >&5
7262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7263 conftest$ac_exeext
7264 if test "${ac_cv_search_socket+set}" = set; then
7265 break
7267 done
7268 if test "${ac_cv_search_socket+set}" = set; then
7270 else
7271 ac_cv_search_socket=no
7273 rm conftest.$ac_ext
7274 LIBS=$ac_func_search_save_LIBS
7276 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7277 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
7278 ac_res=$ac_cv_search_socket
7279 if test "$ac_res" != no; then
7280 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7284 { echo "$as_me:$LINENO: checking for library containing shl_load" >&5
7285 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; }
7286 if test "${ac_cv_search_shl_load+set}" = set; then
7287 echo $ECHO_N "(cached) $ECHO_C" >&6
7288 else
7289 ac_func_search_save_LIBS=$LIBS
7290 cat >conftest.$ac_ext <<_ACEOF
7291 /* confdefs.h. */
7292 _ACEOF
7293 cat confdefs.h >>conftest.$ac_ext
7294 cat >>conftest.$ac_ext <<_ACEOF
7295 /* end confdefs.h. */
7297 /* Override any GCC internal prototype to avoid an error.
7298 Use char because int might match the return type of a GCC
7299 builtin and then its argument prototype would still apply. */
7300 #ifdef __cplusplus
7301 extern "C"
7302 #endif
7303 char shl_load ();
7305 main ()
7307 return shl_load ();
7309 return 0;
7311 _ACEOF
7312 for ac_lib in '' dld; do
7313 if test -z "$ac_lib"; then
7314 ac_res="none required"
7315 else
7316 ac_res=-l$ac_lib
7317 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7319 rm -f conftest.$ac_objext conftest$ac_exeext
7320 if { (ac_try="$ac_link"
7321 case "(($ac_try" in
7322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7323 *) ac_try_echo=$ac_try;;
7324 esac
7325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7326 (eval "$ac_link") 2>conftest.er1
7327 ac_status=$?
7328 grep -v '^ *+' conftest.er1 >conftest.err
7329 rm -f conftest.er1
7330 cat conftest.err >&5
7331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332 (exit $ac_status); } && {
7333 test -z "$ac_c_werror_flag" ||
7334 test ! -s conftest.err
7335 } && test -s conftest$ac_exeext &&
7336 $as_test_x conftest$ac_exeext; then
7337 ac_cv_search_shl_load=$ac_res
7338 else
7339 echo "$as_me: failed program was:" >&5
7340 sed 's/^/| /' conftest.$ac_ext >&5
7345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7346 conftest$ac_exeext
7347 if test "${ac_cv_search_shl_load+set}" = set; then
7348 break
7350 done
7351 if test "${ac_cv_search_shl_load+set}" = set; then
7353 else
7354 ac_cv_search_shl_load=no
7356 rm conftest.$ac_ext
7357 LIBS=$ac_func_search_save_LIBS
7359 { echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
7360 echo "${ECHO_T}$ac_cv_search_shl_load" >&6; }
7361 ac_res=$ac_cv_search_shl_load
7362 if test "$ac_res" != no; then
7363 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7367 # We only use libld in port/dynloader/aix.c
7368 case $host_os in
7369 aix*)
7370 { echo "$as_me:$LINENO: checking for library containing ldopen" >&5
7371 echo $ECHO_N "checking for library containing ldopen... $ECHO_C" >&6; }
7372 if test "${ac_cv_search_ldopen+set}" = set; then
7373 echo $ECHO_N "(cached) $ECHO_C" >&6
7374 else
7375 ac_func_search_save_LIBS=$LIBS
7376 cat >conftest.$ac_ext <<_ACEOF
7377 /* confdefs.h. */
7378 _ACEOF
7379 cat confdefs.h >>conftest.$ac_ext
7380 cat >>conftest.$ac_ext <<_ACEOF
7381 /* end confdefs.h. */
7383 /* Override any GCC internal prototype to avoid an error.
7384 Use char because int might match the return type of a GCC
7385 builtin and then its argument prototype would still apply. */
7386 #ifdef __cplusplus
7387 extern "C"
7388 #endif
7389 char ldopen ();
7391 main ()
7393 return ldopen ();
7395 return 0;
7397 _ACEOF
7398 for ac_lib in '' ld; do
7399 if test -z "$ac_lib"; then
7400 ac_res="none required"
7401 else
7402 ac_res=-l$ac_lib
7403 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7405 rm -f conftest.$ac_objext conftest$ac_exeext
7406 if { (ac_try="$ac_link"
7407 case "(($ac_try" in
7408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7409 *) ac_try_echo=$ac_try;;
7410 esac
7411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7412 (eval "$ac_link") 2>conftest.er1
7413 ac_status=$?
7414 grep -v '^ *+' conftest.er1 >conftest.err
7415 rm -f conftest.er1
7416 cat conftest.err >&5
7417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418 (exit $ac_status); } && {
7419 test -z "$ac_c_werror_flag" ||
7420 test ! -s conftest.err
7421 } && test -s conftest$ac_exeext &&
7422 $as_test_x conftest$ac_exeext; then
7423 ac_cv_search_ldopen=$ac_res
7424 else
7425 echo "$as_me: failed program was:" >&5
7426 sed 's/^/| /' conftest.$ac_ext >&5
7431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7432 conftest$ac_exeext
7433 if test "${ac_cv_search_ldopen+set}" = set; then
7434 break
7436 done
7437 if test "${ac_cv_search_ldopen+set}" = set; then
7439 else
7440 ac_cv_search_ldopen=no
7442 rm conftest.$ac_ext
7443 LIBS=$ac_func_search_save_LIBS
7445 { echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
7446 echo "${ECHO_T}$ac_cv_search_ldopen" >&6; }
7447 ac_res=$ac_cv_search_ldopen
7448 if test "$ac_res" != no; then
7449 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7454 esac
7455 { echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
7456 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6; }
7457 if test "${ac_cv_search_getopt_long+set}" = set; then
7458 echo $ECHO_N "(cached) $ECHO_C" >&6
7459 else
7460 ac_func_search_save_LIBS=$LIBS
7461 cat >conftest.$ac_ext <<_ACEOF
7462 /* confdefs.h. */
7463 _ACEOF
7464 cat confdefs.h >>conftest.$ac_ext
7465 cat >>conftest.$ac_ext <<_ACEOF
7466 /* end confdefs.h. */
7468 /* Override any GCC internal prototype to avoid an error.
7469 Use char because int might match the return type of a GCC
7470 builtin and then its argument prototype would still apply. */
7471 #ifdef __cplusplus
7472 extern "C"
7473 #endif
7474 char getopt_long ();
7476 main ()
7478 return getopt_long ();
7480 return 0;
7482 _ACEOF
7483 for ac_lib in '' getopt gnugetopt; do
7484 if test -z "$ac_lib"; then
7485 ac_res="none required"
7486 else
7487 ac_res=-l$ac_lib
7488 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7490 rm -f conftest.$ac_objext conftest$ac_exeext
7491 if { (ac_try="$ac_link"
7492 case "(($ac_try" in
7493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7494 *) ac_try_echo=$ac_try;;
7495 esac
7496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7497 (eval "$ac_link") 2>conftest.er1
7498 ac_status=$?
7499 grep -v '^ *+' conftest.er1 >conftest.err
7500 rm -f conftest.er1
7501 cat conftest.err >&5
7502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503 (exit $ac_status); } && {
7504 test -z "$ac_c_werror_flag" ||
7505 test ! -s conftest.err
7506 } && test -s conftest$ac_exeext &&
7507 $as_test_x conftest$ac_exeext; then
7508 ac_cv_search_getopt_long=$ac_res
7509 else
7510 echo "$as_me: failed program was:" >&5
7511 sed 's/^/| /' conftest.$ac_ext >&5
7516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7517 conftest$ac_exeext
7518 if test "${ac_cv_search_getopt_long+set}" = set; then
7519 break
7521 done
7522 if test "${ac_cv_search_getopt_long+set}" = set; then
7524 else
7525 ac_cv_search_getopt_long=no
7527 rm conftest.$ac_ext
7528 LIBS=$ac_func_search_save_LIBS
7530 { echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
7531 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6; }
7532 ac_res=$ac_cv_search_getopt_long
7533 if test "$ac_res" != no; then
7534 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7538 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
7539 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
7540 if test "${ac_cv_search_crypt+set}" = set; then
7541 echo $ECHO_N "(cached) $ECHO_C" >&6
7542 else
7543 ac_func_search_save_LIBS=$LIBS
7544 cat >conftest.$ac_ext <<_ACEOF
7545 /* confdefs.h. */
7546 _ACEOF
7547 cat confdefs.h >>conftest.$ac_ext
7548 cat >>conftest.$ac_ext <<_ACEOF
7549 /* end confdefs.h. */
7551 /* Override any GCC internal prototype to avoid an error.
7552 Use char because int might match the return type of a GCC
7553 builtin and then its argument prototype would still apply. */
7554 #ifdef __cplusplus
7555 extern "C"
7556 #endif
7557 char crypt ();
7559 main ()
7561 return crypt ();
7563 return 0;
7565 _ACEOF
7566 for ac_lib in '' crypt; do
7567 if test -z "$ac_lib"; then
7568 ac_res="none required"
7569 else
7570 ac_res=-l$ac_lib
7571 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7573 rm -f conftest.$ac_objext conftest$ac_exeext
7574 if { (ac_try="$ac_link"
7575 case "(($ac_try" in
7576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7577 *) ac_try_echo=$ac_try;;
7578 esac
7579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7580 (eval "$ac_link") 2>conftest.er1
7581 ac_status=$?
7582 grep -v '^ *+' conftest.er1 >conftest.err
7583 rm -f conftest.er1
7584 cat conftest.err >&5
7585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586 (exit $ac_status); } && {
7587 test -z "$ac_c_werror_flag" ||
7588 test ! -s conftest.err
7589 } && test -s conftest$ac_exeext &&
7590 $as_test_x conftest$ac_exeext; then
7591 ac_cv_search_crypt=$ac_res
7592 else
7593 echo "$as_me: failed program was:" >&5
7594 sed 's/^/| /' conftest.$ac_ext >&5
7599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7600 conftest$ac_exeext
7601 if test "${ac_cv_search_crypt+set}" = set; then
7602 break
7604 done
7605 if test "${ac_cv_search_crypt+set}" = set; then
7607 else
7608 ac_cv_search_crypt=no
7610 rm conftest.$ac_ext
7611 LIBS=$ac_func_search_save_LIBS
7613 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
7614 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
7615 ac_res=$ac_cv_search_crypt
7616 if test "$ac_res" != no; then
7617 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7621 # Solaris:
7622 { echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
7623 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6; }
7624 if test "${ac_cv_search_fdatasync+set}" = set; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
7626 else
7627 ac_func_search_save_LIBS=$LIBS
7628 cat >conftest.$ac_ext <<_ACEOF
7629 /* confdefs.h. */
7630 _ACEOF
7631 cat confdefs.h >>conftest.$ac_ext
7632 cat >>conftest.$ac_ext <<_ACEOF
7633 /* end confdefs.h. */
7635 /* Override any GCC internal prototype to avoid an error.
7636 Use char because int might match the return type of a GCC
7637 builtin and then its argument prototype would still apply. */
7638 #ifdef __cplusplus
7639 extern "C"
7640 #endif
7641 char fdatasync ();
7643 main ()
7645 return fdatasync ();
7647 return 0;
7649 _ACEOF
7650 for ac_lib in '' rt posix4; do
7651 if test -z "$ac_lib"; then
7652 ac_res="none required"
7653 else
7654 ac_res=-l$ac_lib
7655 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7657 rm -f conftest.$ac_objext conftest$ac_exeext
7658 if { (ac_try="$ac_link"
7659 case "(($ac_try" in
7660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7661 *) ac_try_echo=$ac_try;;
7662 esac
7663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7664 (eval "$ac_link") 2>conftest.er1
7665 ac_status=$?
7666 grep -v '^ *+' conftest.er1 >conftest.err
7667 rm -f conftest.er1
7668 cat conftest.err >&5
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); } && {
7671 test -z "$ac_c_werror_flag" ||
7672 test ! -s conftest.err
7673 } && test -s conftest$ac_exeext &&
7674 $as_test_x conftest$ac_exeext; then
7675 ac_cv_search_fdatasync=$ac_res
7676 else
7677 echo "$as_me: failed program was:" >&5
7678 sed 's/^/| /' conftest.$ac_ext >&5
7683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7684 conftest$ac_exeext
7685 if test "${ac_cv_search_fdatasync+set}" = set; then
7686 break
7688 done
7689 if test "${ac_cv_search_fdatasync+set}" = set; then
7691 else
7692 ac_cv_search_fdatasync=no
7694 rm conftest.$ac_ext
7695 LIBS=$ac_func_search_save_LIBS
7697 { echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
7698 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6; }
7699 ac_res=$ac_cv_search_fdatasync
7700 if test "$ac_res" != no; then
7701 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7705 # Cygwin:
7706 { echo "$as_me:$LINENO: checking for library containing shmget" >&5
7707 echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6; }
7708 if test "${ac_cv_search_shmget+set}" = set; then
7709 echo $ECHO_N "(cached) $ECHO_C" >&6
7710 else
7711 ac_func_search_save_LIBS=$LIBS
7712 cat >conftest.$ac_ext <<_ACEOF
7713 /* confdefs.h. */
7714 _ACEOF
7715 cat confdefs.h >>conftest.$ac_ext
7716 cat >>conftest.$ac_ext <<_ACEOF
7717 /* end confdefs.h. */
7719 /* Override any GCC internal prototype to avoid an error.
7720 Use char because int might match the return type of a GCC
7721 builtin and then its argument prototype would still apply. */
7722 #ifdef __cplusplus
7723 extern "C"
7724 #endif
7725 char shmget ();
7727 main ()
7729 return shmget ();
7731 return 0;
7733 _ACEOF
7734 for ac_lib in '' cygipc; do
7735 if test -z "$ac_lib"; then
7736 ac_res="none required"
7737 else
7738 ac_res=-l$ac_lib
7739 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7741 rm -f conftest.$ac_objext conftest$ac_exeext
7742 if { (ac_try="$ac_link"
7743 case "(($ac_try" in
7744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7745 *) ac_try_echo=$ac_try;;
7746 esac
7747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7748 (eval "$ac_link") 2>conftest.er1
7749 ac_status=$?
7750 grep -v '^ *+' conftest.er1 >conftest.err
7751 rm -f conftest.er1
7752 cat conftest.err >&5
7753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754 (exit $ac_status); } && {
7755 test -z "$ac_c_werror_flag" ||
7756 test ! -s conftest.err
7757 } && test -s conftest$ac_exeext &&
7758 $as_test_x conftest$ac_exeext; then
7759 ac_cv_search_shmget=$ac_res
7760 else
7761 echo "$as_me: failed program was:" >&5
7762 sed 's/^/| /' conftest.$ac_ext >&5
7767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7768 conftest$ac_exeext
7769 if test "${ac_cv_search_shmget+set}" = set; then
7770 break
7772 done
7773 if test "${ac_cv_search_shmget+set}" = set; then
7775 else
7776 ac_cv_search_shmget=no
7778 rm conftest.$ac_ext
7779 LIBS=$ac_func_search_save_LIBS
7781 { echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
7782 echo "${ECHO_T}$ac_cv_search_shmget" >&6; }
7783 ac_res=$ac_cv_search_shmget
7784 if test "$ac_res" != no; then
7785 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7790 if test "$with_readline" = yes; then
7793 if test "${pgac_cv_check_readline+set}" = set; then
7794 echo $ECHO_N "(cached) $ECHO_C" >&6
7795 else
7796 pgac_cv_check_readline=no
7797 pgac_save_LIBS=$LIBS
7798 if test x"$with_libedit_preferred" != x"yes"
7799 then READLINE_ORDER="-lreadline -ledit"
7800 else READLINE_ORDER="-ledit -lreadline"
7802 for pgac_rllib in $READLINE_ORDER ; do
7803 { echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
7804 echo $ECHO_N "checking for ${pgac_rllib}... $ECHO_C" >&6; }
7805 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
7806 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
7807 cat >conftest.$ac_ext <<_ACEOF
7808 /* confdefs.h. */
7809 _ACEOF
7810 cat confdefs.h >>conftest.$ac_ext
7811 cat >>conftest.$ac_ext <<_ACEOF
7812 /* end confdefs.h. */
7814 /* Override any GCC internal prototype to avoid an error.
7815 Use char because int might match the return type of a GCC
7816 builtin and then its argument prototype would still apply. */
7817 #ifdef __cplusplus
7818 extern "C"
7819 #endif
7820 char readline ();
7822 main ()
7824 return readline ();
7826 return 0;
7828 _ACEOF
7829 rm -f conftest.$ac_objext conftest$ac_exeext
7830 if { (ac_try="$ac_link"
7831 case "(($ac_try" in
7832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7833 *) ac_try_echo=$ac_try;;
7834 esac
7835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7836 (eval "$ac_link") 2>conftest.er1
7837 ac_status=$?
7838 grep -v '^ *+' conftest.er1 >conftest.err
7839 rm -f conftest.er1
7840 cat conftest.err >&5
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); } && {
7843 test -z "$ac_c_werror_flag" ||
7844 test ! -s conftest.err
7845 } && test -s conftest$ac_exeext &&
7846 $as_test_x conftest$ac_exeext; then
7848 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
7849 # recognize dependent libraries; assume curses is needed if we didn't
7850 # find any dependency.
7851 case $host_os in
7852 netbsd* | openbsd* | irix*)
7853 if test x"$pgac_lib" = x"" ; then
7854 pgac_lib=" -lcurses"
7855 fi ;;
7856 esac
7858 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
7859 break
7861 else
7862 echo "$as_me: failed program was:" >&5
7863 sed 's/^/| /' conftest.$ac_ext >&5
7868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7869 conftest$ac_exeext conftest.$ac_ext
7870 done
7871 if test "$pgac_cv_check_readline" != no ; then
7872 { echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
7873 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6; }
7874 break
7875 else
7876 { echo "$as_me:$LINENO: result: no" >&5
7877 echo "${ECHO_T}no" >&6; }
7879 done
7880 LIBS=$pgac_save_LIBS
7884 if test "$pgac_cv_check_readline" != no ; then
7885 LIBS="$pgac_cv_check_readline $LIBS"
7887 cat >>confdefs.h <<\_ACEOF
7888 #define HAVE_LIBREADLINE 1
7889 _ACEOF
7894 if test x"$pgac_cv_check_readline" = x"no"; then
7895 { { echo "$as_me:$LINENO: error: readline library not found
7896 If you have readline already installed, see config.log for details on the
7897 failure. It is possible the compiler isn't looking in the proper directory.
7898 Use --without-readline to disable readline support." >&5
7899 echo "$as_me: error: readline library not found
7900 If you have readline already installed, see config.log for details on the
7901 failure. It is possible the compiler isn't looking in the proper directory.
7902 Use --without-readline to disable readline support." >&2;}
7903 { (exit 1); exit 1; }; }
7907 if test "$with_zlib" = yes; then
7909 { echo "$as_me:$LINENO: checking for inflate in -lz" >&5
7910 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6; }
7911 if test "${ac_cv_lib_z_inflate+set}" = set; then
7912 echo $ECHO_N "(cached) $ECHO_C" >&6
7913 else
7914 ac_check_lib_save_LIBS=$LIBS
7915 LIBS="-lz $LIBS"
7916 cat >conftest.$ac_ext <<_ACEOF
7917 /* confdefs.h. */
7918 _ACEOF
7919 cat confdefs.h >>conftest.$ac_ext
7920 cat >>conftest.$ac_ext <<_ACEOF
7921 /* end confdefs.h. */
7923 /* Override any GCC internal prototype to avoid an error.
7924 Use char because int might match the return type of a GCC
7925 builtin and then its argument prototype would still apply. */
7926 #ifdef __cplusplus
7927 extern "C"
7928 #endif
7929 char inflate ();
7931 main ()
7933 return inflate ();
7935 return 0;
7937 _ACEOF
7938 rm -f conftest.$ac_objext conftest$ac_exeext
7939 if { (ac_try="$ac_link"
7940 case "(($ac_try" in
7941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7942 *) ac_try_echo=$ac_try;;
7943 esac
7944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7945 (eval "$ac_link") 2>conftest.er1
7946 ac_status=$?
7947 grep -v '^ *+' conftest.er1 >conftest.err
7948 rm -f conftest.er1
7949 cat conftest.err >&5
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); } && {
7952 test -z "$ac_c_werror_flag" ||
7953 test ! -s conftest.err
7954 } && test -s conftest$ac_exeext &&
7955 $as_test_x conftest$ac_exeext; then
7956 ac_cv_lib_z_inflate=yes
7957 else
7958 echo "$as_me: failed program was:" >&5
7959 sed 's/^/| /' conftest.$ac_ext >&5
7961 ac_cv_lib_z_inflate=no
7964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7965 conftest$ac_exeext conftest.$ac_ext
7966 LIBS=$ac_check_lib_save_LIBS
7968 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
7969 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6; }
7970 if test $ac_cv_lib_z_inflate = yes; then
7971 cat >>confdefs.h <<_ACEOF
7972 #define HAVE_LIBZ 1
7973 _ACEOF
7975 LIBS="-lz $LIBS"
7977 else
7978 { { echo "$as_me:$LINENO: error: zlib library not found
7979 If you have zlib already installed, see config.log for details on the
7980 failure. It is possible the compiler isn't looking in the proper directory.
7981 Use --without-zlib to disable zlib support." >&5
7982 echo "$as_me: error: zlib library not found
7983 If you have zlib already installed, see config.log for details on the
7984 failure. It is possible the compiler isn't looking in the proper directory.
7985 Use --without-zlib to disable zlib support." >&2;}
7986 { (exit 1); exit 1; }; }
7991 if test "$enable_spinlocks" = yes; then
7993 cat >>confdefs.h <<\_ACEOF
7994 #define HAVE_SPINLOCKS 1
7995 _ACEOF
7997 else
7998 { echo "$as_me:$LINENO: WARNING:
7999 *** Not using spinlocks will cause poor performance." >&5
8000 echo "$as_me: WARNING:
8001 *** Not using spinlocks will cause poor performance." >&2;}
8004 if test "$with_gssapi" = yes ; then
8005 if test "$PORTNAME" != "win32"; then
8006 { echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
8007 echo $ECHO_N "checking for library containing gss_init_sec_context... $ECHO_C" >&6; }
8008 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8009 echo $ECHO_N "(cached) $ECHO_C" >&6
8010 else
8011 ac_func_search_save_LIBS=$LIBS
8012 cat >conftest.$ac_ext <<_ACEOF
8013 /* confdefs.h. */
8014 _ACEOF
8015 cat confdefs.h >>conftest.$ac_ext
8016 cat >>conftest.$ac_ext <<_ACEOF
8017 /* end confdefs.h. */
8019 /* Override any GCC internal prototype to avoid an error.
8020 Use char because int might match the return type of a GCC
8021 builtin and then its argument prototype would still apply. */
8022 #ifdef __cplusplus
8023 extern "C"
8024 #endif
8025 char gss_init_sec_context ();
8027 main ()
8029 return gss_init_sec_context ();
8031 return 0;
8033 _ACEOF
8034 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
8035 if test -z "$ac_lib"; then
8036 ac_res="none required"
8037 else
8038 ac_res=-l$ac_lib
8039 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8041 rm -f conftest.$ac_objext conftest$ac_exeext
8042 if { (ac_try="$ac_link"
8043 case "(($ac_try" in
8044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8045 *) ac_try_echo=$ac_try;;
8046 esac
8047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8048 (eval "$ac_link") 2>conftest.er1
8049 ac_status=$?
8050 grep -v '^ *+' conftest.er1 >conftest.err
8051 rm -f conftest.er1
8052 cat conftest.err >&5
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); } && {
8055 test -z "$ac_c_werror_flag" ||
8056 test ! -s conftest.err
8057 } && test -s conftest$ac_exeext &&
8058 $as_test_x conftest$ac_exeext; then
8059 ac_cv_search_gss_init_sec_context=$ac_res
8060 else
8061 echo "$as_me: failed program was:" >&5
8062 sed 's/^/| /' conftest.$ac_ext >&5
8067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8068 conftest$ac_exeext
8069 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8070 break
8072 done
8073 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8075 else
8076 ac_cv_search_gss_init_sec_context=no
8078 rm conftest.$ac_ext
8079 LIBS=$ac_func_search_save_LIBS
8081 { echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
8082 echo "${ECHO_T}$ac_cv_search_gss_init_sec_context" >&6; }
8083 ac_res=$ac_cv_search_gss_init_sec_context
8084 if test "$ac_res" != no; then
8085 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8087 else
8088 { { echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
8089 echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
8090 { (exit 1); exit 1; }; }
8093 else
8094 LIBS="$LIBS -lgssapi32"
8098 if test "$with_krb5" = yes ; then
8099 if test "$PORTNAME" != "win32"; then
8100 { echo "$as_me:$LINENO: checking for library containing com_err" >&5
8101 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
8102 if test "${ac_cv_search_com_err+set}" = set; then
8103 echo $ECHO_N "(cached) $ECHO_C" >&6
8104 else
8105 ac_func_search_save_LIBS=$LIBS
8106 cat >conftest.$ac_ext <<_ACEOF
8107 /* confdefs.h. */
8108 _ACEOF
8109 cat confdefs.h >>conftest.$ac_ext
8110 cat >>conftest.$ac_ext <<_ACEOF
8111 /* end confdefs.h. */
8113 /* Override any GCC internal prototype to avoid an error.
8114 Use char because int might match the return type of a GCC
8115 builtin and then its argument prototype would still apply. */
8116 #ifdef __cplusplus
8117 extern "C"
8118 #endif
8119 char com_err ();
8121 main ()
8123 return com_err ();
8125 return 0;
8127 _ACEOF
8128 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err; do
8129 if test -z "$ac_lib"; then
8130 ac_res="none required"
8131 else
8132 ac_res=-l$ac_lib
8133 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8135 rm -f conftest.$ac_objext conftest$ac_exeext
8136 if { (ac_try="$ac_link"
8137 case "(($ac_try" in
8138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8139 *) ac_try_echo=$ac_try;;
8140 esac
8141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8142 (eval "$ac_link") 2>conftest.er1
8143 ac_status=$?
8144 grep -v '^ *+' conftest.er1 >conftest.err
8145 rm -f conftest.er1
8146 cat conftest.err >&5
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); } && {
8149 test -z "$ac_c_werror_flag" ||
8150 test ! -s conftest.err
8151 } && test -s conftest$ac_exeext &&
8152 $as_test_x conftest$ac_exeext; then
8153 ac_cv_search_com_err=$ac_res
8154 else
8155 echo "$as_me: failed program was:" >&5
8156 sed 's/^/| /' conftest.$ac_ext >&5
8161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8162 conftest$ac_exeext
8163 if test "${ac_cv_search_com_err+set}" = set; then
8164 break
8166 done
8167 if test "${ac_cv_search_com_err+set}" = set; then
8169 else
8170 ac_cv_search_com_err=no
8172 rm conftest.$ac_ext
8173 LIBS=$ac_func_search_save_LIBS
8175 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8176 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
8177 ac_res=$ac_cv_search_com_err
8178 if test "$ac_res" != no; then
8179 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8181 else
8182 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8183 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8184 { (exit 1); exit 1; }; }
8187 { echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
8188 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6; }
8189 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8190 echo $ECHO_N "(cached) $ECHO_C" >&6
8191 else
8192 ac_func_search_save_LIBS=$LIBS
8193 cat >conftest.$ac_ext <<_ACEOF
8194 /* confdefs.h. */
8195 _ACEOF
8196 cat confdefs.h >>conftest.$ac_ext
8197 cat >>conftest.$ac_ext <<_ACEOF
8198 /* end confdefs.h. */
8200 /* Override any GCC internal prototype to avoid an error.
8201 Use char because int might match the return type of a GCC
8202 builtin and then its argument prototype would still apply. */
8203 #ifdef __cplusplus
8204 extern "C"
8205 #endif
8206 char krb5_sendauth ();
8208 main ()
8210 return krb5_sendauth ();
8212 return 0;
8214 _ACEOF
8215 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
8216 if test -z "$ac_lib"; then
8217 ac_res="none required"
8218 else
8219 ac_res=-l$ac_lib
8220 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8222 rm -f conftest.$ac_objext conftest$ac_exeext
8223 if { (ac_try="$ac_link"
8224 case "(($ac_try" in
8225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8226 *) ac_try_echo=$ac_try;;
8227 esac
8228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8229 (eval "$ac_link") 2>conftest.er1
8230 ac_status=$?
8231 grep -v '^ *+' conftest.er1 >conftest.err
8232 rm -f conftest.er1
8233 cat conftest.err >&5
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); } && {
8236 test -z "$ac_c_werror_flag" ||
8237 test ! -s conftest.err
8238 } && test -s conftest$ac_exeext &&
8239 $as_test_x conftest$ac_exeext; then
8240 ac_cv_search_krb5_sendauth=$ac_res
8241 else
8242 echo "$as_me: failed program was:" >&5
8243 sed 's/^/| /' conftest.$ac_ext >&5
8248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8249 conftest$ac_exeext
8250 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8251 break
8253 done
8254 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8256 else
8257 ac_cv_search_krb5_sendauth=no
8259 rm conftest.$ac_ext
8260 LIBS=$ac_func_search_save_LIBS
8262 { echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
8263 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6; }
8264 ac_res=$ac_cv_search_krb5_sendauth
8265 if test "$ac_res" != no; then
8266 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8268 else
8269 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
8270 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
8271 { (exit 1); exit 1; }; }
8274 else
8275 { echo "$as_me:$LINENO: checking for library containing com_err" >&5
8276 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
8277 if test "${ac_cv_search_com_err+set}" = set; then
8278 echo $ECHO_N "(cached) $ECHO_C" >&6
8279 else
8280 ac_func_search_save_LIBS=$LIBS
8281 cat >conftest.$ac_ext <<_ACEOF
8282 /* confdefs.h. */
8283 _ACEOF
8284 cat confdefs.h >>conftest.$ac_ext
8285 cat >>conftest.$ac_ext <<_ACEOF
8286 /* end confdefs.h. */
8288 /* Override any GCC internal prototype to avoid an error.
8289 Use char because int might match the return type of a GCC
8290 builtin and then its argument prototype would still apply. */
8291 #ifdef __cplusplus
8292 extern "C"
8293 #endif
8294 char com_err ();
8296 main ()
8298 return com_err ();
8300 return 0;
8302 _ACEOF
8303 for ac_lib in '' 'comerr32 -lkrb5_32'; do
8304 if test -z "$ac_lib"; then
8305 ac_res="none required"
8306 else
8307 ac_res=-l$ac_lib
8308 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8310 rm -f conftest.$ac_objext conftest$ac_exeext
8311 if { (ac_try="$ac_link"
8312 case "(($ac_try" in
8313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8314 *) ac_try_echo=$ac_try;;
8315 esac
8316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8317 (eval "$ac_link") 2>conftest.er1
8318 ac_status=$?
8319 grep -v '^ *+' conftest.er1 >conftest.err
8320 rm -f conftest.er1
8321 cat conftest.err >&5
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); } && {
8324 test -z "$ac_c_werror_flag" ||
8325 test ! -s conftest.err
8326 } && test -s conftest$ac_exeext &&
8327 $as_test_x conftest$ac_exeext; then
8328 ac_cv_search_com_err=$ac_res
8329 else
8330 echo "$as_me: failed program was:" >&5
8331 sed 's/^/| /' conftest.$ac_ext >&5
8336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8337 conftest$ac_exeext
8338 if test "${ac_cv_search_com_err+set}" = set; then
8339 break
8341 done
8342 if test "${ac_cv_search_com_err+set}" = set; then
8344 else
8345 ac_cv_search_com_err=no
8347 rm conftest.$ac_ext
8348 LIBS=$ac_func_search_save_LIBS
8350 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8351 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
8352 ac_res=$ac_cv_search_com_err
8353 if test "$ac_res" != no; then
8354 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8356 else
8357 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8358 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8359 { (exit 1); exit 1; }; }
8365 if test "$with_openssl" = yes ; then
8366 if test "$PORTNAME" != "win32"; then
8368 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
8369 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6; }
8370 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
8371 echo $ECHO_N "(cached) $ECHO_C" >&6
8372 else
8373 ac_check_lib_save_LIBS=$LIBS
8374 LIBS="-lcrypto $LIBS"
8375 cat >conftest.$ac_ext <<_ACEOF
8376 /* confdefs.h. */
8377 _ACEOF
8378 cat confdefs.h >>conftest.$ac_ext
8379 cat >>conftest.$ac_ext <<_ACEOF
8380 /* end confdefs.h. */
8382 /* Override any GCC internal prototype to avoid an error.
8383 Use char because int might match the return type of a GCC
8384 builtin and then its argument prototype would still apply. */
8385 #ifdef __cplusplus
8386 extern "C"
8387 #endif
8388 char CRYPTO_new_ex_data ();
8390 main ()
8392 return CRYPTO_new_ex_data ();
8394 return 0;
8396 _ACEOF
8397 rm -f conftest.$ac_objext conftest$ac_exeext
8398 if { (ac_try="$ac_link"
8399 case "(($ac_try" in
8400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8401 *) ac_try_echo=$ac_try;;
8402 esac
8403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8404 (eval "$ac_link") 2>conftest.er1
8405 ac_status=$?
8406 grep -v '^ *+' conftest.er1 >conftest.err
8407 rm -f conftest.er1
8408 cat conftest.err >&5
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); } && {
8411 test -z "$ac_c_werror_flag" ||
8412 test ! -s conftest.err
8413 } && test -s conftest$ac_exeext &&
8414 $as_test_x conftest$ac_exeext; then
8415 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
8416 else
8417 echo "$as_me: failed program was:" >&5
8418 sed 's/^/| /' conftest.$ac_ext >&5
8420 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
8423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8424 conftest$ac_exeext conftest.$ac_ext
8425 LIBS=$ac_check_lib_save_LIBS
8427 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
8428 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
8429 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
8430 cat >>confdefs.h <<_ACEOF
8431 #define HAVE_LIBCRYPTO 1
8432 _ACEOF
8434 LIBS="-lcrypto $LIBS"
8436 else
8437 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
8438 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
8439 { (exit 1); exit 1; }; }
8443 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
8444 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
8445 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
8446 echo $ECHO_N "(cached) $ECHO_C" >&6
8447 else
8448 ac_check_lib_save_LIBS=$LIBS
8449 LIBS="-lssl $LIBS"
8450 cat >conftest.$ac_ext <<_ACEOF
8451 /* confdefs.h. */
8452 _ACEOF
8453 cat confdefs.h >>conftest.$ac_ext
8454 cat >>conftest.$ac_ext <<_ACEOF
8455 /* end confdefs.h. */
8457 /* Override any GCC internal prototype to avoid an error.
8458 Use char because int might match the return type of a GCC
8459 builtin and then its argument prototype would still apply. */
8460 #ifdef __cplusplus
8461 extern "C"
8462 #endif
8463 char SSL_library_init ();
8465 main ()
8467 return SSL_library_init ();
8469 return 0;
8471 _ACEOF
8472 rm -f conftest.$ac_objext conftest$ac_exeext
8473 if { (ac_try="$ac_link"
8474 case "(($ac_try" in
8475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8476 *) ac_try_echo=$ac_try;;
8477 esac
8478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8479 (eval "$ac_link") 2>conftest.er1
8480 ac_status=$?
8481 grep -v '^ *+' conftest.er1 >conftest.err
8482 rm -f conftest.er1
8483 cat conftest.err >&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); } && {
8486 test -z "$ac_c_werror_flag" ||
8487 test ! -s conftest.err
8488 } && test -s conftest$ac_exeext &&
8489 $as_test_x conftest$ac_exeext; then
8490 ac_cv_lib_ssl_SSL_library_init=yes
8491 else
8492 echo "$as_me: failed program was:" >&5
8493 sed 's/^/| /' conftest.$ac_ext >&5
8495 ac_cv_lib_ssl_SSL_library_init=no
8498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8499 conftest$ac_exeext conftest.$ac_ext
8500 LIBS=$ac_check_lib_save_LIBS
8502 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
8503 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
8504 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
8505 cat >>confdefs.h <<_ACEOF
8506 #define HAVE_LIBSSL 1
8507 _ACEOF
8509 LIBS="-lssl $LIBS"
8511 else
8512 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
8513 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
8514 { (exit 1); exit 1; }; }
8517 else
8519 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
8520 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6; }
8521 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
8522 echo $ECHO_N "(cached) $ECHO_C" >&6
8523 else
8524 ac_check_lib_save_LIBS=$LIBS
8525 LIBS="-leay32 $LIBS"
8526 cat >conftest.$ac_ext <<_ACEOF
8527 /* confdefs.h. */
8528 _ACEOF
8529 cat confdefs.h >>conftest.$ac_ext
8530 cat >>conftest.$ac_ext <<_ACEOF
8531 /* end confdefs.h. */
8533 /* Override any GCC internal prototype to avoid an error.
8534 Use char because int might match the return type of a GCC
8535 builtin and then its argument prototype would still apply. */
8536 #ifdef __cplusplus
8537 extern "C"
8538 #endif
8539 char CRYPTO_new_ex_data ();
8541 main ()
8543 return CRYPTO_new_ex_data ();
8545 return 0;
8547 _ACEOF
8548 rm -f conftest.$ac_objext conftest$ac_exeext
8549 if { (ac_try="$ac_link"
8550 case "(($ac_try" in
8551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8552 *) ac_try_echo=$ac_try;;
8553 esac
8554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8555 (eval "$ac_link") 2>conftest.er1
8556 ac_status=$?
8557 grep -v '^ *+' conftest.er1 >conftest.err
8558 rm -f conftest.er1
8559 cat conftest.err >&5
8560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561 (exit $ac_status); } && {
8562 test -z "$ac_c_werror_flag" ||
8563 test ! -s conftest.err
8564 } && test -s conftest$ac_exeext &&
8565 $as_test_x conftest$ac_exeext; then
8566 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
8567 else
8568 echo "$as_me: failed program was:" >&5
8569 sed 's/^/| /' conftest.$ac_ext >&5
8571 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
8574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8575 conftest$ac_exeext conftest.$ac_ext
8576 LIBS=$ac_check_lib_save_LIBS
8578 { echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
8579 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
8580 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
8581 cat >>confdefs.h <<_ACEOF
8582 #define HAVE_LIBEAY32 1
8583 _ACEOF
8585 LIBS="-leay32 $LIBS"
8587 else
8588 { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
8589 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
8590 { (exit 1); exit 1; }; }
8594 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
8595 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6; }
8596 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
8597 echo $ECHO_N "(cached) $ECHO_C" >&6
8598 else
8599 ac_check_lib_save_LIBS=$LIBS
8600 LIBS="-lssleay32 $LIBS"
8601 cat >conftest.$ac_ext <<_ACEOF
8602 /* confdefs.h. */
8603 _ACEOF
8604 cat confdefs.h >>conftest.$ac_ext
8605 cat >>conftest.$ac_ext <<_ACEOF
8606 /* end confdefs.h. */
8608 /* Override any GCC internal prototype to avoid an error.
8609 Use char because int might match the return type of a GCC
8610 builtin and then its argument prototype would still apply. */
8611 #ifdef __cplusplus
8612 extern "C"
8613 #endif
8614 char SSL_library_init ();
8616 main ()
8618 return SSL_library_init ();
8620 return 0;
8622 _ACEOF
8623 rm -f conftest.$ac_objext conftest$ac_exeext
8624 if { (ac_try="$ac_link"
8625 case "(($ac_try" in
8626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8627 *) ac_try_echo=$ac_try;;
8628 esac
8629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8630 (eval "$ac_link") 2>conftest.er1
8631 ac_status=$?
8632 grep -v '^ *+' conftest.er1 >conftest.err
8633 rm -f conftest.er1
8634 cat conftest.err >&5
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); } && {
8637 test -z "$ac_c_werror_flag" ||
8638 test ! -s conftest.err
8639 } && test -s conftest$ac_exeext &&
8640 $as_test_x conftest$ac_exeext; then
8641 ac_cv_lib_ssleay32_SSL_library_init=yes
8642 else
8643 echo "$as_me: failed program was:" >&5
8644 sed 's/^/| /' conftest.$ac_ext >&5
8646 ac_cv_lib_ssleay32_SSL_library_init=no
8649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8650 conftest$ac_exeext conftest.$ac_ext
8651 LIBS=$ac_check_lib_save_LIBS
8653 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
8654 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
8655 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
8656 cat >>confdefs.h <<_ACEOF
8657 #define HAVE_LIBSSLEAY32 1
8658 _ACEOF
8660 LIBS="-lssleay32 $LIBS"
8662 else
8663 { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
8664 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
8665 { (exit 1); exit 1; }; }
8671 if test "$with_pam" = yes ; then
8673 { echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
8674 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6; }
8675 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
8676 echo $ECHO_N "(cached) $ECHO_C" >&6
8677 else
8678 ac_check_lib_save_LIBS=$LIBS
8679 LIBS="-lpam $LIBS"
8680 cat >conftest.$ac_ext <<_ACEOF
8681 /* confdefs.h. */
8682 _ACEOF
8683 cat confdefs.h >>conftest.$ac_ext
8684 cat >>conftest.$ac_ext <<_ACEOF
8685 /* end confdefs.h. */
8687 /* Override any GCC internal prototype to avoid an error.
8688 Use char because int might match the return type of a GCC
8689 builtin and then its argument prototype would still apply. */
8690 #ifdef __cplusplus
8691 extern "C"
8692 #endif
8693 char pam_start ();
8695 main ()
8697 return pam_start ();
8699 return 0;
8701 _ACEOF
8702 rm -f conftest.$ac_objext conftest$ac_exeext
8703 if { (ac_try="$ac_link"
8704 case "(($ac_try" in
8705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8706 *) ac_try_echo=$ac_try;;
8707 esac
8708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8709 (eval "$ac_link") 2>conftest.er1
8710 ac_status=$?
8711 grep -v '^ *+' conftest.er1 >conftest.err
8712 rm -f conftest.er1
8713 cat conftest.err >&5
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); } && {
8716 test -z "$ac_c_werror_flag" ||
8717 test ! -s conftest.err
8718 } && test -s conftest$ac_exeext &&
8719 $as_test_x conftest$ac_exeext; then
8720 ac_cv_lib_pam_pam_start=yes
8721 else
8722 echo "$as_me: failed program was:" >&5
8723 sed 's/^/| /' conftest.$ac_ext >&5
8725 ac_cv_lib_pam_pam_start=no
8728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8729 conftest$ac_exeext conftest.$ac_ext
8730 LIBS=$ac_check_lib_save_LIBS
8732 { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
8733 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6; }
8734 if test $ac_cv_lib_pam_pam_start = yes; then
8735 cat >>confdefs.h <<_ACEOF
8736 #define HAVE_LIBPAM 1
8737 _ACEOF
8739 LIBS="-lpam $LIBS"
8741 else
8742 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
8743 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
8744 { (exit 1); exit 1; }; }
8749 if test "$with_libxml" = yes ; then
8751 { echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
8752 echo $ECHO_N "checking for xmlSaveToBuffer in -lxml2... $ECHO_C" >&6; }
8753 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
8754 echo $ECHO_N "(cached) $ECHO_C" >&6
8755 else
8756 ac_check_lib_save_LIBS=$LIBS
8757 LIBS="-lxml2 $LIBS"
8758 cat >conftest.$ac_ext <<_ACEOF
8759 /* confdefs.h. */
8760 _ACEOF
8761 cat confdefs.h >>conftest.$ac_ext
8762 cat >>conftest.$ac_ext <<_ACEOF
8763 /* end confdefs.h. */
8765 /* Override any GCC internal prototype to avoid an error.
8766 Use char because int might match the return type of a GCC
8767 builtin and then its argument prototype would still apply. */
8768 #ifdef __cplusplus
8769 extern "C"
8770 #endif
8771 char xmlSaveToBuffer ();
8773 main ()
8775 return xmlSaveToBuffer ();
8777 return 0;
8779 _ACEOF
8780 rm -f conftest.$ac_objext conftest$ac_exeext
8781 if { (ac_try="$ac_link"
8782 case "(($ac_try" in
8783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8784 *) ac_try_echo=$ac_try;;
8785 esac
8786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8787 (eval "$ac_link") 2>conftest.er1
8788 ac_status=$?
8789 grep -v '^ *+' conftest.er1 >conftest.err
8790 rm -f conftest.er1
8791 cat conftest.err >&5
8792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793 (exit $ac_status); } && {
8794 test -z "$ac_c_werror_flag" ||
8795 test ! -s conftest.err
8796 } && test -s conftest$ac_exeext &&
8797 $as_test_x conftest$ac_exeext; then
8798 ac_cv_lib_xml2_xmlSaveToBuffer=yes
8799 else
8800 echo "$as_me: failed program was:" >&5
8801 sed 's/^/| /' conftest.$ac_ext >&5
8803 ac_cv_lib_xml2_xmlSaveToBuffer=no
8806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8807 conftest$ac_exeext conftest.$ac_ext
8808 LIBS=$ac_check_lib_save_LIBS
8810 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
8811 echo "${ECHO_T}$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
8812 if test $ac_cv_lib_xml2_xmlSaveToBuffer = yes; then
8813 cat >>confdefs.h <<_ACEOF
8814 #define HAVE_LIBXML2 1
8815 _ACEOF
8817 LIBS="-lxml2 $LIBS"
8819 else
8820 { { echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
8821 echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
8822 { (exit 1); exit 1; }; }
8827 if test "$with_libxslt" = yes ; then
8829 { echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
8830 echo $ECHO_N "checking for xsltCleanupGlobals in -lxslt... $ECHO_C" >&6; }
8831 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
8832 echo $ECHO_N "(cached) $ECHO_C" >&6
8833 else
8834 ac_check_lib_save_LIBS=$LIBS
8835 LIBS="-lxslt $LIBS"
8836 cat >conftest.$ac_ext <<_ACEOF
8837 /* confdefs.h. */
8838 _ACEOF
8839 cat confdefs.h >>conftest.$ac_ext
8840 cat >>conftest.$ac_ext <<_ACEOF
8841 /* end confdefs.h. */
8843 /* Override any GCC internal prototype to avoid an error.
8844 Use char because int might match the return type of a GCC
8845 builtin and then its argument prototype would still apply. */
8846 #ifdef __cplusplus
8847 extern "C"
8848 #endif
8849 char xsltCleanupGlobals ();
8851 main ()
8853 return xsltCleanupGlobals ();
8855 return 0;
8857 _ACEOF
8858 rm -f conftest.$ac_objext conftest$ac_exeext
8859 if { (ac_try="$ac_link"
8860 case "(($ac_try" in
8861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8862 *) ac_try_echo=$ac_try;;
8863 esac
8864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8865 (eval "$ac_link") 2>conftest.er1
8866 ac_status=$?
8867 grep -v '^ *+' conftest.er1 >conftest.err
8868 rm -f conftest.er1
8869 cat conftest.err >&5
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); } && {
8872 test -z "$ac_c_werror_flag" ||
8873 test ! -s conftest.err
8874 } && test -s conftest$ac_exeext &&
8875 $as_test_x conftest$ac_exeext; then
8876 ac_cv_lib_xslt_xsltCleanupGlobals=yes
8877 else
8878 echo "$as_me: failed program was:" >&5
8879 sed 's/^/| /' conftest.$ac_ext >&5
8881 ac_cv_lib_xslt_xsltCleanupGlobals=no
8884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8885 conftest$ac_exeext conftest.$ac_ext
8886 LIBS=$ac_check_lib_save_LIBS
8888 { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
8889 echo "${ECHO_T}$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
8890 if test $ac_cv_lib_xslt_xsltCleanupGlobals = yes; then
8891 cat >>confdefs.h <<_ACEOF
8892 #define HAVE_LIBXSLT 1
8893 _ACEOF
8895 LIBS="-lxslt $LIBS"
8897 else
8898 { { echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
8899 echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
8900 { (exit 1); exit 1; }; }
8905 # for contrib/uuid-ossp
8906 if test "$with_ossp_uuid" = yes ; then
8907 { echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
8908 echo $ECHO_N "checking for uuid_export in -lossp-uuid... $ECHO_C" >&6; }
8909 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
8910 echo $ECHO_N "(cached) $ECHO_C" >&6
8911 else
8912 ac_check_lib_save_LIBS=$LIBS
8913 LIBS="-lossp-uuid $LIBS"
8914 cat >conftest.$ac_ext <<_ACEOF
8915 /* confdefs.h. */
8916 _ACEOF
8917 cat confdefs.h >>conftest.$ac_ext
8918 cat >>conftest.$ac_ext <<_ACEOF
8919 /* end confdefs.h. */
8921 /* Override any GCC internal prototype to avoid an error.
8922 Use char because int might match the return type of a GCC
8923 builtin and then its argument prototype would still apply. */
8924 #ifdef __cplusplus
8925 extern "C"
8926 #endif
8927 char uuid_export ();
8929 main ()
8931 return uuid_export ();
8933 return 0;
8935 _ACEOF
8936 rm -f conftest.$ac_objext conftest$ac_exeext
8937 if { (ac_try="$ac_link"
8938 case "(($ac_try" in
8939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8940 *) ac_try_echo=$ac_try;;
8941 esac
8942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8943 (eval "$ac_link") 2>conftest.er1
8944 ac_status=$?
8945 grep -v '^ *+' conftest.er1 >conftest.err
8946 rm -f conftest.er1
8947 cat conftest.err >&5
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); } && {
8950 test -z "$ac_c_werror_flag" ||
8951 test ! -s conftest.err
8952 } && test -s conftest$ac_exeext &&
8953 $as_test_x conftest$ac_exeext; then
8954 ac_cv_lib_ossp_uuid_uuid_export=yes
8955 else
8956 echo "$as_me: failed program was:" >&5
8957 sed 's/^/| /' conftest.$ac_ext >&5
8959 ac_cv_lib_ossp_uuid_uuid_export=no
8962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8963 conftest$ac_exeext conftest.$ac_ext
8964 LIBS=$ac_check_lib_save_LIBS
8966 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
8967 echo "${ECHO_T}$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
8968 if test $ac_cv_lib_ossp_uuid_uuid_export = yes; then
8969 OSSP_UUID_LIBS="-lossp-uuid"
8970 else
8971 { echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
8972 echo $ECHO_N "checking for uuid_export in -luuid... $ECHO_C" >&6; }
8973 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
8974 echo $ECHO_N "(cached) $ECHO_C" >&6
8975 else
8976 ac_check_lib_save_LIBS=$LIBS
8977 LIBS="-luuid $LIBS"
8978 cat >conftest.$ac_ext <<_ACEOF
8979 /* confdefs.h. */
8980 _ACEOF
8981 cat confdefs.h >>conftest.$ac_ext
8982 cat >>conftest.$ac_ext <<_ACEOF
8983 /* end confdefs.h. */
8985 /* Override any GCC internal prototype to avoid an error.
8986 Use char because int might match the return type of a GCC
8987 builtin and then its argument prototype would still apply. */
8988 #ifdef __cplusplus
8989 extern "C"
8990 #endif
8991 char uuid_export ();
8993 main ()
8995 return uuid_export ();
8997 return 0;
8999 _ACEOF
9000 rm -f conftest.$ac_objext conftest$ac_exeext
9001 if { (ac_try="$ac_link"
9002 case "(($ac_try" in
9003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9004 *) ac_try_echo=$ac_try;;
9005 esac
9006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9007 (eval "$ac_link") 2>conftest.er1
9008 ac_status=$?
9009 grep -v '^ *+' conftest.er1 >conftest.err
9010 rm -f conftest.er1
9011 cat conftest.err >&5
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); } && {
9014 test -z "$ac_c_werror_flag" ||
9015 test ! -s conftest.err
9016 } && test -s conftest$ac_exeext &&
9017 $as_test_x conftest$ac_exeext; then
9018 ac_cv_lib_uuid_uuid_export=yes
9019 else
9020 echo "$as_me: failed program was:" >&5
9021 sed 's/^/| /' conftest.$ac_ext >&5
9023 ac_cv_lib_uuid_uuid_export=no
9026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9027 conftest$ac_exeext conftest.$ac_ext
9028 LIBS=$ac_check_lib_save_LIBS
9030 { echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
9031 echo "${ECHO_T}$ac_cv_lib_uuid_uuid_export" >&6; }
9032 if test $ac_cv_lib_uuid_uuid_export = yes; then
9033 OSSP_UUID_LIBS="-luuid"
9034 else
9035 { { echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
9036 echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
9037 { (exit 1); exit 1; }; }
9047 ## Header files
9050 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9051 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
9052 if test "${ac_cv_header_stdc+set}" = set; then
9053 echo $ECHO_N "(cached) $ECHO_C" >&6
9054 else
9055 cat >conftest.$ac_ext <<_ACEOF
9056 /* confdefs.h. */
9057 _ACEOF
9058 cat confdefs.h >>conftest.$ac_ext
9059 cat >>conftest.$ac_ext <<_ACEOF
9060 /* end confdefs.h. */
9061 #include <stdlib.h>
9062 #include <stdarg.h>
9063 #include <string.h>
9064 #include <float.h>
9067 main ()
9071 return 0;
9073 _ACEOF
9074 rm -f conftest.$ac_objext
9075 if { (ac_try="$ac_compile"
9076 case "(($ac_try" in
9077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9078 *) ac_try_echo=$ac_try;;
9079 esac
9080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9081 (eval "$ac_compile") 2>conftest.er1
9082 ac_status=$?
9083 grep -v '^ *+' conftest.er1 >conftest.err
9084 rm -f conftest.er1
9085 cat conftest.err >&5
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); } && {
9088 test -z "$ac_c_werror_flag" ||
9089 test ! -s conftest.err
9090 } && test -s conftest.$ac_objext; then
9091 ac_cv_header_stdc=yes
9092 else
9093 echo "$as_me: failed program was:" >&5
9094 sed 's/^/| /' conftest.$ac_ext >&5
9096 ac_cv_header_stdc=no
9099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9101 if test $ac_cv_header_stdc = yes; then
9102 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9103 cat >conftest.$ac_ext <<_ACEOF
9104 /* confdefs.h. */
9105 _ACEOF
9106 cat confdefs.h >>conftest.$ac_ext
9107 cat >>conftest.$ac_ext <<_ACEOF
9108 /* end confdefs.h. */
9109 #include <string.h>
9111 _ACEOF
9112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9113 $EGREP "memchr" >/dev/null 2>&1; then
9115 else
9116 ac_cv_header_stdc=no
9118 rm -f conftest*
9122 if test $ac_cv_header_stdc = yes; then
9123 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9124 cat >conftest.$ac_ext <<_ACEOF
9125 /* confdefs.h. */
9126 _ACEOF
9127 cat confdefs.h >>conftest.$ac_ext
9128 cat >>conftest.$ac_ext <<_ACEOF
9129 /* end confdefs.h. */
9130 #include <stdlib.h>
9132 _ACEOF
9133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9134 $EGREP "free" >/dev/null 2>&1; then
9136 else
9137 ac_cv_header_stdc=no
9139 rm -f conftest*
9143 if test $ac_cv_header_stdc = yes; then
9144 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9145 if test "$cross_compiling" = yes; then
9147 else
9148 cat >conftest.$ac_ext <<_ACEOF
9149 /* confdefs.h. */
9150 _ACEOF
9151 cat confdefs.h >>conftest.$ac_ext
9152 cat >>conftest.$ac_ext <<_ACEOF
9153 /* end confdefs.h. */
9154 #include <ctype.h>
9155 #include <stdlib.h>
9156 #if ((' ' & 0x0FF) == 0x020)
9157 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9158 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9159 #else
9160 # define ISLOWER(c) \
9161 (('a' <= (c) && (c) <= 'i') \
9162 || ('j' <= (c) && (c) <= 'r') \
9163 || ('s' <= (c) && (c) <= 'z'))
9164 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9165 #endif
9167 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9169 main ()
9171 int i;
9172 for (i = 0; i < 256; i++)
9173 if (XOR (islower (i), ISLOWER (i))
9174 || toupper (i) != TOUPPER (i))
9175 return 2;
9176 return 0;
9178 _ACEOF
9179 rm -f conftest$ac_exeext
9180 if { (ac_try="$ac_link"
9181 case "(($ac_try" in
9182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9183 *) ac_try_echo=$ac_try;;
9184 esac
9185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9186 (eval "$ac_link") 2>&5
9187 ac_status=$?
9188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9190 { (case "(($ac_try" in
9191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9192 *) ac_try_echo=$ac_try;;
9193 esac
9194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9195 (eval "$ac_try") 2>&5
9196 ac_status=$?
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); }; }; then
9200 else
9201 echo "$as_me: program exited with status $ac_status" >&5
9202 echo "$as_me: failed program was:" >&5
9203 sed 's/^/| /' conftest.$ac_ext >&5
9205 ( exit $ac_status )
9206 ac_cv_header_stdc=no
9208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9214 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9215 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
9216 if test $ac_cv_header_stdc = yes; then
9218 cat >>confdefs.h <<\_ACEOF
9219 #define STDC_HEADERS 1
9220 _ACEOF
9224 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9234 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9235 inttypes.h stdint.h unistd.h
9237 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9238 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9241 echo $ECHO_N "(cached) $ECHO_C" >&6
9242 else
9243 cat >conftest.$ac_ext <<_ACEOF
9244 /* confdefs.h. */
9245 _ACEOF
9246 cat confdefs.h >>conftest.$ac_ext
9247 cat >>conftest.$ac_ext <<_ACEOF
9248 /* end confdefs.h. */
9249 $ac_includes_default
9251 #include <$ac_header>
9252 _ACEOF
9253 rm -f conftest.$ac_objext
9254 if { (ac_try="$ac_compile"
9255 case "(($ac_try" in
9256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9257 *) ac_try_echo=$ac_try;;
9258 esac
9259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9260 (eval "$ac_compile") 2>conftest.er1
9261 ac_status=$?
9262 grep -v '^ *+' conftest.er1 >conftest.err
9263 rm -f conftest.er1
9264 cat conftest.err >&5
9265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266 (exit $ac_status); } && {
9267 test -z "$ac_c_werror_flag" ||
9268 test ! -s conftest.err
9269 } && test -s conftest.$ac_objext; then
9270 eval "$as_ac_Header=yes"
9271 else
9272 echo "$as_me: failed program was:" >&5
9273 sed 's/^/| /' conftest.$ac_ext >&5
9275 eval "$as_ac_Header=no"
9278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9280 ac_res=`eval echo '${'$as_ac_Header'}'`
9281 { echo "$as_me:$LINENO: result: $ac_res" >&5
9282 echo "${ECHO_T}$ac_res" >&6; }
9283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9284 cat >>confdefs.h <<_ACEOF
9285 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9286 _ACEOF
9290 done
9320 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
9322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9324 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9327 echo $ECHO_N "(cached) $ECHO_C" >&6
9329 ac_res=`eval echo '${'$as_ac_Header'}'`
9330 { echo "$as_me:$LINENO: result: $ac_res" >&5
9331 echo "${ECHO_T}$ac_res" >&6; }
9332 else
9333 # Is the header compilable?
9334 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9335 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9336 cat >conftest.$ac_ext <<_ACEOF
9337 /* confdefs.h. */
9338 _ACEOF
9339 cat confdefs.h >>conftest.$ac_ext
9340 cat >>conftest.$ac_ext <<_ACEOF
9341 /* end confdefs.h. */
9342 $ac_includes_default
9343 #include <$ac_header>
9344 _ACEOF
9345 rm -f conftest.$ac_objext
9346 if { (ac_try="$ac_compile"
9347 case "(($ac_try" in
9348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9349 *) ac_try_echo=$ac_try;;
9350 esac
9351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9352 (eval "$ac_compile") 2>conftest.er1
9353 ac_status=$?
9354 grep -v '^ *+' conftest.er1 >conftest.err
9355 rm -f conftest.er1
9356 cat conftest.err >&5
9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); } && {
9359 test -z "$ac_c_werror_flag" ||
9360 test ! -s conftest.err
9361 } && test -s conftest.$ac_objext; then
9362 ac_header_compiler=yes
9363 else
9364 echo "$as_me: failed program was:" >&5
9365 sed 's/^/| /' conftest.$ac_ext >&5
9367 ac_header_compiler=no
9370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9371 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9372 echo "${ECHO_T}$ac_header_compiler" >&6; }
9374 # Is the header present?
9375 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9376 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9377 cat >conftest.$ac_ext <<_ACEOF
9378 /* confdefs.h. */
9379 _ACEOF
9380 cat confdefs.h >>conftest.$ac_ext
9381 cat >>conftest.$ac_ext <<_ACEOF
9382 /* end confdefs.h. */
9383 #include <$ac_header>
9384 _ACEOF
9385 if { (ac_try="$ac_cpp conftest.$ac_ext"
9386 case "(($ac_try" in
9387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9388 *) ac_try_echo=$ac_try;;
9389 esac
9390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9391 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9392 ac_status=$?
9393 grep -v '^ *+' conftest.er1 >conftest.err
9394 rm -f conftest.er1
9395 cat conftest.err >&5
9396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); } >/dev/null && {
9398 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9399 test ! -s conftest.err
9400 }; then
9401 ac_header_preproc=yes
9402 else
9403 echo "$as_me: failed program was:" >&5
9404 sed 's/^/| /' conftest.$ac_ext >&5
9406 ac_header_preproc=no
9409 rm -f conftest.err conftest.$ac_ext
9410 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9411 echo "${ECHO_T}$ac_header_preproc" >&6; }
9413 # So? What about this header?
9414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9415 yes:no: )
9416 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9417 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9419 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9420 ac_header_preproc=yes
9422 no:yes:* )
9423 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9424 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9425 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9426 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9427 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9428 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9429 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9430 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9432 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9433 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9434 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9435 ( cat <<\_ASBOX
9436 ## ---------------------------------------- ##
9437 ## Report this to pgsql-bugs@postgresql.org ##
9438 ## ---------------------------------------- ##
9439 _ASBOX
9440 ) | sed "s/^/$as_me: WARNING: /" >&2
9442 esac
9443 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9446 echo $ECHO_N "(cached) $ECHO_C" >&6
9447 else
9448 eval "$as_ac_Header=\$ac_header_preproc"
9450 ac_res=`eval echo '${'$as_ac_Header'}'`
9451 { echo "$as_me:$LINENO: result: $ac_res" >&5
9452 echo "${ECHO_T}$ac_res" >&6; }
9455 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9456 cat >>confdefs.h <<_ACEOF
9457 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9458 _ACEOF
9462 done
9465 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
9466 # netinet/in.h is included first.
9468 for ac_header in netinet/in.h
9470 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9472 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9475 echo $ECHO_N "(cached) $ECHO_C" >&6
9477 ac_res=`eval echo '${'$as_ac_Header'}'`
9478 { echo "$as_me:$LINENO: result: $ac_res" >&5
9479 echo "${ECHO_T}$ac_res" >&6; }
9480 else
9481 # Is the header compilable?
9482 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9483 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9484 cat >conftest.$ac_ext <<_ACEOF
9485 /* confdefs.h. */
9486 _ACEOF
9487 cat confdefs.h >>conftest.$ac_ext
9488 cat >>conftest.$ac_ext <<_ACEOF
9489 /* end confdefs.h. */
9490 $ac_includes_default
9491 #include <$ac_header>
9492 _ACEOF
9493 rm -f conftest.$ac_objext
9494 if { (ac_try="$ac_compile"
9495 case "(($ac_try" in
9496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9497 *) ac_try_echo=$ac_try;;
9498 esac
9499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9500 (eval "$ac_compile") 2>conftest.er1
9501 ac_status=$?
9502 grep -v '^ *+' conftest.er1 >conftest.err
9503 rm -f conftest.er1
9504 cat conftest.err >&5
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); } && {
9507 test -z "$ac_c_werror_flag" ||
9508 test ! -s conftest.err
9509 } && test -s conftest.$ac_objext; then
9510 ac_header_compiler=yes
9511 else
9512 echo "$as_me: failed program was:" >&5
9513 sed 's/^/| /' conftest.$ac_ext >&5
9515 ac_header_compiler=no
9518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9519 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9520 echo "${ECHO_T}$ac_header_compiler" >&6; }
9522 # Is the header present?
9523 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9525 cat >conftest.$ac_ext <<_ACEOF
9526 /* confdefs.h. */
9527 _ACEOF
9528 cat confdefs.h >>conftest.$ac_ext
9529 cat >>conftest.$ac_ext <<_ACEOF
9530 /* end confdefs.h. */
9531 #include <$ac_header>
9532 _ACEOF
9533 if { (ac_try="$ac_cpp conftest.$ac_ext"
9534 case "(($ac_try" in
9535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9536 *) ac_try_echo=$ac_try;;
9537 esac
9538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9540 ac_status=$?
9541 grep -v '^ *+' conftest.er1 >conftest.err
9542 rm -f conftest.er1
9543 cat conftest.err >&5
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); } >/dev/null && {
9546 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9547 test ! -s conftest.err
9548 }; then
9549 ac_header_preproc=yes
9550 else
9551 echo "$as_me: failed program was:" >&5
9552 sed 's/^/| /' conftest.$ac_ext >&5
9554 ac_header_preproc=no
9557 rm -f conftest.err conftest.$ac_ext
9558 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9559 echo "${ECHO_T}$ac_header_preproc" >&6; }
9561 # So? What about this header?
9562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9563 yes:no: )
9564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9567 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9568 ac_header_preproc=yes
9570 no:yes:* )
9571 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9572 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9573 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9574 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9575 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9576 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9577 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9578 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9581 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9582 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9583 ( cat <<\_ASBOX
9584 ## ---------------------------------------- ##
9585 ## Report this to pgsql-bugs@postgresql.org ##
9586 ## ---------------------------------------- ##
9587 _ASBOX
9588 ) | sed "s/^/$as_me: WARNING: /" >&2
9590 esac
9591 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9594 echo $ECHO_N "(cached) $ECHO_C" >&6
9595 else
9596 eval "$as_ac_Header=\$ac_header_preproc"
9598 ac_res=`eval echo '${'$as_ac_Header'}'`
9599 { echo "$as_me:$LINENO: result: $ac_res" >&5
9600 echo "${ECHO_T}$ac_res" >&6; }
9603 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9604 cat >>confdefs.h <<_ACEOF
9605 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9606 _ACEOF
9610 done
9613 for ac_header in netinet/tcp.h
9615 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9616 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9619 echo $ECHO_N "(cached) $ECHO_C" >&6
9620 else
9621 cat >conftest.$ac_ext <<_ACEOF
9622 /* confdefs.h. */
9623 _ACEOF
9624 cat confdefs.h >>conftest.$ac_ext
9625 cat >>conftest.$ac_ext <<_ACEOF
9626 /* end confdefs.h. */
9627 $ac_includes_default
9628 #ifdef HAVE_NETINET_IN_H
9629 #include <netinet/in.h>
9630 #endif
9633 #include <$ac_header>
9634 _ACEOF
9635 rm -f conftest.$ac_objext
9636 if { (ac_try="$ac_compile"
9637 case "(($ac_try" in
9638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9639 *) ac_try_echo=$ac_try;;
9640 esac
9641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9642 (eval "$ac_compile") 2>conftest.er1
9643 ac_status=$?
9644 grep -v '^ *+' conftest.er1 >conftest.err
9645 rm -f conftest.er1
9646 cat conftest.err >&5
9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); } && {
9649 test -z "$ac_c_werror_flag" ||
9650 test ! -s conftest.err
9651 } && test -s conftest.$ac_objext; then
9652 eval "$as_ac_Header=yes"
9653 else
9654 echo "$as_me: failed program was:" >&5
9655 sed 's/^/| /' conftest.$ac_ext >&5
9657 eval "$as_ac_Header=no"
9660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9662 ac_res=`eval echo '${'$as_ac_Header'}'`
9663 { echo "$as_me:$LINENO: result: $ac_res" >&5
9664 echo "${ECHO_T}$ac_res" >&6; }
9665 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9666 cat >>confdefs.h <<_ACEOF
9667 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9668 _ACEOF
9672 done
9675 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
9677 for ac_header in readline/readline.h
9679 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9681 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9684 echo $ECHO_N "(cached) $ECHO_C" >&6
9686 ac_res=`eval echo '${'$as_ac_Header'}'`
9687 { echo "$as_me:$LINENO: result: $ac_res" >&5
9688 echo "${ECHO_T}$ac_res" >&6; }
9689 else
9690 # Is the header compilable?
9691 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9692 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9693 cat >conftest.$ac_ext <<_ACEOF
9694 /* confdefs.h. */
9695 _ACEOF
9696 cat confdefs.h >>conftest.$ac_ext
9697 cat >>conftest.$ac_ext <<_ACEOF
9698 /* end confdefs.h. */
9699 $ac_includes_default
9700 #include <$ac_header>
9701 _ACEOF
9702 rm -f conftest.$ac_objext
9703 if { (ac_try="$ac_compile"
9704 case "(($ac_try" in
9705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9706 *) ac_try_echo=$ac_try;;
9707 esac
9708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9709 (eval "$ac_compile") 2>conftest.er1
9710 ac_status=$?
9711 grep -v '^ *+' conftest.er1 >conftest.err
9712 rm -f conftest.er1
9713 cat conftest.err >&5
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 (exit $ac_status); } && {
9716 test -z "$ac_c_werror_flag" ||
9717 test ! -s conftest.err
9718 } && test -s conftest.$ac_objext; then
9719 ac_header_compiler=yes
9720 else
9721 echo "$as_me: failed program was:" >&5
9722 sed 's/^/| /' conftest.$ac_ext >&5
9724 ac_header_compiler=no
9727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9728 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9729 echo "${ECHO_T}$ac_header_compiler" >&6; }
9731 # Is the header present?
9732 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9733 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9734 cat >conftest.$ac_ext <<_ACEOF
9735 /* confdefs.h. */
9736 _ACEOF
9737 cat confdefs.h >>conftest.$ac_ext
9738 cat >>conftest.$ac_ext <<_ACEOF
9739 /* end confdefs.h. */
9740 #include <$ac_header>
9741 _ACEOF
9742 if { (ac_try="$ac_cpp conftest.$ac_ext"
9743 case "(($ac_try" in
9744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9745 *) ac_try_echo=$ac_try;;
9746 esac
9747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9749 ac_status=$?
9750 grep -v '^ *+' conftest.er1 >conftest.err
9751 rm -f conftest.er1
9752 cat conftest.err >&5
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); } >/dev/null && {
9755 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9756 test ! -s conftest.err
9757 }; then
9758 ac_header_preproc=yes
9759 else
9760 echo "$as_me: failed program was:" >&5
9761 sed 's/^/| /' conftest.$ac_ext >&5
9763 ac_header_preproc=no
9766 rm -f conftest.err conftest.$ac_ext
9767 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9768 echo "${ECHO_T}$ac_header_preproc" >&6; }
9770 # So? What about this header?
9771 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9772 yes:no: )
9773 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9774 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9776 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9777 ac_header_preproc=yes
9779 no:yes:* )
9780 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9781 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9782 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9783 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9784 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9785 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9786 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9787 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9789 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9790 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9791 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9792 ( cat <<\_ASBOX
9793 ## ---------------------------------------- ##
9794 ## Report this to pgsql-bugs@postgresql.org ##
9795 ## ---------------------------------------- ##
9796 _ASBOX
9797 ) | sed "s/^/$as_me: WARNING: /" >&2
9799 esac
9800 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9803 echo $ECHO_N "(cached) $ECHO_C" >&6
9804 else
9805 eval "$as_ac_Header=\$ac_header_preproc"
9807 ac_res=`eval echo '${'$as_ac_Header'}'`
9808 { echo "$as_me:$LINENO: result: $ac_res" >&5
9809 echo "${ECHO_T}$ac_res" >&6; }
9812 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9813 cat >>confdefs.h <<_ACEOF
9814 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9815 _ACEOF
9817 else
9819 for ac_header in readline.h
9821 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9823 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9826 echo $ECHO_N "(cached) $ECHO_C" >&6
9828 ac_res=`eval echo '${'$as_ac_Header'}'`
9829 { echo "$as_me:$LINENO: result: $ac_res" >&5
9830 echo "${ECHO_T}$ac_res" >&6; }
9831 else
9832 # Is the header compilable?
9833 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9834 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9835 cat >conftest.$ac_ext <<_ACEOF
9836 /* confdefs.h. */
9837 _ACEOF
9838 cat confdefs.h >>conftest.$ac_ext
9839 cat >>conftest.$ac_ext <<_ACEOF
9840 /* end confdefs.h. */
9841 $ac_includes_default
9842 #include <$ac_header>
9843 _ACEOF
9844 rm -f conftest.$ac_objext
9845 if { (ac_try="$ac_compile"
9846 case "(($ac_try" in
9847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848 *) ac_try_echo=$ac_try;;
9849 esac
9850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9851 (eval "$ac_compile") 2>conftest.er1
9852 ac_status=$?
9853 grep -v '^ *+' conftest.er1 >conftest.err
9854 rm -f conftest.er1
9855 cat conftest.err >&5
9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); } && {
9858 test -z "$ac_c_werror_flag" ||
9859 test ! -s conftest.err
9860 } && test -s conftest.$ac_objext; then
9861 ac_header_compiler=yes
9862 else
9863 echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.$ac_ext >&5
9866 ac_header_compiler=no
9869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9870 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9871 echo "${ECHO_T}$ac_header_compiler" >&6; }
9873 # Is the header present?
9874 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9875 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9876 cat >conftest.$ac_ext <<_ACEOF
9877 /* confdefs.h. */
9878 _ACEOF
9879 cat confdefs.h >>conftest.$ac_ext
9880 cat >>conftest.$ac_ext <<_ACEOF
9881 /* end confdefs.h. */
9882 #include <$ac_header>
9883 _ACEOF
9884 if { (ac_try="$ac_cpp conftest.$ac_ext"
9885 case "(($ac_try" in
9886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9887 *) ac_try_echo=$ac_try;;
9888 esac
9889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9891 ac_status=$?
9892 grep -v '^ *+' conftest.er1 >conftest.err
9893 rm -f conftest.er1
9894 cat conftest.err >&5
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); } >/dev/null && {
9897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9898 test ! -s conftest.err
9899 }; then
9900 ac_header_preproc=yes
9901 else
9902 echo "$as_me: failed program was:" >&5
9903 sed 's/^/| /' conftest.$ac_ext >&5
9905 ac_header_preproc=no
9908 rm -f conftest.err conftest.$ac_ext
9909 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9910 echo "${ECHO_T}$ac_header_preproc" >&6; }
9912 # So? What about this header?
9913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9914 yes:no: )
9915 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9916 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9918 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9919 ac_header_preproc=yes
9921 no:yes:* )
9922 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9923 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9924 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9925 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9926 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9927 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9928 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9929 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9930 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9931 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9932 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9933 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9934 ( cat <<\_ASBOX
9935 ## ---------------------------------------- ##
9936 ## Report this to pgsql-bugs@postgresql.org ##
9937 ## ---------------------------------------- ##
9938 _ASBOX
9939 ) | sed "s/^/$as_me: WARNING: /" >&2
9941 esac
9942 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9945 echo $ECHO_N "(cached) $ECHO_C" >&6
9946 else
9947 eval "$as_ac_Header=\$ac_header_preproc"
9949 ac_res=`eval echo '${'$as_ac_Header'}'`
9950 { echo "$as_me:$LINENO: result: $ac_res" >&5
9951 echo "${ECHO_T}$ac_res" >&6; }
9954 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9955 cat >>confdefs.h <<_ACEOF
9956 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9957 _ACEOF
9959 else
9960 { { echo "$as_me:$LINENO: error: readline header not found
9961 If you have readline already installed, see config.log for details on the
9962 failure. It is possible the compiler isn't looking in the proper directory.
9963 Use --without-readline to disable readline support." >&5
9964 echo "$as_me: error: readline header not found
9965 If you have readline already installed, see config.log for details on the
9966 failure. It is possible the compiler isn't looking in the proper directory.
9967 Use --without-readline to disable readline support." >&2;}
9968 { (exit 1); exit 1; }; }
9971 done
9975 done
9978 for ac_header in readline/history.h
9980 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9982 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9985 echo $ECHO_N "(cached) $ECHO_C" >&6
9987 ac_res=`eval echo '${'$as_ac_Header'}'`
9988 { echo "$as_me:$LINENO: result: $ac_res" >&5
9989 echo "${ECHO_T}$ac_res" >&6; }
9990 else
9991 # Is the header compilable?
9992 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9993 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9994 cat >conftest.$ac_ext <<_ACEOF
9995 /* confdefs.h. */
9996 _ACEOF
9997 cat confdefs.h >>conftest.$ac_ext
9998 cat >>conftest.$ac_ext <<_ACEOF
9999 /* end confdefs.h. */
10000 $ac_includes_default
10001 #include <$ac_header>
10002 _ACEOF
10003 rm -f conftest.$ac_objext
10004 if { (ac_try="$ac_compile"
10005 case "(($ac_try" in
10006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10007 *) ac_try_echo=$ac_try;;
10008 esac
10009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10010 (eval "$ac_compile") 2>conftest.er1
10011 ac_status=$?
10012 grep -v '^ *+' conftest.er1 >conftest.err
10013 rm -f conftest.er1
10014 cat conftest.err >&5
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); } && {
10017 test -z "$ac_c_werror_flag" ||
10018 test ! -s conftest.err
10019 } && test -s conftest.$ac_objext; then
10020 ac_header_compiler=yes
10021 else
10022 echo "$as_me: failed program was:" >&5
10023 sed 's/^/| /' conftest.$ac_ext >&5
10025 ac_header_compiler=no
10028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10029 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10030 echo "${ECHO_T}$ac_header_compiler" >&6; }
10032 # Is the header present?
10033 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10034 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10035 cat >conftest.$ac_ext <<_ACEOF
10036 /* confdefs.h. */
10037 _ACEOF
10038 cat confdefs.h >>conftest.$ac_ext
10039 cat >>conftest.$ac_ext <<_ACEOF
10040 /* end confdefs.h. */
10041 #include <$ac_header>
10042 _ACEOF
10043 if { (ac_try="$ac_cpp conftest.$ac_ext"
10044 case "(($ac_try" in
10045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10046 *) ac_try_echo=$ac_try;;
10047 esac
10048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10049 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10050 ac_status=$?
10051 grep -v '^ *+' conftest.er1 >conftest.err
10052 rm -f conftest.er1
10053 cat conftest.err >&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); } >/dev/null && {
10056 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10057 test ! -s conftest.err
10058 }; then
10059 ac_header_preproc=yes
10060 else
10061 echo "$as_me: failed program was:" >&5
10062 sed 's/^/| /' conftest.$ac_ext >&5
10064 ac_header_preproc=no
10067 rm -f conftest.err conftest.$ac_ext
10068 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10069 echo "${ECHO_T}$ac_header_preproc" >&6; }
10071 # So? What about this header?
10072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10073 yes:no: )
10074 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10075 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10077 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10078 ac_header_preproc=yes
10080 no:yes:* )
10081 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10082 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10083 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10084 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10085 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10086 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10087 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10088 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10091 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10092 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10093 ( cat <<\_ASBOX
10094 ## ---------------------------------------- ##
10095 ## Report this to pgsql-bugs@postgresql.org ##
10096 ## ---------------------------------------- ##
10097 _ASBOX
10098 ) | sed "s/^/$as_me: WARNING: /" >&2
10100 esac
10101 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10104 echo $ECHO_N "(cached) $ECHO_C" >&6
10105 else
10106 eval "$as_ac_Header=\$ac_header_preproc"
10108 ac_res=`eval echo '${'$as_ac_Header'}'`
10109 { echo "$as_me:$LINENO: result: $ac_res" >&5
10110 echo "${ECHO_T}$ac_res" >&6; }
10113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10114 cat >>confdefs.h <<_ACEOF
10115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10116 _ACEOF
10118 else
10120 for ac_header in history.h
10122 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10124 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10127 echo $ECHO_N "(cached) $ECHO_C" >&6
10129 ac_res=`eval echo '${'$as_ac_Header'}'`
10130 { echo "$as_me:$LINENO: result: $ac_res" >&5
10131 echo "${ECHO_T}$ac_res" >&6; }
10132 else
10133 # Is the header compilable?
10134 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10135 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10136 cat >conftest.$ac_ext <<_ACEOF
10137 /* confdefs.h. */
10138 _ACEOF
10139 cat confdefs.h >>conftest.$ac_ext
10140 cat >>conftest.$ac_ext <<_ACEOF
10141 /* end confdefs.h. */
10142 $ac_includes_default
10143 #include <$ac_header>
10144 _ACEOF
10145 rm -f conftest.$ac_objext
10146 if { (ac_try="$ac_compile"
10147 case "(($ac_try" in
10148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10149 *) ac_try_echo=$ac_try;;
10150 esac
10151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10152 (eval "$ac_compile") 2>conftest.er1
10153 ac_status=$?
10154 grep -v '^ *+' conftest.er1 >conftest.err
10155 rm -f conftest.er1
10156 cat conftest.err >&5
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 (exit $ac_status); } && {
10159 test -z "$ac_c_werror_flag" ||
10160 test ! -s conftest.err
10161 } && test -s conftest.$ac_objext; then
10162 ac_header_compiler=yes
10163 else
10164 echo "$as_me: failed program was:" >&5
10165 sed 's/^/| /' conftest.$ac_ext >&5
10167 ac_header_compiler=no
10170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10171 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10172 echo "${ECHO_T}$ac_header_compiler" >&6; }
10174 # Is the header present?
10175 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10176 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10177 cat >conftest.$ac_ext <<_ACEOF
10178 /* confdefs.h. */
10179 _ACEOF
10180 cat confdefs.h >>conftest.$ac_ext
10181 cat >>conftest.$ac_ext <<_ACEOF
10182 /* end confdefs.h. */
10183 #include <$ac_header>
10184 _ACEOF
10185 if { (ac_try="$ac_cpp conftest.$ac_ext"
10186 case "(($ac_try" in
10187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10188 *) ac_try_echo=$ac_try;;
10189 esac
10190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10191 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10192 ac_status=$?
10193 grep -v '^ *+' conftest.er1 >conftest.err
10194 rm -f conftest.er1
10195 cat conftest.err >&5
10196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197 (exit $ac_status); } >/dev/null && {
10198 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10199 test ! -s conftest.err
10200 }; then
10201 ac_header_preproc=yes
10202 else
10203 echo "$as_me: failed program was:" >&5
10204 sed 's/^/| /' conftest.$ac_ext >&5
10206 ac_header_preproc=no
10209 rm -f conftest.err conftest.$ac_ext
10210 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10211 echo "${ECHO_T}$ac_header_preproc" >&6; }
10213 # So? What about this header?
10214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10215 yes:no: )
10216 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10217 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10219 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10220 ac_header_preproc=yes
10222 no:yes:* )
10223 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10224 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10225 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10226 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10227 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10228 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10229 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10230 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10233 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10234 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10235 ( cat <<\_ASBOX
10236 ## ---------------------------------------- ##
10237 ## Report this to pgsql-bugs@postgresql.org ##
10238 ## ---------------------------------------- ##
10239 _ASBOX
10240 ) | sed "s/^/$as_me: WARNING: /" >&2
10242 esac
10243 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10246 echo $ECHO_N "(cached) $ECHO_C" >&6
10247 else
10248 eval "$as_ac_Header=\$ac_header_preproc"
10250 ac_res=`eval echo '${'$as_ac_Header'}'`
10251 { echo "$as_me:$LINENO: result: $ac_res" >&5
10252 echo "${ECHO_T}$ac_res" >&6; }
10255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10256 cat >>confdefs.h <<_ACEOF
10257 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10258 _ACEOF
10260 else
10261 { { echo "$as_me:$LINENO: error: history header not found
10262 If you have readline already installed, see config.log for details on the
10263 failure. It is possible the compiler isn't looking in the proper directory.
10264 Use --without-readline to disable readline support." >&5
10265 echo "$as_me: error: history header not found
10266 If you have readline already installed, see config.log for details on the
10267 failure. It is possible the compiler isn't looking in the proper directory.
10268 Use --without-readline to disable readline support." >&2;}
10269 { (exit 1); exit 1; }; }
10272 done
10276 done
10280 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
10281 # Some installations of libedit usurp /usr/include/readline/, which seems
10282 # bad practice, since in combined installations readline will have its headers
10283 # there. We might have to resort to AC_EGREP checks to make sure we found
10284 # the proper header...
10286 for ac_header in editline/readline.h
10288 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10289 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10290 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10293 echo $ECHO_N "(cached) $ECHO_C" >&6
10295 ac_res=`eval echo '${'$as_ac_Header'}'`
10296 { echo "$as_me:$LINENO: result: $ac_res" >&5
10297 echo "${ECHO_T}$ac_res" >&6; }
10298 else
10299 # Is the header compilable?
10300 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10301 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10302 cat >conftest.$ac_ext <<_ACEOF
10303 /* confdefs.h. */
10304 _ACEOF
10305 cat confdefs.h >>conftest.$ac_ext
10306 cat >>conftest.$ac_ext <<_ACEOF
10307 /* end confdefs.h. */
10308 $ac_includes_default
10309 #include <$ac_header>
10310 _ACEOF
10311 rm -f conftest.$ac_objext
10312 if { (ac_try="$ac_compile"
10313 case "(($ac_try" in
10314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10315 *) ac_try_echo=$ac_try;;
10316 esac
10317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10318 (eval "$ac_compile") 2>conftest.er1
10319 ac_status=$?
10320 grep -v '^ *+' conftest.er1 >conftest.err
10321 rm -f conftest.er1
10322 cat conftest.err >&5
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); } && {
10325 test -z "$ac_c_werror_flag" ||
10326 test ! -s conftest.err
10327 } && test -s conftest.$ac_objext; then
10328 ac_header_compiler=yes
10329 else
10330 echo "$as_me: failed program was:" >&5
10331 sed 's/^/| /' conftest.$ac_ext >&5
10333 ac_header_compiler=no
10336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10337 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10338 echo "${ECHO_T}$ac_header_compiler" >&6; }
10340 # Is the header present?
10341 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10342 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10343 cat >conftest.$ac_ext <<_ACEOF
10344 /* confdefs.h. */
10345 _ACEOF
10346 cat confdefs.h >>conftest.$ac_ext
10347 cat >>conftest.$ac_ext <<_ACEOF
10348 /* end confdefs.h. */
10349 #include <$ac_header>
10350 _ACEOF
10351 if { (ac_try="$ac_cpp conftest.$ac_ext"
10352 case "(($ac_try" in
10353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10354 *) ac_try_echo=$ac_try;;
10355 esac
10356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10357 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10358 ac_status=$?
10359 grep -v '^ *+' conftest.er1 >conftest.err
10360 rm -f conftest.er1
10361 cat conftest.err >&5
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); } >/dev/null && {
10364 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10365 test ! -s conftest.err
10366 }; then
10367 ac_header_preproc=yes
10368 else
10369 echo "$as_me: failed program was:" >&5
10370 sed 's/^/| /' conftest.$ac_ext >&5
10372 ac_header_preproc=no
10375 rm -f conftest.err conftest.$ac_ext
10376 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10377 echo "${ECHO_T}$ac_header_preproc" >&6; }
10379 # So? What about this header?
10380 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10381 yes:no: )
10382 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10383 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10385 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10386 ac_header_preproc=yes
10388 no:yes:* )
10389 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10390 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10391 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10392 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10393 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10394 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10395 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10396 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10398 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10399 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10400 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10401 ( cat <<\_ASBOX
10402 ## ---------------------------------------- ##
10403 ## Report this to pgsql-bugs@postgresql.org ##
10404 ## ---------------------------------------- ##
10405 _ASBOX
10406 ) | sed "s/^/$as_me: WARNING: /" >&2
10408 esac
10409 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10412 echo $ECHO_N "(cached) $ECHO_C" >&6
10413 else
10414 eval "$as_ac_Header=\$ac_header_preproc"
10416 ac_res=`eval echo '${'$as_ac_Header'}'`
10417 { echo "$as_me:$LINENO: result: $ac_res" >&5
10418 echo "${ECHO_T}$ac_res" >&6; }
10421 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10422 cat >>confdefs.h <<_ACEOF
10423 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10424 _ACEOF
10426 else
10428 for ac_header in readline.h
10430 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10432 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10435 echo $ECHO_N "(cached) $ECHO_C" >&6
10437 ac_res=`eval echo '${'$as_ac_Header'}'`
10438 { echo "$as_me:$LINENO: result: $ac_res" >&5
10439 echo "${ECHO_T}$ac_res" >&6; }
10440 else
10441 # Is the header compilable?
10442 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10443 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10444 cat >conftest.$ac_ext <<_ACEOF
10445 /* confdefs.h. */
10446 _ACEOF
10447 cat confdefs.h >>conftest.$ac_ext
10448 cat >>conftest.$ac_ext <<_ACEOF
10449 /* end confdefs.h. */
10450 $ac_includes_default
10451 #include <$ac_header>
10452 _ACEOF
10453 rm -f conftest.$ac_objext
10454 if { (ac_try="$ac_compile"
10455 case "(($ac_try" in
10456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10457 *) ac_try_echo=$ac_try;;
10458 esac
10459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10460 (eval "$ac_compile") 2>conftest.er1
10461 ac_status=$?
10462 grep -v '^ *+' conftest.er1 >conftest.err
10463 rm -f conftest.er1
10464 cat conftest.err >&5
10465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466 (exit $ac_status); } && {
10467 test -z "$ac_c_werror_flag" ||
10468 test ! -s conftest.err
10469 } && test -s conftest.$ac_objext; then
10470 ac_header_compiler=yes
10471 else
10472 echo "$as_me: failed program was:" >&5
10473 sed 's/^/| /' conftest.$ac_ext >&5
10475 ac_header_compiler=no
10478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10479 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10480 echo "${ECHO_T}$ac_header_compiler" >&6; }
10482 # Is the header present?
10483 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10484 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10485 cat >conftest.$ac_ext <<_ACEOF
10486 /* confdefs.h. */
10487 _ACEOF
10488 cat confdefs.h >>conftest.$ac_ext
10489 cat >>conftest.$ac_ext <<_ACEOF
10490 /* end confdefs.h. */
10491 #include <$ac_header>
10492 _ACEOF
10493 if { (ac_try="$ac_cpp conftest.$ac_ext"
10494 case "(($ac_try" in
10495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10496 *) ac_try_echo=$ac_try;;
10497 esac
10498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10499 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10500 ac_status=$?
10501 grep -v '^ *+' conftest.er1 >conftest.err
10502 rm -f conftest.er1
10503 cat conftest.err >&5
10504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505 (exit $ac_status); } >/dev/null && {
10506 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10507 test ! -s conftest.err
10508 }; then
10509 ac_header_preproc=yes
10510 else
10511 echo "$as_me: failed program was:" >&5
10512 sed 's/^/| /' conftest.$ac_ext >&5
10514 ac_header_preproc=no
10517 rm -f conftest.err conftest.$ac_ext
10518 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10519 echo "${ECHO_T}$ac_header_preproc" >&6; }
10521 # So? What about this header?
10522 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10523 yes:no: )
10524 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10525 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10527 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10528 ac_header_preproc=yes
10530 no:yes:* )
10531 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10532 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10533 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10534 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10535 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10536 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10537 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10538 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10540 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10541 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10542 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10543 ( cat <<\_ASBOX
10544 ## ---------------------------------------- ##
10545 ## Report this to pgsql-bugs@postgresql.org ##
10546 ## ---------------------------------------- ##
10547 _ASBOX
10548 ) | sed "s/^/$as_me: WARNING: /" >&2
10550 esac
10551 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10554 echo $ECHO_N "(cached) $ECHO_C" >&6
10555 else
10556 eval "$as_ac_Header=\$ac_header_preproc"
10558 ac_res=`eval echo '${'$as_ac_Header'}'`
10559 { echo "$as_me:$LINENO: result: $ac_res" >&5
10560 echo "${ECHO_T}$ac_res" >&6; }
10563 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10564 cat >>confdefs.h <<_ACEOF
10565 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10566 _ACEOF
10568 else
10570 for ac_header in readline/readline.h
10572 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10574 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10577 echo $ECHO_N "(cached) $ECHO_C" >&6
10579 ac_res=`eval echo '${'$as_ac_Header'}'`
10580 { echo "$as_me:$LINENO: result: $ac_res" >&5
10581 echo "${ECHO_T}$ac_res" >&6; }
10582 else
10583 # Is the header compilable?
10584 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10585 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10586 cat >conftest.$ac_ext <<_ACEOF
10587 /* confdefs.h. */
10588 _ACEOF
10589 cat confdefs.h >>conftest.$ac_ext
10590 cat >>conftest.$ac_ext <<_ACEOF
10591 /* end confdefs.h. */
10592 $ac_includes_default
10593 #include <$ac_header>
10594 _ACEOF
10595 rm -f conftest.$ac_objext
10596 if { (ac_try="$ac_compile"
10597 case "(($ac_try" in
10598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10599 *) ac_try_echo=$ac_try;;
10600 esac
10601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10602 (eval "$ac_compile") 2>conftest.er1
10603 ac_status=$?
10604 grep -v '^ *+' conftest.er1 >conftest.err
10605 rm -f conftest.er1
10606 cat conftest.err >&5
10607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); } && {
10609 test -z "$ac_c_werror_flag" ||
10610 test ! -s conftest.err
10611 } && test -s conftest.$ac_objext; then
10612 ac_header_compiler=yes
10613 else
10614 echo "$as_me: failed program was:" >&5
10615 sed 's/^/| /' conftest.$ac_ext >&5
10617 ac_header_compiler=no
10620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10621 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10622 echo "${ECHO_T}$ac_header_compiler" >&6; }
10624 # Is the header present?
10625 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10626 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10627 cat >conftest.$ac_ext <<_ACEOF
10628 /* confdefs.h. */
10629 _ACEOF
10630 cat confdefs.h >>conftest.$ac_ext
10631 cat >>conftest.$ac_ext <<_ACEOF
10632 /* end confdefs.h. */
10633 #include <$ac_header>
10634 _ACEOF
10635 if { (ac_try="$ac_cpp conftest.$ac_ext"
10636 case "(($ac_try" in
10637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10638 *) ac_try_echo=$ac_try;;
10639 esac
10640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10642 ac_status=$?
10643 grep -v '^ *+' conftest.er1 >conftest.err
10644 rm -f conftest.er1
10645 cat conftest.err >&5
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); } >/dev/null && {
10648 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10649 test ! -s conftest.err
10650 }; then
10651 ac_header_preproc=yes
10652 else
10653 echo "$as_me: failed program was:" >&5
10654 sed 's/^/| /' conftest.$ac_ext >&5
10656 ac_header_preproc=no
10659 rm -f conftest.err conftest.$ac_ext
10660 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10661 echo "${ECHO_T}$ac_header_preproc" >&6; }
10663 # So? What about this header?
10664 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10665 yes:no: )
10666 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10667 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10669 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10670 ac_header_preproc=yes
10672 no:yes:* )
10673 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10674 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10675 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10676 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10677 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10678 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10679 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10680 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10682 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10683 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10684 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10685 ( cat <<\_ASBOX
10686 ## ---------------------------------------- ##
10687 ## Report this to pgsql-bugs@postgresql.org ##
10688 ## ---------------------------------------- ##
10689 _ASBOX
10690 ) | sed "s/^/$as_me: WARNING: /" >&2
10692 esac
10693 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10696 echo $ECHO_N "(cached) $ECHO_C" >&6
10697 else
10698 eval "$as_ac_Header=\$ac_header_preproc"
10700 ac_res=`eval echo '${'$as_ac_Header'}'`
10701 { echo "$as_me:$LINENO: result: $ac_res" >&5
10702 echo "${ECHO_T}$ac_res" >&6; }
10705 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10706 cat >>confdefs.h <<_ACEOF
10707 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10708 _ACEOF
10710 else
10711 { { echo "$as_me:$LINENO: error: readline header not found
10712 If you have libedit already installed, see config.log for details on the
10713 failure. It is possible the compiler isn't looking in the proper directory.
10714 Use --without-readline to disable libedit support." >&5
10715 echo "$as_me: error: readline header not found
10716 If you have libedit already installed, see config.log for details on the
10717 failure. It is possible the compiler isn't looking in the proper directory.
10718 Use --without-readline to disable libedit support." >&2;}
10719 { (exit 1); exit 1; }; }
10722 done
10726 done
10730 done
10732 # Note: in a libedit installation, history.h is sometimes a dummy, and may
10733 # not be there at all. Hence, don't complain if not found. We must check
10734 # though, since in yet other versions it is an independent header.
10736 for ac_header in editline/history.h
10738 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10740 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10743 echo $ECHO_N "(cached) $ECHO_C" >&6
10745 ac_res=`eval echo '${'$as_ac_Header'}'`
10746 { echo "$as_me:$LINENO: result: $ac_res" >&5
10747 echo "${ECHO_T}$ac_res" >&6; }
10748 else
10749 # Is the header compilable?
10750 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10751 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10752 cat >conftest.$ac_ext <<_ACEOF
10753 /* confdefs.h. */
10754 _ACEOF
10755 cat confdefs.h >>conftest.$ac_ext
10756 cat >>conftest.$ac_ext <<_ACEOF
10757 /* end confdefs.h. */
10758 $ac_includes_default
10759 #include <$ac_header>
10760 _ACEOF
10761 rm -f conftest.$ac_objext
10762 if { (ac_try="$ac_compile"
10763 case "(($ac_try" in
10764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10765 *) ac_try_echo=$ac_try;;
10766 esac
10767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10768 (eval "$ac_compile") 2>conftest.er1
10769 ac_status=$?
10770 grep -v '^ *+' conftest.er1 >conftest.err
10771 rm -f conftest.er1
10772 cat conftest.err >&5
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); } && {
10775 test -z "$ac_c_werror_flag" ||
10776 test ! -s conftest.err
10777 } && test -s conftest.$ac_objext; then
10778 ac_header_compiler=yes
10779 else
10780 echo "$as_me: failed program was:" >&5
10781 sed 's/^/| /' conftest.$ac_ext >&5
10783 ac_header_compiler=no
10786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10787 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10788 echo "${ECHO_T}$ac_header_compiler" >&6; }
10790 # Is the header present?
10791 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10792 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10793 cat >conftest.$ac_ext <<_ACEOF
10794 /* confdefs.h. */
10795 _ACEOF
10796 cat confdefs.h >>conftest.$ac_ext
10797 cat >>conftest.$ac_ext <<_ACEOF
10798 /* end confdefs.h. */
10799 #include <$ac_header>
10800 _ACEOF
10801 if { (ac_try="$ac_cpp conftest.$ac_ext"
10802 case "(($ac_try" in
10803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10804 *) ac_try_echo=$ac_try;;
10805 esac
10806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10808 ac_status=$?
10809 grep -v '^ *+' conftest.er1 >conftest.err
10810 rm -f conftest.er1
10811 cat conftest.err >&5
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); } >/dev/null && {
10814 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10815 test ! -s conftest.err
10816 }; then
10817 ac_header_preproc=yes
10818 else
10819 echo "$as_me: failed program was:" >&5
10820 sed 's/^/| /' conftest.$ac_ext >&5
10822 ac_header_preproc=no
10825 rm -f conftest.err conftest.$ac_ext
10826 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10827 echo "${ECHO_T}$ac_header_preproc" >&6; }
10829 # So? What about this header?
10830 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10831 yes:no: )
10832 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10833 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10835 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10836 ac_header_preproc=yes
10838 no:yes:* )
10839 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10840 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10841 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10842 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10843 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10844 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10845 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10846 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10848 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10849 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10850 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10851 ( cat <<\_ASBOX
10852 ## ---------------------------------------- ##
10853 ## Report this to pgsql-bugs@postgresql.org ##
10854 ## ---------------------------------------- ##
10855 _ASBOX
10856 ) | sed "s/^/$as_me: WARNING: /" >&2
10858 esac
10859 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10862 echo $ECHO_N "(cached) $ECHO_C" >&6
10863 else
10864 eval "$as_ac_Header=\$ac_header_preproc"
10866 ac_res=`eval echo '${'$as_ac_Header'}'`
10867 { echo "$as_me:$LINENO: result: $ac_res" >&5
10868 echo "${ECHO_T}$ac_res" >&6; }
10871 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10872 cat >>confdefs.h <<_ACEOF
10873 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10874 _ACEOF
10876 else
10878 for ac_header in history.h
10880 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10882 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10885 echo $ECHO_N "(cached) $ECHO_C" >&6
10887 ac_res=`eval echo '${'$as_ac_Header'}'`
10888 { echo "$as_me:$LINENO: result: $ac_res" >&5
10889 echo "${ECHO_T}$ac_res" >&6; }
10890 else
10891 # Is the header compilable?
10892 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10893 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10894 cat >conftest.$ac_ext <<_ACEOF
10895 /* confdefs.h. */
10896 _ACEOF
10897 cat confdefs.h >>conftest.$ac_ext
10898 cat >>conftest.$ac_ext <<_ACEOF
10899 /* end confdefs.h. */
10900 $ac_includes_default
10901 #include <$ac_header>
10902 _ACEOF
10903 rm -f conftest.$ac_objext
10904 if { (ac_try="$ac_compile"
10905 case "(($ac_try" in
10906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10907 *) ac_try_echo=$ac_try;;
10908 esac
10909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10910 (eval "$ac_compile") 2>conftest.er1
10911 ac_status=$?
10912 grep -v '^ *+' conftest.er1 >conftest.err
10913 rm -f conftest.er1
10914 cat conftest.err >&5
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); } && {
10917 test -z "$ac_c_werror_flag" ||
10918 test ! -s conftest.err
10919 } && test -s conftest.$ac_objext; then
10920 ac_header_compiler=yes
10921 else
10922 echo "$as_me: failed program was:" >&5
10923 sed 's/^/| /' conftest.$ac_ext >&5
10925 ac_header_compiler=no
10928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10929 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10930 echo "${ECHO_T}$ac_header_compiler" >&6; }
10932 # Is the header present?
10933 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10934 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10935 cat >conftest.$ac_ext <<_ACEOF
10936 /* confdefs.h. */
10937 _ACEOF
10938 cat confdefs.h >>conftest.$ac_ext
10939 cat >>conftest.$ac_ext <<_ACEOF
10940 /* end confdefs.h. */
10941 #include <$ac_header>
10942 _ACEOF
10943 if { (ac_try="$ac_cpp conftest.$ac_ext"
10944 case "(($ac_try" in
10945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10946 *) ac_try_echo=$ac_try;;
10947 esac
10948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10949 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10950 ac_status=$?
10951 grep -v '^ *+' conftest.er1 >conftest.err
10952 rm -f conftest.er1
10953 cat conftest.err >&5
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); } >/dev/null && {
10956 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10957 test ! -s conftest.err
10958 }; then
10959 ac_header_preproc=yes
10960 else
10961 echo "$as_me: failed program was:" >&5
10962 sed 's/^/| /' conftest.$ac_ext >&5
10964 ac_header_preproc=no
10967 rm -f conftest.err conftest.$ac_ext
10968 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10969 echo "${ECHO_T}$ac_header_preproc" >&6; }
10971 # So? What about this header?
10972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10973 yes:no: )
10974 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10975 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10977 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10978 ac_header_preproc=yes
10980 no:yes:* )
10981 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10982 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10983 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10984 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10985 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10986 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10987 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10988 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10990 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10991 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10992 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10993 ( cat <<\_ASBOX
10994 ## ---------------------------------------- ##
10995 ## Report this to pgsql-bugs@postgresql.org ##
10996 ## ---------------------------------------- ##
10997 _ASBOX
10998 ) | sed "s/^/$as_me: WARNING: /" >&2
11000 esac
11001 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11004 echo $ECHO_N "(cached) $ECHO_C" >&6
11005 else
11006 eval "$as_ac_Header=\$ac_header_preproc"
11008 ac_res=`eval echo '${'$as_ac_Header'}'`
11009 { echo "$as_me:$LINENO: result: $ac_res" >&5
11010 echo "${ECHO_T}$ac_res" >&6; }
11013 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11014 cat >>confdefs.h <<_ACEOF
11015 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11016 _ACEOF
11018 else
11020 for ac_header in readline/history.h
11022 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11024 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11027 echo $ECHO_N "(cached) $ECHO_C" >&6
11029 ac_res=`eval echo '${'$as_ac_Header'}'`
11030 { echo "$as_me:$LINENO: result: $ac_res" >&5
11031 echo "${ECHO_T}$ac_res" >&6; }
11032 else
11033 # Is the header compilable?
11034 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11035 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11036 cat >conftest.$ac_ext <<_ACEOF
11037 /* confdefs.h. */
11038 _ACEOF
11039 cat confdefs.h >>conftest.$ac_ext
11040 cat >>conftest.$ac_ext <<_ACEOF
11041 /* end confdefs.h. */
11042 $ac_includes_default
11043 #include <$ac_header>
11044 _ACEOF
11045 rm -f conftest.$ac_objext
11046 if { (ac_try="$ac_compile"
11047 case "(($ac_try" in
11048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11049 *) ac_try_echo=$ac_try;;
11050 esac
11051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11052 (eval "$ac_compile") 2>conftest.er1
11053 ac_status=$?
11054 grep -v '^ *+' conftest.er1 >conftest.err
11055 rm -f conftest.er1
11056 cat conftest.err >&5
11057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 (exit $ac_status); } && {
11059 test -z "$ac_c_werror_flag" ||
11060 test ! -s conftest.err
11061 } && test -s conftest.$ac_objext; then
11062 ac_header_compiler=yes
11063 else
11064 echo "$as_me: failed program was:" >&5
11065 sed 's/^/| /' conftest.$ac_ext >&5
11067 ac_header_compiler=no
11070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11071 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11072 echo "${ECHO_T}$ac_header_compiler" >&6; }
11074 # Is the header present?
11075 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11076 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11077 cat >conftest.$ac_ext <<_ACEOF
11078 /* confdefs.h. */
11079 _ACEOF
11080 cat confdefs.h >>conftest.$ac_ext
11081 cat >>conftest.$ac_ext <<_ACEOF
11082 /* end confdefs.h. */
11083 #include <$ac_header>
11084 _ACEOF
11085 if { (ac_try="$ac_cpp conftest.$ac_ext"
11086 case "(($ac_try" in
11087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11088 *) ac_try_echo=$ac_try;;
11089 esac
11090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11091 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11092 ac_status=$?
11093 grep -v '^ *+' conftest.er1 >conftest.err
11094 rm -f conftest.er1
11095 cat conftest.err >&5
11096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097 (exit $ac_status); } >/dev/null && {
11098 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11099 test ! -s conftest.err
11100 }; then
11101 ac_header_preproc=yes
11102 else
11103 echo "$as_me: failed program was:" >&5
11104 sed 's/^/| /' conftest.$ac_ext >&5
11106 ac_header_preproc=no
11109 rm -f conftest.err conftest.$ac_ext
11110 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11111 echo "${ECHO_T}$ac_header_preproc" >&6; }
11113 # So? What about this header?
11114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11115 yes:no: )
11116 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11117 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11119 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11120 ac_header_preproc=yes
11122 no:yes:* )
11123 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11124 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11125 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11126 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11127 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11128 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11129 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11130 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11132 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11133 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11134 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11135 ( cat <<\_ASBOX
11136 ## ---------------------------------------- ##
11137 ## Report this to pgsql-bugs@postgresql.org ##
11138 ## ---------------------------------------- ##
11139 _ASBOX
11140 ) | sed "s/^/$as_me: WARNING: /" >&2
11142 esac
11143 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11146 echo $ECHO_N "(cached) $ECHO_C" >&6
11147 else
11148 eval "$as_ac_Header=\$ac_header_preproc"
11150 ac_res=`eval echo '${'$as_ac_Header'}'`
11151 { echo "$as_me:$LINENO: result: $ac_res" >&5
11152 echo "${ECHO_T}$ac_res" >&6; }
11155 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11156 cat >>confdefs.h <<_ACEOF
11157 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11158 _ACEOF
11162 done
11166 done
11170 done
11174 if test "$with_zlib" = yes; then
11175 if test "${ac_cv_header_zlib_h+set}" = set; then
11176 { echo "$as_me:$LINENO: checking for zlib.h" >&5
11177 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
11178 if test "${ac_cv_header_zlib_h+set}" = set; then
11179 echo $ECHO_N "(cached) $ECHO_C" >&6
11181 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11182 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
11183 else
11184 # Is the header compilable?
11185 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
11186 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
11187 cat >conftest.$ac_ext <<_ACEOF
11188 /* confdefs.h. */
11189 _ACEOF
11190 cat confdefs.h >>conftest.$ac_ext
11191 cat >>conftest.$ac_ext <<_ACEOF
11192 /* end confdefs.h. */
11193 $ac_includes_default
11194 #include <zlib.h>
11195 _ACEOF
11196 rm -f conftest.$ac_objext
11197 if { (ac_try="$ac_compile"
11198 case "(($ac_try" in
11199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11200 *) ac_try_echo=$ac_try;;
11201 esac
11202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11203 (eval "$ac_compile") 2>conftest.er1
11204 ac_status=$?
11205 grep -v '^ *+' conftest.er1 >conftest.err
11206 rm -f conftest.er1
11207 cat conftest.err >&5
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); } && {
11210 test -z "$ac_c_werror_flag" ||
11211 test ! -s conftest.err
11212 } && test -s conftest.$ac_objext; then
11213 ac_header_compiler=yes
11214 else
11215 echo "$as_me: failed program was:" >&5
11216 sed 's/^/| /' conftest.$ac_ext >&5
11218 ac_header_compiler=no
11221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11222 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11223 echo "${ECHO_T}$ac_header_compiler" >&6; }
11225 # Is the header present?
11226 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
11227 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
11228 cat >conftest.$ac_ext <<_ACEOF
11229 /* confdefs.h. */
11230 _ACEOF
11231 cat confdefs.h >>conftest.$ac_ext
11232 cat >>conftest.$ac_ext <<_ACEOF
11233 /* end confdefs.h. */
11234 #include <zlib.h>
11235 _ACEOF
11236 if { (ac_try="$ac_cpp conftest.$ac_ext"
11237 case "(($ac_try" in
11238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11239 *) ac_try_echo=$ac_try;;
11240 esac
11241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11242 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11243 ac_status=$?
11244 grep -v '^ *+' conftest.er1 >conftest.err
11245 rm -f conftest.er1
11246 cat conftest.err >&5
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); } >/dev/null && {
11249 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11250 test ! -s conftest.err
11251 }; then
11252 ac_header_preproc=yes
11253 else
11254 echo "$as_me: failed program was:" >&5
11255 sed 's/^/| /' conftest.$ac_ext >&5
11257 ac_header_preproc=no
11260 rm -f conftest.err conftest.$ac_ext
11261 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11262 echo "${ECHO_T}$ac_header_preproc" >&6; }
11264 # So? What about this header?
11265 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11266 yes:no: )
11267 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11268 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11269 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
11270 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
11271 ac_header_preproc=yes
11273 no:yes:* )
11274 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
11275 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
11276 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
11277 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
11278 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
11279 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
11280 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
11281 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
11282 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
11283 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
11284 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
11285 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
11286 ( cat <<\_ASBOX
11287 ## ---------------------------------------- ##
11288 ## Report this to pgsql-bugs@postgresql.org ##
11289 ## ---------------------------------------- ##
11290 _ASBOX
11291 ) | sed "s/^/$as_me: WARNING: /" >&2
11293 esac
11294 { echo "$as_me:$LINENO: checking for zlib.h" >&5
11295 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
11296 if test "${ac_cv_header_zlib_h+set}" = set; then
11297 echo $ECHO_N "(cached) $ECHO_C" >&6
11298 else
11299 ac_cv_header_zlib_h=$ac_header_preproc
11301 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11302 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
11305 if test $ac_cv_header_zlib_h = yes; then
11307 else
11308 { { echo "$as_me:$LINENO: error: zlib header not found
11309 If you have zlib already installed, see config.log for details on the
11310 failure. It is possible the compiler isn't looking in the proper directory.
11311 Use --without-zlib to disable zlib support." >&5
11312 echo "$as_me: error: zlib header not found
11313 If you have zlib already installed, see config.log for details on the
11314 failure. It is possible the compiler isn't looking in the proper directory.
11315 Use --without-zlib to disable zlib support." >&2;}
11316 { (exit 1); exit 1; }; }
11322 if test "$with_gssapi" = yes ; then
11324 for ac_header in gssapi/gssapi.h
11326 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11328 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11331 echo $ECHO_N "(cached) $ECHO_C" >&6
11333 ac_res=`eval echo '${'$as_ac_Header'}'`
11334 { echo "$as_me:$LINENO: result: $ac_res" >&5
11335 echo "${ECHO_T}$ac_res" >&6; }
11336 else
11337 # Is the header compilable?
11338 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11339 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11340 cat >conftest.$ac_ext <<_ACEOF
11341 /* confdefs.h. */
11342 _ACEOF
11343 cat confdefs.h >>conftest.$ac_ext
11344 cat >>conftest.$ac_ext <<_ACEOF
11345 /* end confdefs.h. */
11346 $ac_includes_default
11347 #include <$ac_header>
11348 _ACEOF
11349 rm -f conftest.$ac_objext
11350 if { (ac_try="$ac_compile"
11351 case "(($ac_try" in
11352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11353 *) ac_try_echo=$ac_try;;
11354 esac
11355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11356 (eval "$ac_compile") 2>conftest.er1
11357 ac_status=$?
11358 grep -v '^ *+' conftest.er1 >conftest.err
11359 rm -f conftest.er1
11360 cat conftest.err >&5
11361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362 (exit $ac_status); } && {
11363 test -z "$ac_c_werror_flag" ||
11364 test ! -s conftest.err
11365 } && test -s conftest.$ac_objext; then
11366 ac_header_compiler=yes
11367 else
11368 echo "$as_me: failed program was:" >&5
11369 sed 's/^/| /' conftest.$ac_ext >&5
11371 ac_header_compiler=no
11374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11375 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11376 echo "${ECHO_T}$ac_header_compiler" >&6; }
11378 # Is the header present?
11379 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11380 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11381 cat >conftest.$ac_ext <<_ACEOF
11382 /* confdefs.h. */
11383 _ACEOF
11384 cat confdefs.h >>conftest.$ac_ext
11385 cat >>conftest.$ac_ext <<_ACEOF
11386 /* end confdefs.h. */
11387 #include <$ac_header>
11388 _ACEOF
11389 if { (ac_try="$ac_cpp conftest.$ac_ext"
11390 case "(($ac_try" in
11391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11392 *) ac_try_echo=$ac_try;;
11393 esac
11394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11395 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11396 ac_status=$?
11397 grep -v '^ *+' conftest.er1 >conftest.err
11398 rm -f conftest.er1
11399 cat conftest.err >&5
11400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401 (exit $ac_status); } >/dev/null && {
11402 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11403 test ! -s conftest.err
11404 }; then
11405 ac_header_preproc=yes
11406 else
11407 echo "$as_me: failed program was:" >&5
11408 sed 's/^/| /' conftest.$ac_ext >&5
11410 ac_header_preproc=no
11413 rm -f conftest.err conftest.$ac_ext
11414 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11415 echo "${ECHO_T}$ac_header_preproc" >&6; }
11417 # So? What about this header?
11418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11419 yes:no: )
11420 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11421 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11423 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11424 ac_header_preproc=yes
11426 no:yes:* )
11427 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11428 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11429 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11430 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11431 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11432 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11433 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11434 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11436 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11437 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11438 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11439 ( cat <<\_ASBOX
11440 ## ---------------------------------------- ##
11441 ## Report this to pgsql-bugs@postgresql.org ##
11442 ## ---------------------------------------- ##
11443 _ASBOX
11444 ) | sed "s/^/$as_me: WARNING: /" >&2
11446 esac
11447 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11450 echo $ECHO_N "(cached) $ECHO_C" >&6
11451 else
11452 eval "$as_ac_Header=\$ac_header_preproc"
11454 ac_res=`eval echo '${'$as_ac_Header'}'`
11455 { echo "$as_me:$LINENO: result: $ac_res" >&5
11456 echo "${ECHO_T}$ac_res" >&6; }
11459 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11460 cat >>confdefs.h <<_ACEOF
11461 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11462 _ACEOF
11464 else
11466 for ac_header in gssapi.h
11468 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11470 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11473 echo $ECHO_N "(cached) $ECHO_C" >&6
11475 ac_res=`eval echo '${'$as_ac_Header'}'`
11476 { echo "$as_me:$LINENO: result: $ac_res" >&5
11477 echo "${ECHO_T}$ac_res" >&6; }
11478 else
11479 # Is the header compilable?
11480 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11481 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11482 cat >conftest.$ac_ext <<_ACEOF
11483 /* confdefs.h. */
11484 _ACEOF
11485 cat confdefs.h >>conftest.$ac_ext
11486 cat >>conftest.$ac_ext <<_ACEOF
11487 /* end confdefs.h. */
11488 $ac_includes_default
11489 #include <$ac_header>
11490 _ACEOF
11491 rm -f conftest.$ac_objext
11492 if { (ac_try="$ac_compile"
11493 case "(($ac_try" in
11494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11495 *) ac_try_echo=$ac_try;;
11496 esac
11497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11498 (eval "$ac_compile") 2>conftest.er1
11499 ac_status=$?
11500 grep -v '^ *+' conftest.er1 >conftest.err
11501 rm -f conftest.er1
11502 cat conftest.err >&5
11503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); } && {
11505 test -z "$ac_c_werror_flag" ||
11506 test ! -s conftest.err
11507 } && test -s conftest.$ac_objext; then
11508 ac_header_compiler=yes
11509 else
11510 echo "$as_me: failed program was:" >&5
11511 sed 's/^/| /' conftest.$ac_ext >&5
11513 ac_header_compiler=no
11516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11517 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11518 echo "${ECHO_T}$ac_header_compiler" >&6; }
11520 # Is the header present?
11521 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11522 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11523 cat >conftest.$ac_ext <<_ACEOF
11524 /* confdefs.h. */
11525 _ACEOF
11526 cat confdefs.h >>conftest.$ac_ext
11527 cat >>conftest.$ac_ext <<_ACEOF
11528 /* end confdefs.h. */
11529 #include <$ac_header>
11530 _ACEOF
11531 if { (ac_try="$ac_cpp conftest.$ac_ext"
11532 case "(($ac_try" in
11533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11534 *) ac_try_echo=$ac_try;;
11535 esac
11536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11538 ac_status=$?
11539 grep -v '^ *+' conftest.er1 >conftest.err
11540 rm -f conftest.er1
11541 cat conftest.err >&5
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); } >/dev/null && {
11544 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11545 test ! -s conftest.err
11546 }; then
11547 ac_header_preproc=yes
11548 else
11549 echo "$as_me: failed program was:" >&5
11550 sed 's/^/| /' conftest.$ac_ext >&5
11552 ac_header_preproc=no
11555 rm -f conftest.err conftest.$ac_ext
11556 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11557 echo "${ECHO_T}$ac_header_preproc" >&6; }
11559 # So? What about this header?
11560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11561 yes:no: )
11562 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11563 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11565 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11566 ac_header_preproc=yes
11568 no:yes:* )
11569 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11570 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11571 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11572 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11573 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11574 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11575 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11576 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11578 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11579 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11580 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11581 ( cat <<\_ASBOX
11582 ## ---------------------------------------- ##
11583 ## Report this to pgsql-bugs@postgresql.org ##
11584 ## ---------------------------------------- ##
11585 _ASBOX
11586 ) | sed "s/^/$as_me: WARNING: /" >&2
11588 esac
11589 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11592 echo $ECHO_N "(cached) $ECHO_C" >&6
11593 else
11594 eval "$as_ac_Header=\$ac_header_preproc"
11596 ac_res=`eval echo '${'$as_ac_Header'}'`
11597 { echo "$as_me:$LINENO: result: $ac_res" >&5
11598 echo "${ECHO_T}$ac_res" >&6; }
11601 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11602 cat >>confdefs.h <<_ACEOF
11603 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11604 _ACEOF
11606 else
11607 { { echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
11608 echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
11609 { (exit 1); exit 1; }; }
11612 done
11616 done
11620 if test "$with_krb5" = yes ; then
11621 if test "${ac_cv_header_krb5_h+set}" = set; then
11622 { echo "$as_me:$LINENO: checking for krb5.h" >&5
11623 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
11624 if test "${ac_cv_header_krb5_h+set}" = set; then
11625 echo $ECHO_N "(cached) $ECHO_C" >&6
11627 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
11628 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
11629 else
11630 # Is the header compilable?
11631 { echo "$as_me:$LINENO: checking krb5.h usability" >&5
11632 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6; }
11633 cat >conftest.$ac_ext <<_ACEOF
11634 /* confdefs.h. */
11635 _ACEOF
11636 cat confdefs.h >>conftest.$ac_ext
11637 cat >>conftest.$ac_ext <<_ACEOF
11638 /* end confdefs.h. */
11639 $ac_includes_default
11640 #include <krb5.h>
11641 _ACEOF
11642 rm -f conftest.$ac_objext
11643 if { (ac_try="$ac_compile"
11644 case "(($ac_try" in
11645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11646 *) ac_try_echo=$ac_try;;
11647 esac
11648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11649 (eval "$ac_compile") 2>conftest.er1
11650 ac_status=$?
11651 grep -v '^ *+' conftest.er1 >conftest.err
11652 rm -f conftest.er1
11653 cat conftest.err >&5
11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); } && {
11656 test -z "$ac_c_werror_flag" ||
11657 test ! -s conftest.err
11658 } && test -s conftest.$ac_objext; then
11659 ac_header_compiler=yes
11660 else
11661 echo "$as_me: failed program was:" >&5
11662 sed 's/^/| /' conftest.$ac_ext >&5
11664 ac_header_compiler=no
11667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11668 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11669 echo "${ECHO_T}$ac_header_compiler" >&6; }
11671 # Is the header present?
11672 { echo "$as_me:$LINENO: checking krb5.h presence" >&5
11673 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6; }
11674 cat >conftest.$ac_ext <<_ACEOF
11675 /* confdefs.h. */
11676 _ACEOF
11677 cat confdefs.h >>conftest.$ac_ext
11678 cat >>conftest.$ac_ext <<_ACEOF
11679 /* end confdefs.h. */
11680 #include <krb5.h>
11681 _ACEOF
11682 if { (ac_try="$ac_cpp conftest.$ac_ext"
11683 case "(($ac_try" in
11684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11685 *) ac_try_echo=$ac_try;;
11686 esac
11687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11689 ac_status=$?
11690 grep -v '^ *+' conftest.er1 >conftest.err
11691 rm -f conftest.er1
11692 cat conftest.err >&5
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); } >/dev/null && {
11695 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11696 test ! -s conftest.err
11697 }; then
11698 ac_header_preproc=yes
11699 else
11700 echo "$as_me: failed program was:" >&5
11701 sed 's/^/| /' conftest.$ac_ext >&5
11703 ac_header_preproc=no
11706 rm -f conftest.err conftest.$ac_ext
11707 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11708 echo "${ECHO_T}$ac_header_preproc" >&6; }
11710 # So? What about this header?
11711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11712 yes:no: )
11713 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
11714 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11715 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
11716 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
11717 ac_header_preproc=yes
11719 no:yes:* )
11720 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
11721 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
11722 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
11723 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
11724 { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
11725 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
11726 { echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
11727 echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
11728 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
11729 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
11730 { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
11731 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
11732 ( cat <<\_ASBOX
11733 ## ---------------------------------------- ##
11734 ## Report this to pgsql-bugs@postgresql.org ##
11735 ## ---------------------------------------- ##
11736 _ASBOX
11737 ) | sed "s/^/$as_me: WARNING: /" >&2
11739 esac
11740 { echo "$as_me:$LINENO: checking for krb5.h" >&5
11741 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
11742 if test "${ac_cv_header_krb5_h+set}" = set; then
11743 echo $ECHO_N "(cached) $ECHO_C" >&6
11744 else
11745 ac_cv_header_krb5_h=$ac_header_preproc
11747 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
11748 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
11751 if test $ac_cv_header_krb5_h = yes; then
11753 else
11754 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
11755 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
11756 { (exit 1); exit 1; }; }
11762 if test "$with_openssl" = yes ; then
11763 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11764 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
11765 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
11766 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11767 echo $ECHO_N "(cached) $ECHO_C" >&6
11769 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
11770 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
11771 else
11772 # Is the header compilable?
11773 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
11774 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
11775 cat >conftest.$ac_ext <<_ACEOF
11776 /* confdefs.h. */
11777 _ACEOF
11778 cat confdefs.h >>conftest.$ac_ext
11779 cat >>conftest.$ac_ext <<_ACEOF
11780 /* end confdefs.h. */
11781 $ac_includes_default
11782 #include <openssl/ssl.h>
11783 _ACEOF
11784 rm -f conftest.$ac_objext
11785 if { (ac_try="$ac_compile"
11786 case "(($ac_try" in
11787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11788 *) ac_try_echo=$ac_try;;
11789 esac
11790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11791 (eval "$ac_compile") 2>conftest.er1
11792 ac_status=$?
11793 grep -v '^ *+' conftest.er1 >conftest.err
11794 rm -f conftest.er1
11795 cat conftest.err >&5
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); } && {
11798 test -z "$ac_c_werror_flag" ||
11799 test ! -s conftest.err
11800 } && test -s conftest.$ac_objext; then
11801 ac_header_compiler=yes
11802 else
11803 echo "$as_me: failed program was:" >&5
11804 sed 's/^/| /' conftest.$ac_ext >&5
11806 ac_header_compiler=no
11809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11810 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11811 echo "${ECHO_T}$ac_header_compiler" >&6; }
11813 # Is the header present?
11814 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
11815 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
11816 cat >conftest.$ac_ext <<_ACEOF
11817 /* confdefs.h. */
11818 _ACEOF
11819 cat confdefs.h >>conftest.$ac_ext
11820 cat >>conftest.$ac_ext <<_ACEOF
11821 /* end confdefs.h. */
11822 #include <openssl/ssl.h>
11823 _ACEOF
11824 if { (ac_try="$ac_cpp conftest.$ac_ext"
11825 case "(($ac_try" in
11826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11827 *) ac_try_echo=$ac_try;;
11828 esac
11829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11831 ac_status=$?
11832 grep -v '^ *+' conftest.er1 >conftest.err
11833 rm -f conftest.er1
11834 cat conftest.err >&5
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); } >/dev/null && {
11837 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11838 test ! -s conftest.err
11839 }; then
11840 ac_header_preproc=yes
11841 else
11842 echo "$as_me: failed program was:" >&5
11843 sed 's/^/| /' conftest.$ac_ext >&5
11845 ac_header_preproc=no
11848 rm -f conftest.err conftest.$ac_ext
11849 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11850 echo "${ECHO_T}$ac_header_preproc" >&6; }
11852 # So? What about this header?
11853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11854 yes:no: )
11855 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
11856 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11857 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
11858 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
11859 ac_header_preproc=yes
11861 no:yes:* )
11862 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
11863 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
11864 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
11865 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
11866 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
11867 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
11868 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
11869 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
11870 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
11871 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
11872 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
11873 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
11874 ( cat <<\_ASBOX
11875 ## ---------------------------------------- ##
11876 ## Report this to pgsql-bugs@postgresql.org ##
11877 ## ---------------------------------------- ##
11878 _ASBOX
11879 ) | sed "s/^/$as_me: WARNING: /" >&2
11881 esac
11882 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
11883 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
11884 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11885 echo $ECHO_N "(cached) $ECHO_C" >&6
11886 else
11887 ac_cv_header_openssl_ssl_h=$ac_header_preproc
11889 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
11890 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
11893 if test $ac_cv_header_openssl_ssl_h = yes; then
11895 else
11896 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
11897 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
11898 { (exit 1); exit 1; }; }
11902 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11903 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
11904 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
11905 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11906 echo $ECHO_N "(cached) $ECHO_C" >&6
11908 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
11909 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
11910 else
11911 # Is the header compilable?
11912 { echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
11913 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6; }
11914 cat >conftest.$ac_ext <<_ACEOF
11915 /* confdefs.h. */
11916 _ACEOF
11917 cat confdefs.h >>conftest.$ac_ext
11918 cat >>conftest.$ac_ext <<_ACEOF
11919 /* end confdefs.h. */
11920 $ac_includes_default
11921 #include <openssl/err.h>
11922 _ACEOF
11923 rm -f conftest.$ac_objext
11924 if { (ac_try="$ac_compile"
11925 case "(($ac_try" in
11926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11927 *) ac_try_echo=$ac_try;;
11928 esac
11929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11930 (eval "$ac_compile") 2>conftest.er1
11931 ac_status=$?
11932 grep -v '^ *+' conftest.er1 >conftest.err
11933 rm -f conftest.er1
11934 cat conftest.err >&5
11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); } && {
11937 test -z "$ac_c_werror_flag" ||
11938 test ! -s conftest.err
11939 } && test -s conftest.$ac_objext; then
11940 ac_header_compiler=yes
11941 else
11942 echo "$as_me: failed program was:" >&5
11943 sed 's/^/| /' conftest.$ac_ext >&5
11945 ac_header_compiler=no
11948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11949 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11950 echo "${ECHO_T}$ac_header_compiler" >&6; }
11952 # Is the header present?
11953 { echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
11954 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6; }
11955 cat >conftest.$ac_ext <<_ACEOF
11956 /* confdefs.h. */
11957 _ACEOF
11958 cat confdefs.h >>conftest.$ac_ext
11959 cat >>conftest.$ac_ext <<_ACEOF
11960 /* end confdefs.h. */
11961 #include <openssl/err.h>
11962 _ACEOF
11963 if { (ac_try="$ac_cpp conftest.$ac_ext"
11964 case "(($ac_try" in
11965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11966 *) ac_try_echo=$ac_try;;
11967 esac
11968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11970 ac_status=$?
11971 grep -v '^ *+' conftest.er1 >conftest.err
11972 rm -f conftest.er1
11973 cat conftest.err >&5
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); } >/dev/null && {
11976 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11977 test ! -s conftest.err
11978 }; then
11979 ac_header_preproc=yes
11980 else
11981 echo "$as_me: failed program was:" >&5
11982 sed 's/^/| /' conftest.$ac_ext >&5
11984 ac_header_preproc=no
11987 rm -f conftest.err conftest.$ac_ext
11988 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11989 echo "${ECHO_T}$ac_header_preproc" >&6; }
11991 # So? What about this header?
11992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11993 yes:no: )
11994 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
11995 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11996 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
11997 echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
11998 ac_header_preproc=yes
12000 no:yes:* )
12001 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
12002 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
12003 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
12004 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
12005 { echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
12006 echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
12007 { echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
12008 echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
12009 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
12010 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
12011 { echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
12012 echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
12013 ( cat <<\_ASBOX
12014 ## ---------------------------------------- ##
12015 ## Report this to pgsql-bugs@postgresql.org ##
12016 ## ---------------------------------------- ##
12017 _ASBOX
12018 ) | sed "s/^/$as_me: WARNING: /" >&2
12020 esac
12021 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12022 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
12023 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12024 echo $ECHO_N "(cached) $ECHO_C" >&6
12025 else
12026 ac_cv_header_openssl_err_h=$ac_header_preproc
12028 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12029 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
12032 if test $ac_cv_header_openssl_err_h = yes; then
12034 else
12035 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
12036 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
12037 { (exit 1); exit 1; }; }
12042 for ac_func in ERR_set_mark
12044 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12045 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12046 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12047 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12048 echo $ECHO_N "(cached) $ECHO_C" >&6
12049 else
12050 cat >conftest.$ac_ext <<_ACEOF
12051 /* confdefs.h. */
12052 _ACEOF
12053 cat confdefs.h >>conftest.$ac_ext
12054 cat >>conftest.$ac_ext <<_ACEOF
12055 /* end confdefs.h. */
12056 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12058 #define $ac_func innocuous_$ac_func
12060 /* System header to define __stub macros and hopefully few prototypes,
12061 which can conflict with char $ac_func (); below.
12062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12063 <limits.h> exists even on freestanding compilers. */
12065 #ifdef __STDC__
12066 # include <limits.h>
12067 #else
12068 # include <assert.h>
12069 #endif
12071 #undef $ac_func
12073 /* Override any GCC internal prototype to avoid an error.
12074 Use char because int might match the return type of a GCC
12075 builtin and then its argument prototype would still apply. */
12076 #ifdef __cplusplus
12077 extern "C"
12078 #endif
12079 char $ac_func ();
12080 /* The GNU C library defines this for functions which it implements
12081 to always fail with ENOSYS. Some functions are actually named
12082 something starting with __ and the normal name is an alias. */
12083 #if defined __stub_$ac_func || defined __stub___$ac_func
12084 choke me
12085 #endif
12088 main ()
12090 return $ac_func ();
12092 return 0;
12094 _ACEOF
12095 rm -f conftest.$ac_objext conftest$ac_exeext
12096 if { (ac_try="$ac_link"
12097 case "(($ac_try" in
12098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12099 *) ac_try_echo=$ac_try;;
12100 esac
12101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12102 (eval "$ac_link") 2>conftest.er1
12103 ac_status=$?
12104 grep -v '^ *+' conftest.er1 >conftest.err
12105 rm -f conftest.er1
12106 cat conftest.err >&5
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); } && {
12109 test -z "$ac_c_werror_flag" ||
12110 test ! -s conftest.err
12111 } && test -s conftest$ac_exeext &&
12112 $as_test_x conftest$ac_exeext; then
12113 eval "$as_ac_var=yes"
12114 else
12115 echo "$as_me: failed program was:" >&5
12116 sed 's/^/| /' conftest.$ac_ext >&5
12118 eval "$as_ac_var=no"
12121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12122 conftest$ac_exeext conftest.$ac_ext
12124 ac_res=`eval echo '${'$as_ac_var'}'`
12125 { echo "$as_me:$LINENO: result: $ac_res" >&5
12126 echo "${ECHO_T}$ac_res" >&6; }
12127 if test `eval echo '${'$as_ac_var'}'` = yes; then
12128 cat >>confdefs.h <<_ACEOF
12129 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12130 _ACEOF
12133 done
12137 if test "$with_pam" = yes ; then
12139 for ac_header in security/pam_appl.h
12141 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12143 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12146 echo $ECHO_N "(cached) $ECHO_C" >&6
12148 ac_res=`eval echo '${'$as_ac_Header'}'`
12149 { echo "$as_me:$LINENO: result: $ac_res" >&5
12150 echo "${ECHO_T}$ac_res" >&6; }
12151 else
12152 # Is the header compilable?
12153 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12154 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12155 cat >conftest.$ac_ext <<_ACEOF
12156 /* confdefs.h. */
12157 _ACEOF
12158 cat confdefs.h >>conftest.$ac_ext
12159 cat >>conftest.$ac_ext <<_ACEOF
12160 /* end confdefs.h. */
12161 $ac_includes_default
12162 #include <$ac_header>
12163 _ACEOF
12164 rm -f conftest.$ac_objext
12165 if { (ac_try="$ac_compile"
12166 case "(($ac_try" in
12167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12168 *) ac_try_echo=$ac_try;;
12169 esac
12170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12171 (eval "$ac_compile") 2>conftest.er1
12172 ac_status=$?
12173 grep -v '^ *+' conftest.er1 >conftest.err
12174 rm -f conftest.er1
12175 cat conftest.err >&5
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); } && {
12178 test -z "$ac_c_werror_flag" ||
12179 test ! -s conftest.err
12180 } && test -s conftest.$ac_objext; then
12181 ac_header_compiler=yes
12182 else
12183 echo "$as_me: failed program was:" >&5
12184 sed 's/^/| /' conftest.$ac_ext >&5
12186 ac_header_compiler=no
12189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12190 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12191 echo "${ECHO_T}$ac_header_compiler" >&6; }
12193 # Is the header present?
12194 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12195 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12196 cat >conftest.$ac_ext <<_ACEOF
12197 /* confdefs.h. */
12198 _ACEOF
12199 cat confdefs.h >>conftest.$ac_ext
12200 cat >>conftest.$ac_ext <<_ACEOF
12201 /* end confdefs.h. */
12202 #include <$ac_header>
12203 _ACEOF
12204 if { (ac_try="$ac_cpp conftest.$ac_ext"
12205 case "(($ac_try" in
12206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12207 *) ac_try_echo=$ac_try;;
12208 esac
12209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12210 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12211 ac_status=$?
12212 grep -v '^ *+' conftest.er1 >conftest.err
12213 rm -f conftest.er1
12214 cat conftest.err >&5
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); } >/dev/null && {
12217 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12218 test ! -s conftest.err
12219 }; then
12220 ac_header_preproc=yes
12221 else
12222 echo "$as_me: failed program was:" >&5
12223 sed 's/^/| /' conftest.$ac_ext >&5
12225 ac_header_preproc=no
12228 rm -f conftest.err conftest.$ac_ext
12229 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12230 echo "${ECHO_T}$ac_header_preproc" >&6; }
12232 # So? What about this header?
12233 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12234 yes:no: )
12235 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12236 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12238 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12239 ac_header_preproc=yes
12241 no:yes:* )
12242 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12243 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12244 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12245 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12246 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12247 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12248 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12249 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12251 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12252 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12253 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12254 ( cat <<\_ASBOX
12255 ## ---------------------------------------- ##
12256 ## Report this to pgsql-bugs@postgresql.org ##
12257 ## ---------------------------------------- ##
12258 _ASBOX
12259 ) | sed "s/^/$as_me: WARNING: /" >&2
12261 esac
12262 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12265 echo $ECHO_N "(cached) $ECHO_C" >&6
12266 else
12267 eval "$as_ac_Header=\$ac_header_preproc"
12269 ac_res=`eval echo '${'$as_ac_Header'}'`
12270 { echo "$as_me:$LINENO: result: $ac_res" >&5
12271 echo "${ECHO_T}$ac_res" >&6; }
12274 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12275 cat >>confdefs.h <<_ACEOF
12276 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12277 _ACEOF
12279 else
12281 for ac_header in pam/pam_appl.h
12283 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12285 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12288 echo $ECHO_N "(cached) $ECHO_C" >&6
12290 ac_res=`eval echo '${'$as_ac_Header'}'`
12291 { echo "$as_me:$LINENO: result: $ac_res" >&5
12292 echo "${ECHO_T}$ac_res" >&6; }
12293 else
12294 # Is the header compilable?
12295 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12296 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12297 cat >conftest.$ac_ext <<_ACEOF
12298 /* confdefs.h. */
12299 _ACEOF
12300 cat confdefs.h >>conftest.$ac_ext
12301 cat >>conftest.$ac_ext <<_ACEOF
12302 /* end confdefs.h. */
12303 $ac_includes_default
12304 #include <$ac_header>
12305 _ACEOF
12306 rm -f conftest.$ac_objext
12307 if { (ac_try="$ac_compile"
12308 case "(($ac_try" in
12309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12310 *) ac_try_echo=$ac_try;;
12311 esac
12312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12313 (eval "$ac_compile") 2>conftest.er1
12314 ac_status=$?
12315 grep -v '^ *+' conftest.er1 >conftest.err
12316 rm -f conftest.er1
12317 cat conftest.err >&5
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); } && {
12320 test -z "$ac_c_werror_flag" ||
12321 test ! -s conftest.err
12322 } && test -s conftest.$ac_objext; then
12323 ac_header_compiler=yes
12324 else
12325 echo "$as_me: failed program was:" >&5
12326 sed 's/^/| /' conftest.$ac_ext >&5
12328 ac_header_compiler=no
12331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12332 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12333 echo "${ECHO_T}$ac_header_compiler" >&6; }
12335 # Is the header present?
12336 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12337 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12338 cat >conftest.$ac_ext <<_ACEOF
12339 /* confdefs.h. */
12340 _ACEOF
12341 cat confdefs.h >>conftest.$ac_ext
12342 cat >>conftest.$ac_ext <<_ACEOF
12343 /* end confdefs.h. */
12344 #include <$ac_header>
12345 _ACEOF
12346 if { (ac_try="$ac_cpp conftest.$ac_ext"
12347 case "(($ac_try" in
12348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12349 *) ac_try_echo=$ac_try;;
12350 esac
12351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12352 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12353 ac_status=$?
12354 grep -v '^ *+' conftest.er1 >conftest.err
12355 rm -f conftest.er1
12356 cat conftest.err >&5
12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); } >/dev/null && {
12359 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12360 test ! -s conftest.err
12361 }; then
12362 ac_header_preproc=yes
12363 else
12364 echo "$as_me: failed program was:" >&5
12365 sed 's/^/| /' conftest.$ac_ext >&5
12367 ac_header_preproc=no
12370 rm -f conftest.err conftest.$ac_ext
12371 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12372 echo "${ECHO_T}$ac_header_preproc" >&6; }
12374 # So? What about this header?
12375 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12376 yes:no: )
12377 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12378 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12380 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12381 ac_header_preproc=yes
12383 no:yes:* )
12384 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12385 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12386 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12387 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12388 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12389 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12390 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12391 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12393 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12394 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12395 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12396 ( cat <<\_ASBOX
12397 ## ---------------------------------------- ##
12398 ## Report this to pgsql-bugs@postgresql.org ##
12399 ## ---------------------------------------- ##
12400 _ASBOX
12401 ) | sed "s/^/$as_me: WARNING: /" >&2
12403 esac
12404 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12406 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12407 echo $ECHO_N "(cached) $ECHO_C" >&6
12408 else
12409 eval "$as_ac_Header=\$ac_header_preproc"
12411 ac_res=`eval echo '${'$as_ac_Header'}'`
12412 { echo "$as_me:$LINENO: result: $ac_res" >&5
12413 echo "${ECHO_T}$ac_res" >&6; }
12416 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12417 cat >>confdefs.h <<_ACEOF
12418 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12419 _ACEOF
12421 else
12422 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
12423 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
12424 { (exit 1); exit 1; }; }
12427 done
12431 done
12435 if test "$with_libxml" = yes ; then
12436 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12437 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12438 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
12439 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12440 echo $ECHO_N "(cached) $ECHO_C" >&6
12442 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12443 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
12444 else
12445 # Is the header compilable?
12446 { echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
12447 echo $ECHO_N "checking libxml/parser.h usability... $ECHO_C" >&6; }
12448 cat >conftest.$ac_ext <<_ACEOF
12449 /* confdefs.h. */
12450 _ACEOF
12451 cat confdefs.h >>conftest.$ac_ext
12452 cat >>conftest.$ac_ext <<_ACEOF
12453 /* end confdefs.h. */
12454 $ac_includes_default
12455 #include <libxml/parser.h>
12456 _ACEOF
12457 rm -f conftest.$ac_objext
12458 if { (ac_try="$ac_compile"
12459 case "(($ac_try" in
12460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12461 *) ac_try_echo=$ac_try;;
12462 esac
12463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12464 (eval "$ac_compile") 2>conftest.er1
12465 ac_status=$?
12466 grep -v '^ *+' conftest.er1 >conftest.err
12467 rm -f conftest.er1
12468 cat conftest.err >&5
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); } && {
12471 test -z "$ac_c_werror_flag" ||
12472 test ! -s conftest.err
12473 } && test -s conftest.$ac_objext; then
12474 ac_header_compiler=yes
12475 else
12476 echo "$as_me: failed program was:" >&5
12477 sed 's/^/| /' conftest.$ac_ext >&5
12479 ac_header_compiler=no
12482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12483 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12484 echo "${ECHO_T}$ac_header_compiler" >&6; }
12486 # Is the header present?
12487 { echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
12488 echo $ECHO_N "checking libxml/parser.h presence... $ECHO_C" >&6; }
12489 cat >conftest.$ac_ext <<_ACEOF
12490 /* confdefs.h. */
12491 _ACEOF
12492 cat confdefs.h >>conftest.$ac_ext
12493 cat >>conftest.$ac_ext <<_ACEOF
12494 /* end confdefs.h. */
12495 #include <libxml/parser.h>
12496 _ACEOF
12497 if { (ac_try="$ac_cpp conftest.$ac_ext"
12498 case "(($ac_try" in
12499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12500 *) ac_try_echo=$ac_try;;
12501 esac
12502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12503 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12504 ac_status=$?
12505 grep -v '^ *+' conftest.er1 >conftest.err
12506 rm -f conftest.er1
12507 cat conftest.err >&5
12508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); } >/dev/null && {
12510 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12511 test ! -s conftest.err
12512 }; then
12513 ac_header_preproc=yes
12514 else
12515 echo "$as_me: failed program was:" >&5
12516 sed 's/^/| /' conftest.$ac_ext >&5
12518 ac_header_preproc=no
12521 rm -f conftest.err conftest.$ac_ext
12522 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12523 echo "${ECHO_T}$ac_header_preproc" >&6; }
12525 # So? What about this header?
12526 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12527 yes:no: )
12528 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
12529 echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12530 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
12531 echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
12532 ac_header_preproc=yes
12534 no:yes:* )
12535 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
12536 echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
12537 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
12538 echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
12539 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
12540 echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
12541 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
12542 echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
12543 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
12544 echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
12545 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
12546 echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
12547 ( cat <<\_ASBOX
12548 ## ---------------------------------------- ##
12549 ## Report this to pgsql-bugs@postgresql.org ##
12550 ## ---------------------------------------- ##
12551 _ASBOX
12552 ) | sed "s/^/$as_me: WARNING: /" >&2
12554 esac
12555 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12556 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
12557 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12558 echo $ECHO_N "(cached) $ECHO_C" >&6
12559 else
12560 ac_cv_header_libxml_parser_h=$ac_header_preproc
12562 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12563 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
12566 if test $ac_cv_header_libxml_parser_h = yes; then
12568 else
12569 { { echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
12570 echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
12571 { (exit 1); exit 1; }; }
12577 if test "$with_libxslt" = yes ; then
12578 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12579 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
12580 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
12581 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12582 echo $ECHO_N "(cached) $ECHO_C" >&6
12584 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
12585 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
12586 else
12587 # Is the header compilable?
12588 { echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
12589 echo $ECHO_N "checking libxslt/xslt.h usability... $ECHO_C" >&6; }
12590 cat >conftest.$ac_ext <<_ACEOF
12591 /* confdefs.h. */
12592 _ACEOF
12593 cat confdefs.h >>conftest.$ac_ext
12594 cat >>conftest.$ac_ext <<_ACEOF
12595 /* end confdefs.h. */
12596 $ac_includes_default
12597 #include <libxslt/xslt.h>
12598 _ACEOF
12599 rm -f conftest.$ac_objext
12600 if { (ac_try="$ac_compile"
12601 case "(($ac_try" in
12602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12603 *) ac_try_echo=$ac_try;;
12604 esac
12605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12606 (eval "$ac_compile") 2>conftest.er1
12607 ac_status=$?
12608 grep -v '^ *+' conftest.er1 >conftest.err
12609 rm -f conftest.er1
12610 cat conftest.err >&5
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); } && {
12613 test -z "$ac_c_werror_flag" ||
12614 test ! -s conftest.err
12615 } && test -s conftest.$ac_objext; then
12616 ac_header_compiler=yes
12617 else
12618 echo "$as_me: failed program was:" >&5
12619 sed 's/^/| /' conftest.$ac_ext >&5
12621 ac_header_compiler=no
12624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12625 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12626 echo "${ECHO_T}$ac_header_compiler" >&6; }
12628 # Is the header present?
12629 { echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
12630 echo $ECHO_N "checking libxslt/xslt.h presence... $ECHO_C" >&6; }
12631 cat >conftest.$ac_ext <<_ACEOF
12632 /* confdefs.h. */
12633 _ACEOF
12634 cat confdefs.h >>conftest.$ac_ext
12635 cat >>conftest.$ac_ext <<_ACEOF
12636 /* end confdefs.h. */
12637 #include <libxslt/xslt.h>
12638 _ACEOF
12639 if { (ac_try="$ac_cpp conftest.$ac_ext"
12640 case "(($ac_try" in
12641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12642 *) ac_try_echo=$ac_try;;
12643 esac
12644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12645 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12646 ac_status=$?
12647 grep -v '^ *+' conftest.er1 >conftest.err
12648 rm -f conftest.er1
12649 cat conftest.err >&5
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); } >/dev/null && {
12652 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12653 test ! -s conftest.err
12654 }; then
12655 ac_header_preproc=yes
12656 else
12657 echo "$as_me: failed program was:" >&5
12658 sed 's/^/| /' conftest.$ac_ext >&5
12660 ac_header_preproc=no
12663 rm -f conftest.err conftest.$ac_ext
12664 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12665 echo "${ECHO_T}$ac_header_preproc" >&6; }
12667 # So? What about this header?
12668 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12669 yes:no: )
12670 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
12671 echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12672 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
12673 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
12674 ac_header_preproc=yes
12676 no:yes:* )
12677 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
12678 echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
12679 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
12680 echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
12681 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
12682 echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
12683 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
12684 echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
12685 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
12686 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
12687 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
12688 echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
12689 ( cat <<\_ASBOX
12690 ## ---------------------------------------- ##
12691 ## Report this to pgsql-bugs@postgresql.org ##
12692 ## ---------------------------------------- ##
12693 _ASBOX
12694 ) | sed "s/^/$as_me: WARNING: /" >&2
12696 esac
12697 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
12698 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
12699 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12700 echo $ECHO_N "(cached) $ECHO_C" >&6
12701 else
12702 ac_cv_header_libxslt_xslt_h=$ac_header_preproc
12704 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
12705 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
12708 if test $ac_cv_header_libxslt_xslt_h = yes; then
12710 else
12711 { { echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
12712 echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
12713 { (exit 1); exit 1; }; }
12719 if test "$with_ldap" = yes ; then
12720 if test "$PORTNAME" != "win32"; then
12722 for ac_header in ldap.h
12724 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12726 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12728 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12729 echo $ECHO_N "(cached) $ECHO_C" >&6
12731 ac_res=`eval echo '${'$as_ac_Header'}'`
12732 { echo "$as_me:$LINENO: result: $ac_res" >&5
12733 echo "${ECHO_T}$ac_res" >&6; }
12734 else
12735 # Is the header compilable?
12736 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12737 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12738 cat >conftest.$ac_ext <<_ACEOF
12739 /* confdefs.h. */
12740 _ACEOF
12741 cat confdefs.h >>conftest.$ac_ext
12742 cat >>conftest.$ac_ext <<_ACEOF
12743 /* end confdefs.h. */
12744 $ac_includes_default
12745 #include <$ac_header>
12746 _ACEOF
12747 rm -f conftest.$ac_objext
12748 if { (ac_try="$ac_compile"
12749 case "(($ac_try" in
12750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12751 *) ac_try_echo=$ac_try;;
12752 esac
12753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12754 (eval "$ac_compile") 2>conftest.er1
12755 ac_status=$?
12756 grep -v '^ *+' conftest.er1 >conftest.err
12757 rm -f conftest.er1
12758 cat conftest.err >&5
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); } && {
12761 test -z "$ac_c_werror_flag" ||
12762 test ! -s conftest.err
12763 } && test -s conftest.$ac_objext; then
12764 ac_header_compiler=yes
12765 else
12766 echo "$as_me: failed program was:" >&5
12767 sed 's/^/| /' conftest.$ac_ext >&5
12769 ac_header_compiler=no
12772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12773 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12774 echo "${ECHO_T}$ac_header_compiler" >&6; }
12776 # Is the header present?
12777 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12778 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12779 cat >conftest.$ac_ext <<_ACEOF
12780 /* confdefs.h. */
12781 _ACEOF
12782 cat confdefs.h >>conftest.$ac_ext
12783 cat >>conftest.$ac_ext <<_ACEOF
12784 /* end confdefs.h. */
12785 #include <$ac_header>
12786 _ACEOF
12787 if { (ac_try="$ac_cpp conftest.$ac_ext"
12788 case "(($ac_try" in
12789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12790 *) ac_try_echo=$ac_try;;
12791 esac
12792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12794 ac_status=$?
12795 grep -v '^ *+' conftest.er1 >conftest.err
12796 rm -f conftest.er1
12797 cat conftest.err >&5
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); } >/dev/null && {
12800 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12801 test ! -s conftest.err
12802 }; then
12803 ac_header_preproc=yes
12804 else
12805 echo "$as_me: failed program was:" >&5
12806 sed 's/^/| /' conftest.$ac_ext >&5
12808 ac_header_preproc=no
12811 rm -f conftest.err conftest.$ac_ext
12812 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12813 echo "${ECHO_T}$ac_header_preproc" >&6; }
12815 # So? What about this header?
12816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12817 yes:no: )
12818 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12819 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12821 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12822 ac_header_preproc=yes
12824 no:yes:* )
12825 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12826 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12827 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12828 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12829 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12830 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12831 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12832 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12834 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12835 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12836 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12837 ( cat <<\_ASBOX
12838 ## ---------------------------------------- ##
12839 ## Report this to pgsql-bugs@postgresql.org ##
12840 ## ---------------------------------------- ##
12841 _ASBOX
12842 ) | sed "s/^/$as_me: WARNING: /" >&2
12844 esac
12845 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12848 echo $ECHO_N "(cached) $ECHO_C" >&6
12849 else
12850 eval "$as_ac_Header=\$ac_header_preproc"
12852 ac_res=`eval echo '${'$as_ac_Header'}'`
12853 { echo "$as_me:$LINENO: result: $ac_res" >&5
12854 echo "${ECHO_T}$ac_res" >&6; }
12857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12858 cat >>confdefs.h <<_ACEOF
12859 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12860 _ACEOF
12862 else
12863 { { echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
12864 echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
12865 { (exit 1); exit 1; }; }
12868 done
12870 else
12872 for ac_header in winldap.h
12874 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12875 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12877 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12878 echo $ECHO_N "(cached) $ECHO_C" >&6
12879 else
12880 cat >conftest.$ac_ext <<_ACEOF
12881 /* confdefs.h. */
12882 _ACEOF
12883 cat confdefs.h >>conftest.$ac_ext
12884 cat >>conftest.$ac_ext <<_ACEOF
12885 /* end confdefs.h. */
12886 $ac_includes_default
12887 #include <windows.h>
12890 #include <$ac_header>
12891 _ACEOF
12892 rm -f conftest.$ac_objext
12893 if { (ac_try="$ac_compile"
12894 case "(($ac_try" in
12895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12896 *) ac_try_echo=$ac_try;;
12897 esac
12898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12899 (eval "$ac_compile") 2>conftest.er1
12900 ac_status=$?
12901 grep -v '^ *+' conftest.er1 >conftest.err
12902 rm -f conftest.er1
12903 cat conftest.err >&5
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); } && {
12906 test -z "$ac_c_werror_flag" ||
12907 test ! -s conftest.err
12908 } && test -s conftest.$ac_objext; then
12909 eval "$as_ac_Header=yes"
12910 else
12911 echo "$as_me: failed program was:" >&5
12912 sed 's/^/| /' conftest.$ac_ext >&5
12914 eval "$as_ac_Header=no"
12917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12919 ac_res=`eval echo '${'$as_ac_Header'}'`
12920 { echo "$as_me:$LINENO: result: $ac_res" >&5
12921 echo "${ECHO_T}$ac_res" >&6; }
12922 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12923 cat >>confdefs.h <<_ACEOF
12924 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12925 _ACEOF
12927 else
12928 { { echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
12929 echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
12930 { (exit 1); exit 1; }; }
12933 done
12938 if test "$with_bonjour" = yes ; then
12939 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12940 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
12941 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
12942 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12943 echo $ECHO_N "(cached) $ECHO_C" >&6
12945 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
12946 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
12947 else
12948 # Is the header compilable?
12949 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
12950 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6; }
12951 cat >conftest.$ac_ext <<_ACEOF
12952 /* confdefs.h. */
12953 _ACEOF
12954 cat confdefs.h >>conftest.$ac_ext
12955 cat >>conftest.$ac_ext <<_ACEOF
12956 /* end confdefs.h. */
12957 $ac_includes_default
12958 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
12959 _ACEOF
12960 rm -f conftest.$ac_objext
12961 if { (ac_try="$ac_compile"
12962 case "(($ac_try" in
12963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12964 *) ac_try_echo=$ac_try;;
12965 esac
12966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12967 (eval "$ac_compile") 2>conftest.er1
12968 ac_status=$?
12969 grep -v '^ *+' conftest.er1 >conftest.err
12970 rm -f conftest.er1
12971 cat conftest.err >&5
12972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973 (exit $ac_status); } && {
12974 test -z "$ac_c_werror_flag" ||
12975 test ! -s conftest.err
12976 } && test -s conftest.$ac_objext; then
12977 ac_header_compiler=yes
12978 else
12979 echo "$as_me: failed program was:" >&5
12980 sed 's/^/| /' conftest.$ac_ext >&5
12982 ac_header_compiler=no
12985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12986 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12987 echo "${ECHO_T}$ac_header_compiler" >&6; }
12989 # Is the header present?
12990 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
12991 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6; }
12992 cat >conftest.$ac_ext <<_ACEOF
12993 /* confdefs.h. */
12994 _ACEOF
12995 cat confdefs.h >>conftest.$ac_ext
12996 cat >>conftest.$ac_ext <<_ACEOF
12997 /* end confdefs.h. */
12998 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
12999 _ACEOF
13000 if { (ac_try="$ac_cpp conftest.$ac_ext"
13001 case "(($ac_try" in
13002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13003 *) ac_try_echo=$ac_try;;
13004 esac
13005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13006 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13007 ac_status=$?
13008 grep -v '^ *+' conftest.er1 >conftest.err
13009 rm -f conftest.er1
13010 cat conftest.err >&5
13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); } >/dev/null && {
13013 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13014 test ! -s conftest.err
13015 }; then
13016 ac_header_preproc=yes
13017 else
13018 echo "$as_me: failed program was:" >&5
13019 sed 's/^/| /' conftest.$ac_ext >&5
13021 ac_header_preproc=no
13024 rm -f conftest.err conftest.$ac_ext
13025 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13026 echo "${ECHO_T}$ac_header_preproc" >&6; }
13028 # So? What about this header?
13029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13030 yes:no: )
13031 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
13032 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13033 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
13034 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
13035 ac_header_preproc=yes
13037 no:yes:* )
13038 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
13039 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
13040 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
13041 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
13042 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
13043 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
13044 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&5
13045 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&2;}
13046 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
13047 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
13048 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
13049 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
13050 ( cat <<\_ASBOX
13051 ## ---------------------------------------- ##
13052 ## Report this to pgsql-bugs@postgresql.org ##
13053 ## ---------------------------------------- ##
13054 _ASBOX
13055 ) | sed "s/^/$as_me: WARNING: /" >&2
13057 esac
13058 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
13059 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
13060 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
13061 echo $ECHO_N "(cached) $ECHO_C" >&6
13062 else
13063 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
13065 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
13066 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
13069 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
13071 else
13072 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
13073 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
13074 { (exit 1); exit 1; }; }
13080 # for contrib/uuid-ossp
13081 if test "$with_ossp_uuid" = yes ; then
13083 for ac_header in ossp/uuid.h
13085 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13087 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13090 echo $ECHO_N "(cached) $ECHO_C" >&6
13092 ac_res=`eval echo '${'$as_ac_Header'}'`
13093 { echo "$as_me:$LINENO: result: $ac_res" >&5
13094 echo "${ECHO_T}$ac_res" >&6; }
13095 else
13096 # Is the header compilable?
13097 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13098 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13099 cat >conftest.$ac_ext <<_ACEOF
13100 /* confdefs.h. */
13101 _ACEOF
13102 cat confdefs.h >>conftest.$ac_ext
13103 cat >>conftest.$ac_ext <<_ACEOF
13104 /* end confdefs.h. */
13105 $ac_includes_default
13106 #include <$ac_header>
13107 _ACEOF
13108 rm -f conftest.$ac_objext
13109 if { (ac_try="$ac_compile"
13110 case "(($ac_try" in
13111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13112 *) ac_try_echo=$ac_try;;
13113 esac
13114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13115 (eval "$ac_compile") 2>conftest.er1
13116 ac_status=$?
13117 grep -v '^ *+' conftest.er1 >conftest.err
13118 rm -f conftest.er1
13119 cat conftest.err >&5
13120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121 (exit $ac_status); } && {
13122 test -z "$ac_c_werror_flag" ||
13123 test ! -s conftest.err
13124 } && test -s conftest.$ac_objext; then
13125 ac_header_compiler=yes
13126 else
13127 echo "$as_me: failed program was:" >&5
13128 sed 's/^/| /' conftest.$ac_ext >&5
13130 ac_header_compiler=no
13133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13134 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13135 echo "${ECHO_T}$ac_header_compiler" >&6; }
13137 # Is the header present?
13138 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13139 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13140 cat >conftest.$ac_ext <<_ACEOF
13141 /* confdefs.h. */
13142 _ACEOF
13143 cat confdefs.h >>conftest.$ac_ext
13144 cat >>conftest.$ac_ext <<_ACEOF
13145 /* end confdefs.h. */
13146 #include <$ac_header>
13147 _ACEOF
13148 if { (ac_try="$ac_cpp conftest.$ac_ext"
13149 case "(($ac_try" in
13150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13151 *) ac_try_echo=$ac_try;;
13152 esac
13153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13154 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13155 ac_status=$?
13156 grep -v '^ *+' conftest.er1 >conftest.err
13157 rm -f conftest.er1
13158 cat conftest.err >&5
13159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160 (exit $ac_status); } >/dev/null && {
13161 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13162 test ! -s conftest.err
13163 }; then
13164 ac_header_preproc=yes
13165 else
13166 echo "$as_me: failed program was:" >&5
13167 sed 's/^/| /' conftest.$ac_ext >&5
13169 ac_header_preproc=no
13172 rm -f conftest.err conftest.$ac_ext
13173 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13174 echo "${ECHO_T}$ac_header_preproc" >&6; }
13176 # So? What about this header?
13177 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13178 yes:no: )
13179 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13180 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13182 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13183 ac_header_preproc=yes
13185 no:yes:* )
13186 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13187 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13188 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13189 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13190 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13191 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13192 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13193 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13195 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13196 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13197 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13198 ( cat <<\_ASBOX
13199 ## ---------------------------------------- ##
13200 ## Report this to pgsql-bugs@postgresql.org ##
13201 ## ---------------------------------------- ##
13202 _ASBOX
13203 ) | sed "s/^/$as_me: WARNING: /" >&2
13205 esac
13206 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13209 echo $ECHO_N "(cached) $ECHO_C" >&6
13210 else
13211 eval "$as_ac_Header=\$ac_header_preproc"
13213 ac_res=`eval echo '${'$as_ac_Header'}'`
13214 { echo "$as_me:$LINENO: result: $ac_res" >&5
13215 echo "${ECHO_T}$ac_res" >&6; }
13218 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13219 cat >>confdefs.h <<_ACEOF
13220 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13221 _ACEOF
13223 else
13226 for ac_header in uuid.h
13228 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13230 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13233 echo $ECHO_N "(cached) $ECHO_C" >&6
13235 ac_res=`eval echo '${'$as_ac_Header'}'`
13236 { echo "$as_me:$LINENO: result: $ac_res" >&5
13237 echo "${ECHO_T}$ac_res" >&6; }
13238 else
13239 # Is the header compilable?
13240 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13241 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13242 cat >conftest.$ac_ext <<_ACEOF
13243 /* confdefs.h. */
13244 _ACEOF
13245 cat confdefs.h >>conftest.$ac_ext
13246 cat >>conftest.$ac_ext <<_ACEOF
13247 /* end confdefs.h. */
13248 $ac_includes_default
13249 #include <$ac_header>
13250 _ACEOF
13251 rm -f conftest.$ac_objext
13252 if { (ac_try="$ac_compile"
13253 case "(($ac_try" in
13254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13255 *) ac_try_echo=$ac_try;;
13256 esac
13257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13258 (eval "$ac_compile") 2>conftest.er1
13259 ac_status=$?
13260 grep -v '^ *+' conftest.er1 >conftest.err
13261 rm -f conftest.er1
13262 cat conftest.err >&5
13263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); } && {
13265 test -z "$ac_c_werror_flag" ||
13266 test ! -s conftest.err
13267 } && test -s conftest.$ac_objext; then
13268 ac_header_compiler=yes
13269 else
13270 echo "$as_me: failed program was:" >&5
13271 sed 's/^/| /' conftest.$ac_ext >&5
13273 ac_header_compiler=no
13276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13277 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13278 echo "${ECHO_T}$ac_header_compiler" >&6; }
13280 # Is the header present?
13281 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13282 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13283 cat >conftest.$ac_ext <<_ACEOF
13284 /* confdefs.h. */
13285 _ACEOF
13286 cat confdefs.h >>conftest.$ac_ext
13287 cat >>conftest.$ac_ext <<_ACEOF
13288 /* end confdefs.h. */
13289 #include <$ac_header>
13290 _ACEOF
13291 if { (ac_try="$ac_cpp conftest.$ac_ext"
13292 case "(($ac_try" in
13293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13294 *) ac_try_echo=$ac_try;;
13295 esac
13296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13298 ac_status=$?
13299 grep -v '^ *+' conftest.er1 >conftest.err
13300 rm -f conftest.er1
13301 cat conftest.err >&5
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); } >/dev/null && {
13304 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13305 test ! -s conftest.err
13306 }; then
13307 ac_header_preproc=yes
13308 else
13309 echo "$as_me: failed program was:" >&5
13310 sed 's/^/| /' conftest.$ac_ext >&5
13312 ac_header_preproc=no
13315 rm -f conftest.err conftest.$ac_ext
13316 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13317 echo "${ECHO_T}$ac_header_preproc" >&6; }
13319 # So? What about this header?
13320 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13321 yes:no: )
13322 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13323 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13325 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13326 ac_header_preproc=yes
13328 no:yes:* )
13329 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13330 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13331 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13332 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13333 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13334 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13335 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13336 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13339 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13340 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13341 ( cat <<\_ASBOX
13342 ## ---------------------------------------- ##
13343 ## Report this to pgsql-bugs@postgresql.org ##
13344 ## ---------------------------------------- ##
13345 _ASBOX
13346 ) | sed "s/^/$as_me: WARNING: /" >&2
13348 esac
13349 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13352 echo $ECHO_N "(cached) $ECHO_C" >&6
13353 else
13354 eval "$as_ac_Header=\$ac_header_preproc"
13356 ac_res=`eval echo '${'$as_ac_Header'}'`
13357 { echo "$as_me:$LINENO: result: $ac_res" >&5
13358 echo "${ECHO_T}$ac_res" >&6; }
13361 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13362 cat >>confdefs.h <<_ACEOF
13363 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13364 _ACEOF
13366 else
13367 { { echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
13368 echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
13369 { (exit 1); exit 1; }; }
13372 done
13376 done
13382 ## Types, structures, compiler characteristics
13385 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13386 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
13387 if test "${ac_cv_c_bigendian+set}" = set; then
13388 echo $ECHO_N "(cached) $ECHO_C" >&6
13389 else
13390 # See if sys/param.h defines the BYTE_ORDER macro.
13391 cat >conftest.$ac_ext <<_ACEOF
13392 /* confdefs.h. */
13393 _ACEOF
13394 cat confdefs.h >>conftest.$ac_ext
13395 cat >>conftest.$ac_ext <<_ACEOF
13396 /* end confdefs.h. */
13397 #include <sys/types.h>
13398 #include <sys/param.h>
13401 main ()
13403 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
13404 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
13405 bogus endian macros
13406 #endif
13409 return 0;
13411 _ACEOF
13412 rm -f conftest.$ac_objext
13413 if { (ac_try="$ac_compile"
13414 case "(($ac_try" in
13415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13416 *) ac_try_echo=$ac_try;;
13417 esac
13418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13419 (eval "$ac_compile") 2>conftest.er1
13420 ac_status=$?
13421 grep -v '^ *+' conftest.er1 >conftest.err
13422 rm -f conftest.er1
13423 cat conftest.err >&5
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); } && {
13426 test -z "$ac_c_werror_flag" ||
13427 test ! -s conftest.err
13428 } && test -s conftest.$ac_objext; then
13429 # It does; now see whether it defined to BIG_ENDIAN or not.
13430 cat >conftest.$ac_ext <<_ACEOF
13431 /* confdefs.h. */
13432 _ACEOF
13433 cat confdefs.h >>conftest.$ac_ext
13434 cat >>conftest.$ac_ext <<_ACEOF
13435 /* end confdefs.h. */
13436 #include <sys/types.h>
13437 #include <sys/param.h>
13440 main ()
13442 #if BYTE_ORDER != BIG_ENDIAN
13443 not big endian
13444 #endif
13447 return 0;
13449 _ACEOF
13450 rm -f conftest.$ac_objext
13451 if { (ac_try="$ac_compile"
13452 case "(($ac_try" in
13453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13454 *) ac_try_echo=$ac_try;;
13455 esac
13456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13457 (eval "$ac_compile") 2>conftest.er1
13458 ac_status=$?
13459 grep -v '^ *+' conftest.er1 >conftest.err
13460 rm -f conftest.er1
13461 cat conftest.err >&5
13462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463 (exit $ac_status); } && {
13464 test -z "$ac_c_werror_flag" ||
13465 test ! -s conftest.err
13466 } && test -s conftest.$ac_objext; then
13467 ac_cv_c_bigendian=yes
13468 else
13469 echo "$as_me: failed program was:" >&5
13470 sed 's/^/| /' conftest.$ac_ext >&5
13472 ac_cv_c_bigendian=no
13475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13476 else
13477 echo "$as_me: failed program was:" >&5
13478 sed 's/^/| /' conftest.$ac_ext >&5
13480 # It does not; compile a test program.
13481 if test "$cross_compiling" = yes; then
13482 # try to guess the endianness by grepping values into an object file
13483 ac_cv_c_bigendian=unknown
13484 cat >conftest.$ac_ext <<_ACEOF
13485 /* confdefs.h. */
13486 _ACEOF
13487 cat confdefs.h >>conftest.$ac_ext
13488 cat >>conftest.$ac_ext <<_ACEOF
13489 /* end confdefs.h. */
13490 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13491 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13492 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
13493 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13494 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13495 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
13497 main ()
13499 _ascii (); _ebcdic ();
13501 return 0;
13503 _ACEOF
13504 rm -f conftest.$ac_objext
13505 if { (ac_try="$ac_compile"
13506 case "(($ac_try" in
13507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13508 *) ac_try_echo=$ac_try;;
13509 esac
13510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13511 (eval "$ac_compile") 2>conftest.er1
13512 ac_status=$?
13513 grep -v '^ *+' conftest.er1 >conftest.err
13514 rm -f conftest.er1
13515 cat conftest.err >&5
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); } && {
13518 test -z "$ac_c_werror_flag" ||
13519 test ! -s conftest.err
13520 } && test -s conftest.$ac_objext; then
13521 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
13522 ac_cv_c_bigendian=yes
13524 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13525 if test "$ac_cv_c_bigendian" = unknown; then
13526 ac_cv_c_bigendian=no
13527 else
13528 # finding both strings is unlikely to happen, but who knows?
13529 ac_cv_c_bigendian=unknown
13532 else
13533 echo "$as_me: failed program was:" >&5
13534 sed 's/^/| /' conftest.$ac_ext >&5
13539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13540 else
13541 cat >conftest.$ac_ext <<_ACEOF
13542 /* confdefs.h. */
13543 _ACEOF
13544 cat confdefs.h >>conftest.$ac_ext
13545 cat >>conftest.$ac_ext <<_ACEOF
13546 /* end confdefs.h. */
13547 $ac_includes_default
13549 main ()
13552 /* Are we little or big endian? From Harbison&Steele. */
13553 union
13555 long int l;
13556 char c[sizeof (long int)];
13557 } u;
13558 u.l = 1;
13559 return u.c[sizeof (long int) - 1] == 1;
13562 return 0;
13564 _ACEOF
13565 rm -f conftest$ac_exeext
13566 if { (ac_try="$ac_link"
13567 case "(($ac_try" in
13568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13569 *) ac_try_echo=$ac_try;;
13570 esac
13571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13572 (eval "$ac_link") 2>&5
13573 ac_status=$?
13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13576 { (case "(($ac_try" in
13577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13578 *) ac_try_echo=$ac_try;;
13579 esac
13580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13581 (eval "$ac_try") 2>&5
13582 ac_status=$?
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); }; }; then
13585 ac_cv_c_bigendian=no
13586 else
13587 echo "$as_me: program exited with status $ac_status" >&5
13588 echo "$as_me: failed program was:" >&5
13589 sed 's/^/| /' conftest.$ac_ext >&5
13591 ( exit $ac_status )
13592 ac_cv_c_bigendian=yes
13594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13602 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13603 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
13604 case $ac_cv_c_bigendian in
13605 yes)
13607 cat >>confdefs.h <<\_ACEOF
13608 #define WORDS_BIGENDIAN 1
13609 _ACEOF
13614 { { echo "$as_me:$LINENO: error: unknown endianness
13615 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
13616 echo "$as_me: error: unknown endianness
13617 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
13618 { (exit 1); exit 1; }; } ;;
13619 esac
13621 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13622 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
13623 if test "${ac_cv_c_const+set}" = set; then
13624 echo $ECHO_N "(cached) $ECHO_C" >&6
13625 else
13626 cat >conftest.$ac_ext <<_ACEOF
13627 /* confdefs.h. */
13628 _ACEOF
13629 cat confdefs.h >>conftest.$ac_ext
13630 cat >>conftest.$ac_ext <<_ACEOF
13631 /* end confdefs.h. */
13634 main ()
13636 /* FIXME: Include the comments suggested by Paul. */
13637 #ifndef __cplusplus
13638 /* Ultrix mips cc rejects this. */
13639 typedef int charset[2];
13640 const charset cs;
13641 /* SunOS 4.1.1 cc rejects this. */
13642 char const *const *pcpcc;
13643 char **ppc;
13644 /* NEC SVR4.0.2 mips cc rejects this. */
13645 struct point {int x, y;};
13646 static struct point const zero = {0,0};
13647 /* AIX XL C 1.02.0.0 rejects this.
13648 It does not let you subtract one const X* pointer from another in
13649 an arm of an if-expression whose if-part is not a constant
13650 expression */
13651 const char *g = "string";
13652 pcpcc = &g + (g ? g-g : 0);
13653 /* HPUX 7.0 cc rejects these. */
13654 ++pcpcc;
13655 ppc = (char**) pcpcc;
13656 pcpcc = (char const *const *) ppc;
13657 { /* SCO 3.2v4 cc rejects this. */
13658 char *t;
13659 char const *s = 0 ? (char *) 0 : (char const *) 0;
13661 *t++ = 0;
13662 if (s) return 0;
13664 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13665 int x[] = {25, 17};
13666 const int *foo = &x[0];
13667 ++foo;
13669 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13670 typedef const int *iptr;
13671 iptr p = 0;
13672 ++p;
13674 { /* AIX XL C 1.02.0.0 rejects this saying
13675 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13676 struct s { int j; const int *ap[3]; };
13677 struct s *b; b->j = 5;
13679 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13680 const int foo = 10;
13681 if (!foo) return 0;
13683 return !cs[0] && !zero.x;
13684 #endif
13687 return 0;
13689 _ACEOF
13690 rm -f conftest.$ac_objext
13691 if { (ac_try="$ac_compile"
13692 case "(($ac_try" in
13693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13694 *) ac_try_echo=$ac_try;;
13695 esac
13696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13697 (eval "$ac_compile") 2>conftest.er1
13698 ac_status=$?
13699 grep -v '^ *+' conftest.er1 >conftest.err
13700 rm -f conftest.er1
13701 cat conftest.err >&5
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); } && {
13704 test -z "$ac_c_werror_flag" ||
13705 test ! -s conftest.err
13706 } && test -s conftest.$ac_objext; then
13707 ac_cv_c_const=yes
13708 else
13709 echo "$as_me: failed program was:" >&5
13710 sed 's/^/| /' conftest.$ac_ext >&5
13712 ac_cv_c_const=no
13715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13717 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13718 echo "${ECHO_T}$ac_cv_c_const" >&6; }
13719 if test $ac_cv_c_const = no; then
13721 cat >>confdefs.h <<\_ACEOF
13722 #define const
13723 _ACEOF
13727 { echo "$as_me:$LINENO: checking for inline" >&5
13728 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
13729 if test "${ac_cv_c_inline+set}" = set; then
13730 echo $ECHO_N "(cached) $ECHO_C" >&6
13731 else
13732 ac_cv_c_inline=no
13733 for ac_kw in inline __inline__ __inline; do
13734 cat >conftest.$ac_ext <<_ACEOF
13735 /* confdefs.h. */
13736 _ACEOF
13737 cat confdefs.h >>conftest.$ac_ext
13738 cat >>conftest.$ac_ext <<_ACEOF
13739 /* end confdefs.h. */
13740 #ifndef __cplusplus
13741 typedef int foo_t;
13742 static $ac_kw foo_t static_foo () {return 0; }
13743 $ac_kw foo_t foo () {return 0; }
13744 #endif
13746 _ACEOF
13747 rm -f conftest.$ac_objext
13748 if { (ac_try="$ac_compile"
13749 case "(($ac_try" in
13750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13751 *) ac_try_echo=$ac_try;;
13752 esac
13753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13754 (eval "$ac_compile") 2>conftest.er1
13755 ac_status=$?
13756 grep -v '^ *+' conftest.er1 >conftest.err
13757 rm -f conftest.er1
13758 cat conftest.err >&5
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); } && {
13761 test -z "$ac_c_werror_flag" ||
13762 test ! -s conftest.err
13763 } && test -s conftest.$ac_objext; then
13764 ac_cv_c_inline=$ac_kw
13765 else
13766 echo "$as_me: failed program was:" >&5
13767 sed 's/^/| /' conftest.$ac_ext >&5
13772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13773 test "$ac_cv_c_inline" != no && break
13774 done
13777 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13778 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
13781 case $ac_cv_c_inline in
13782 inline | yes) ;;
13784 case $ac_cv_c_inline in
13785 no) ac_val=;;
13786 *) ac_val=$ac_cv_c_inline;;
13787 esac
13788 cat >>confdefs.h <<_ACEOF
13789 #ifndef __cplusplus
13790 #define inline $ac_val
13791 #endif
13792 _ACEOF
13794 esac
13796 { echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
13797 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6; }
13798 if test "${ac_cv_c_stringize+set}" = set; then
13799 echo $ECHO_N "(cached) $ECHO_C" >&6
13800 else
13801 cat >conftest.$ac_ext <<_ACEOF
13802 /* confdefs.h. */
13803 _ACEOF
13804 cat confdefs.h >>conftest.$ac_ext
13805 cat >>conftest.$ac_ext <<_ACEOF
13806 /* end confdefs.h. */
13807 #define x(y) #y
13809 char *s = x(teststring);
13810 _ACEOF
13811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13812 $EGREP "#teststring" >/dev/null 2>&1; then
13813 ac_cv_c_stringize=no
13814 else
13815 ac_cv_c_stringize=yes
13817 rm -f conftest*
13820 { echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
13821 echo "${ECHO_T}$ac_cv_c_stringize" >&6; }
13822 if test $ac_cv_c_stringize = yes; then
13824 cat >>confdefs.h <<\_ACEOF
13825 #define HAVE_STRINGIZE 1
13826 _ACEOF
13830 { echo "$as_me:$LINENO: checking for signed types" >&5
13831 echo $ECHO_N "checking for signed types... $ECHO_C" >&6; }
13832 if test "${pgac_cv_c_signed+set}" = set; then
13833 echo $ECHO_N "(cached) $ECHO_C" >&6
13834 else
13835 cat >conftest.$ac_ext <<_ACEOF
13836 /* confdefs.h. */
13837 _ACEOF
13838 cat confdefs.h >>conftest.$ac_ext
13839 cat >>conftest.$ac_ext <<_ACEOF
13840 /* end confdefs.h. */
13843 main ()
13845 signed char c; signed short s; signed int i;
13847 return 0;
13849 _ACEOF
13850 rm -f conftest.$ac_objext
13851 if { (ac_try="$ac_compile"
13852 case "(($ac_try" in
13853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13854 *) ac_try_echo=$ac_try;;
13855 esac
13856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13857 (eval "$ac_compile") 2>conftest.er1
13858 ac_status=$?
13859 grep -v '^ *+' conftest.er1 >conftest.err
13860 rm -f conftest.er1
13861 cat conftest.err >&5
13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); } && {
13864 test -z "$ac_c_werror_flag" ||
13865 test ! -s conftest.err
13866 } && test -s conftest.$ac_objext; then
13867 pgac_cv_c_signed=yes
13868 else
13869 echo "$as_me: failed program was:" >&5
13870 sed 's/^/| /' conftest.$ac_ext >&5
13872 pgac_cv_c_signed=no
13875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13877 { echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
13878 echo "${ECHO_T}$pgac_cv_c_signed" >&6; }
13879 if test x"$pgac_cv_c_signed" = xno ; then
13881 cat >>confdefs.h <<\_ACEOF
13882 #define signed
13883 _ACEOF
13886 { echo "$as_me:$LINENO: checking for working volatile" >&5
13887 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
13888 if test "${ac_cv_c_volatile+set}" = set; then
13889 echo $ECHO_N "(cached) $ECHO_C" >&6
13890 else
13891 cat >conftest.$ac_ext <<_ACEOF
13892 /* confdefs.h. */
13893 _ACEOF
13894 cat confdefs.h >>conftest.$ac_ext
13895 cat >>conftest.$ac_ext <<_ACEOF
13896 /* end confdefs.h. */
13899 main ()
13902 volatile int x;
13903 int * volatile y = (int *) 0;
13904 return !x && !y;
13906 return 0;
13908 _ACEOF
13909 rm -f conftest.$ac_objext
13910 if { (ac_try="$ac_compile"
13911 case "(($ac_try" in
13912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13913 *) ac_try_echo=$ac_try;;
13914 esac
13915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13916 (eval "$ac_compile") 2>conftest.er1
13917 ac_status=$?
13918 grep -v '^ *+' conftest.er1 >conftest.err
13919 rm -f conftest.er1
13920 cat conftest.err >&5
13921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922 (exit $ac_status); } && {
13923 test -z "$ac_c_werror_flag" ||
13924 test ! -s conftest.err
13925 } && test -s conftest.$ac_objext; then
13926 ac_cv_c_volatile=yes
13927 else
13928 echo "$as_me: failed program was:" >&5
13929 sed 's/^/| /' conftest.$ac_ext >&5
13931 ac_cv_c_volatile=no
13934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13936 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
13937 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
13938 if test $ac_cv_c_volatile = no; then
13940 cat >>confdefs.h <<\_ACEOF
13941 #define volatile
13942 _ACEOF
13946 { echo "$as_me:$LINENO: checking for __func__" >&5
13947 echo $ECHO_N "checking for __func__... $ECHO_C" >&6; }
13948 if test "${pgac_cv_funcname_func_support+set}" = set; then
13949 echo $ECHO_N "(cached) $ECHO_C" >&6
13950 else
13951 cat >conftest.$ac_ext <<_ACEOF
13952 /* confdefs.h. */
13953 _ACEOF
13954 cat confdefs.h >>conftest.$ac_ext
13955 cat >>conftest.$ac_ext <<_ACEOF
13956 /* end confdefs.h. */
13957 #include <stdio.h>
13959 main ()
13961 printf("%s\n", __func__);
13963 return 0;
13965 _ACEOF
13966 rm -f conftest.$ac_objext
13967 if { (ac_try="$ac_compile"
13968 case "(($ac_try" in
13969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13970 *) ac_try_echo=$ac_try;;
13971 esac
13972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13973 (eval "$ac_compile") 2>conftest.er1
13974 ac_status=$?
13975 grep -v '^ *+' conftest.er1 >conftest.err
13976 rm -f conftest.er1
13977 cat conftest.err >&5
13978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 (exit $ac_status); } && {
13980 test -z "$ac_c_werror_flag" ||
13981 test ! -s conftest.err
13982 } && test -s conftest.$ac_objext; then
13983 pgac_cv_funcname_func_support=yes
13984 else
13985 echo "$as_me: failed program was:" >&5
13986 sed 's/^/| /' conftest.$ac_ext >&5
13988 pgac_cv_funcname_func_support=no
13991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13993 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
13994 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6; }
13995 if test x"$pgac_cv_funcname_func_support" = xyes ; then
13997 cat >>confdefs.h <<\_ACEOF
13998 #define HAVE_FUNCNAME__FUNC 1
13999 _ACEOF
14001 else
14002 { echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
14003 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6; }
14004 if test "${pgac_cv_funcname_function_support+set}" = set; then
14005 echo $ECHO_N "(cached) $ECHO_C" >&6
14006 else
14007 cat >conftest.$ac_ext <<_ACEOF
14008 /* confdefs.h. */
14009 _ACEOF
14010 cat confdefs.h >>conftest.$ac_ext
14011 cat >>conftest.$ac_ext <<_ACEOF
14012 /* end confdefs.h. */
14013 #include <stdio.h>
14015 main ()
14017 printf("%s\n", __FUNCTION__);
14019 return 0;
14021 _ACEOF
14022 rm -f conftest.$ac_objext
14023 if { (ac_try="$ac_compile"
14024 case "(($ac_try" in
14025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14026 *) ac_try_echo=$ac_try;;
14027 esac
14028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14029 (eval "$ac_compile") 2>conftest.er1
14030 ac_status=$?
14031 grep -v '^ *+' conftest.er1 >conftest.err
14032 rm -f conftest.er1
14033 cat conftest.err >&5
14034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035 (exit $ac_status); } && {
14036 test -z "$ac_c_werror_flag" ||
14037 test ! -s conftest.err
14038 } && test -s conftest.$ac_objext; then
14039 pgac_cv_funcname_function_support=yes
14040 else
14041 echo "$as_me: failed program was:" >&5
14042 sed 's/^/| /' conftest.$ac_ext >&5
14044 pgac_cv_funcname_function_support=no
14047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14049 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
14050 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6; }
14051 if test x"$pgac_cv_funcname_function_support" = xyes ; then
14053 cat >>confdefs.h <<\_ACEOF
14054 #define HAVE_FUNCNAME__FUNCTION 1
14055 _ACEOF
14059 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14060 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
14061 if test "${ac_cv_struct_tm+set}" = set; then
14062 echo $ECHO_N "(cached) $ECHO_C" >&6
14063 else
14064 cat >conftest.$ac_ext <<_ACEOF
14065 /* confdefs.h. */
14066 _ACEOF
14067 cat confdefs.h >>conftest.$ac_ext
14068 cat >>conftest.$ac_ext <<_ACEOF
14069 /* end confdefs.h. */
14070 #include <sys/types.h>
14071 #include <time.h>
14074 main ()
14076 struct tm tm;
14077 int *p = &tm.tm_sec;
14078 return !p;
14080 return 0;
14082 _ACEOF
14083 rm -f conftest.$ac_objext
14084 if { (ac_try="$ac_compile"
14085 case "(($ac_try" in
14086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14087 *) ac_try_echo=$ac_try;;
14088 esac
14089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14090 (eval "$ac_compile") 2>conftest.er1
14091 ac_status=$?
14092 grep -v '^ *+' conftest.er1 >conftest.err
14093 rm -f conftest.er1
14094 cat conftest.err >&5
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); } && {
14097 test -z "$ac_c_werror_flag" ||
14098 test ! -s conftest.err
14099 } && test -s conftest.$ac_objext; then
14100 ac_cv_struct_tm=time.h
14101 else
14102 echo "$as_me: failed program was:" >&5
14103 sed 's/^/| /' conftest.$ac_ext >&5
14105 ac_cv_struct_tm=sys/time.h
14108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14110 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14111 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
14112 if test $ac_cv_struct_tm = sys/time.h; then
14114 cat >>confdefs.h <<\_ACEOF
14115 #define TM_IN_SYS_TIME 1
14116 _ACEOF
14120 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
14121 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
14122 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
14123 echo $ECHO_N "(cached) $ECHO_C" >&6
14124 else
14125 cat >conftest.$ac_ext <<_ACEOF
14126 /* confdefs.h. */
14127 _ACEOF
14128 cat confdefs.h >>conftest.$ac_ext
14129 cat >>conftest.$ac_ext <<_ACEOF
14130 /* end confdefs.h. */
14131 #include <sys/types.h>
14132 #include <$ac_cv_struct_tm>
14136 main ()
14138 static struct tm ac_aggr;
14139 if (ac_aggr.tm_zone)
14140 return 0;
14142 return 0;
14144 _ACEOF
14145 rm -f conftest.$ac_objext
14146 if { (ac_try="$ac_compile"
14147 case "(($ac_try" in
14148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14149 *) ac_try_echo=$ac_try;;
14150 esac
14151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14152 (eval "$ac_compile") 2>conftest.er1
14153 ac_status=$?
14154 grep -v '^ *+' conftest.er1 >conftest.err
14155 rm -f conftest.er1
14156 cat conftest.err >&5
14157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158 (exit $ac_status); } && {
14159 test -z "$ac_c_werror_flag" ||
14160 test ! -s conftest.err
14161 } && test -s conftest.$ac_objext; then
14162 ac_cv_member_struct_tm_tm_zone=yes
14163 else
14164 echo "$as_me: failed program was:" >&5
14165 sed 's/^/| /' conftest.$ac_ext >&5
14167 cat >conftest.$ac_ext <<_ACEOF
14168 /* confdefs.h. */
14169 _ACEOF
14170 cat confdefs.h >>conftest.$ac_ext
14171 cat >>conftest.$ac_ext <<_ACEOF
14172 /* end confdefs.h. */
14173 #include <sys/types.h>
14174 #include <$ac_cv_struct_tm>
14178 main ()
14180 static struct tm ac_aggr;
14181 if (sizeof ac_aggr.tm_zone)
14182 return 0;
14184 return 0;
14186 _ACEOF
14187 rm -f conftest.$ac_objext
14188 if { (ac_try="$ac_compile"
14189 case "(($ac_try" in
14190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14191 *) ac_try_echo=$ac_try;;
14192 esac
14193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14194 (eval "$ac_compile") 2>conftest.er1
14195 ac_status=$?
14196 grep -v '^ *+' conftest.er1 >conftest.err
14197 rm -f conftest.er1
14198 cat conftest.err >&5
14199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200 (exit $ac_status); } && {
14201 test -z "$ac_c_werror_flag" ||
14202 test ! -s conftest.err
14203 } && test -s conftest.$ac_objext; then
14204 ac_cv_member_struct_tm_tm_zone=yes
14205 else
14206 echo "$as_me: failed program was:" >&5
14207 sed 's/^/| /' conftest.$ac_ext >&5
14209 ac_cv_member_struct_tm_tm_zone=no
14212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14217 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
14218 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
14219 if test $ac_cv_member_struct_tm_tm_zone = yes; then
14221 cat >>confdefs.h <<_ACEOF
14222 #define HAVE_STRUCT_TM_TM_ZONE 1
14223 _ACEOF
14228 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
14230 cat >>confdefs.h <<\_ACEOF
14231 #define HAVE_TM_ZONE 1
14232 _ACEOF
14235 { echo "$as_me:$LINENO: checking for tzname" >&5
14236 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
14237 if test "${ac_cv_var_tzname+set}" = set; then
14238 echo $ECHO_N "(cached) $ECHO_C" >&6
14239 else
14240 cat >conftest.$ac_ext <<_ACEOF
14241 /* confdefs.h. */
14242 _ACEOF
14243 cat confdefs.h >>conftest.$ac_ext
14244 cat >>conftest.$ac_ext <<_ACEOF
14245 /* end confdefs.h. */
14246 #include <time.h>
14247 #ifndef tzname /* For SGI. */
14248 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
14249 #endif
14252 main ()
14254 atoi(*tzname);
14256 return 0;
14258 _ACEOF
14259 rm -f conftest.$ac_objext conftest$ac_exeext
14260 if { (ac_try="$ac_link"
14261 case "(($ac_try" in
14262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14263 *) ac_try_echo=$ac_try;;
14264 esac
14265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14266 (eval "$ac_link") 2>conftest.er1
14267 ac_status=$?
14268 grep -v '^ *+' conftest.er1 >conftest.err
14269 rm -f conftest.er1
14270 cat conftest.err >&5
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); } && {
14273 test -z "$ac_c_werror_flag" ||
14274 test ! -s conftest.err
14275 } && test -s conftest$ac_exeext &&
14276 $as_test_x conftest$ac_exeext; then
14277 ac_cv_var_tzname=yes
14278 else
14279 echo "$as_me: failed program was:" >&5
14280 sed 's/^/| /' conftest.$ac_ext >&5
14282 ac_cv_var_tzname=no
14285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14286 conftest$ac_exeext conftest.$ac_ext
14288 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
14289 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
14290 if test $ac_cv_var_tzname = yes; then
14292 cat >>confdefs.h <<\_ACEOF
14293 #define HAVE_TZNAME 1
14294 _ACEOF
14298 { echo "$as_me:$LINENO: checking for union semun" >&5
14299 echo $ECHO_N "checking for union semun... $ECHO_C" >&6; }
14300 if test "${ac_cv_type_union_semun+set}" = set; then
14301 echo $ECHO_N "(cached) $ECHO_C" >&6
14302 else
14303 cat >conftest.$ac_ext <<_ACEOF
14304 /* confdefs.h. */
14305 _ACEOF
14306 cat confdefs.h >>conftest.$ac_ext
14307 cat >>conftest.$ac_ext <<_ACEOF
14308 /* end confdefs.h. */
14309 #include <sys/types.h>
14310 #include <sys/ipc.h>
14311 #include <sys/sem.h>
14313 typedef union semun ac__type_new_;
14315 main ()
14317 if ((ac__type_new_ *) 0)
14318 return 0;
14319 if (sizeof (ac__type_new_))
14320 return 0;
14322 return 0;
14324 _ACEOF
14325 rm -f conftest.$ac_objext
14326 if { (ac_try="$ac_compile"
14327 case "(($ac_try" in
14328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14329 *) ac_try_echo=$ac_try;;
14330 esac
14331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14332 (eval "$ac_compile") 2>conftest.er1
14333 ac_status=$?
14334 grep -v '^ *+' conftest.er1 >conftest.err
14335 rm -f conftest.er1
14336 cat conftest.err >&5
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); } && {
14339 test -z "$ac_c_werror_flag" ||
14340 test ! -s conftest.err
14341 } && test -s conftest.$ac_objext; then
14342 ac_cv_type_union_semun=yes
14343 else
14344 echo "$as_me: failed program was:" >&5
14345 sed 's/^/| /' conftest.$ac_ext >&5
14347 ac_cv_type_union_semun=no
14350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14352 { echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
14353 echo "${ECHO_T}$ac_cv_type_union_semun" >&6; }
14354 if test $ac_cv_type_union_semun = yes; then
14356 cat >>confdefs.h <<_ACEOF
14357 #define HAVE_UNION_SEMUN 1
14358 _ACEOF
14363 { echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
14364 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6; }
14365 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
14366 echo $ECHO_N "(cached) $ECHO_C" >&6
14367 else
14368 cat >conftest.$ac_ext <<_ACEOF
14369 /* confdefs.h. */
14370 _ACEOF
14371 cat confdefs.h >>conftest.$ac_ext
14372 cat >>conftest.$ac_ext <<_ACEOF
14373 /* end confdefs.h. */
14374 #include <sys/types.h>
14375 #ifdef HAVE_SYS_UN_H
14376 #include <sys/un.h>
14377 #endif
14380 typedef struct sockaddr_un ac__type_new_;
14382 main ()
14384 if ((ac__type_new_ *) 0)
14385 return 0;
14386 if (sizeof (ac__type_new_))
14387 return 0;
14389 return 0;
14391 _ACEOF
14392 rm -f conftest.$ac_objext
14393 if { (ac_try="$ac_compile"
14394 case "(($ac_try" in
14395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14396 *) ac_try_echo=$ac_try;;
14397 esac
14398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14399 (eval "$ac_compile") 2>conftest.er1
14400 ac_status=$?
14401 grep -v '^ *+' conftest.er1 >conftest.err
14402 rm -f conftest.er1
14403 cat conftest.err >&5
14404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405 (exit $ac_status); } && {
14406 test -z "$ac_c_werror_flag" ||
14407 test ! -s conftest.err
14408 } && test -s conftest.$ac_objext; then
14409 ac_cv_type_struct_sockaddr_un=yes
14410 else
14411 echo "$as_me: failed program was:" >&5
14412 sed 's/^/| /' conftest.$ac_ext >&5
14414 ac_cv_type_struct_sockaddr_un=no
14417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14419 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
14420 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6; }
14421 if test $ac_cv_type_struct_sockaddr_un = yes; then
14423 cat >>confdefs.h <<_ACEOF
14424 #define HAVE_STRUCT_SOCKADDR_UN 1
14425 _ACEOF
14428 cat >>confdefs.h <<\_ACEOF
14429 #define HAVE_UNIX_SOCKETS 1
14430 _ACEOF
14434 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
14435 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
14436 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
14437 echo $ECHO_N "(cached) $ECHO_C" >&6
14438 else
14439 cat >conftest.$ac_ext <<_ACEOF
14440 /* confdefs.h. */
14441 _ACEOF
14442 cat confdefs.h >>conftest.$ac_ext
14443 cat >>conftest.$ac_ext <<_ACEOF
14444 /* end confdefs.h. */
14445 #include <sys/types.h>
14446 #ifdef HAVE_SYS_SOCKET_H
14447 #include <sys/socket.h>
14448 #endif
14451 typedef struct sockaddr_storage ac__type_new_;
14453 main ()
14455 if ((ac__type_new_ *) 0)
14456 return 0;
14457 if (sizeof (ac__type_new_))
14458 return 0;
14460 return 0;
14462 _ACEOF
14463 rm -f conftest.$ac_objext
14464 if { (ac_try="$ac_compile"
14465 case "(($ac_try" in
14466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14467 *) ac_try_echo=$ac_try;;
14468 esac
14469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14470 (eval "$ac_compile") 2>conftest.er1
14471 ac_status=$?
14472 grep -v '^ *+' conftest.er1 >conftest.err
14473 rm -f conftest.er1
14474 cat conftest.err >&5
14475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476 (exit $ac_status); } && {
14477 test -z "$ac_c_werror_flag" ||
14478 test ! -s conftest.err
14479 } && test -s conftest.$ac_objext; then
14480 ac_cv_type_struct_sockaddr_storage=yes
14481 else
14482 echo "$as_me: failed program was:" >&5
14483 sed 's/^/| /' conftest.$ac_ext >&5
14485 ac_cv_type_struct_sockaddr_storage=no
14488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14490 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
14491 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
14492 if test $ac_cv_type_struct_sockaddr_storage = yes; then
14494 cat >>confdefs.h <<_ACEOF
14495 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
14496 _ACEOF
14501 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
14502 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6; }
14503 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
14504 echo $ECHO_N "(cached) $ECHO_C" >&6
14505 else
14506 cat >conftest.$ac_ext <<_ACEOF
14507 /* confdefs.h. */
14508 _ACEOF
14509 cat confdefs.h >>conftest.$ac_ext
14510 cat >>conftest.$ac_ext <<_ACEOF
14511 /* end confdefs.h. */
14512 #include <sys/types.h>
14513 #ifdef HAVE_SYS_SOCKET_H
14514 #include <sys/socket.h>
14515 #endif
14519 main ()
14521 static struct sockaddr_storage ac_aggr;
14522 if (ac_aggr.ss_family)
14523 return 0;
14525 return 0;
14527 _ACEOF
14528 rm -f conftest.$ac_objext
14529 if { (ac_try="$ac_compile"
14530 case "(($ac_try" in
14531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14532 *) ac_try_echo=$ac_try;;
14533 esac
14534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14535 (eval "$ac_compile") 2>conftest.er1
14536 ac_status=$?
14537 grep -v '^ *+' conftest.er1 >conftest.err
14538 rm -f conftest.er1
14539 cat conftest.err >&5
14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); } && {
14542 test -z "$ac_c_werror_flag" ||
14543 test ! -s conftest.err
14544 } && test -s conftest.$ac_objext; then
14545 ac_cv_member_struct_sockaddr_storage_ss_family=yes
14546 else
14547 echo "$as_me: failed program was:" >&5
14548 sed 's/^/| /' conftest.$ac_ext >&5
14550 cat >conftest.$ac_ext <<_ACEOF
14551 /* confdefs.h. */
14552 _ACEOF
14553 cat confdefs.h >>conftest.$ac_ext
14554 cat >>conftest.$ac_ext <<_ACEOF
14555 /* end confdefs.h. */
14556 #include <sys/types.h>
14557 #ifdef HAVE_SYS_SOCKET_H
14558 #include <sys/socket.h>
14559 #endif
14563 main ()
14565 static struct sockaddr_storage ac_aggr;
14566 if (sizeof ac_aggr.ss_family)
14567 return 0;
14569 return 0;
14571 _ACEOF
14572 rm -f conftest.$ac_objext
14573 if { (ac_try="$ac_compile"
14574 case "(($ac_try" in
14575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14576 *) ac_try_echo=$ac_try;;
14577 esac
14578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14579 (eval "$ac_compile") 2>conftest.er1
14580 ac_status=$?
14581 grep -v '^ *+' conftest.er1 >conftest.err
14582 rm -f conftest.er1
14583 cat conftest.err >&5
14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585 (exit $ac_status); } && {
14586 test -z "$ac_c_werror_flag" ||
14587 test ! -s conftest.err
14588 } && test -s conftest.$ac_objext; then
14589 ac_cv_member_struct_sockaddr_storage_ss_family=yes
14590 else
14591 echo "$as_me: failed program was:" >&5
14592 sed 's/^/| /' conftest.$ac_ext >&5
14594 ac_cv_member_struct_sockaddr_storage_ss_family=no
14597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14602 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
14603 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
14604 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
14606 cat >>confdefs.h <<_ACEOF
14607 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
14608 _ACEOF
14612 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
14613 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6; }
14614 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
14615 echo $ECHO_N "(cached) $ECHO_C" >&6
14616 else
14617 cat >conftest.$ac_ext <<_ACEOF
14618 /* confdefs.h. */
14619 _ACEOF
14620 cat confdefs.h >>conftest.$ac_ext
14621 cat >>conftest.$ac_ext <<_ACEOF
14622 /* end confdefs.h. */
14623 #include <sys/types.h>
14624 #ifdef HAVE_SYS_SOCKET_H
14625 #include <sys/socket.h>
14626 #endif
14630 main ()
14632 static struct sockaddr_storage ac_aggr;
14633 if (ac_aggr.__ss_family)
14634 return 0;
14636 return 0;
14638 _ACEOF
14639 rm -f conftest.$ac_objext
14640 if { (ac_try="$ac_compile"
14641 case "(($ac_try" in
14642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14643 *) ac_try_echo=$ac_try;;
14644 esac
14645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14646 (eval "$ac_compile") 2>conftest.er1
14647 ac_status=$?
14648 grep -v '^ *+' conftest.er1 >conftest.err
14649 rm -f conftest.er1
14650 cat conftest.err >&5
14651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652 (exit $ac_status); } && {
14653 test -z "$ac_c_werror_flag" ||
14654 test ! -s conftest.err
14655 } && test -s conftest.$ac_objext; then
14656 ac_cv_member_struct_sockaddr_storage___ss_family=yes
14657 else
14658 echo "$as_me: failed program was:" >&5
14659 sed 's/^/| /' conftest.$ac_ext >&5
14661 cat >conftest.$ac_ext <<_ACEOF
14662 /* confdefs.h. */
14663 _ACEOF
14664 cat confdefs.h >>conftest.$ac_ext
14665 cat >>conftest.$ac_ext <<_ACEOF
14666 /* end confdefs.h. */
14667 #include <sys/types.h>
14668 #ifdef HAVE_SYS_SOCKET_H
14669 #include <sys/socket.h>
14670 #endif
14674 main ()
14676 static struct sockaddr_storage ac_aggr;
14677 if (sizeof ac_aggr.__ss_family)
14678 return 0;
14680 return 0;
14682 _ACEOF
14683 rm -f conftest.$ac_objext
14684 if { (ac_try="$ac_compile"
14685 case "(($ac_try" in
14686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14687 *) ac_try_echo=$ac_try;;
14688 esac
14689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14690 (eval "$ac_compile") 2>conftest.er1
14691 ac_status=$?
14692 grep -v '^ *+' conftest.er1 >conftest.err
14693 rm -f conftest.er1
14694 cat conftest.err >&5
14695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696 (exit $ac_status); } && {
14697 test -z "$ac_c_werror_flag" ||
14698 test ! -s conftest.err
14699 } && test -s conftest.$ac_objext; then
14700 ac_cv_member_struct_sockaddr_storage___ss_family=yes
14701 else
14702 echo "$as_me: failed program was:" >&5
14703 sed 's/^/| /' conftest.$ac_ext >&5
14705 ac_cv_member_struct_sockaddr_storage___ss_family=no
14708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14713 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
14714 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
14715 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
14717 cat >>confdefs.h <<_ACEOF
14718 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
14719 _ACEOF
14723 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
14724 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6; }
14725 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
14726 echo $ECHO_N "(cached) $ECHO_C" >&6
14727 else
14728 cat >conftest.$ac_ext <<_ACEOF
14729 /* confdefs.h. */
14730 _ACEOF
14731 cat confdefs.h >>conftest.$ac_ext
14732 cat >>conftest.$ac_ext <<_ACEOF
14733 /* end confdefs.h. */
14734 #include <sys/types.h>
14735 #ifdef HAVE_SYS_SOCKET_H
14736 #include <sys/socket.h>
14737 #endif
14741 main ()
14743 static struct sockaddr_storage ac_aggr;
14744 if (ac_aggr.ss_len)
14745 return 0;
14747 return 0;
14749 _ACEOF
14750 rm -f conftest.$ac_objext
14751 if { (ac_try="$ac_compile"
14752 case "(($ac_try" in
14753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14754 *) ac_try_echo=$ac_try;;
14755 esac
14756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14757 (eval "$ac_compile") 2>conftest.er1
14758 ac_status=$?
14759 grep -v '^ *+' conftest.er1 >conftest.err
14760 rm -f conftest.er1
14761 cat conftest.err >&5
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); } && {
14764 test -z "$ac_c_werror_flag" ||
14765 test ! -s conftest.err
14766 } && test -s conftest.$ac_objext; then
14767 ac_cv_member_struct_sockaddr_storage_ss_len=yes
14768 else
14769 echo "$as_me: failed program was:" >&5
14770 sed 's/^/| /' conftest.$ac_ext >&5
14772 cat >conftest.$ac_ext <<_ACEOF
14773 /* confdefs.h. */
14774 _ACEOF
14775 cat confdefs.h >>conftest.$ac_ext
14776 cat >>conftest.$ac_ext <<_ACEOF
14777 /* end confdefs.h. */
14778 #include <sys/types.h>
14779 #ifdef HAVE_SYS_SOCKET_H
14780 #include <sys/socket.h>
14781 #endif
14785 main ()
14787 static struct sockaddr_storage ac_aggr;
14788 if (sizeof ac_aggr.ss_len)
14789 return 0;
14791 return 0;
14793 _ACEOF
14794 rm -f conftest.$ac_objext
14795 if { (ac_try="$ac_compile"
14796 case "(($ac_try" in
14797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14798 *) ac_try_echo=$ac_try;;
14799 esac
14800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14801 (eval "$ac_compile") 2>conftest.er1
14802 ac_status=$?
14803 grep -v '^ *+' conftest.er1 >conftest.err
14804 rm -f conftest.er1
14805 cat conftest.err >&5
14806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 (exit $ac_status); } && {
14808 test -z "$ac_c_werror_flag" ||
14809 test ! -s conftest.err
14810 } && test -s conftest.$ac_objext; then
14811 ac_cv_member_struct_sockaddr_storage_ss_len=yes
14812 else
14813 echo "$as_me: failed program was:" >&5
14814 sed 's/^/| /' conftest.$ac_ext >&5
14816 ac_cv_member_struct_sockaddr_storage_ss_len=no
14819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14824 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
14825 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
14826 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
14828 cat >>confdefs.h <<_ACEOF
14829 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
14830 _ACEOF
14834 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
14835 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6; }
14836 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
14837 echo $ECHO_N "(cached) $ECHO_C" >&6
14838 else
14839 cat >conftest.$ac_ext <<_ACEOF
14840 /* confdefs.h. */
14841 _ACEOF
14842 cat confdefs.h >>conftest.$ac_ext
14843 cat >>conftest.$ac_ext <<_ACEOF
14844 /* end confdefs.h. */
14845 #include <sys/types.h>
14846 #ifdef HAVE_SYS_SOCKET_H
14847 #include <sys/socket.h>
14848 #endif
14852 main ()
14854 static struct sockaddr_storage ac_aggr;
14855 if (ac_aggr.__ss_len)
14856 return 0;
14858 return 0;
14860 _ACEOF
14861 rm -f conftest.$ac_objext
14862 if { (ac_try="$ac_compile"
14863 case "(($ac_try" in
14864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14865 *) ac_try_echo=$ac_try;;
14866 esac
14867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14868 (eval "$ac_compile") 2>conftest.er1
14869 ac_status=$?
14870 grep -v '^ *+' conftest.er1 >conftest.err
14871 rm -f conftest.er1
14872 cat conftest.err >&5
14873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874 (exit $ac_status); } && {
14875 test -z "$ac_c_werror_flag" ||
14876 test ! -s conftest.err
14877 } && test -s conftest.$ac_objext; then
14878 ac_cv_member_struct_sockaddr_storage___ss_len=yes
14879 else
14880 echo "$as_me: failed program was:" >&5
14881 sed 's/^/| /' conftest.$ac_ext >&5
14883 cat >conftest.$ac_ext <<_ACEOF
14884 /* confdefs.h. */
14885 _ACEOF
14886 cat confdefs.h >>conftest.$ac_ext
14887 cat >>conftest.$ac_ext <<_ACEOF
14888 /* end confdefs.h. */
14889 #include <sys/types.h>
14890 #ifdef HAVE_SYS_SOCKET_H
14891 #include <sys/socket.h>
14892 #endif
14896 main ()
14898 static struct sockaddr_storage ac_aggr;
14899 if (sizeof ac_aggr.__ss_len)
14900 return 0;
14902 return 0;
14904 _ACEOF
14905 rm -f conftest.$ac_objext
14906 if { (ac_try="$ac_compile"
14907 case "(($ac_try" in
14908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14909 *) ac_try_echo=$ac_try;;
14910 esac
14911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14912 (eval "$ac_compile") 2>conftest.er1
14913 ac_status=$?
14914 grep -v '^ *+' conftest.er1 >conftest.err
14915 rm -f conftest.er1
14916 cat conftest.err >&5
14917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918 (exit $ac_status); } && {
14919 test -z "$ac_c_werror_flag" ||
14920 test ! -s conftest.err
14921 } && test -s conftest.$ac_objext; then
14922 ac_cv_member_struct_sockaddr_storage___ss_len=yes
14923 else
14924 echo "$as_me: failed program was:" >&5
14925 sed 's/^/| /' conftest.$ac_ext >&5
14927 ac_cv_member_struct_sockaddr_storage___ss_len=no
14930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14935 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
14936 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
14937 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
14939 cat >>confdefs.h <<_ACEOF
14940 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
14941 _ACEOF
14945 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14946 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14947 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14948 echo $ECHO_N "(cached) $ECHO_C" >&6
14949 else
14950 cat >conftest.$ac_ext <<_ACEOF
14951 /* confdefs.h. */
14952 _ACEOF
14953 cat confdefs.h >>conftest.$ac_ext
14954 cat >>conftest.$ac_ext <<_ACEOF
14955 /* end confdefs.h. */
14956 #include <sys/types.h>
14957 #ifdef HAVE_SYS_SOCKET_H
14958 #include <sys/socket.h>
14959 #endif
14963 main ()
14965 static struct sockaddr ac_aggr;
14966 if (ac_aggr.sa_len)
14967 return 0;
14969 return 0;
14971 _ACEOF
14972 rm -f conftest.$ac_objext
14973 if { (ac_try="$ac_compile"
14974 case "(($ac_try" in
14975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14976 *) ac_try_echo=$ac_try;;
14977 esac
14978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14979 (eval "$ac_compile") 2>conftest.er1
14980 ac_status=$?
14981 grep -v '^ *+' conftest.er1 >conftest.err
14982 rm -f conftest.er1
14983 cat conftest.err >&5
14984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985 (exit $ac_status); } && {
14986 test -z "$ac_c_werror_flag" ||
14987 test ! -s conftest.err
14988 } && test -s conftest.$ac_objext; then
14989 ac_cv_member_struct_sockaddr_sa_len=yes
14990 else
14991 echo "$as_me: failed program was:" >&5
14992 sed 's/^/| /' conftest.$ac_ext >&5
14994 cat >conftest.$ac_ext <<_ACEOF
14995 /* confdefs.h. */
14996 _ACEOF
14997 cat confdefs.h >>conftest.$ac_ext
14998 cat >>conftest.$ac_ext <<_ACEOF
14999 /* end confdefs.h. */
15000 #include <sys/types.h>
15001 #ifdef HAVE_SYS_SOCKET_H
15002 #include <sys/socket.h>
15003 #endif
15007 main ()
15009 static struct sockaddr ac_aggr;
15010 if (sizeof ac_aggr.sa_len)
15011 return 0;
15013 return 0;
15015 _ACEOF
15016 rm -f conftest.$ac_objext
15017 if { (ac_try="$ac_compile"
15018 case "(($ac_try" in
15019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15020 *) ac_try_echo=$ac_try;;
15021 esac
15022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15023 (eval "$ac_compile") 2>conftest.er1
15024 ac_status=$?
15025 grep -v '^ *+' conftest.er1 >conftest.err
15026 rm -f conftest.er1
15027 cat conftest.err >&5
15028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029 (exit $ac_status); } && {
15030 test -z "$ac_c_werror_flag" ||
15031 test ! -s conftest.err
15032 } && test -s conftest.$ac_objext; then
15033 ac_cv_member_struct_sockaddr_sa_len=yes
15034 else
15035 echo "$as_me: failed program was:" >&5
15036 sed 's/^/| /' conftest.$ac_ext >&5
15038 ac_cv_member_struct_sockaddr_sa_len=no
15041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15046 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
15047 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
15048 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
15050 cat >>confdefs.h <<_ACEOF
15051 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
15052 _ACEOF
15057 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
15058 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
15059 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
15060 echo $ECHO_N "(cached) $ECHO_C" >&6
15061 else
15062 cat >conftest.$ac_ext <<_ACEOF
15063 /* confdefs.h. */
15064 _ACEOF
15065 cat confdefs.h >>conftest.$ac_ext
15066 cat >>conftest.$ac_ext <<_ACEOF
15067 /* end confdefs.h. */
15068 #include <sys/types.h>
15069 #include <sys/socket.h>
15070 #include <netdb.h>
15073 typedef struct addrinfo ac__type_new_;
15075 main ()
15077 if ((ac__type_new_ *) 0)
15078 return 0;
15079 if (sizeof (ac__type_new_))
15080 return 0;
15082 return 0;
15084 _ACEOF
15085 rm -f conftest.$ac_objext
15086 if { (ac_try="$ac_compile"
15087 case "(($ac_try" in
15088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15089 *) ac_try_echo=$ac_try;;
15090 esac
15091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15092 (eval "$ac_compile") 2>conftest.er1
15093 ac_status=$?
15094 grep -v '^ *+' conftest.er1 >conftest.err
15095 rm -f conftest.er1
15096 cat conftest.err >&5
15097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098 (exit $ac_status); } && {
15099 test -z "$ac_c_werror_flag" ||
15100 test ! -s conftest.err
15101 } && test -s conftest.$ac_objext; then
15102 ac_cv_type_struct_addrinfo=yes
15103 else
15104 echo "$as_me: failed program was:" >&5
15105 sed 's/^/| /' conftest.$ac_ext >&5
15107 ac_cv_type_struct_addrinfo=no
15110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15112 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
15113 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
15114 if test $ac_cv_type_struct_addrinfo = yes; then
15116 cat >>confdefs.h <<_ACEOF
15117 #define HAVE_STRUCT_ADDRINFO 1
15118 _ACEOF
15124 { echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
15125 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6; }
15126 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
15127 echo $ECHO_N "(cached) $ECHO_C" >&6
15128 else
15129 cat >conftest.$ac_ext <<_ACEOF
15130 /* confdefs.h. */
15131 _ACEOF
15132 cat confdefs.h >>conftest.$ac_ext
15133 cat >>conftest.$ac_ext <<_ACEOF
15134 /* end confdefs.h. */
15135 #include <sys/param.h>
15136 #include <sys/types.h>
15137 #include <sys/socket.h>
15138 #include <sys/ucred.h>
15140 typedef struct cmsgcred ac__type_new_;
15142 main ()
15144 if ((ac__type_new_ *) 0)
15145 return 0;
15146 if (sizeof (ac__type_new_))
15147 return 0;
15149 return 0;
15151 _ACEOF
15152 rm -f conftest.$ac_objext
15153 if { (ac_try="$ac_compile"
15154 case "(($ac_try" in
15155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15156 *) ac_try_echo=$ac_try;;
15157 esac
15158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15159 (eval "$ac_compile") 2>conftest.er1
15160 ac_status=$?
15161 grep -v '^ *+' conftest.er1 >conftest.err
15162 rm -f conftest.er1
15163 cat conftest.err >&5
15164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165 (exit $ac_status); } && {
15166 test -z "$ac_c_werror_flag" ||
15167 test ! -s conftest.err
15168 } && test -s conftest.$ac_objext; then
15169 ac_cv_type_struct_cmsgcred=yes
15170 else
15171 echo "$as_me: failed program was:" >&5
15172 sed 's/^/| /' conftest.$ac_ext >&5
15174 ac_cv_type_struct_cmsgcred=no
15177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15179 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
15180 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6; }
15181 if test $ac_cv_type_struct_cmsgcred = yes; then
15183 cat >>confdefs.h <<_ACEOF
15184 #define HAVE_STRUCT_CMSGCRED 1
15185 _ACEOF
15189 { echo "$as_me:$LINENO: checking for struct fcred" >&5
15190 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6; }
15191 if test "${ac_cv_type_struct_fcred+set}" = set; then
15192 echo $ECHO_N "(cached) $ECHO_C" >&6
15193 else
15194 cat >conftest.$ac_ext <<_ACEOF
15195 /* confdefs.h. */
15196 _ACEOF
15197 cat confdefs.h >>conftest.$ac_ext
15198 cat >>conftest.$ac_ext <<_ACEOF
15199 /* end confdefs.h. */
15200 #include <sys/param.h>
15201 #include <sys/types.h>
15202 #include <sys/socket.h>
15203 #include <sys/ucred.h>
15205 typedef struct fcred ac__type_new_;
15207 main ()
15209 if ((ac__type_new_ *) 0)
15210 return 0;
15211 if (sizeof (ac__type_new_))
15212 return 0;
15214 return 0;
15216 _ACEOF
15217 rm -f conftest.$ac_objext
15218 if { (ac_try="$ac_compile"
15219 case "(($ac_try" in
15220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15221 *) ac_try_echo=$ac_try;;
15222 esac
15223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15224 (eval "$ac_compile") 2>conftest.er1
15225 ac_status=$?
15226 grep -v '^ *+' conftest.er1 >conftest.err
15227 rm -f conftest.er1
15228 cat conftest.err >&5
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); } && {
15231 test -z "$ac_c_werror_flag" ||
15232 test ! -s conftest.err
15233 } && test -s conftest.$ac_objext; then
15234 ac_cv_type_struct_fcred=yes
15235 else
15236 echo "$as_me: failed program was:" >&5
15237 sed 's/^/| /' conftest.$ac_ext >&5
15239 ac_cv_type_struct_fcred=no
15242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15244 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
15245 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6; }
15246 if test $ac_cv_type_struct_fcred = yes; then
15248 cat >>confdefs.h <<_ACEOF
15249 #define HAVE_STRUCT_FCRED 1
15250 _ACEOF
15254 { echo "$as_me:$LINENO: checking for struct sockcred" >&5
15255 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6; }
15256 if test "${ac_cv_type_struct_sockcred+set}" = set; then
15257 echo $ECHO_N "(cached) $ECHO_C" >&6
15258 else
15259 cat >conftest.$ac_ext <<_ACEOF
15260 /* confdefs.h. */
15261 _ACEOF
15262 cat confdefs.h >>conftest.$ac_ext
15263 cat >>conftest.$ac_ext <<_ACEOF
15264 /* end confdefs.h. */
15265 #include <sys/param.h>
15266 #include <sys/types.h>
15267 #include <sys/socket.h>
15268 #include <sys/ucred.h>
15270 typedef struct sockcred ac__type_new_;
15272 main ()
15274 if ((ac__type_new_ *) 0)
15275 return 0;
15276 if (sizeof (ac__type_new_))
15277 return 0;
15279 return 0;
15281 _ACEOF
15282 rm -f conftest.$ac_objext
15283 if { (ac_try="$ac_compile"
15284 case "(($ac_try" in
15285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15286 *) ac_try_echo=$ac_try;;
15287 esac
15288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15289 (eval "$ac_compile") 2>conftest.er1
15290 ac_status=$?
15291 grep -v '^ *+' conftest.er1 >conftest.err
15292 rm -f conftest.er1
15293 cat conftest.err >&5
15294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295 (exit $ac_status); } && {
15296 test -z "$ac_c_werror_flag" ||
15297 test ! -s conftest.err
15298 } && test -s conftest.$ac_objext; then
15299 ac_cv_type_struct_sockcred=yes
15300 else
15301 echo "$as_me: failed program was:" >&5
15302 sed 's/^/| /' conftest.$ac_ext >&5
15304 ac_cv_type_struct_sockcred=no
15307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15309 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
15310 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6; }
15311 if test $ac_cv_type_struct_sockcred = yes; then
15313 cat >>confdefs.h <<_ACEOF
15314 #define HAVE_STRUCT_SOCKCRED 1
15315 _ACEOF
15321 { echo "$as_me:$LINENO: checking for struct option" >&5
15322 echo $ECHO_N "checking for struct option... $ECHO_C" >&6; }
15323 if test "${ac_cv_type_struct_option+set}" = set; then
15324 echo $ECHO_N "(cached) $ECHO_C" >&6
15325 else
15326 cat >conftest.$ac_ext <<_ACEOF
15327 /* confdefs.h. */
15328 _ACEOF
15329 cat confdefs.h >>conftest.$ac_ext
15330 cat >>conftest.$ac_ext <<_ACEOF
15331 /* end confdefs.h. */
15332 #ifdef HAVE_GETOPT_H
15333 #include <getopt.h>
15334 #endif
15336 typedef struct option ac__type_new_;
15338 main ()
15340 if ((ac__type_new_ *) 0)
15341 return 0;
15342 if (sizeof (ac__type_new_))
15343 return 0;
15345 return 0;
15347 _ACEOF
15348 rm -f conftest.$ac_objext
15349 if { (ac_try="$ac_compile"
15350 case "(($ac_try" in
15351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15352 *) ac_try_echo=$ac_try;;
15353 esac
15354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15355 (eval "$ac_compile") 2>conftest.er1
15356 ac_status=$?
15357 grep -v '^ *+' conftest.er1 >conftest.err
15358 rm -f conftest.er1
15359 cat conftest.err >&5
15360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361 (exit $ac_status); } && {
15362 test -z "$ac_c_werror_flag" ||
15363 test ! -s conftest.err
15364 } && test -s conftest.$ac_objext; then
15365 ac_cv_type_struct_option=yes
15366 else
15367 echo "$as_me: failed program was:" >&5
15368 sed 's/^/| /' conftest.$ac_ext >&5
15370 ac_cv_type_struct_option=no
15373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15375 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
15376 echo "${ECHO_T}$ac_cv_type_struct_option" >&6; }
15377 if test $ac_cv_type_struct_option = yes; then
15379 cat >>confdefs.h <<_ACEOF
15380 #define HAVE_STRUCT_OPTION 1
15381 _ACEOF
15387 if test "$with_zlib" = yes; then
15388 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
15389 # did not). While we could work around the lack of z_streamp, it
15390 # seems unwise to encourage people to use such old zlib versions...
15391 { echo "$as_me:$LINENO: checking for z_streamp" >&5
15392 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6; }
15393 if test "${ac_cv_type_z_streamp+set}" = set; then
15394 echo $ECHO_N "(cached) $ECHO_C" >&6
15395 else
15396 cat >conftest.$ac_ext <<_ACEOF
15397 /* confdefs.h. */
15398 _ACEOF
15399 cat confdefs.h >>conftest.$ac_ext
15400 cat >>conftest.$ac_ext <<_ACEOF
15401 /* end confdefs.h. */
15402 #include <zlib.h>
15404 typedef z_streamp ac__type_new_;
15406 main ()
15408 if ((ac__type_new_ *) 0)
15409 return 0;
15410 if (sizeof (ac__type_new_))
15411 return 0;
15413 return 0;
15415 _ACEOF
15416 rm -f conftest.$ac_objext
15417 if { (ac_try="$ac_compile"
15418 case "(($ac_try" in
15419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15420 *) ac_try_echo=$ac_try;;
15421 esac
15422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15423 (eval "$ac_compile") 2>conftest.er1
15424 ac_status=$?
15425 grep -v '^ *+' conftest.er1 >conftest.err
15426 rm -f conftest.er1
15427 cat conftest.err >&5
15428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); } && {
15430 test -z "$ac_c_werror_flag" ||
15431 test ! -s conftest.err
15432 } && test -s conftest.$ac_objext; then
15433 ac_cv_type_z_streamp=yes
15434 else
15435 echo "$as_me: failed program was:" >&5
15436 sed 's/^/| /' conftest.$ac_ext >&5
15438 ac_cv_type_z_streamp=no
15441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15443 { echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
15444 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6; }
15445 if test $ac_cv_type_z_streamp = yes; then
15447 else
15448 { { echo "$as_me:$LINENO: error: zlib version is too old
15449 Use --without-zlib to disable zlib support." >&5
15450 echo "$as_me: error: zlib version is too old
15451 Use --without-zlib to disable zlib support." >&2;}
15452 { (exit 1); exit 1; }; }
15457 if test "$with_krb5" = yes; then
15458 # Check for differences between MIT and Heimdal (KTH) releases
15459 { echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
15460 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6; }
15461 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
15462 echo $ECHO_N "(cached) $ECHO_C" >&6
15463 else
15464 cat >conftest.$ac_ext <<_ACEOF
15465 /* confdefs.h. */
15466 _ACEOF
15467 cat confdefs.h >>conftest.$ac_ext
15468 cat >>conftest.$ac_ext <<_ACEOF
15469 /* end confdefs.h. */
15470 #include <krb5.h>
15473 main ()
15475 static krb5_ticket ac_aggr;
15476 if (ac_aggr.enc_part2)
15477 return 0;
15479 return 0;
15481 _ACEOF
15482 rm -f conftest.$ac_objext
15483 if { (ac_try="$ac_compile"
15484 case "(($ac_try" in
15485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15486 *) ac_try_echo=$ac_try;;
15487 esac
15488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15489 (eval "$ac_compile") 2>conftest.er1
15490 ac_status=$?
15491 grep -v '^ *+' conftest.er1 >conftest.err
15492 rm -f conftest.er1
15493 cat conftest.err >&5
15494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495 (exit $ac_status); } && {
15496 test -z "$ac_c_werror_flag" ||
15497 test ! -s conftest.err
15498 } && test -s conftest.$ac_objext; then
15499 ac_cv_member_krb5_ticket_enc_part2=yes
15500 else
15501 echo "$as_me: failed program was:" >&5
15502 sed 's/^/| /' conftest.$ac_ext >&5
15504 cat >conftest.$ac_ext <<_ACEOF
15505 /* confdefs.h. */
15506 _ACEOF
15507 cat confdefs.h >>conftest.$ac_ext
15508 cat >>conftest.$ac_ext <<_ACEOF
15509 /* end confdefs.h. */
15510 #include <krb5.h>
15513 main ()
15515 static krb5_ticket ac_aggr;
15516 if (sizeof ac_aggr.enc_part2)
15517 return 0;
15519 return 0;
15521 _ACEOF
15522 rm -f conftest.$ac_objext
15523 if { (ac_try="$ac_compile"
15524 case "(($ac_try" in
15525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15526 *) ac_try_echo=$ac_try;;
15527 esac
15528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15529 (eval "$ac_compile") 2>conftest.er1
15530 ac_status=$?
15531 grep -v '^ *+' conftest.er1 >conftest.err
15532 rm -f conftest.er1
15533 cat conftest.err >&5
15534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535 (exit $ac_status); } && {
15536 test -z "$ac_c_werror_flag" ||
15537 test ! -s conftest.err
15538 } && test -s conftest.$ac_objext; then
15539 ac_cv_member_krb5_ticket_enc_part2=yes
15540 else
15541 echo "$as_me: failed program was:" >&5
15542 sed 's/^/| /' conftest.$ac_ext >&5
15544 ac_cv_member_krb5_ticket_enc_part2=no
15547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15552 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
15553 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6; }
15554 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
15556 cat >>confdefs.h <<_ACEOF
15557 #define HAVE_KRB5_TICKET_ENC_PART2 1
15558 _ACEOF
15561 else
15562 { echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
15563 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6; }
15564 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
15565 echo $ECHO_N "(cached) $ECHO_C" >&6
15566 else
15567 cat >conftest.$ac_ext <<_ACEOF
15568 /* confdefs.h. */
15569 _ACEOF
15570 cat confdefs.h >>conftest.$ac_ext
15571 cat >>conftest.$ac_ext <<_ACEOF
15572 /* end confdefs.h. */
15573 #include <krb5.h>
15576 main ()
15578 static krb5_ticket ac_aggr;
15579 if (ac_aggr.client)
15580 return 0;
15582 return 0;
15584 _ACEOF
15585 rm -f conftest.$ac_objext
15586 if { (ac_try="$ac_compile"
15587 case "(($ac_try" in
15588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15589 *) ac_try_echo=$ac_try;;
15590 esac
15591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15592 (eval "$ac_compile") 2>conftest.er1
15593 ac_status=$?
15594 grep -v '^ *+' conftest.er1 >conftest.err
15595 rm -f conftest.er1
15596 cat conftest.err >&5
15597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598 (exit $ac_status); } && {
15599 test -z "$ac_c_werror_flag" ||
15600 test ! -s conftest.err
15601 } && test -s conftest.$ac_objext; then
15602 ac_cv_member_krb5_ticket_client=yes
15603 else
15604 echo "$as_me: failed program was:" >&5
15605 sed 's/^/| /' conftest.$ac_ext >&5
15607 cat >conftest.$ac_ext <<_ACEOF
15608 /* confdefs.h. */
15609 _ACEOF
15610 cat confdefs.h >>conftest.$ac_ext
15611 cat >>conftest.$ac_ext <<_ACEOF
15612 /* end confdefs.h. */
15613 #include <krb5.h>
15616 main ()
15618 static krb5_ticket ac_aggr;
15619 if (sizeof ac_aggr.client)
15620 return 0;
15622 return 0;
15624 _ACEOF
15625 rm -f conftest.$ac_objext
15626 if { (ac_try="$ac_compile"
15627 case "(($ac_try" in
15628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15629 *) ac_try_echo=$ac_try;;
15630 esac
15631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15632 (eval "$ac_compile") 2>conftest.er1
15633 ac_status=$?
15634 grep -v '^ *+' conftest.er1 >conftest.err
15635 rm -f conftest.er1
15636 cat conftest.err >&5
15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); } && {
15639 test -z "$ac_c_werror_flag" ||
15640 test ! -s conftest.err
15641 } && test -s conftest.$ac_objext; then
15642 ac_cv_member_krb5_ticket_client=yes
15643 else
15644 echo "$as_me: failed program was:" >&5
15645 sed 's/^/| /' conftest.$ac_ext >&5
15647 ac_cv_member_krb5_ticket_client=no
15650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15655 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
15656 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6; }
15657 if test $ac_cv_member_krb5_ticket_client = yes; then
15659 cat >>confdefs.h <<_ACEOF
15660 #define HAVE_KRB5_TICKET_CLIENT 1
15661 _ACEOF
15664 else
15665 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
15666 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
15667 { (exit 1); exit 1; }; }
15672 { echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
15673 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6; }
15674 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
15675 echo $ECHO_N "(cached) $ECHO_C" >&6
15676 else
15677 cat >conftest.$ac_ext <<_ACEOF
15678 /* confdefs.h. */
15679 _ACEOF
15680 cat confdefs.h >>conftest.$ac_ext
15681 cat >>conftest.$ac_ext <<_ACEOF
15682 /* end confdefs.h. */
15683 #include <krb5.h>
15686 main ()
15688 static krb5_error ac_aggr;
15689 if (ac_aggr.text.data)
15690 return 0;
15692 return 0;
15694 _ACEOF
15695 rm -f conftest.$ac_objext
15696 if { (ac_try="$ac_compile"
15697 case "(($ac_try" in
15698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15699 *) ac_try_echo=$ac_try;;
15700 esac
15701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15702 (eval "$ac_compile") 2>conftest.er1
15703 ac_status=$?
15704 grep -v '^ *+' conftest.er1 >conftest.err
15705 rm -f conftest.er1
15706 cat conftest.err >&5
15707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708 (exit $ac_status); } && {
15709 test -z "$ac_c_werror_flag" ||
15710 test ! -s conftest.err
15711 } && test -s conftest.$ac_objext; then
15712 ac_cv_member_krb5_error_text_data=yes
15713 else
15714 echo "$as_me: failed program was:" >&5
15715 sed 's/^/| /' conftest.$ac_ext >&5
15717 cat >conftest.$ac_ext <<_ACEOF
15718 /* confdefs.h. */
15719 _ACEOF
15720 cat confdefs.h >>conftest.$ac_ext
15721 cat >>conftest.$ac_ext <<_ACEOF
15722 /* end confdefs.h. */
15723 #include <krb5.h>
15726 main ()
15728 static krb5_error ac_aggr;
15729 if (sizeof ac_aggr.text.data)
15730 return 0;
15732 return 0;
15734 _ACEOF
15735 rm -f conftest.$ac_objext
15736 if { (ac_try="$ac_compile"
15737 case "(($ac_try" in
15738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15739 *) ac_try_echo=$ac_try;;
15740 esac
15741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15742 (eval "$ac_compile") 2>conftest.er1
15743 ac_status=$?
15744 grep -v '^ *+' conftest.er1 >conftest.err
15745 rm -f conftest.er1
15746 cat conftest.err >&5
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); } && {
15749 test -z "$ac_c_werror_flag" ||
15750 test ! -s conftest.err
15751 } && test -s conftest.$ac_objext; then
15752 ac_cv_member_krb5_error_text_data=yes
15753 else
15754 echo "$as_me: failed program was:" >&5
15755 sed 's/^/| /' conftest.$ac_ext >&5
15757 ac_cv_member_krb5_error_text_data=no
15760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15765 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
15766 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6; }
15767 if test $ac_cv_member_krb5_error_text_data = yes; then
15769 cat >>confdefs.h <<_ACEOF
15770 #define HAVE_KRB5_ERROR_TEXT_DATA 1
15771 _ACEOF
15774 else
15775 { echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
15776 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6; }
15777 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
15778 echo $ECHO_N "(cached) $ECHO_C" >&6
15779 else
15780 cat >conftest.$ac_ext <<_ACEOF
15781 /* confdefs.h. */
15782 _ACEOF
15783 cat confdefs.h >>conftest.$ac_ext
15784 cat >>conftest.$ac_ext <<_ACEOF
15785 /* end confdefs.h. */
15786 #include <krb5.h>
15789 main ()
15791 static krb5_error ac_aggr;
15792 if (ac_aggr.e_data)
15793 return 0;
15795 return 0;
15797 _ACEOF
15798 rm -f conftest.$ac_objext
15799 if { (ac_try="$ac_compile"
15800 case "(($ac_try" in
15801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15802 *) ac_try_echo=$ac_try;;
15803 esac
15804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15805 (eval "$ac_compile") 2>conftest.er1
15806 ac_status=$?
15807 grep -v '^ *+' conftest.er1 >conftest.err
15808 rm -f conftest.er1
15809 cat conftest.err >&5
15810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 (exit $ac_status); } && {
15812 test -z "$ac_c_werror_flag" ||
15813 test ! -s conftest.err
15814 } && test -s conftest.$ac_objext; then
15815 ac_cv_member_krb5_error_e_data=yes
15816 else
15817 echo "$as_me: failed program was:" >&5
15818 sed 's/^/| /' conftest.$ac_ext >&5
15820 cat >conftest.$ac_ext <<_ACEOF
15821 /* confdefs.h. */
15822 _ACEOF
15823 cat confdefs.h >>conftest.$ac_ext
15824 cat >>conftest.$ac_ext <<_ACEOF
15825 /* end confdefs.h. */
15826 #include <krb5.h>
15829 main ()
15831 static krb5_error ac_aggr;
15832 if (sizeof ac_aggr.e_data)
15833 return 0;
15835 return 0;
15837 _ACEOF
15838 rm -f conftest.$ac_objext
15839 if { (ac_try="$ac_compile"
15840 case "(($ac_try" in
15841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15842 *) ac_try_echo=$ac_try;;
15843 esac
15844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15845 (eval "$ac_compile") 2>conftest.er1
15846 ac_status=$?
15847 grep -v '^ *+' conftest.er1 >conftest.err
15848 rm -f conftest.er1
15849 cat conftest.err >&5
15850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); } && {
15852 test -z "$ac_c_werror_flag" ||
15853 test ! -s conftest.err
15854 } && test -s conftest.$ac_objext; then
15855 ac_cv_member_krb5_error_e_data=yes
15856 else
15857 echo "$as_me: failed program was:" >&5
15858 sed 's/^/| /' conftest.$ac_ext >&5
15860 ac_cv_member_krb5_error_e_data=no
15863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15868 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
15869 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6; }
15870 if test $ac_cv_member_krb5_error_e_data = yes; then
15872 cat >>confdefs.h <<_ACEOF
15873 #define HAVE_KRB5_ERROR_E_DATA 1
15874 _ACEOF
15877 else
15878 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
15879 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
15880 { (exit 1); exit 1; }; }
15886 # Win32 requires headers to be loaded for __stdcall, so can't use
15887 # AC_CHECK_FUNCS here.
15888 { echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
15889 echo $ECHO_N "checking for krb5_free_unparsed_name... $ECHO_C" >&6; }
15890 cat >conftest.$ac_ext <<_ACEOF
15891 /* confdefs.h. */
15892 _ACEOF
15893 cat confdefs.h >>conftest.$ac_ext
15894 cat >>conftest.$ac_ext <<_ACEOF
15895 /* end confdefs.h. */
15896 #include <krb5.h>
15898 main ()
15900 krb5_free_unparsed_name(NULL,NULL);
15902 return 0;
15904 _ACEOF
15905 rm -f conftest.$ac_objext conftest$ac_exeext
15906 if { (ac_try="$ac_link"
15907 case "(($ac_try" in
15908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15909 *) ac_try_echo=$ac_try;;
15910 esac
15911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15912 (eval "$ac_link") 2>conftest.er1
15913 ac_status=$?
15914 grep -v '^ *+' conftest.er1 >conftest.err
15915 rm -f conftest.er1
15916 cat conftest.err >&5
15917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918 (exit $ac_status); } && {
15919 test -z "$ac_c_werror_flag" ||
15920 test ! -s conftest.err
15921 } && test -s conftest$ac_exeext &&
15922 $as_test_x conftest$ac_exeext; then
15924 cat >>confdefs.h <<\_ACEOF
15925 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
15926 _ACEOF
15928 { echo "$as_me:$LINENO: result: yes" >&5
15929 echo "${ECHO_T}yes" >&6; }
15930 else
15931 echo "$as_me: failed program was:" >&5
15932 sed 's/^/| /' conftest.$ac_ext >&5
15934 { echo "$as_me:$LINENO: result: no" >&5
15935 echo "${ECHO_T}no" >&6; }
15938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15939 conftest$ac_exeext conftest.$ac_ext
15944 ## Functions, global variables
15947 { echo "$as_me:$LINENO: checking for int timezone" >&5
15948 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6; }
15949 if test "${pgac_cv_var_int_timezone+set}" = set; then
15950 echo $ECHO_N "(cached) $ECHO_C" >&6
15951 else
15952 cat >conftest.$ac_ext <<_ACEOF
15953 /* confdefs.h. */
15954 _ACEOF
15955 cat confdefs.h >>conftest.$ac_ext
15956 cat >>conftest.$ac_ext <<_ACEOF
15957 /* end confdefs.h. */
15958 #include <time.h>
15959 int res;
15961 main ()
15963 #ifndef __CYGWIN__
15964 res = timezone / 60;
15965 #else
15966 res = _timezone / 60;
15967 #endif
15969 return 0;
15971 _ACEOF
15972 rm -f conftest.$ac_objext conftest$ac_exeext
15973 if { (ac_try="$ac_link"
15974 case "(($ac_try" in
15975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15976 *) ac_try_echo=$ac_try;;
15977 esac
15978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15979 (eval "$ac_link") 2>conftest.er1
15980 ac_status=$?
15981 grep -v '^ *+' conftest.er1 >conftest.err
15982 rm -f conftest.er1
15983 cat conftest.err >&5
15984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985 (exit $ac_status); } && {
15986 test -z "$ac_c_werror_flag" ||
15987 test ! -s conftest.err
15988 } && test -s conftest$ac_exeext &&
15989 $as_test_x conftest$ac_exeext; then
15990 pgac_cv_var_int_timezone=yes
15991 else
15992 echo "$as_me: failed program was:" >&5
15993 sed 's/^/| /' conftest.$ac_ext >&5
15995 pgac_cv_var_int_timezone=no
15998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15999 conftest$ac_exeext conftest.$ac_ext
16001 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
16002 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6; }
16003 if test x"$pgac_cv_var_int_timezone" = xyes ; then
16005 cat >>confdefs.h <<\_ACEOF
16006 #define HAVE_INT_TIMEZONE
16007 _ACEOF
16010 { echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
16011 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6; }
16012 if test "${ac_cv_func_accept_return+set}" = set; then
16013 echo $ECHO_N "(cached) $ECHO_C" >&6
16014 else
16015 if test "${ac_cv_func_accept_arg1+set}" = set; then
16016 echo $ECHO_N "(cached) $ECHO_C" >&6
16017 else
16018 if test "${ac_cv_func_accept_arg2+set}" = set; then
16019 echo $ECHO_N "(cached) $ECHO_C" >&6
16020 else
16021 if test "${ac_cv_func_accept_arg3+set}" = set; then
16022 echo $ECHO_N "(cached) $ECHO_C" >&6
16023 else
16024 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
16025 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
16026 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
16027 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
16028 cat >conftest.$ac_ext <<_ACEOF
16029 /* confdefs.h. */
16030 _ACEOF
16031 cat confdefs.h >>conftest.$ac_ext
16032 cat >>conftest.$ac_ext <<_ACEOF
16033 /* end confdefs.h. */
16034 #ifdef HAVE_SYS_TYPES_H
16035 #include <sys/types.h>
16036 #endif
16037 #ifdef HAVE_SYS_SOCKET_H
16038 #include <sys/socket.h>
16039 #endif
16040 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
16042 main ()
16046 return 0;
16048 _ACEOF
16049 rm -f conftest.$ac_objext
16050 if { (ac_try="$ac_compile"
16051 case "(($ac_try" in
16052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16053 *) ac_try_echo=$ac_try;;
16054 esac
16055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16056 (eval "$ac_compile") 2>conftest.er1
16057 ac_status=$?
16058 grep -v '^ *+' conftest.er1 >conftest.err
16059 rm -f conftest.er1
16060 cat conftest.err >&5
16061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062 (exit $ac_status); } && {
16063 test -z "$ac_c_werror_flag" ||
16064 test ! -s conftest.err
16065 } && test -s conftest.$ac_objext; then
16066 ac_not_found=no; break 4
16067 else
16068 echo "$as_me: failed program was:" >&5
16069 sed 's/^/| /' conftest.$ac_ext >&5
16071 ac_not_found=yes
16074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16075 done
16076 done
16077 done
16078 done
16079 if test "$ac_not_found" = yes; then
16080 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
16081 echo "$as_me: error: could not determine argument types" >&2;}
16082 { (exit 1); exit 1; }; }
16084 if test "$ac_cv_func_accept_arg3" = "void"; then
16085 ac_cv_func_accept_arg3=int
16095 { 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
16096 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
16098 cat >>confdefs.h <<_ACEOF
16099 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
16100 _ACEOF
16103 cat >>confdefs.h <<_ACEOF
16104 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
16105 _ACEOF
16108 cat >>confdefs.h <<_ACEOF
16109 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
16110 _ACEOF
16113 cat >>confdefs.h <<_ACEOF
16114 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
16115 _ACEOF
16118 { echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
16119 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6; }
16120 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
16121 echo $ECHO_N "(cached) $ECHO_C" >&6
16122 else
16123 cat >conftest.$ac_ext <<_ACEOF
16124 /* confdefs.h. */
16125 _ACEOF
16126 cat confdefs.h >>conftest.$ac_ext
16127 cat >>conftest.$ac_ext <<_ACEOF
16128 /* end confdefs.h. */
16129 #include <sys/time.h>
16131 main ()
16133 struct timeval *tp;
16134 struct timezone *tzp;
16135 gettimeofday(tp,tzp);
16137 return 0;
16139 _ACEOF
16140 rm -f conftest.$ac_objext
16141 if { (ac_try="$ac_compile"
16142 case "(($ac_try" in
16143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16144 *) ac_try_echo=$ac_try;;
16145 esac
16146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16147 (eval "$ac_compile") 2>conftest.er1
16148 ac_status=$?
16149 grep -v '^ *+' conftest.er1 >conftest.err
16150 rm -f conftest.er1
16151 cat conftest.err >&5
16152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); } && {
16154 test -z "$ac_c_werror_flag" ||
16155 test ! -s conftest.err
16156 } && test -s conftest.$ac_objext; then
16157 pgac_cv_func_gettimeofday_1arg=no
16158 else
16159 echo "$as_me: failed program was:" >&5
16160 sed 's/^/| /' conftest.$ac_ext >&5
16162 pgac_cv_func_gettimeofday_1arg=yes
16165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16167 { echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
16168 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6; }
16169 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
16171 cat >>confdefs.h <<\_ACEOF
16172 #define GETTIMEOFDAY_1ARG
16173 _ACEOF
16200 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
16202 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16203 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16204 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16205 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16206 echo $ECHO_N "(cached) $ECHO_C" >&6
16207 else
16208 cat >conftest.$ac_ext <<_ACEOF
16209 /* confdefs.h. */
16210 _ACEOF
16211 cat confdefs.h >>conftest.$ac_ext
16212 cat >>conftest.$ac_ext <<_ACEOF
16213 /* end confdefs.h. */
16214 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16215 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16216 #define $ac_func innocuous_$ac_func
16218 /* System header to define __stub macros and hopefully few prototypes,
16219 which can conflict with char $ac_func (); below.
16220 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16221 <limits.h> exists even on freestanding compilers. */
16223 #ifdef __STDC__
16224 # include <limits.h>
16225 #else
16226 # include <assert.h>
16227 #endif
16229 #undef $ac_func
16231 /* Override any GCC internal prototype to avoid an error.
16232 Use char because int might match the return type of a GCC
16233 builtin and then its argument prototype would still apply. */
16234 #ifdef __cplusplus
16235 extern "C"
16236 #endif
16237 char $ac_func ();
16238 /* The GNU C library defines this for functions which it implements
16239 to always fail with ENOSYS. Some functions are actually named
16240 something starting with __ and the normal name is an alias. */
16241 #if defined __stub_$ac_func || defined __stub___$ac_func
16242 choke me
16243 #endif
16246 main ()
16248 return $ac_func ();
16250 return 0;
16252 _ACEOF
16253 rm -f conftest.$ac_objext conftest$ac_exeext
16254 if { (ac_try="$ac_link"
16255 case "(($ac_try" in
16256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16257 *) ac_try_echo=$ac_try;;
16258 esac
16259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16260 (eval "$ac_link") 2>conftest.er1
16261 ac_status=$?
16262 grep -v '^ *+' conftest.er1 >conftest.err
16263 rm -f conftest.er1
16264 cat conftest.err >&5
16265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266 (exit $ac_status); } && {
16267 test -z "$ac_c_werror_flag" ||
16268 test ! -s conftest.err
16269 } && test -s conftest$ac_exeext &&
16270 $as_test_x conftest$ac_exeext; then
16271 eval "$as_ac_var=yes"
16272 else
16273 echo "$as_me: failed program was:" >&5
16274 sed 's/^/| /' conftest.$ac_ext >&5
16276 eval "$as_ac_var=no"
16279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16280 conftest$ac_exeext conftest.$ac_ext
16282 ac_res=`eval echo '${'$as_ac_var'}'`
16283 { echo "$as_me:$LINENO: result: $ac_res" >&5
16284 echo "${ECHO_T}$ac_res" >&6; }
16285 if test `eval echo '${'$as_ac_var'}'` = yes; then
16286 cat >>confdefs.h <<_ACEOF
16287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16288 _ACEOF
16291 done
16294 { echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
16295 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6; }
16296 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
16297 echo $ECHO_N "(cached) $ECHO_C" >&6
16298 else
16299 cat >conftest.$ac_ext <<_ACEOF
16300 /* confdefs.h. */
16301 _ACEOF
16302 cat confdefs.h >>conftest.$ac_ext
16303 cat >>conftest.$ac_ext <<_ACEOF
16304 /* end confdefs.h. */
16305 #include <unistd.h>
16308 main ()
16310 #ifndef fdatasync
16311 (void) fdatasync;
16312 #endif
16315 return 0;
16317 _ACEOF
16318 rm -f conftest.$ac_objext
16319 if { (ac_try="$ac_compile"
16320 case "(($ac_try" in
16321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16322 *) ac_try_echo=$ac_try;;
16323 esac
16324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16325 (eval "$ac_compile") 2>conftest.er1
16326 ac_status=$?
16327 grep -v '^ *+' conftest.er1 >conftest.err
16328 rm -f conftest.er1
16329 cat conftest.err >&5
16330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331 (exit $ac_status); } && {
16332 test -z "$ac_c_werror_flag" ||
16333 test ! -s conftest.err
16334 } && test -s conftest.$ac_objext; then
16335 ac_cv_have_decl_fdatasync=yes
16336 else
16337 echo "$as_me: failed program was:" >&5
16338 sed 's/^/| /' conftest.$ac_ext >&5
16340 ac_cv_have_decl_fdatasync=no
16343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16345 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
16346 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6; }
16347 if test $ac_cv_have_decl_fdatasync = yes; then
16349 cat >>confdefs.h <<_ACEOF
16350 #define HAVE_DECL_FDATASYNC 1
16351 _ACEOF
16354 else
16355 cat >>confdefs.h <<_ACEOF
16356 #define HAVE_DECL_FDATASYNC 0
16357 _ACEOF
16363 { echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
16364 echo $ECHO_N "checking whether posix_fadvise is declared... $ECHO_C" >&6; }
16365 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
16366 echo $ECHO_N "(cached) $ECHO_C" >&6
16367 else
16368 cat >conftest.$ac_ext <<_ACEOF
16369 /* confdefs.h. */
16370 _ACEOF
16371 cat confdefs.h >>conftest.$ac_ext
16372 cat >>conftest.$ac_ext <<_ACEOF
16373 /* end confdefs.h. */
16374 #include <fcntl.h>
16377 main ()
16379 #ifndef posix_fadvise
16380 (void) posix_fadvise;
16381 #endif
16384 return 0;
16386 _ACEOF
16387 rm -f conftest.$ac_objext
16388 if { (ac_try="$ac_compile"
16389 case "(($ac_try" in
16390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16391 *) ac_try_echo=$ac_try;;
16392 esac
16393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16394 (eval "$ac_compile") 2>conftest.er1
16395 ac_status=$?
16396 grep -v '^ *+' conftest.er1 >conftest.err
16397 rm -f conftest.er1
16398 cat conftest.err >&5
16399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400 (exit $ac_status); } && {
16401 test -z "$ac_c_werror_flag" ||
16402 test ! -s conftest.err
16403 } && test -s conftest.$ac_objext; then
16404 ac_cv_have_decl_posix_fadvise=yes
16405 else
16406 echo "$as_me: failed program was:" >&5
16407 sed 's/^/| /' conftest.$ac_ext >&5
16409 ac_cv_have_decl_posix_fadvise=no
16412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16414 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
16415 echo "${ECHO_T}$ac_cv_have_decl_posix_fadvise" >&6; }
16416 if test $ac_cv_have_decl_posix_fadvise = yes; then
16418 cat >>confdefs.h <<_ACEOF
16419 #define HAVE_DECL_POSIX_FADVISE 1
16420 _ACEOF
16423 else
16424 cat >>confdefs.h <<_ACEOF
16425 #define HAVE_DECL_POSIX_FADVISE 0
16426 _ACEOF
16432 { echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
16433 echo $ECHO_N "checking whether strlcat is declared... $ECHO_C" >&6; }
16434 if test "${ac_cv_have_decl_strlcat+set}" = set; then
16435 echo $ECHO_N "(cached) $ECHO_C" >&6
16436 else
16437 cat >conftest.$ac_ext <<_ACEOF
16438 /* confdefs.h. */
16439 _ACEOF
16440 cat confdefs.h >>conftest.$ac_ext
16441 cat >>conftest.$ac_ext <<_ACEOF
16442 /* end confdefs.h. */
16443 $ac_includes_default
16445 main ()
16447 #ifndef strlcat
16448 (void) strlcat;
16449 #endif
16452 return 0;
16454 _ACEOF
16455 rm -f conftest.$ac_objext
16456 if { (ac_try="$ac_compile"
16457 case "(($ac_try" in
16458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16459 *) ac_try_echo=$ac_try;;
16460 esac
16461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16462 (eval "$ac_compile") 2>conftest.er1
16463 ac_status=$?
16464 grep -v '^ *+' conftest.er1 >conftest.err
16465 rm -f conftest.er1
16466 cat conftest.err >&5
16467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16468 (exit $ac_status); } && {
16469 test -z "$ac_c_werror_flag" ||
16470 test ! -s conftest.err
16471 } && test -s conftest.$ac_objext; then
16472 ac_cv_have_decl_strlcat=yes
16473 else
16474 echo "$as_me: failed program was:" >&5
16475 sed 's/^/| /' conftest.$ac_ext >&5
16477 ac_cv_have_decl_strlcat=no
16480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16482 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
16483 echo "${ECHO_T}$ac_cv_have_decl_strlcat" >&6; }
16484 if test $ac_cv_have_decl_strlcat = yes; then
16486 cat >>confdefs.h <<_ACEOF
16487 #define HAVE_DECL_STRLCAT 1
16488 _ACEOF
16491 else
16492 cat >>confdefs.h <<_ACEOF
16493 #define HAVE_DECL_STRLCAT 0
16494 _ACEOF
16498 { echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
16499 echo $ECHO_N "checking whether strlcpy is declared... $ECHO_C" >&6; }
16500 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
16501 echo $ECHO_N "(cached) $ECHO_C" >&6
16502 else
16503 cat >conftest.$ac_ext <<_ACEOF
16504 /* confdefs.h. */
16505 _ACEOF
16506 cat confdefs.h >>conftest.$ac_ext
16507 cat >>conftest.$ac_ext <<_ACEOF
16508 /* end confdefs.h. */
16509 $ac_includes_default
16511 main ()
16513 #ifndef strlcpy
16514 (void) strlcpy;
16515 #endif
16518 return 0;
16520 _ACEOF
16521 rm -f conftest.$ac_objext
16522 if { (ac_try="$ac_compile"
16523 case "(($ac_try" in
16524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16525 *) ac_try_echo=$ac_try;;
16526 esac
16527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16528 (eval "$ac_compile") 2>conftest.er1
16529 ac_status=$?
16530 grep -v '^ *+' conftest.er1 >conftest.err
16531 rm -f conftest.er1
16532 cat conftest.err >&5
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); } && {
16535 test -z "$ac_c_werror_flag" ||
16536 test ! -s conftest.err
16537 } && test -s conftest.$ac_objext; then
16538 ac_cv_have_decl_strlcpy=yes
16539 else
16540 echo "$as_me: failed program was:" >&5
16541 sed 's/^/| /' conftest.$ac_ext >&5
16543 ac_cv_have_decl_strlcpy=no
16546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16548 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
16549 echo "${ECHO_T}$ac_cv_have_decl_strlcpy" >&6; }
16550 if test $ac_cv_have_decl_strlcpy = yes; then
16552 cat >>confdefs.h <<_ACEOF
16553 #define HAVE_DECL_STRLCPY 1
16554 _ACEOF
16557 else
16558 cat >>confdefs.h <<_ACEOF
16559 #define HAVE_DECL_STRLCPY 0
16560 _ACEOF
16566 # This is probably only present on Darwin, but may as well check always
16567 { echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
16568 echo $ECHO_N "checking whether F_FULLFSYNC is declared... $ECHO_C" >&6; }
16569 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
16570 echo $ECHO_N "(cached) $ECHO_C" >&6
16571 else
16572 cat >conftest.$ac_ext <<_ACEOF
16573 /* confdefs.h. */
16574 _ACEOF
16575 cat confdefs.h >>conftest.$ac_ext
16576 cat >>conftest.$ac_ext <<_ACEOF
16577 /* end confdefs.h. */
16578 #include <fcntl.h>
16581 main ()
16583 #ifndef F_FULLFSYNC
16584 (void) F_FULLFSYNC;
16585 #endif
16588 return 0;
16590 _ACEOF
16591 rm -f conftest.$ac_objext
16592 if { (ac_try="$ac_compile"
16593 case "(($ac_try" in
16594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16595 *) ac_try_echo=$ac_try;;
16596 esac
16597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16598 (eval "$ac_compile") 2>conftest.er1
16599 ac_status=$?
16600 grep -v '^ *+' conftest.er1 >conftest.err
16601 rm -f conftest.er1
16602 cat conftest.err >&5
16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); } && {
16605 test -z "$ac_c_werror_flag" ||
16606 test ! -s conftest.err
16607 } && test -s conftest.$ac_objext; then
16608 ac_cv_have_decl_F_FULLFSYNC=yes
16609 else
16610 echo "$as_me: failed program was:" >&5
16611 sed 's/^/| /' conftest.$ac_ext >&5
16613 ac_cv_have_decl_F_FULLFSYNC=no
16616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16618 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
16619 echo "${ECHO_T}$ac_cv_have_decl_F_FULLFSYNC" >&6; }
16620 if test $ac_cv_have_decl_F_FULLFSYNC = yes; then
16622 cat >>confdefs.h <<_ACEOF
16623 #define HAVE_DECL_F_FULLFSYNC 1
16624 _ACEOF
16627 else
16628 cat >>confdefs.h <<_ACEOF
16629 #define HAVE_DECL_F_FULLFSYNC 0
16630 _ACEOF
16637 HAVE_IPV6=no
16638 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
16639 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
16640 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
16641 echo $ECHO_N "(cached) $ECHO_C" >&6
16642 else
16643 cat >conftest.$ac_ext <<_ACEOF
16644 /* confdefs.h. */
16645 _ACEOF
16646 cat confdefs.h >>conftest.$ac_ext
16647 cat >>conftest.$ac_ext <<_ACEOF
16648 /* end confdefs.h. */
16649 $ac_includes_default
16650 #include <netinet/in.h>
16652 typedef struct sockaddr_in6 ac__type_new_;
16654 main ()
16656 if ((ac__type_new_ *) 0)
16657 return 0;
16658 if (sizeof (ac__type_new_))
16659 return 0;
16661 return 0;
16663 _ACEOF
16664 rm -f conftest.$ac_objext
16665 if { (ac_try="$ac_compile"
16666 case "(($ac_try" in
16667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16668 *) ac_try_echo=$ac_try;;
16669 esac
16670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16671 (eval "$ac_compile") 2>conftest.er1
16672 ac_status=$?
16673 grep -v '^ *+' conftest.er1 >conftest.err
16674 rm -f conftest.er1
16675 cat conftest.err >&5
16676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677 (exit $ac_status); } && {
16678 test -z "$ac_c_werror_flag" ||
16679 test ! -s conftest.err
16680 } && test -s conftest.$ac_objext; then
16681 ac_cv_type_struct_sockaddr_in6=yes
16682 else
16683 echo "$as_me: failed program was:" >&5
16684 sed 's/^/| /' conftest.$ac_ext >&5
16686 ac_cv_type_struct_sockaddr_in6=no
16689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16691 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
16692 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
16693 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
16695 cat >>confdefs.h <<\_ACEOF
16696 #define HAVE_IPV6 1
16697 _ACEOF
16699 HAVE_IPV6=yes
16704 { echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
16705 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6; }
16706 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
16707 echo $ECHO_N "(cached) $ECHO_C" >&6
16708 else
16709 cat >conftest.$ac_ext <<_ACEOF
16710 /* confdefs.h. */
16711 _ACEOF
16712 cat confdefs.h >>conftest.$ac_ext
16713 cat >>conftest.$ac_ext <<_ACEOF
16714 /* end confdefs.h. */
16715 #include <machine/vmparam.h>
16716 #include <sys/exec.h>
16719 main ()
16721 PS_STRINGS->ps_nargvstr = 1;
16722 PS_STRINGS->ps_argvstr = "foo";
16724 return 0;
16726 _ACEOF
16727 rm -f conftest.$ac_objext conftest$ac_exeext
16728 if { (ac_try="$ac_link"
16729 case "(($ac_try" in
16730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16731 *) ac_try_echo=$ac_try;;
16732 esac
16733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16734 (eval "$ac_link") 2>conftest.er1
16735 ac_status=$?
16736 grep -v '^ *+' conftest.er1 >conftest.err
16737 rm -f conftest.er1
16738 cat conftest.err >&5
16739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); } && {
16741 test -z "$ac_c_werror_flag" ||
16742 test ! -s conftest.err
16743 } && test -s conftest$ac_exeext &&
16744 $as_test_x conftest$ac_exeext; then
16745 pgac_cv_var_PS_STRINGS=yes
16746 else
16747 echo "$as_me: failed program was:" >&5
16748 sed 's/^/| /' conftest.$ac_ext >&5
16750 pgac_cv_var_PS_STRINGS=no
16753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16754 conftest$ac_exeext conftest.$ac_ext
16756 { echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
16757 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6; }
16758 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
16760 cat >>confdefs.h <<\_ACEOF
16761 #define HAVE_PS_STRINGS
16762 _ACEOF
16767 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
16768 # is missing. Yes, there are machines that have only one. We may
16769 # also decide to use snprintf.c if snprintf() is present but does not
16770 # have all the features we need --- see below.
16772 if test "$PORTNAME" = "win32"; then
16773 # Win32 gets snprintf.c built unconditionally.
16775 # To properly translate all NLS languages strings, we must support the
16776 # *printf() %$ format, which allows *printf() arguments to be selected
16777 # by position in the translated string.
16779 # libintl versions < 0.13 use the native *printf() functions, and Win32
16780 # *printf() doesn't understand %$, so we must use our /port versions,
16781 # which do understand %$. libintl versions >= 0.13 include their own
16782 # *printf versions on Win32. The libintl 0.13 release note text is:
16784 # C format strings with positions, as they arise when a translator
16785 # needs to reorder a sentence, are now supported on all platforms.
16786 # On those few platforms (NetBSD and Woe32) for which the native
16787 # printf()/fprintf()/... functions don't support such format
16788 # strings, replacements are provided through <libintl.h>.
16790 # We could use libintl >= 0.13's *printf() if we were sure that we had
16791 # a litint >= 0.13 at runtime, but seeing that there is no clean way
16792 # to guarantee that, it is best to just use our own, so we are sure to
16793 # get %$ support. In include/port.h we disable the *printf() macros
16794 # that might have been defined by libintl.
16796 # We do this unconditionally whether NLS is used or not so we are sure
16797 # that all Win32 libraries and binaries behave the same.
16798 pgac_need_repl_snprintf=yes
16799 else
16800 pgac_need_repl_snprintf=no
16802 for ac_func in snprintf
16804 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16805 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16806 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16807 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16808 echo $ECHO_N "(cached) $ECHO_C" >&6
16809 else
16810 cat >conftest.$ac_ext <<_ACEOF
16811 /* confdefs.h. */
16812 _ACEOF
16813 cat confdefs.h >>conftest.$ac_ext
16814 cat >>conftest.$ac_ext <<_ACEOF
16815 /* end confdefs.h. */
16816 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16818 #define $ac_func innocuous_$ac_func
16820 /* System header to define __stub macros and hopefully few prototypes,
16821 which can conflict with char $ac_func (); below.
16822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16823 <limits.h> exists even on freestanding compilers. */
16825 #ifdef __STDC__
16826 # include <limits.h>
16827 #else
16828 # include <assert.h>
16829 #endif
16831 #undef $ac_func
16833 /* Override any GCC internal prototype to avoid an error.
16834 Use char because int might match the return type of a GCC
16835 builtin and then its argument prototype would still apply. */
16836 #ifdef __cplusplus
16837 extern "C"
16838 #endif
16839 char $ac_func ();
16840 /* The GNU C library defines this for functions which it implements
16841 to always fail with ENOSYS. Some functions are actually named
16842 something starting with __ and the normal name is an alias. */
16843 #if defined __stub_$ac_func || defined __stub___$ac_func
16844 choke me
16845 #endif
16848 main ()
16850 return $ac_func ();
16852 return 0;
16854 _ACEOF
16855 rm -f conftest.$ac_objext conftest$ac_exeext
16856 if { (ac_try="$ac_link"
16857 case "(($ac_try" in
16858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16859 *) ac_try_echo=$ac_try;;
16860 esac
16861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16862 (eval "$ac_link") 2>conftest.er1
16863 ac_status=$?
16864 grep -v '^ *+' conftest.er1 >conftest.err
16865 rm -f conftest.er1
16866 cat conftest.err >&5
16867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868 (exit $ac_status); } && {
16869 test -z "$ac_c_werror_flag" ||
16870 test ! -s conftest.err
16871 } && test -s conftest$ac_exeext &&
16872 $as_test_x conftest$ac_exeext; then
16873 eval "$as_ac_var=yes"
16874 else
16875 echo "$as_me: failed program was:" >&5
16876 sed 's/^/| /' conftest.$ac_ext >&5
16878 eval "$as_ac_var=no"
16881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16882 conftest$ac_exeext conftest.$ac_ext
16884 ac_res=`eval echo '${'$as_ac_var'}'`
16885 { echo "$as_me:$LINENO: result: $ac_res" >&5
16886 echo "${ECHO_T}$ac_res" >&6; }
16887 if test `eval echo '${'$as_ac_var'}'` = yes; then
16888 cat >>confdefs.h <<_ACEOF
16889 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16890 _ACEOF
16892 else
16893 pgac_need_repl_snprintf=yes
16895 done
16898 for ac_func in vsnprintf
16900 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16901 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16902 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16903 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16904 echo $ECHO_N "(cached) $ECHO_C" >&6
16905 else
16906 cat >conftest.$ac_ext <<_ACEOF
16907 /* confdefs.h. */
16908 _ACEOF
16909 cat confdefs.h >>conftest.$ac_ext
16910 cat >>conftest.$ac_ext <<_ACEOF
16911 /* end confdefs.h. */
16912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16914 #define $ac_func innocuous_$ac_func
16916 /* System header to define __stub macros and hopefully few prototypes,
16917 which can conflict with char $ac_func (); below.
16918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16919 <limits.h> exists even on freestanding compilers. */
16921 #ifdef __STDC__
16922 # include <limits.h>
16923 #else
16924 # include <assert.h>
16925 #endif
16927 #undef $ac_func
16929 /* Override any GCC internal prototype to avoid an error.
16930 Use char because int might match the return type of a GCC
16931 builtin and then its argument prototype would still apply. */
16932 #ifdef __cplusplus
16933 extern "C"
16934 #endif
16935 char $ac_func ();
16936 /* The GNU C library defines this for functions which it implements
16937 to always fail with ENOSYS. Some functions are actually named
16938 something starting with __ and the normal name is an alias. */
16939 #if defined __stub_$ac_func || defined __stub___$ac_func
16940 choke me
16941 #endif
16944 main ()
16946 return $ac_func ();
16948 return 0;
16950 _ACEOF
16951 rm -f conftest.$ac_objext conftest$ac_exeext
16952 if { (ac_try="$ac_link"
16953 case "(($ac_try" in
16954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16955 *) ac_try_echo=$ac_try;;
16956 esac
16957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16958 (eval "$ac_link") 2>conftest.er1
16959 ac_status=$?
16960 grep -v '^ *+' conftest.er1 >conftest.err
16961 rm -f conftest.er1
16962 cat conftest.err >&5
16963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964 (exit $ac_status); } && {
16965 test -z "$ac_c_werror_flag" ||
16966 test ! -s conftest.err
16967 } && test -s conftest$ac_exeext &&
16968 $as_test_x conftest$ac_exeext; then
16969 eval "$as_ac_var=yes"
16970 else
16971 echo "$as_me: failed program was:" >&5
16972 sed 's/^/| /' conftest.$ac_ext >&5
16974 eval "$as_ac_var=no"
16977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16978 conftest$ac_exeext conftest.$ac_ext
16980 ac_res=`eval echo '${'$as_ac_var'}'`
16981 { echo "$as_me:$LINENO: result: $ac_res" >&5
16982 echo "${ECHO_T}$ac_res" >&6; }
16983 if test `eval echo '${'$as_ac_var'}'` = yes; then
16984 cat >>confdefs.h <<_ACEOF
16985 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16986 _ACEOF
16988 else
16989 pgac_need_repl_snprintf=yes
16991 done
16996 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
16997 # include/c.h will provide declarations. Note this is a separate test
16998 # from whether the functions exist in the C library --- there are
16999 # systems that have the functions but don't bother to declare them :-(
17001 { echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
17002 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
17003 if test "${ac_cv_have_decl_snprintf+set}" = set; then
17004 echo $ECHO_N "(cached) $ECHO_C" >&6
17005 else
17006 cat >conftest.$ac_ext <<_ACEOF
17007 /* confdefs.h. */
17008 _ACEOF
17009 cat confdefs.h >>conftest.$ac_ext
17010 cat >>conftest.$ac_ext <<_ACEOF
17011 /* end confdefs.h. */
17012 $ac_includes_default
17014 main ()
17016 #ifndef snprintf
17017 (void) snprintf;
17018 #endif
17021 return 0;
17023 _ACEOF
17024 rm -f conftest.$ac_objext
17025 if { (ac_try="$ac_compile"
17026 case "(($ac_try" in
17027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17028 *) ac_try_echo=$ac_try;;
17029 esac
17030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17031 (eval "$ac_compile") 2>conftest.er1
17032 ac_status=$?
17033 grep -v '^ *+' conftest.er1 >conftest.err
17034 rm -f conftest.er1
17035 cat conftest.err >&5
17036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037 (exit $ac_status); } && {
17038 test -z "$ac_c_werror_flag" ||
17039 test ! -s conftest.err
17040 } && test -s conftest.$ac_objext; then
17041 ac_cv_have_decl_snprintf=yes
17042 else
17043 echo "$as_me: failed program was:" >&5
17044 sed 's/^/| /' conftest.$ac_ext >&5
17046 ac_cv_have_decl_snprintf=no
17049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17051 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
17052 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
17053 if test $ac_cv_have_decl_snprintf = yes; then
17055 cat >>confdefs.h <<_ACEOF
17056 #define HAVE_DECL_SNPRINTF 1
17057 _ACEOF
17060 else
17061 cat >>confdefs.h <<_ACEOF
17062 #define HAVE_DECL_SNPRINTF 0
17063 _ACEOF
17067 { echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
17068 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
17069 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
17070 echo $ECHO_N "(cached) $ECHO_C" >&6
17071 else
17072 cat >conftest.$ac_ext <<_ACEOF
17073 /* confdefs.h. */
17074 _ACEOF
17075 cat confdefs.h >>conftest.$ac_ext
17076 cat >>conftest.$ac_ext <<_ACEOF
17077 /* end confdefs.h. */
17078 $ac_includes_default
17080 main ()
17082 #ifndef vsnprintf
17083 (void) vsnprintf;
17084 #endif
17087 return 0;
17089 _ACEOF
17090 rm -f conftest.$ac_objext
17091 if { (ac_try="$ac_compile"
17092 case "(($ac_try" in
17093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17094 *) ac_try_echo=$ac_try;;
17095 esac
17096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17097 (eval "$ac_compile") 2>conftest.er1
17098 ac_status=$?
17099 grep -v '^ *+' conftest.er1 >conftest.err
17100 rm -f conftest.er1
17101 cat conftest.err >&5
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); } && {
17104 test -z "$ac_c_werror_flag" ||
17105 test ! -s conftest.err
17106 } && test -s conftest.$ac_objext; then
17107 ac_cv_have_decl_vsnprintf=yes
17108 else
17109 echo "$as_me: failed program was:" >&5
17110 sed 's/^/| /' conftest.$ac_ext >&5
17112 ac_cv_have_decl_vsnprintf=no
17115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17117 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
17118 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
17119 if test $ac_cv_have_decl_vsnprintf = yes; then
17121 cat >>confdefs.h <<_ACEOF
17122 #define HAVE_DECL_VSNPRINTF 1
17123 _ACEOF
17126 else
17127 cat >>confdefs.h <<_ACEOF
17128 #define HAVE_DECL_VSNPRINTF 0
17129 _ACEOF
17137 { echo "$as_me:$LINENO: checking for isinf" >&5
17138 echo $ECHO_N "checking for isinf... $ECHO_C" >&6; }
17139 if test "${ac_cv_func_isinf+set}" = set; then
17140 echo $ECHO_N "(cached) $ECHO_C" >&6
17141 else
17142 cat >conftest.$ac_ext <<_ACEOF
17143 /* confdefs.h. */
17144 _ACEOF
17145 cat confdefs.h >>conftest.$ac_ext
17146 cat >>conftest.$ac_ext <<_ACEOF
17147 /* end confdefs.h. */
17149 #include <math.h>
17150 double glob_double;
17153 main ()
17155 return isinf(glob_double) ? 0 : 1;
17157 return 0;
17159 _ACEOF
17160 rm -f conftest.$ac_objext conftest$ac_exeext
17161 if { (ac_try="$ac_link"
17162 case "(($ac_try" in
17163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17164 *) ac_try_echo=$ac_try;;
17165 esac
17166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17167 (eval "$ac_link") 2>conftest.er1
17168 ac_status=$?
17169 grep -v '^ *+' conftest.er1 >conftest.err
17170 rm -f conftest.er1
17171 cat conftest.err >&5
17172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173 (exit $ac_status); } && {
17174 test -z "$ac_c_werror_flag" ||
17175 test ! -s conftest.err
17176 } && test -s conftest$ac_exeext &&
17177 $as_test_x conftest$ac_exeext; then
17178 ac_cv_func_isinf=yes
17179 else
17180 echo "$as_me: failed program was:" >&5
17181 sed 's/^/| /' conftest.$ac_ext >&5
17183 ac_cv_func_isinf=no
17186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17187 conftest$ac_exeext conftest.$ac_ext
17189 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
17190 echo "${ECHO_T}$ac_cv_func_isinf" >&6; }
17192 if test $ac_cv_func_isinf = yes ; then
17194 cat >>confdefs.h <<\_ACEOF
17195 #define HAVE_ISINF 1
17196 _ACEOF
17198 else
17199 case " $LIBOBJS " in
17200 *" isinf.$ac_objext "* ) ;;
17201 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
17203 esac
17205 # Look for a way to implement a substitute for isinf()
17210 for ac_func in fpclass fp_class fp_class_d class
17212 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17213 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17214 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17215 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17216 echo $ECHO_N "(cached) $ECHO_C" >&6
17217 else
17218 cat >conftest.$ac_ext <<_ACEOF
17219 /* confdefs.h. */
17220 _ACEOF
17221 cat confdefs.h >>conftest.$ac_ext
17222 cat >>conftest.$ac_ext <<_ACEOF
17223 /* end confdefs.h. */
17224 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17226 #define $ac_func innocuous_$ac_func
17228 /* System header to define __stub macros and hopefully few prototypes,
17229 which can conflict with char $ac_func (); below.
17230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17231 <limits.h> exists even on freestanding compilers. */
17233 #ifdef __STDC__
17234 # include <limits.h>
17235 #else
17236 # include <assert.h>
17237 #endif
17239 #undef $ac_func
17241 /* Override any GCC internal prototype to avoid an error.
17242 Use char because int might match the return type of a GCC
17243 builtin and then its argument prototype would still apply. */
17244 #ifdef __cplusplus
17245 extern "C"
17246 #endif
17247 char $ac_func ();
17248 /* The GNU C library defines this for functions which it implements
17249 to always fail with ENOSYS. Some functions are actually named
17250 something starting with __ and the normal name is an alias. */
17251 #if defined __stub_$ac_func || defined __stub___$ac_func
17252 choke me
17253 #endif
17256 main ()
17258 return $ac_func ();
17260 return 0;
17262 _ACEOF
17263 rm -f conftest.$ac_objext conftest$ac_exeext
17264 if { (ac_try="$ac_link"
17265 case "(($ac_try" in
17266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17267 *) ac_try_echo=$ac_try;;
17268 esac
17269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17270 (eval "$ac_link") 2>conftest.er1
17271 ac_status=$?
17272 grep -v '^ *+' conftest.er1 >conftest.err
17273 rm -f conftest.er1
17274 cat conftest.err >&5
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); } && {
17277 test -z "$ac_c_werror_flag" ||
17278 test ! -s conftest.err
17279 } && test -s conftest$ac_exeext &&
17280 $as_test_x conftest$ac_exeext; then
17281 eval "$as_ac_var=yes"
17282 else
17283 echo "$as_me: failed program was:" >&5
17284 sed 's/^/| /' conftest.$ac_ext >&5
17286 eval "$as_ac_var=no"
17289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17290 conftest$ac_exeext conftest.$ac_ext
17292 ac_res=`eval echo '${'$as_ac_var'}'`
17293 { echo "$as_me:$LINENO: result: $ac_res" >&5
17294 echo "${ECHO_T}$ac_res" >&6; }
17295 if test `eval echo '${'$as_ac_var'}'` = yes; then
17296 cat >>confdefs.h <<_ACEOF
17297 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17298 _ACEOF
17299 break
17301 done
17305 # Some versions of libedit contain strlcpy(); so disregard that library while
17306 # checking for these standard libc functions.
17307 pgac_save_LIBS="$LIBS"
17308 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
17324 for ac_func in crypt getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul unsetenv
17326 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17327 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17328 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17329 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17330 echo $ECHO_N "(cached) $ECHO_C" >&6
17331 else
17332 cat >conftest.$ac_ext <<_ACEOF
17333 /* confdefs.h. */
17334 _ACEOF
17335 cat confdefs.h >>conftest.$ac_ext
17336 cat >>conftest.$ac_ext <<_ACEOF
17337 /* end confdefs.h. */
17338 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17339 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17340 #define $ac_func innocuous_$ac_func
17342 /* System header to define __stub macros and hopefully few prototypes,
17343 which can conflict with char $ac_func (); below.
17344 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17345 <limits.h> exists even on freestanding compilers. */
17347 #ifdef __STDC__
17348 # include <limits.h>
17349 #else
17350 # include <assert.h>
17351 #endif
17353 #undef $ac_func
17355 /* Override any GCC internal prototype to avoid an error.
17356 Use char because int might match the return type of a GCC
17357 builtin and then its argument prototype would still apply. */
17358 #ifdef __cplusplus
17359 extern "C"
17360 #endif
17361 char $ac_func ();
17362 /* The GNU C library defines this for functions which it implements
17363 to always fail with ENOSYS. Some functions are actually named
17364 something starting with __ and the normal name is an alias. */
17365 #if defined __stub_$ac_func || defined __stub___$ac_func
17366 choke me
17367 #endif
17370 main ()
17372 return $ac_func ();
17374 return 0;
17376 _ACEOF
17377 rm -f conftest.$ac_objext conftest$ac_exeext
17378 if { (ac_try="$ac_link"
17379 case "(($ac_try" in
17380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17381 *) ac_try_echo=$ac_try;;
17382 esac
17383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17384 (eval "$ac_link") 2>conftest.er1
17385 ac_status=$?
17386 grep -v '^ *+' conftest.er1 >conftest.err
17387 rm -f conftest.er1
17388 cat conftest.err >&5
17389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390 (exit $ac_status); } && {
17391 test -z "$ac_c_werror_flag" ||
17392 test ! -s conftest.err
17393 } && test -s conftest$ac_exeext &&
17394 $as_test_x conftest$ac_exeext; then
17395 eval "$as_ac_var=yes"
17396 else
17397 echo "$as_me: failed program was:" >&5
17398 sed 's/^/| /' conftest.$ac_ext >&5
17400 eval "$as_ac_var=no"
17403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17404 conftest$ac_exeext conftest.$ac_ext
17406 ac_res=`eval echo '${'$as_ac_var'}'`
17407 { echo "$as_me:$LINENO: result: $ac_res" >&5
17408 echo "${ECHO_T}$ac_res" >&6; }
17409 if test `eval echo '${'$as_ac_var'}'` = yes; then
17410 cat >>confdefs.h <<_ACEOF
17411 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17412 _ACEOF
17414 else
17415 case " $LIBOBJS " in
17416 *" $ac_func.$ac_objext "* ) ;;
17417 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17419 esac
17422 done
17426 LIBS="$pgac_save_LIBS"
17428 # System's version of getaddrinfo(), if any, may be used only if we found
17429 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
17430 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
17431 # versions of getaddrinfo don't follow normal C call protocol. This is OK
17432 # because we want to use our own getaddrinfo.c on Windows anyway.)
17433 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
17435 for ac_func in getaddrinfo
17437 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17438 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17439 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17440 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17441 echo $ECHO_N "(cached) $ECHO_C" >&6
17442 else
17443 cat >conftest.$ac_ext <<_ACEOF
17444 /* confdefs.h. */
17445 _ACEOF
17446 cat confdefs.h >>conftest.$ac_ext
17447 cat >>conftest.$ac_ext <<_ACEOF
17448 /* end confdefs.h. */
17449 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17451 #define $ac_func innocuous_$ac_func
17453 /* System header to define __stub macros and hopefully few prototypes,
17454 which can conflict with char $ac_func (); below.
17455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17456 <limits.h> exists even on freestanding compilers. */
17458 #ifdef __STDC__
17459 # include <limits.h>
17460 #else
17461 # include <assert.h>
17462 #endif
17464 #undef $ac_func
17466 /* Override any GCC internal prototype to avoid an error.
17467 Use char because int might match the return type of a GCC
17468 builtin and then its argument prototype would still apply. */
17469 #ifdef __cplusplus
17470 extern "C"
17471 #endif
17472 char $ac_func ();
17473 /* The GNU C library defines this for functions which it implements
17474 to always fail with ENOSYS. Some functions are actually named
17475 something starting with __ and the normal name is an alias. */
17476 #if defined __stub_$ac_func || defined __stub___$ac_func
17477 choke me
17478 #endif
17481 main ()
17483 return $ac_func ();
17485 return 0;
17487 _ACEOF
17488 rm -f conftest.$ac_objext conftest$ac_exeext
17489 if { (ac_try="$ac_link"
17490 case "(($ac_try" in
17491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17492 *) ac_try_echo=$ac_try;;
17493 esac
17494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17495 (eval "$ac_link") 2>conftest.er1
17496 ac_status=$?
17497 grep -v '^ *+' conftest.er1 >conftest.err
17498 rm -f conftest.er1
17499 cat conftest.err >&5
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); } && {
17502 test -z "$ac_c_werror_flag" ||
17503 test ! -s conftest.err
17504 } && test -s conftest$ac_exeext &&
17505 $as_test_x conftest$ac_exeext; then
17506 eval "$as_ac_var=yes"
17507 else
17508 echo "$as_me: failed program was:" >&5
17509 sed 's/^/| /' conftest.$ac_ext >&5
17511 eval "$as_ac_var=no"
17514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17515 conftest$ac_exeext conftest.$ac_ext
17517 ac_res=`eval echo '${'$as_ac_var'}'`
17518 { echo "$as_me:$LINENO: result: $ac_res" >&5
17519 echo "${ECHO_T}$ac_res" >&6; }
17520 if test `eval echo '${'$as_ac_var'}'` = yes; then
17521 cat >>confdefs.h <<_ACEOF
17522 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17523 _ACEOF
17525 else
17526 case " $LIBOBJS " in
17527 *" $ac_func.$ac_objext "* ) ;;
17528 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17530 esac
17533 done
17536 else
17537 case " $LIBOBJS " in
17538 *" getaddrinfo.$ac_objext "* ) ;;
17539 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
17541 esac
17545 # Similarly, use system's getopt_long() only if system provides struct option.
17546 # Solaris' getopt() doesn't do what we want for long options, so always use
17547 # our versions on that platform.
17548 if test "$PORTNAME" = "solaris"; then
17549 case " $LIBOBJS " in
17550 *" getopt.$ac_objext "* ) ;;
17551 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
17553 esac
17555 case " $LIBOBJS " in
17556 *" getopt_long.$ac_objext "* ) ;;
17557 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
17559 esac
17561 elif test x"$ac_cv_type_struct_option" = xyes ; then
17563 for ac_func in getopt_long
17565 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17566 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17567 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17568 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17569 echo $ECHO_N "(cached) $ECHO_C" >&6
17570 else
17571 cat >conftest.$ac_ext <<_ACEOF
17572 /* confdefs.h. */
17573 _ACEOF
17574 cat confdefs.h >>conftest.$ac_ext
17575 cat >>conftest.$ac_ext <<_ACEOF
17576 /* end confdefs.h. */
17577 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17579 #define $ac_func innocuous_$ac_func
17581 /* System header to define __stub macros and hopefully few prototypes,
17582 which can conflict with char $ac_func (); below.
17583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17584 <limits.h> exists even on freestanding compilers. */
17586 #ifdef __STDC__
17587 # include <limits.h>
17588 #else
17589 # include <assert.h>
17590 #endif
17592 #undef $ac_func
17594 /* Override any GCC internal prototype to avoid an error.
17595 Use char because int might match the return type of a GCC
17596 builtin and then its argument prototype would still apply. */
17597 #ifdef __cplusplus
17598 extern "C"
17599 #endif
17600 char $ac_func ();
17601 /* The GNU C library defines this for functions which it implements
17602 to always fail with ENOSYS. Some functions are actually named
17603 something starting with __ and the normal name is an alias. */
17604 #if defined __stub_$ac_func || defined __stub___$ac_func
17605 choke me
17606 #endif
17609 main ()
17611 return $ac_func ();
17613 return 0;
17615 _ACEOF
17616 rm -f conftest.$ac_objext conftest$ac_exeext
17617 if { (ac_try="$ac_link"
17618 case "(($ac_try" in
17619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17620 *) ac_try_echo=$ac_try;;
17621 esac
17622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17623 (eval "$ac_link") 2>conftest.er1
17624 ac_status=$?
17625 grep -v '^ *+' conftest.er1 >conftest.err
17626 rm -f conftest.er1
17627 cat conftest.err >&5
17628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17629 (exit $ac_status); } && {
17630 test -z "$ac_c_werror_flag" ||
17631 test ! -s conftest.err
17632 } && test -s conftest$ac_exeext &&
17633 $as_test_x conftest$ac_exeext; then
17634 eval "$as_ac_var=yes"
17635 else
17636 echo "$as_me: failed program was:" >&5
17637 sed 's/^/| /' conftest.$ac_ext >&5
17639 eval "$as_ac_var=no"
17642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17643 conftest$ac_exeext conftest.$ac_ext
17645 ac_res=`eval echo '${'$as_ac_var'}'`
17646 { echo "$as_me:$LINENO: result: $ac_res" >&5
17647 echo "${ECHO_T}$ac_res" >&6; }
17648 if test `eval echo '${'$as_ac_var'}'` = yes; then
17649 cat >>confdefs.h <<_ACEOF
17650 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17651 _ACEOF
17653 else
17654 case " $LIBOBJS " in
17655 *" $ac_func.$ac_objext "* ) ;;
17656 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17658 esac
17661 done
17664 else
17665 case " $LIBOBJS " in
17666 *" getopt_long.$ac_objext "* ) ;;
17667 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
17669 esac
17673 # Win32 support
17674 if test "$PORTNAME" = "win32"; then
17676 for ac_func in gettimeofday
17678 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17679 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17680 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17681 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17682 echo $ECHO_N "(cached) $ECHO_C" >&6
17683 else
17684 cat >conftest.$ac_ext <<_ACEOF
17685 /* confdefs.h. */
17686 _ACEOF
17687 cat confdefs.h >>conftest.$ac_ext
17688 cat >>conftest.$ac_ext <<_ACEOF
17689 /* end confdefs.h. */
17690 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17692 #define $ac_func innocuous_$ac_func
17694 /* System header to define __stub macros and hopefully few prototypes,
17695 which can conflict with char $ac_func (); below.
17696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17697 <limits.h> exists even on freestanding compilers. */
17699 #ifdef __STDC__
17700 # include <limits.h>
17701 #else
17702 # include <assert.h>
17703 #endif
17705 #undef $ac_func
17707 /* Override any GCC internal prototype to avoid an error.
17708 Use char because int might match the return type of a GCC
17709 builtin and then its argument prototype would still apply. */
17710 #ifdef __cplusplus
17711 extern "C"
17712 #endif
17713 char $ac_func ();
17714 /* The GNU C library defines this for functions which it implements
17715 to always fail with ENOSYS. Some functions are actually named
17716 something starting with __ and the normal name is an alias. */
17717 #if defined __stub_$ac_func || defined __stub___$ac_func
17718 choke me
17719 #endif
17722 main ()
17724 return $ac_func ();
17726 return 0;
17728 _ACEOF
17729 rm -f conftest.$ac_objext conftest$ac_exeext
17730 if { (ac_try="$ac_link"
17731 case "(($ac_try" in
17732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17733 *) ac_try_echo=$ac_try;;
17734 esac
17735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17736 (eval "$ac_link") 2>conftest.er1
17737 ac_status=$?
17738 grep -v '^ *+' conftest.er1 >conftest.err
17739 rm -f conftest.er1
17740 cat conftest.err >&5
17741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742 (exit $ac_status); } && {
17743 test -z "$ac_c_werror_flag" ||
17744 test ! -s conftest.err
17745 } && test -s conftest$ac_exeext &&
17746 $as_test_x conftest$ac_exeext; then
17747 eval "$as_ac_var=yes"
17748 else
17749 echo "$as_me: failed program was:" >&5
17750 sed 's/^/| /' conftest.$ac_ext >&5
17752 eval "$as_ac_var=no"
17755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17756 conftest$ac_exeext conftest.$ac_ext
17758 ac_res=`eval echo '${'$as_ac_var'}'`
17759 { echo "$as_me:$LINENO: result: $ac_res" >&5
17760 echo "${ECHO_T}$ac_res" >&6; }
17761 if test `eval echo '${'$as_ac_var'}'` = yes; then
17762 cat >>confdefs.h <<_ACEOF
17763 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17764 _ACEOF
17766 else
17767 case " $LIBOBJS " in
17768 *" $ac_func.$ac_objext "* ) ;;
17769 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17771 esac
17774 done
17777 case " $LIBOBJS " in
17778 *" kill.$ac_objext "* ) ;;
17779 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
17781 esac
17783 case " $LIBOBJS " in
17784 *" open.$ac_objext "* ) ;;
17785 *) LIBOBJS="$LIBOBJS open.$ac_objext"
17787 esac
17789 case " $LIBOBJS " in
17790 *" rand.$ac_objext "* ) ;;
17791 *) LIBOBJS="$LIBOBJS rand.$ac_objext"
17793 esac
17795 case " $LIBOBJS " in
17796 *" win32error.$ac_objext "* ) ;;
17797 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
17799 esac
17802 cat >>confdefs.h <<\_ACEOF
17803 #define HAVE_SYMLINK 1
17804 _ACEOF
17808 if test "$with_readline" = yes; then
17809 { echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
17810 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6; }
17811 cat >conftest.$ac_ext <<_ACEOF
17812 /* confdefs.h. */
17813 _ACEOF
17814 cat confdefs.h >>conftest.$ac_ext
17815 cat >>conftest.$ac_ext <<_ACEOF
17816 /* end confdefs.h. */
17817 #include <stdio.h>
17818 #ifdef HAVE_READLINE_READLINE_H
17819 # include <readline/readline.h>
17820 #elif defined(HAVE_READLINE_H)
17821 # include <readline.h>
17822 #endif
17825 main ()
17827 rl_completion_append_character = 'x';
17829 return 0;
17831 _ACEOF
17832 rm -f conftest.$ac_objext conftest$ac_exeext
17833 if { (ac_try="$ac_link"
17834 case "(($ac_try" in
17835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17836 *) ac_try_echo=$ac_try;;
17837 esac
17838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17839 (eval "$ac_link") 2>conftest.er1
17840 ac_status=$?
17841 grep -v '^ *+' conftest.er1 >conftest.err
17842 rm -f conftest.er1
17843 cat conftest.err >&5
17844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845 (exit $ac_status); } && {
17846 test -z "$ac_c_werror_flag" ||
17847 test ! -s conftest.err
17848 } && test -s conftest$ac_exeext &&
17849 $as_test_x conftest$ac_exeext; then
17850 { echo "$as_me:$LINENO: result: yes" >&5
17851 echo "${ECHO_T}yes" >&6; }
17853 cat >>confdefs.h <<\_ACEOF
17854 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
17855 _ACEOF
17857 else
17858 echo "$as_me: failed program was:" >&5
17859 sed 's/^/| /' conftest.$ac_ext >&5
17861 { echo "$as_me:$LINENO: result: no" >&5
17862 echo "${ECHO_T}no" >&6; }
17865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17866 conftest$ac_exeext conftest.$ac_ext
17869 for ac_func in rl_completion_matches rl_filename_completion_function
17871 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17872 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17873 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17874 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17875 echo $ECHO_N "(cached) $ECHO_C" >&6
17876 else
17877 cat >conftest.$ac_ext <<_ACEOF
17878 /* confdefs.h. */
17879 _ACEOF
17880 cat confdefs.h >>conftest.$ac_ext
17881 cat >>conftest.$ac_ext <<_ACEOF
17882 /* end confdefs.h. */
17883 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17885 #define $ac_func innocuous_$ac_func
17887 /* System header to define __stub macros and hopefully few prototypes,
17888 which can conflict with char $ac_func (); below.
17889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17890 <limits.h> exists even on freestanding compilers. */
17892 #ifdef __STDC__
17893 # include <limits.h>
17894 #else
17895 # include <assert.h>
17896 #endif
17898 #undef $ac_func
17900 /* Override any GCC internal prototype to avoid an error.
17901 Use char because int might match the return type of a GCC
17902 builtin and then its argument prototype would still apply. */
17903 #ifdef __cplusplus
17904 extern "C"
17905 #endif
17906 char $ac_func ();
17907 /* The GNU C library defines this for functions which it implements
17908 to always fail with ENOSYS. Some functions are actually named
17909 something starting with __ and the normal name is an alias. */
17910 #if defined __stub_$ac_func || defined __stub___$ac_func
17911 choke me
17912 #endif
17915 main ()
17917 return $ac_func ();
17919 return 0;
17921 _ACEOF
17922 rm -f conftest.$ac_objext conftest$ac_exeext
17923 if { (ac_try="$ac_link"
17924 case "(($ac_try" in
17925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17926 *) ac_try_echo=$ac_try;;
17927 esac
17928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17929 (eval "$ac_link") 2>conftest.er1
17930 ac_status=$?
17931 grep -v '^ *+' conftest.er1 >conftest.err
17932 rm -f conftest.er1
17933 cat conftest.err >&5
17934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); } && {
17936 test -z "$ac_c_werror_flag" ||
17937 test ! -s conftest.err
17938 } && test -s conftest$ac_exeext &&
17939 $as_test_x conftest$ac_exeext; then
17940 eval "$as_ac_var=yes"
17941 else
17942 echo "$as_me: failed program was:" >&5
17943 sed 's/^/| /' conftest.$ac_ext >&5
17945 eval "$as_ac_var=no"
17948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17949 conftest$ac_exeext conftest.$ac_ext
17951 ac_res=`eval echo '${'$as_ac_var'}'`
17952 { echo "$as_me:$LINENO: result: $ac_res" >&5
17953 echo "${ECHO_T}$ac_res" >&6; }
17954 if test `eval echo '${'$as_ac_var'}'` = yes; then
17955 cat >>confdefs.h <<_ACEOF
17956 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17957 _ACEOF
17960 done
17963 for ac_func in replace_history_entry
17965 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17966 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17967 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17968 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17969 echo $ECHO_N "(cached) $ECHO_C" >&6
17970 else
17971 cat >conftest.$ac_ext <<_ACEOF
17972 /* confdefs.h. */
17973 _ACEOF
17974 cat confdefs.h >>conftest.$ac_ext
17975 cat >>conftest.$ac_ext <<_ACEOF
17976 /* end confdefs.h. */
17977 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17979 #define $ac_func innocuous_$ac_func
17981 /* System header to define __stub macros and hopefully few prototypes,
17982 which can conflict with char $ac_func (); below.
17983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17984 <limits.h> exists even on freestanding compilers. */
17986 #ifdef __STDC__
17987 # include <limits.h>
17988 #else
17989 # include <assert.h>
17990 #endif
17992 #undef $ac_func
17994 /* Override any GCC internal prototype to avoid an error.
17995 Use char because int might match the return type of a GCC
17996 builtin and then its argument prototype would still apply. */
17997 #ifdef __cplusplus
17998 extern "C"
17999 #endif
18000 char $ac_func ();
18001 /* The GNU C library defines this for functions which it implements
18002 to always fail with ENOSYS. Some functions are actually named
18003 something starting with __ and the normal name is an alias. */
18004 #if defined __stub_$ac_func || defined __stub___$ac_func
18005 choke me
18006 #endif
18009 main ()
18011 return $ac_func ();
18013 return 0;
18015 _ACEOF
18016 rm -f conftest.$ac_objext conftest$ac_exeext
18017 if { (ac_try="$ac_link"
18018 case "(($ac_try" in
18019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18020 *) ac_try_echo=$ac_try;;
18021 esac
18022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18023 (eval "$ac_link") 2>conftest.er1
18024 ac_status=$?
18025 grep -v '^ *+' conftest.er1 >conftest.err
18026 rm -f conftest.er1
18027 cat conftest.err >&5
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); } && {
18030 test -z "$ac_c_werror_flag" ||
18031 test ! -s conftest.err
18032 } && test -s conftest$ac_exeext &&
18033 $as_test_x conftest$ac_exeext; then
18034 eval "$as_ac_var=yes"
18035 else
18036 echo "$as_me: failed program was:" >&5
18037 sed 's/^/| /' conftest.$ac_ext >&5
18039 eval "$as_ac_var=no"
18042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18043 conftest$ac_exeext conftest.$ac_ext
18045 ac_res=`eval echo '${'$as_ac_var'}'`
18046 { echo "$as_me:$LINENO: result: $ac_res" >&5
18047 echo "${ECHO_T}$ac_res" >&6; }
18048 if test `eval echo '${'$as_ac_var'}'` = yes; then
18049 cat >>confdefs.h <<_ACEOF
18050 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18051 _ACEOF
18054 done
18059 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
18060 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
18061 cat >conftest.$ac_ext <<_ACEOF
18062 /* confdefs.h. */
18063 _ACEOF
18064 cat confdefs.h >>conftest.$ac_ext
18065 cat >>conftest.$ac_ext <<_ACEOF
18066 /* end confdefs.h. */
18067 #include <setjmp.h>
18069 main ()
18071 sigjmp_buf x; sigsetjmp(x, 1);
18073 return 0;
18075 _ACEOF
18076 rm -f conftest.$ac_objext conftest$ac_exeext
18077 if { (ac_try="$ac_link"
18078 case "(($ac_try" in
18079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18080 *) ac_try_echo=$ac_try;;
18081 esac
18082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18083 (eval "$ac_link") 2>conftest.er1
18084 ac_status=$?
18085 grep -v '^ *+' conftest.er1 >conftest.err
18086 rm -f conftest.er1
18087 cat conftest.err >&5
18088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089 (exit $ac_status); } && {
18090 test -z "$ac_c_werror_flag" ||
18091 test ! -s conftest.err
18092 } && test -s conftest$ac_exeext &&
18093 $as_test_x conftest$ac_exeext; then
18095 cat >>confdefs.h <<\_ACEOF
18096 #define HAVE_SIGSETJMP 1
18097 _ACEOF
18099 { echo "$as_me:$LINENO: result: yes" >&5
18100 echo "${ECHO_T}yes" >&6; }
18101 else
18102 echo "$as_me: failed program was:" >&5
18103 sed 's/^/| /' conftest.$ac_ext >&5
18105 { echo "$as_me:$LINENO: result: no" >&5
18106 echo "${ECHO_T}no" >&6; }
18109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18110 conftest$ac_exeext conftest.$ac_ext
18112 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
18113 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
18114 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
18115 echo $ECHO_N "(cached) $ECHO_C" >&6
18116 else
18117 cat >conftest.$ac_ext <<_ACEOF
18118 /* confdefs.h. */
18119 _ACEOF
18120 cat confdefs.h >>conftest.$ac_ext
18121 cat >>conftest.$ac_ext <<_ACEOF
18122 /* end confdefs.h. */
18123 #include <signal.h>
18124 /* NetBSD declares sys_siglist in unistd.h. */
18125 #ifdef HAVE_UNISTD_H
18126 # include <unistd.h>
18127 #endif
18131 main ()
18133 #ifndef sys_siglist
18134 (void) sys_siglist;
18135 #endif
18138 return 0;
18140 _ACEOF
18141 rm -f conftest.$ac_objext
18142 if { (ac_try="$ac_compile"
18143 case "(($ac_try" in
18144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18145 *) ac_try_echo=$ac_try;;
18146 esac
18147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18148 (eval "$ac_compile") 2>conftest.er1
18149 ac_status=$?
18150 grep -v '^ *+' conftest.er1 >conftest.err
18151 rm -f conftest.er1
18152 cat conftest.err >&5
18153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154 (exit $ac_status); } && {
18155 test -z "$ac_c_werror_flag" ||
18156 test ! -s conftest.err
18157 } && test -s conftest.$ac_objext; then
18158 ac_cv_have_decl_sys_siglist=yes
18159 else
18160 echo "$as_me: failed program was:" >&5
18161 sed 's/^/| /' conftest.$ac_ext >&5
18163 ac_cv_have_decl_sys_siglist=no
18166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18168 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
18169 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
18170 if test $ac_cv_have_decl_sys_siglist = yes; then
18172 cat >>confdefs.h <<_ACEOF
18173 #define HAVE_DECL_SYS_SIGLIST 1
18174 _ACEOF
18177 else
18178 cat >>confdefs.h <<_ACEOF
18179 #define HAVE_DECL_SYS_SIGLIST 0
18180 _ACEOF
18188 { echo "$as_me:$LINENO: checking for syslog" >&5
18189 echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
18190 if test "${ac_cv_func_syslog+set}" = set; then
18191 echo $ECHO_N "(cached) $ECHO_C" >&6
18192 else
18193 cat >conftest.$ac_ext <<_ACEOF
18194 /* confdefs.h. */
18195 _ACEOF
18196 cat confdefs.h >>conftest.$ac_ext
18197 cat >>conftest.$ac_ext <<_ACEOF
18198 /* end confdefs.h. */
18199 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
18200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18201 #define syslog innocuous_syslog
18203 /* System header to define __stub macros and hopefully few prototypes,
18204 which can conflict with char syslog (); below.
18205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18206 <limits.h> exists even on freestanding compilers. */
18208 #ifdef __STDC__
18209 # include <limits.h>
18210 #else
18211 # include <assert.h>
18212 #endif
18214 #undef syslog
18216 /* Override any GCC internal prototype to avoid an error.
18217 Use char because int might match the return type of a GCC
18218 builtin and then its argument prototype would still apply. */
18219 #ifdef __cplusplus
18220 extern "C"
18221 #endif
18222 char syslog ();
18223 /* The GNU C library defines this for functions which it implements
18224 to always fail with ENOSYS. Some functions are actually named
18225 something starting with __ and the normal name is an alias. */
18226 #if defined __stub_syslog || defined __stub___syslog
18227 choke me
18228 #endif
18231 main ()
18233 return syslog ();
18235 return 0;
18237 _ACEOF
18238 rm -f conftest.$ac_objext conftest$ac_exeext
18239 if { (ac_try="$ac_link"
18240 case "(($ac_try" in
18241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18242 *) ac_try_echo=$ac_try;;
18243 esac
18244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18245 (eval "$ac_link") 2>conftest.er1
18246 ac_status=$?
18247 grep -v '^ *+' conftest.er1 >conftest.err
18248 rm -f conftest.er1
18249 cat conftest.err >&5
18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); } && {
18252 test -z "$ac_c_werror_flag" ||
18253 test ! -s conftest.err
18254 } && test -s conftest$ac_exeext &&
18255 $as_test_x conftest$ac_exeext; then
18256 ac_cv_func_syslog=yes
18257 else
18258 echo "$as_me: failed program was:" >&5
18259 sed 's/^/| /' conftest.$ac_ext >&5
18261 ac_cv_func_syslog=no
18264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18265 conftest$ac_exeext conftest.$ac_ext
18267 { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
18268 echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
18269 if test $ac_cv_func_syslog = yes; then
18270 if test "${ac_cv_header_syslog_h+set}" = set; then
18271 { echo "$as_me:$LINENO: checking for syslog.h" >&5
18272 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
18273 if test "${ac_cv_header_syslog_h+set}" = set; then
18274 echo $ECHO_N "(cached) $ECHO_C" >&6
18276 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
18277 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
18278 else
18279 # Is the header compilable?
18280 { echo "$as_me:$LINENO: checking syslog.h usability" >&5
18281 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6; }
18282 cat >conftest.$ac_ext <<_ACEOF
18283 /* confdefs.h. */
18284 _ACEOF
18285 cat confdefs.h >>conftest.$ac_ext
18286 cat >>conftest.$ac_ext <<_ACEOF
18287 /* end confdefs.h. */
18288 $ac_includes_default
18289 #include <syslog.h>
18290 _ACEOF
18291 rm -f conftest.$ac_objext
18292 if { (ac_try="$ac_compile"
18293 case "(($ac_try" in
18294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18295 *) ac_try_echo=$ac_try;;
18296 esac
18297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18298 (eval "$ac_compile") 2>conftest.er1
18299 ac_status=$?
18300 grep -v '^ *+' conftest.er1 >conftest.err
18301 rm -f conftest.er1
18302 cat conftest.err >&5
18303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18304 (exit $ac_status); } && {
18305 test -z "$ac_c_werror_flag" ||
18306 test ! -s conftest.err
18307 } && test -s conftest.$ac_objext; then
18308 ac_header_compiler=yes
18309 else
18310 echo "$as_me: failed program was:" >&5
18311 sed 's/^/| /' conftest.$ac_ext >&5
18313 ac_header_compiler=no
18316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18317 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18318 echo "${ECHO_T}$ac_header_compiler" >&6; }
18320 # Is the header present?
18321 { echo "$as_me:$LINENO: checking syslog.h presence" >&5
18322 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6; }
18323 cat >conftest.$ac_ext <<_ACEOF
18324 /* confdefs.h. */
18325 _ACEOF
18326 cat confdefs.h >>conftest.$ac_ext
18327 cat >>conftest.$ac_ext <<_ACEOF
18328 /* end confdefs.h. */
18329 #include <syslog.h>
18330 _ACEOF
18331 if { (ac_try="$ac_cpp conftest.$ac_ext"
18332 case "(($ac_try" in
18333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18334 *) ac_try_echo=$ac_try;;
18335 esac
18336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18337 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18338 ac_status=$?
18339 grep -v '^ *+' conftest.er1 >conftest.err
18340 rm -f conftest.er1
18341 cat conftest.err >&5
18342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343 (exit $ac_status); } >/dev/null && {
18344 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18345 test ! -s conftest.err
18346 }; then
18347 ac_header_preproc=yes
18348 else
18349 echo "$as_me: failed program was:" >&5
18350 sed 's/^/| /' conftest.$ac_ext >&5
18352 ac_header_preproc=no
18355 rm -f conftest.err conftest.$ac_ext
18356 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18357 echo "${ECHO_T}$ac_header_preproc" >&6; }
18359 # So? What about this header?
18360 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18361 yes:no: )
18362 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
18363 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18364 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
18365 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
18366 ac_header_preproc=yes
18368 no:yes:* )
18369 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
18370 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
18371 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
18372 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
18373 { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
18374 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
18375 { echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
18376 echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
18377 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
18378 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
18379 { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
18380 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
18381 ( cat <<\_ASBOX
18382 ## ---------------------------------------- ##
18383 ## Report this to pgsql-bugs@postgresql.org ##
18384 ## ---------------------------------------- ##
18385 _ASBOX
18386 ) | sed "s/^/$as_me: WARNING: /" >&2
18388 esac
18389 { echo "$as_me:$LINENO: checking for syslog.h" >&5
18390 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
18391 if test "${ac_cv_header_syslog_h+set}" = set; then
18392 echo $ECHO_N "(cached) $ECHO_C" >&6
18393 else
18394 ac_cv_header_syslog_h=$ac_header_preproc
18396 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
18397 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
18400 if test $ac_cv_header_syslog_h = yes; then
18402 cat >>confdefs.h <<\_ACEOF
18403 #define HAVE_SYSLOG 1
18404 _ACEOF
18412 { echo "$as_me:$LINENO: checking for optreset" >&5
18413 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
18414 if test "${pgac_cv_var_int_optreset+set}" = set; then
18415 echo $ECHO_N "(cached) $ECHO_C" >&6
18416 else
18417 cat >conftest.$ac_ext <<_ACEOF
18418 /* confdefs.h. */
18419 _ACEOF
18420 cat confdefs.h >>conftest.$ac_ext
18421 cat >>conftest.$ac_ext <<_ACEOF
18422 /* end confdefs.h. */
18423 #include <unistd.h>
18425 main ()
18427 extern int optreset; optreset = 1;
18429 return 0;
18431 _ACEOF
18432 rm -f conftest.$ac_objext conftest$ac_exeext
18433 if { (ac_try="$ac_link"
18434 case "(($ac_try" in
18435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18436 *) ac_try_echo=$ac_try;;
18437 esac
18438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18439 (eval "$ac_link") 2>conftest.er1
18440 ac_status=$?
18441 grep -v '^ *+' conftest.er1 >conftest.err
18442 rm -f conftest.er1
18443 cat conftest.err >&5
18444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18445 (exit $ac_status); } && {
18446 test -z "$ac_c_werror_flag" ||
18447 test ! -s conftest.err
18448 } && test -s conftest$ac_exeext &&
18449 $as_test_x conftest$ac_exeext; then
18450 pgac_cv_var_int_optreset=yes
18451 else
18452 echo "$as_me: failed program was:" >&5
18453 sed 's/^/| /' conftest.$ac_ext >&5
18455 pgac_cv_var_int_optreset=no
18458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18459 conftest$ac_exeext conftest.$ac_ext
18461 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
18462 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6; }
18463 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
18465 cat >>confdefs.h <<\_ACEOF
18466 #define HAVE_INT_OPTRESET 1
18467 _ACEOF
18473 for ac_func in strtoll strtoq
18475 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18476 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18477 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18478 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18479 echo $ECHO_N "(cached) $ECHO_C" >&6
18480 else
18481 cat >conftest.$ac_ext <<_ACEOF
18482 /* confdefs.h. */
18483 _ACEOF
18484 cat confdefs.h >>conftest.$ac_ext
18485 cat >>conftest.$ac_ext <<_ACEOF
18486 /* end confdefs.h. */
18487 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18488 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18489 #define $ac_func innocuous_$ac_func
18491 /* System header to define __stub macros and hopefully few prototypes,
18492 which can conflict with char $ac_func (); below.
18493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18494 <limits.h> exists even on freestanding compilers. */
18496 #ifdef __STDC__
18497 # include <limits.h>
18498 #else
18499 # include <assert.h>
18500 #endif
18502 #undef $ac_func
18504 /* Override any GCC internal prototype to avoid an error.
18505 Use char because int might match the return type of a GCC
18506 builtin and then its argument prototype would still apply. */
18507 #ifdef __cplusplus
18508 extern "C"
18509 #endif
18510 char $ac_func ();
18511 /* The GNU C library defines this for functions which it implements
18512 to always fail with ENOSYS. Some functions are actually named
18513 something starting with __ and the normal name is an alias. */
18514 #if defined __stub_$ac_func || defined __stub___$ac_func
18515 choke me
18516 #endif
18519 main ()
18521 return $ac_func ();
18523 return 0;
18525 _ACEOF
18526 rm -f conftest.$ac_objext conftest$ac_exeext
18527 if { (ac_try="$ac_link"
18528 case "(($ac_try" in
18529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18530 *) ac_try_echo=$ac_try;;
18531 esac
18532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18533 (eval "$ac_link") 2>conftest.er1
18534 ac_status=$?
18535 grep -v '^ *+' conftest.er1 >conftest.err
18536 rm -f conftest.er1
18537 cat conftest.err >&5
18538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539 (exit $ac_status); } && {
18540 test -z "$ac_c_werror_flag" ||
18541 test ! -s conftest.err
18542 } && test -s conftest$ac_exeext &&
18543 $as_test_x conftest$ac_exeext; then
18544 eval "$as_ac_var=yes"
18545 else
18546 echo "$as_me: failed program was:" >&5
18547 sed 's/^/| /' conftest.$ac_ext >&5
18549 eval "$as_ac_var=no"
18552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18553 conftest$ac_exeext conftest.$ac_ext
18555 ac_res=`eval echo '${'$as_ac_var'}'`
18556 { echo "$as_me:$LINENO: result: $ac_res" >&5
18557 echo "${ECHO_T}$ac_res" >&6; }
18558 if test `eval echo '${'$as_ac_var'}'` = yes; then
18559 cat >>confdefs.h <<_ACEOF
18560 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18561 _ACEOF
18562 break
18564 done
18568 for ac_func in strtoull strtouq
18570 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18571 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18572 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18573 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18574 echo $ECHO_N "(cached) $ECHO_C" >&6
18575 else
18576 cat >conftest.$ac_ext <<_ACEOF
18577 /* confdefs.h. */
18578 _ACEOF
18579 cat confdefs.h >>conftest.$ac_ext
18580 cat >>conftest.$ac_ext <<_ACEOF
18581 /* end confdefs.h. */
18582 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18584 #define $ac_func innocuous_$ac_func
18586 /* System header to define __stub macros and hopefully few prototypes,
18587 which can conflict with char $ac_func (); below.
18588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18589 <limits.h> exists even on freestanding compilers. */
18591 #ifdef __STDC__
18592 # include <limits.h>
18593 #else
18594 # include <assert.h>
18595 #endif
18597 #undef $ac_func
18599 /* Override any GCC internal prototype to avoid an error.
18600 Use char because int might match the return type of a GCC
18601 builtin and then its argument prototype would still apply. */
18602 #ifdef __cplusplus
18603 extern "C"
18604 #endif
18605 char $ac_func ();
18606 /* The GNU C library defines this for functions which it implements
18607 to always fail with ENOSYS. Some functions are actually named
18608 something starting with __ and the normal name is an alias. */
18609 #if defined __stub_$ac_func || defined __stub___$ac_func
18610 choke me
18611 #endif
18614 main ()
18616 return $ac_func ();
18618 return 0;
18620 _ACEOF
18621 rm -f conftest.$ac_objext conftest$ac_exeext
18622 if { (ac_try="$ac_link"
18623 case "(($ac_try" in
18624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18625 *) ac_try_echo=$ac_try;;
18626 esac
18627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18628 (eval "$ac_link") 2>conftest.er1
18629 ac_status=$?
18630 grep -v '^ *+' conftest.er1 >conftest.err
18631 rm -f conftest.er1
18632 cat conftest.err >&5
18633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634 (exit $ac_status); } && {
18635 test -z "$ac_c_werror_flag" ||
18636 test ! -s conftest.err
18637 } && test -s conftest$ac_exeext &&
18638 $as_test_x conftest$ac_exeext; then
18639 eval "$as_ac_var=yes"
18640 else
18641 echo "$as_me: failed program was:" >&5
18642 sed 's/^/| /' conftest.$ac_ext >&5
18644 eval "$as_ac_var=no"
18647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18648 conftest$ac_exeext conftest.$ac_ext
18650 ac_res=`eval echo '${'$as_ac_var'}'`
18651 { echo "$as_me:$LINENO: result: $ac_res" >&5
18652 echo "${ECHO_T}$ac_res" >&6; }
18653 if test `eval echo '${'$as_ac_var'}'` = yes; then
18654 cat >>confdefs.h <<_ACEOF
18655 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18656 _ACEOF
18657 break
18659 done
18662 # Check for one of atexit() or on_exit()
18664 for ac_func in atexit
18666 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18667 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18668 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18669 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18670 echo $ECHO_N "(cached) $ECHO_C" >&6
18671 else
18672 cat >conftest.$ac_ext <<_ACEOF
18673 /* confdefs.h. */
18674 _ACEOF
18675 cat confdefs.h >>conftest.$ac_ext
18676 cat >>conftest.$ac_ext <<_ACEOF
18677 /* end confdefs.h. */
18678 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18680 #define $ac_func innocuous_$ac_func
18682 /* System header to define __stub macros and hopefully few prototypes,
18683 which can conflict with char $ac_func (); below.
18684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18685 <limits.h> exists even on freestanding compilers. */
18687 #ifdef __STDC__
18688 # include <limits.h>
18689 #else
18690 # include <assert.h>
18691 #endif
18693 #undef $ac_func
18695 /* Override any GCC internal prototype to avoid an error.
18696 Use char because int might match the return type of a GCC
18697 builtin and then its argument prototype would still apply. */
18698 #ifdef __cplusplus
18699 extern "C"
18700 #endif
18701 char $ac_func ();
18702 /* The GNU C library defines this for functions which it implements
18703 to always fail with ENOSYS. Some functions are actually named
18704 something starting with __ and the normal name is an alias. */
18705 #if defined __stub_$ac_func || defined __stub___$ac_func
18706 choke me
18707 #endif
18710 main ()
18712 return $ac_func ();
18714 return 0;
18716 _ACEOF
18717 rm -f conftest.$ac_objext conftest$ac_exeext
18718 if { (ac_try="$ac_link"
18719 case "(($ac_try" in
18720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18721 *) ac_try_echo=$ac_try;;
18722 esac
18723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18724 (eval "$ac_link") 2>conftest.er1
18725 ac_status=$?
18726 grep -v '^ *+' conftest.er1 >conftest.err
18727 rm -f conftest.er1
18728 cat conftest.err >&5
18729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730 (exit $ac_status); } && {
18731 test -z "$ac_c_werror_flag" ||
18732 test ! -s conftest.err
18733 } && test -s conftest$ac_exeext &&
18734 $as_test_x conftest$ac_exeext; then
18735 eval "$as_ac_var=yes"
18736 else
18737 echo "$as_me: failed program was:" >&5
18738 sed 's/^/| /' conftest.$ac_ext >&5
18740 eval "$as_ac_var=no"
18743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18744 conftest$ac_exeext conftest.$ac_ext
18746 ac_res=`eval echo '${'$as_ac_var'}'`
18747 { echo "$as_me:$LINENO: result: $ac_res" >&5
18748 echo "${ECHO_T}$ac_res" >&6; }
18749 if test `eval echo '${'$as_ac_var'}'` = yes; then
18750 cat >>confdefs.h <<_ACEOF
18751 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18752 _ACEOF
18754 else
18756 for ac_func in on_exit
18758 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18759 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18760 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18761 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18762 echo $ECHO_N "(cached) $ECHO_C" >&6
18763 else
18764 cat >conftest.$ac_ext <<_ACEOF
18765 /* confdefs.h. */
18766 _ACEOF
18767 cat confdefs.h >>conftest.$ac_ext
18768 cat >>conftest.$ac_ext <<_ACEOF
18769 /* end confdefs.h. */
18770 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18772 #define $ac_func innocuous_$ac_func
18774 /* System header to define __stub macros and hopefully few prototypes,
18775 which can conflict with char $ac_func (); below.
18776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18777 <limits.h> exists even on freestanding compilers. */
18779 #ifdef __STDC__
18780 # include <limits.h>
18781 #else
18782 # include <assert.h>
18783 #endif
18785 #undef $ac_func
18787 /* Override any GCC internal prototype to avoid an error.
18788 Use char because int might match the return type of a GCC
18789 builtin and then its argument prototype would still apply. */
18790 #ifdef __cplusplus
18791 extern "C"
18792 #endif
18793 char $ac_func ();
18794 /* The GNU C library defines this for functions which it implements
18795 to always fail with ENOSYS. Some functions are actually named
18796 something starting with __ and the normal name is an alias. */
18797 #if defined __stub_$ac_func || defined __stub___$ac_func
18798 choke me
18799 #endif
18802 main ()
18804 return $ac_func ();
18806 return 0;
18808 _ACEOF
18809 rm -f conftest.$ac_objext conftest$ac_exeext
18810 if { (ac_try="$ac_link"
18811 case "(($ac_try" in
18812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18813 *) ac_try_echo=$ac_try;;
18814 esac
18815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18816 (eval "$ac_link") 2>conftest.er1
18817 ac_status=$?
18818 grep -v '^ *+' conftest.er1 >conftest.err
18819 rm -f conftest.er1
18820 cat conftest.err >&5
18821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18822 (exit $ac_status); } && {
18823 test -z "$ac_c_werror_flag" ||
18824 test ! -s conftest.err
18825 } && test -s conftest$ac_exeext &&
18826 $as_test_x conftest$ac_exeext; then
18827 eval "$as_ac_var=yes"
18828 else
18829 echo "$as_me: failed program was:" >&5
18830 sed 's/^/| /' conftest.$ac_ext >&5
18832 eval "$as_ac_var=no"
18835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18836 conftest$ac_exeext conftest.$ac_ext
18838 ac_res=`eval echo '${'$as_ac_var'}'`
18839 { echo "$as_me:$LINENO: result: $ac_res" >&5
18840 echo "${ECHO_T}$ac_res" >&6; }
18841 if test `eval echo '${'$as_ac_var'}'` = yes; then
18842 cat >>confdefs.h <<_ACEOF
18843 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18844 _ACEOF
18846 else
18847 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
18848 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
18849 { (exit 1); exit 1; }; }
18851 done
18854 done
18858 for ac_func in fseeko
18860 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18861 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18862 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18863 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18864 echo $ECHO_N "(cached) $ECHO_C" >&6
18865 else
18866 cat >conftest.$ac_ext <<_ACEOF
18867 /* confdefs.h. */
18868 _ACEOF
18869 cat confdefs.h >>conftest.$ac_ext
18870 cat >>conftest.$ac_ext <<_ACEOF
18871 /* end confdefs.h. */
18872 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18874 #define $ac_func innocuous_$ac_func
18876 /* System header to define __stub macros and hopefully few prototypes,
18877 which can conflict with char $ac_func (); below.
18878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18879 <limits.h> exists even on freestanding compilers. */
18881 #ifdef __STDC__
18882 # include <limits.h>
18883 #else
18884 # include <assert.h>
18885 #endif
18887 #undef $ac_func
18889 /* Override any GCC internal prototype to avoid an error.
18890 Use char because int might match the return type of a GCC
18891 builtin and then its argument prototype would still apply. */
18892 #ifdef __cplusplus
18893 extern "C"
18894 #endif
18895 char $ac_func ();
18896 /* The GNU C library defines this for functions which it implements
18897 to always fail with ENOSYS. Some functions are actually named
18898 something starting with __ and the normal name is an alias. */
18899 #if defined __stub_$ac_func || defined __stub___$ac_func
18900 choke me
18901 #endif
18904 main ()
18906 return $ac_func ();
18908 return 0;
18910 _ACEOF
18911 rm -f conftest.$ac_objext conftest$ac_exeext
18912 if { (ac_try="$ac_link"
18913 case "(($ac_try" in
18914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18915 *) ac_try_echo=$ac_try;;
18916 esac
18917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18918 (eval "$ac_link") 2>conftest.er1
18919 ac_status=$?
18920 grep -v '^ *+' conftest.er1 >conftest.err
18921 rm -f conftest.er1
18922 cat conftest.err >&5
18923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18924 (exit $ac_status); } && {
18925 test -z "$ac_c_werror_flag" ||
18926 test ! -s conftest.err
18927 } && test -s conftest$ac_exeext &&
18928 $as_test_x conftest$ac_exeext; then
18929 eval "$as_ac_var=yes"
18930 else
18931 echo "$as_me: failed program was:" >&5
18932 sed 's/^/| /' conftest.$ac_ext >&5
18934 eval "$as_ac_var=no"
18937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18938 conftest$ac_exeext conftest.$ac_ext
18940 ac_res=`eval echo '${'$as_ac_var'}'`
18941 { echo "$as_me:$LINENO: result: $ac_res" >&5
18942 echo "${ECHO_T}$ac_res" >&6; }
18943 if test `eval echo '${'$as_ac_var'}'` = yes; then
18944 cat >>confdefs.h <<_ACEOF
18945 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18946 _ACEOF
18948 else
18949 case " $LIBOBJS " in
18950 *" $ac_func.$ac_objext "* ) ;;
18951 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18953 esac
18956 done
18959 case $host_os in
18960 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
18961 bsdi*|netbsd*)
18963 cat >>confdefs.h <<\_ACEOF
18964 #define HAVE_FSEEKO 1
18965 _ACEOF
18967 ac_cv_func_fseeko=yes;;
18969 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18970 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18971 if test "${ac_cv_sys_largefile_source+set}" = set; then
18972 echo $ECHO_N "(cached) $ECHO_C" >&6
18973 else
18974 while :; do
18975 cat >conftest.$ac_ext <<_ACEOF
18976 /* confdefs.h. */
18977 _ACEOF
18978 cat confdefs.h >>conftest.$ac_ext
18979 cat >>conftest.$ac_ext <<_ACEOF
18980 /* end confdefs.h. */
18981 #include <sys/types.h> /* for off_t */
18982 #include <stdio.h>
18984 main ()
18986 int (*fp) (FILE *, off_t, int) = fseeko;
18987 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18989 return 0;
18991 _ACEOF
18992 rm -f conftest.$ac_objext conftest$ac_exeext
18993 if { (ac_try="$ac_link"
18994 case "(($ac_try" in
18995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18996 *) ac_try_echo=$ac_try;;
18997 esac
18998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18999 (eval "$ac_link") 2>conftest.er1
19000 ac_status=$?
19001 grep -v '^ *+' conftest.er1 >conftest.err
19002 rm -f conftest.er1
19003 cat conftest.err >&5
19004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005 (exit $ac_status); } && {
19006 test -z "$ac_c_werror_flag" ||
19007 test ! -s conftest.err
19008 } && test -s conftest$ac_exeext &&
19009 $as_test_x conftest$ac_exeext; then
19010 ac_cv_sys_largefile_source=no; break
19011 else
19012 echo "$as_me: failed program was:" >&5
19013 sed 's/^/| /' conftest.$ac_ext >&5
19018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19019 conftest$ac_exeext conftest.$ac_ext
19020 cat >conftest.$ac_ext <<_ACEOF
19021 /* confdefs.h. */
19022 _ACEOF
19023 cat confdefs.h >>conftest.$ac_ext
19024 cat >>conftest.$ac_ext <<_ACEOF
19025 /* end confdefs.h. */
19026 #define _LARGEFILE_SOURCE 1
19027 #include <sys/types.h> /* for off_t */
19028 #include <stdio.h>
19030 main ()
19032 int (*fp) (FILE *, off_t, int) = fseeko;
19033 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19035 return 0;
19037 _ACEOF
19038 rm -f conftest.$ac_objext conftest$ac_exeext
19039 if { (ac_try="$ac_link"
19040 case "(($ac_try" in
19041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19042 *) ac_try_echo=$ac_try;;
19043 esac
19044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19045 (eval "$ac_link") 2>conftest.er1
19046 ac_status=$?
19047 grep -v '^ *+' conftest.er1 >conftest.err
19048 rm -f conftest.er1
19049 cat conftest.err >&5
19050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051 (exit $ac_status); } && {
19052 test -z "$ac_c_werror_flag" ||
19053 test ! -s conftest.err
19054 } && test -s conftest$ac_exeext &&
19055 $as_test_x conftest$ac_exeext; then
19056 ac_cv_sys_largefile_source=1; break
19057 else
19058 echo "$as_me: failed program was:" >&5
19059 sed 's/^/| /' conftest.$ac_ext >&5
19064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19065 conftest$ac_exeext conftest.$ac_ext
19066 ac_cv_sys_largefile_source=unknown
19067 break
19068 done
19070 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19071 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
19072 case $ac_cv_sys_largefile_source in #(
19073 no | unknown) ;;
19075 cat >>confdefs.h <<_ACEOF
19076 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19077 _ACEOF
19079 esac
19080 rm -f conftest*
19082 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19083 # in glibc 2.1.3, but that breaks too many other things.
19084 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19085 if test $ac_cv_sys_largefile_source != unknown; then
19087 cat >>confdefs.h <<\_ACEOF
19088 #define HAVE_FSEEKO 1
19089 _ACEOF
19093 esac
19097 # Pthreads
19099 # For each platform, we need to know about any special compile and link
19100 # libraries, and whether the normal C function names are thread-safe.
19101 # See the comment at the top of src/port/thread.c for more information.
19102 # WIN32 doesn't need the pthread tests; it always uses threads
19103 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
19107 ac_ext=c
19108 ac_cpp='$CPP $CPPFLAGS'
19109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19113 acx_pthread_ok=no
19115 # We used to check for pthread.h first, but this fails if pthread.h
19116 # requires special compiler flags (e.g. on True64 or Sequent).
19117 # It gets checked for in the link test anyway.
19119 # First of all, check if the user has set any of the PTHREAD_LIBS,
19120 # etcetera environment variables, and if threads linking works using
19121 # them:
19122 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
19123 save_CFLAGS="$CFLAGS"
19124 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19125 save_LIBS="$LIBS"
19126 LIBS="$PTHREAD_LIBS $LIBS"
19127 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
19128 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
19129 cat >conftest.$ac_ext <<_ACEOF
19130 /* confdefs.h. */
19131 _ACEOF
19132 cat confdefs.h >>conftest.$ac_ext
19133 cat >>conftest.$ac_ext <<_ACEOF
19134 /* end confdefs.h. */
19136 /* Override any GCC internal prototype to avoid an error.
19137 Use char because int might match the return type of a GCC
19138 builtin and then its argument prototype would still apply. */
19139 #ifdef __cplusplus
19140 extern "C"
19141 #endif
19142 char pthread_join ();
19144 main ()
19146 return pthread_join ();
19148 return 0;
19150 _ACEOF
19151 rm -f conftest.$ac_objext conftest$ac_exeext
19152 if { (ac_try="$ac_link"
19153 case "(($ac_try" in
19154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19155 *) ac_try_echo=$ac_try;;
19156 esac
19157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19158 (eval "$ac_link") 2>conftest.er1
19159 ac_status=$?
19160 grep -v '^ *+' conftest.er1 >conftest.err
19161 rm -f conftest.er1
19162 cat conftest.err >&5
19163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19164 (exit $ac_status); } && {
19165 test -z "$ac_c_werror_flag" ||
19166 test ! -s conftest.err
19167 } && test -s conftest$ac_exeext &&
19168 $as_test_x conftest$ac_exeext; then
19169 acx_pthread_ok=yes
19170 else
19171 echo "$as_me: failed program was:" >&5
19172 sed 's/^/| /' conftest.$ac_ext >&5
19177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19178 conftest$ac_exeext conftest.$ac_ext
19179 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
19180 echo "${ECHO_T}$acx_pthread_ok" >&6; }
19181 if test x"$acx_pthread_ok" = xno; then
19182 PTHREAD_LIBS=""
19183 PTHREAD_CFLAGS=""
19185 LIBS="$save_LIBS"
19186 CFLAGS="$save_CFLAGS"
19189 # We must check for the threads library under a number of different
19190 # names; the ordering is very important because some systems
19191 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19192 # libraries is broken (non-POSIX).
19194 # Create a list of thread flags to try. Items starting with a "-" are
19195 # C compiler flags, and other items are library names, except for "none"
19196 # which indicates that we try without any flags at all, and "pthread-config"
19197 # which is a program returning the flags for the Pth emulation library.
19199 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
19201 # The ordering *is* (sometimes) important. Some notes on the
19202 # individual items follow:
19204 # pthreads: AIX (must check this before -lpthread)
19205 # none: in case threads are in libc; should be tried before -Kthread and
19206 # other compiler flags to prevent continual compiler warnings
19207 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19208 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19209 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19210 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
19211 # -pthreads: Solaris/gcc
19212 # -mthreads: Mingw32/gcc, Lynx/gcc
19213 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19214 # doesn't hurt to check since this sometimes defines pthreads too;
19215 # also defines -D_REENTRANT)
19216 # pthread: Linux, etcetera
19217 # --thread-safe: KAI C++
19218 # pthread-config: use pthread-config program (for GNU Pth library)
19220 case "${host_cpu}-${host_os}" in
19221 *solaris*)
19223 # On Solaris (at least, for some versions), libc contains stubbed
19224 # (non-functional) versions of the pthreads routines, so link-based
19225 # tests will erroneously succeed. (We need to link with -pthread or
19226 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
19227 # a function called by this macro, so we could check for that, but
19228 # who knows whether they'll stub that too in a future libc.) So,
19229 # we'll just look for -pthreads and -lpthread first:
19231 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
19233 esac
19235 if test x"$acx_pthread_ok" = xno; then
19236 for flag in $acx_pthread_flags; do
19238 tryPTHREAD_CFLAGS=""
19239 tryPTHREAD_LIBS=""
19240 case $flag in
19241 none)
19242 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
19243 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
19247 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
19248 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
19249 tryPTHREAD_CFLAGS="$flag"
19252 pthread-config)
19253 # skip this if we already have flags defined, for PostgreSQL
19254 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
19255 # Extract the first word of "pthread-config", so it can be a program name with args.
19256 set dummy pthread-config; ac_word=$2
19257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19259 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
19260 echo $ECHO_N "(cached) $ECHO_C" >&6
19261 else
19262 if test -n "$acx_pthread_config"; then
19263 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
19264 else
19265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19266 for as_dir in $PATH
19268 IFS=$as_save_IFS
19269 test -z "$as_dir" && as_dir=.
19270 for ac_exec_ext in '' $ac_executable_extensions; do
19271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19272 ac_cv_prog_acx_pthread_config="yes"
19273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19274 break 2
19276 done
19277 done
19278 IFS=$as_save_IFS
19280 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
19283 acx_pthread_config=$ac_cv_prog_acx_pthread_config
19284 if test -n "$acx_pthread_config"; then
19285 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
19286 echo "${ECHO_T}$acx_pthread_config" >&6; }
19287 else
19288 { echo "$as_me:$LINENO: result: no" >&5
19289 echo "${ECHO_T}no" >&6; }
19293 if test x"$acx_pthread_config" = xno; then continue; fi
19294 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
19295 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
19299 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
19300 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
19301 tryPTHREAD_LIBS="-l$flag"
19303 esac
19305 save_LIBS="$LIBS"
19306 save_CFLAGS="$CFLAGS"
19307 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
19308 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
19310 # Check for various functions. We must include pthread.h,
19311 # since some functions may be macros. (On the Sequent, we
19312 # need a special flag -Kthread to make this header compile.)
19313 # We check for pthread_join because it is in -lpthread on IRIX
19314 # while pthread_create is in libc. We check for pthread_attr_init
19315 # due to DEC craziness with -lpthreads. We check for
19316 # pthread_cleanup_push because it is one of the few pthread
19317 # functions on Solaris that doesn't have a non-functional libc stub.
19318 # We try pthread_create on general principles.
19319 cat >conftest.$ac_ext <<_ACEOF
19320 /* confdefs.h. */
19321 _ACEOF
19322 cat confdefs.h >>conftest.$ac_ext
19323 cat >>conftest.$ac_ext <<_ACEOF
19324 /* end confdefs.h. */
19325 #include <pthread.h>
19327 main ()
19329 pthread_t th; pthread_join(th, 0);
19330 pthread_attr_init(0); pthread_cleanup_push(0, 0);
19331 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
19333 return 0;
19335 _ACEOF
19336 rm -f conftest.$ac_objext conftest$ac_exeext
19337 if { (ac_try="$ac_link"
19338 case "(($ac_try" in
19339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19340 *) ac_try_echo=$ac_try;;
19341 esac
19342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19343 (eval "$ac_link") 2>conftest.er1
19344 ac_status=$?
19345 grep -v '^ *+' conftest.er1 >conftest.err
19346 rm -f conftest.er1
19347 cat conftest.err >&5
19348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349 (exit $ac_status); } && {
19350 test -z "$ac_c_werror_flag" ||
19351 test ! -s conftest.err
19352 } && test -s conftest$ac_exeext &&
19353 $as_test_x conftest$ac_exeext; then
19354 acx_pthread_ok=yes
19355 else
19356 echo "$as_me: failed program was:" >&5
19357 sed 's/^/| /' conftest.$ac_ext >&5
19359 acx_pthread_ok=no
19362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19363 conftest$ac_exeext conftest.$ac_ext
19365 if test "x$acx_pthread_ok" = xyes; then
19366 # Don't use options that are ignored by the compiler.
19367 # We find them by checking stderror.
19368 cat >conftest.$ac_ext <<_ACEOF
19370 main (int argc, char **argv)
19372 (void) argc;
19373 (void) argv;
19374 return 0;
19376 _ACEOF
19377 rm -f conftest.$ac_objext conftest$ac_exeext
19378 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
19379 # we continue with more flags because Linux needs -lpthread
19380 # for libpq builds on PostgreSQL. The test above only
19381 # tests for building binaries, not shared libraries.
19382 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
19383 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
19384 else acx_pthread_ok=no
19388 LIBS="$save_LIBS"
19389 CFLAGS="$save_CFLAGS"
19391 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
19392 echo "${ECHO_T}$acx_pthread_ok" >&6; }
19393 done
19396 # Various other checks:
19397 if test "x$acx_pthread_ok" = xyes; then
19398 save_LIBS="$LIBS"
19399 LIBS="$PTHREAD_LIBS $LIBS"
19400 save_CFLAGS="$CFLAGS"
19401 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19403 # Detect AIX lossage: threads are created detached by default
19404 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
19405 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
19406 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
19407 cat >conftest.$ac_ext <<_ACEOF
19408 /* confdefs.h. */
19409 _ACEOF
19410 cat confdefs.h >>conftest.$ac_ext
19411 cat >>conftest.$ac_ext <<_ACEOF
19412 /* end confdefs.h. */
19413 #include <pthread.h>
19415 main ()
19417 int attr=PTHREAD_CREATE_JOINABLE;
19419 return 0;
19421 _ACEOF
19422 rm -f conftest.$ac_objext conftest$ac_exeext
19423 if { (ac_try="$ac_link"
19424 case "(($ac_try" in
19425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19426 *) ac_try_echo=$ac_try;;
19427 esac
19428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19429 (eval "$ac_link") 2>conftest.er1
19430 ac_status=$?
19431 grep -v '^ *+' conftest.er1 >conftest.err
19432 rm -f conftest.er1
19433 cat conftest.err >&5
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); } && {
19436 test -z "$ac_c_werror_flag" ||
19437 test ! -s conftest.err
19438 } && test -s conftest$ac_exeext &&
19439 $as_test_x conftest$ac_exeext; then
19440 ok=PTHREAD_CREATE_JOINABLE
19441 else
19442 echo "$as_me: failed program was:" >&5
19443 sed 's/^/| /' conftest.$ac_ext >&5
19445 ok=unknown
19448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19449 conftest$ac_exeext conftest.$ac_ext
19450 if test x"$ok" = xunknown; then
19451 cat >conftest.$ac_ext <<_ACEOF
19452 /* confdefs.h. */
19453 _ACEOF
19454 cat confdefs.h >>conftest.$ac_ext
19455 cat >>conftest.$ac_ext <<_ACEOF
19456 /* end confdefs.h. */
19457 #include <pthread.h>
19459 main ()
19461 int attr=PTHREAD_CREATE_UNDETACHED;
19463 return 0;
19465 _ACEOF
19466 rm -f conftest.$ac_objext conftest$ac_exeext
19467 if { (ac_try="$ac_link"
19468 case "(($ac_try" in
19469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19470 *) ac_try_echo=$ac_try;;
19471 esac
19472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19473 (eval "$ac_link") 2>conftest.er1
19474 ac_status=$?
19475 grep -v '^ *+' conftest.er1 >conftest.err
19476 rm -f conftest.er1
19477 cat conftest.err >&5
19478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479 (exit $ac_status); } && {
19480 test -z "$ac_c_werror_flag" ||
19481 test ! -s conftest.err
19482 } && test -s conftest$ac_exeext &&
19483 $as_test_x conftest$ac_exeext; then
19484 ok=PTHREAD_CREATE_UNDETACHED
19485 else
19486 echo "$as_me: failed program was:" >&5
19487 sed 's/^/| /' conftest.$ac_ext >&5
19489 ok=unknown
19492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19493 conftest$ac_exeext conftest.$ac_ext
19495 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
19497 cat >>confdefs.h <<\_ACEOF
19498 #define PTHREAD_CREATE_JOINABLE $ok
19499 _ACEOF
19502 { echo "$as_me:$LINENO: result: ${ok}" >&5
19503 echo "${ECHO_T}${ok}" >&6; }
19504 if test x"$ok" = xunknown; then
19505 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
19506 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
19509 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
19510 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
19511 flag=no
19512 # We always add these in PostgreSQL
19513 # case "${host_cpu}-${host_os}" in
19514 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
19515 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
19516 # esac
19517 { echo "$as_me:$LINENO: result: ${flag}" >&5
19518 echo "${ECHO_T}${flag}" >&6; }
19519 if test "x$flag" != xno; then
19520 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
19523 LIBS="$save_LIBS"
19524 CFLAGS="$save_CFLAGS"
19526 # Supporting cc_r would require a special CC in all places that
19527 # use libpq, and that is ugly, so we don't do it. Users can still
19528 # define their compiler as cc_r to do thread builds of everything.
19529 # More AIX lossage: must compile with cc_r
19530 # Extract the first word of "cc_r", so it can be a program name with args.
19531 set dummy cc_r; ac_word=$2
19532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19534 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
19535 echo $ECHO_N "(cached) $ECHO_C" >&6
19536 else
19537 if test -n "$PTHREAD_CC"; then
19538 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19539 else
19540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19541 for as_dir in $PATH
19543 IFS=$as_save_IFS
19544 test -z "$as_dir" && as_dir=.
19545 for ac_exec_ext in '' $ac_executable_extensions; do
19546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19547 ac_cv_prog_PTHREAD_CC="cc_r"
19548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19549 break 2
19551 done
19552 done
19553 IFS=$as_save_IFS
19555 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
19558 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19559 if test -n "$PTHREAD_CC"; then
19560 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
19561 echo "${ECHO_T}$PTHREAD_CC" >&6; }
19562 else
19563 { echo "$as_me:$LINENO: result: no" >&5
19564 echo "${ECHO_T}no" >&6; }
19568 else
19569 PTHREAD_CC="$CC"
19576 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
19577 if test x"$acx_pthread_ok" = xyes; then
19579 cat >>confdefs.h <<\_ACEOF
19580 #define HAVE_PTHREAD 1
19581 _ACEOF
19584 else
19585 acx_pthread_ok=no
19588 ac_ext=c
19589 ac_cpp='$CPP $CPPFLAGS'
19590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19594 # set thread flags
19596 # Some platforms use these, so just define them. They can't hurt if they
19597 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
19598 # enables 5-arg getpwuid_r, among other things.
19599 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
19602 # At this point, we don't want to muck with the compiler name for threading.
19603 # Let's see who fails, perhaps AIX. 2004-04-23
19604 if test "$PTHREAD_CC" != "$CC"; then
19605 { { echo "$as_me:$LINENO: error:
19606 PostgreSQL does not support platforms that require a special compiler
19607 for thread safety." >&5
19608 echo "$as_me: error:
19609 PostgreSQL does not support platforms that require a special compiler
19610 for thread safety." >&2;}
19611 { (exit 1); exit 1; }; }
19614 if test "$THREAD_SUPPORT" = no; then
19615 { { echo "$as_me:$LINENO: error: cannot enable threads on this platform
19616 This platform is known to not support thread-safe programs. For details,
19617 compile and run src/bin/pg_thread_test." >&5
19618 echo "$as_me: error: cannot enable threads on this platform
19619 This platform is known to not support thread-safe programs. For details,
19620 compile and run src/bin/pg_thread_test." >&2;}
19621 { (exit 1); exit 1; }; }
19624 # Check for *_r functions
19625 _CFLAGS="$CFLAGS"
19626 _LIBS="$LIBS"
19627 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19628 LIBS="$LIBS $PTHREAD_LIBS"
19630 if test "$PORTNAME" != "win32"; then
19631 if test "${ac_cv_header_pthread_h+set}" = set; then
19632 { echo "$as_me:$LINENO: checking for pthread.h" >&5
19633 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
19634 if test "${ac_cv_header_pthread_h+set}" = set; then
19635 echo $ECHO_N "(cached) $ECHO_C" >&6
19637 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
19638 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
19639 else
19640 # Is the header compilable?
19641 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
19642 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
19643 cat >conftest.$ac_ext <<_ACEOF
19644 /* confdefs.h. */
19645 _ACEOF
19646 cat confdefs.h >>conftest.$ac_ext
19647 cat >>conftest.$ac_ext <<_ACEOF
19648 /* end confdefs.h. */
19649 $ac_includes_default
19650 #include <pthread.h>
19651 _ACEOF
19652 rm -f conftest.$ac_objext
19653 if { (ac_try="$ac_compile"
19654 case "(($ac_try" in
19655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19656 *) ac_try_echo=$ac_try;;
19657 esac
19658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19659 (eval "$ac_compile") 2>conftest.er1
19660 ac_status=$?
19661 grep -v '^ *+' conftest.er1 >conftest.err
19662 rm -f conftest.er1
19663 cat conftest.err >&5
19664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665 (exit $ac_status); } && {
19666 test -z "$ac_c_werror_flag" ||
19667 test ! -s conftest.err
19668 } && test -s conftest.$ac_objext; then
19669 ac_header_compiler=yes
19670 else
19671 echo "$as_me: failed program was:" >&5
19672 sed 's/^/| /' conftest.$ac_ext >&5
19674 ac_header_compiler=no
19677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19678 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19679 echo "${ECHO_T}$ac_header_compiler" >&6; }
19681 # Is the header present?
19682 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
19683 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
19684 cat >conftest.$ac_ext <<_ACEOF
19685 /* confdefs.h. */
19686 _ACEOF
19687 cat confdefs.h >>conftest.$ac_ext
19688 cat >>conftest.$ac_ext <<_ACEOF
19689 /* end confdefs.h. */
19690 #include <pthread.h>
19691 _ACEOF
19692 if { (ac_try="$ac_cpp conftest.$ac_ext"
19693 case "(($ac_try" in
19694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19695 *) ac_try_echo=$ac_try;;
19696 esac
19697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19699 ac_status=$?
19700 grep -v '^ *+' conftest.er1 >conftest.err
19701 rm -f conftest.er1
19702 cat conftest.err >&5
19703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704 (exit $ac_status); } >/dev/null && {
19705 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19706 test ! -s conftest.err
19707 }; then
19708 ac_header_preproc=yes
19709 else
19710 echo "$as_me: failed program was:" >&5
19711 sed 's/^/| /' conftest.$ac_ext >&5
19713 ac_header_preproc=no
19716 rm -f conftest.err conftest.$ac_ext
19717 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19718 echo "${ECHO_T}$ac_header_preproc" >&6; }
19720 # So? What about this header?
19721 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19722 yes:no: )
19723 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
19724 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19725 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
19726 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
19727 ac_header_preproc=yes
19729 no:yes:* )
19730 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
19731 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
19732 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
19733 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
19734 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
19735 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
19736 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
19737 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
19738 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
19739 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
19740 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
19741 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
19742 ( cat <<\_ASBOX
19743 ## ---------------------------------------- ##
19744 ## Report this to pgsql-bugs@postgresql.org ##
19745 ## ---------------------------------------- ##
19746 _ASBOX
19747 ) | sed "s/^/$as_me: WARNING: /" >&2
19749 esac
19750 { echo "$as_me:$LINENO: checking for pthread.h" >&5
19751 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
19752 if test "${ac_cv_header_pthread_h+set}" = set; then
19753 echo $ECHO_N "(cached) $ECHO_C" >&6
19754 else
19755 ac_cv_header_pthread_h=$ac_header_preproc
19757 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
19758 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
19761 if test $ac_cv_header_pthread_h = yes; then
19763 else
19764 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
19765 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
19766 { (exit 1); exit 1; }; }
19775 for ac_func in strerror_r getpwuid_r gethostbyname_r
19777 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19778 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19780 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19781 echo $ECHO_N "(cached) $ECHO_C" >&6
19782 else
19783 cat >conftest.$ac_ext <<_ACEOF
19784 /* confdefs.h. */
19785 _ACEOF
19786 cat confdefs.h >>conftest.$ac_ext
19787 cat >>conftest.$ac_ext <<_ACEOF
19788 /* end confdefs.h. */
19789 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19791 #define $ac_func innocuous_$ac_func
19793 /* System header to define __stub macros and hopefully few prototypes,
19794 which can conflict with char $ac_func (); below.
19795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19796 <limits.h> exists even on freestanding compilers. */
19798 #ifdef __STDC__
19799 # include <limits.h>
19800 #else
19801 # include <assert.h>
19802 #endif
19804 #undef $ac_func
19806 /* Override any GCC internal prototype to avoid an error.
19807 Use char because int might match the return type of a GCC
19808 builtin and then its argument prototype would still apply. */
19809 #ifdef __cplusplus
19810 extern "C"
19811 #endif
19812 char $ac_func ();
19813 /* The GNU C library defines this for functions which it implements
19814 to always fail with ENOSYS. Some functions are actually named
19815 something starting with __ and the normal name is an alias. */
19816 #if defined __stub_$ac_func || defined __stub___$ac_func
19817 choke me
19818 #endif
19821 main ()
19823 return $ac_func ();
19825 return 0;
19827 _ACEOF
19828 rm -f conftest.$ac_objext conftest$ac_exeext
19829 if { (ac_try="$ac_link"
19830 case "(($ac_try" in
19831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19832 *) ac_try_echo=$ac_try;;
19833 esac
19834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19835 (eval "$ac_link") 2>conftest.er1
19836 ac_status=$?
19837 grep -v '^ *+' conftest.er1 >conftest.err
19838 rm -f conftest.er1
19839 cat conftest.err >&5
19840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841 (exit $ac_status); } && {
19842 test -z "$ac_c_werror_flag" ||
19843 test ! -s conftest.err
19844 } && test -s conftest$ac_exeext &&
19845 $as_test_x conftest$ac_exeext; then
19846 eval "$as_ac_var=yes"
19847 else
19848 echo "$as_me: failed program was:" >&5
19849 sed 's/^/| /' conftest.$ac_ext >&5
19851 eval "$as_ac_var=no"
19854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19855 conftest$ac_exeext conftest.$ac_ext
19857 ac_res=`eval echo '${'$as_ac_var'}'`
19858 { echo "$as_me:$LINENO: result: $ac_res" >&5
19859 echo "${ECHO_T}$ac_res" >&6; }
19860 if test `eval echo '${'$as_ac_var'}'` = yes; then
19861 cat >>confdefs.h <<_ACEOF
19862 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19863 _ACEOF
19866 done
19869 # Do test here with the proper thread flags
19870 { echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
19871 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6; }
19872 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
19873 echo $ECHO_N "(cached) $ECHO_C" >&6
19874 else
19875 cat >conftest.$ac_ext <<_ACEOF
19876 /* confdefs.h. */
19877 _ACEOF
19878 cat confdefs.h >>conftest.$ac_ext
19879 cat >>conftest.$ac_ext <<_ACEOF
19880 /* end confdefs.h. */
19881 #include <sys/types.h>
19882 #include <pwd.h>
19884 main ()
19886 uid_t uid;
19887 struct passwd *space;
19888 char *buf;
19889 size_t bufsize;
19890 struct passwd **result;
19891 getpwuid_r(uid, space, buf, bufsize, result);
19893 return 0;
19895 _ACEOF
19896 rm -f conftest.$ac_objext
19897 if { (ac_try="$ac_compile"
19898 case "(($ac_try" in
19899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19900 *) ac_try_echo=$ac_try;;
19901 esac
19902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19903 (eval "$ac_compile") 2>conftest.er1
19904 ac_status=$?
19905 grep -v '^ *+' conftest.er1 >conftest.err
19906 rm -f conftest.er1
19907 cat conftest.err >&5
19908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909 (exit $ac_status); } && {
19910 test -z "$ac_c_werror_flag" ||
19911 test ! -s conftest.err
19912 } && test -s conftest.$ac_objext; then
19913 pgac_cv_func_getpwuid_r_5arg=yes
19914 else
19915 echo "$as_me: failed program was:" >&5
19916 sed 's/^/| /' conftest.$ac_ext >&5
19918 pgac_cv_func_getpwuid_r_5arg=no
19921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19923 { echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
19924 echo "${ECHO_T}$pgac_cv_func_getpwuid_r_5arg" >&6; }
19925 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
19927 cat >>confdefs.h <<\_ACEOF
19928 #define GETPWUID_R_5ARG
19929 _ACEOF
19933 { echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
19934 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6; }
19935 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
19936 echo $ECHO_N "(cached) $ECHO_C" >&6
19937 else
19938 cat >conftest.$ac_ext <<_ACEOF
19939 /* confdefs.h. */
19940 _ACEOF
19941 cat confdefs.h >>conftest.$ac_ext
19942 cat >>conftest.$ac_ext <<_ACEOF
19943 /* end confdefs.h. */
19944 #include <string.h>
19946 main ()
19948 #ifndef _AIX
19949 int strerror_r(int, char *, size_t);
19950 #else
19951 /* Older AIX has 'int' for the third argument so we don't test the args. */
19952 int strerror_r();
19953 #endif
19955 return 0;
19957 _ACEOF
19958 rm -f conftest.$ac_objext
19959 if { (ac_try="$ac_compile"
19960 case "(($ac_try" in
19961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19962 *) ac_try_echo=$ac_try;;
19963 esac
19964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19965 (eval "$ac_compile") 2>conftest.er1
19966 ac_status=$?
19967 grep -v '^ *+' conftest.er1 >conftest.err
19968 rm -f conftest.er1
19969 cat conftest.err >&5
19970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971 (exit $ac_status); } && {
19972 test -z "$ac_c_werror_flag" ||
19973 test ! -s conftest.err
19974 } && test -s conftest.$ac_objext; then
19975 pgac_cv_func_strerror_r_int=yes
19976 else
19977 echo "$as_me: failed program was:" >&5
19978 sed 's/^/| /' conftest.$ac_ext >&5
19980 pgac_cv_func_strerror_r_int=no
19983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19985 { echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
19986 echo "${ECHO_T}$pgac_cv_func_strerror_r_int" >&6; }
19987 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
19989 cat >>confdefs.h <<\_ACEOF
19990 #define STRERROR_R_INT
19991 _ACEOF
19996 CFLAGS="$_CFLAGS"
19997 LIBS="$_LIBS"
19999 else
20000 # do not use values from template file
20001 PTHREAD_CFLAGS=
20002 PTHREAD_LIBS=
20009 # We can test for libldap_r only after we know PTHREAD_LIBS
20010 if test "$with_ldap" = yes ; then
20011 _LIBS="$LIBS"
20012 if test "$PORTNAME" != "win32"; then
20014 { echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
20015 echo $ECHO_N "checking for ldap_bind in -lldap... $ECHO_C" >&6; }
20016 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
20017 echo $ECHO_N "(cached) $ECHO_C" >&6
20018 else
20019 ac_check_lib_save_LIBS=$LIBS
20020 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
20021 cat >conftest.$ac_ext <<_ACEOF
20022 /* confdefs.h. */
20023 _ACEOF
20024 cat confdefs.h >>conftest.$ac_ext
20025 cat >>conftest.$ac_ext <<_ACEOF
20026 /* end confdefs.h. */
20028 /* Override any GCC internal prototype to avoid an error.
20029 Use char because int might match the return type of a GCC
20030 builtin and then its argument prototype would still apply. */
20031 #ifdef __cplusplus
20032 extern "C"
20033 #endif
20034 char ldap_bind ();
20036 main ()
20038 return ldap_bind ();
20040 return 0;
20042 _ACEOF
20043 rm -f conftest.$ac_objext conftest$ac_exeext
20044 if { (ac_try="$ac_link"
20045 case "(($ac_try" in
20046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20047 *) ac_try_echo=$ac_try;;
20048 esac
20049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20050 (eval "$ac_link") 2>conftest.er1
20051 ac_status=$?
20052 grep -v '^ *+' conftest.er1 >conftest.err
20053 rm -f conftest.er1
20054 cat conftest.err >&5
20055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056 (exit $ac_status); } && {
20057 test -z "$ac_c_werror_flag" ||
20058 test ! -s conftest.err
20059 } && test -s conftest$ac_exeext &&
20060 $as_test_x conftest$ac_exeext; then
20061 ac_cv_lib_ldap_ldap_bind=yes
20062 else
20063 echo "$as_me: failed program was:" >&5
20064 sed 's/^/| /' conftest.$ac_ext >&5
20066 ac_cv_lib_ldap_ldap_bind=no
20069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20070 conftest$ac_exeext conftest.$ac_ext
20071 LIBS=$ac_check_lib_save_LIBS
20073 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
20074 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_bind" >&6; }
20075 if test $ac_cv_lib_ldap_ldap_bind = yes; then
20076 cat >>confdefs.h <<_ACEOF
20077 #define HAVE_LIBLDAP 1
20078 _ACEOF
20080 LIBS="-lldap $LIBS"
20082 else
20083 { { echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
20084 echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
20085 { (exit 1); exit 1; }; }
20088 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
20089 if test "$enable_thread_safety" = yes; then
20090 # on some platforms ldap_r fails to link without PTHREAD_LIBS
20092 { echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
20093 echo $ECHO_N "checking for ldap_simple_bind in -lldap_r... $ECHO_C" >&6; }
20094 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
20095 echo $ECHO_N "(cached) $ECHO_C" >&6
20096 else
20097 ac_check_lib_save_LIBS=$LIBS
20098 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
20099 cat >conftest.$ac_ext <<_ACEOF
20100 /* confdefs.h. */
20101 _ACEOF
20102 cat confdefs.h >>conftest.$ac_ext
20103 cat >>conftest.$ac_ext <<_ACEOF
20104 /* end confdefs.h. */
20106 /* Override any GCC internal prototype to avoid an error.
20107 Use char because int might match the return type of a GCC
20108 builtin and then its argument prototype would still apply. */
20109 #ifdef __cplusplus
20110 extern "C"
20111 #endif
20112 char ldap_simple_bind ();
20114 main ()
20116 return ldap_simple_bind ();
20118 return 0;
20120 _ACEOF
20121 rm -f conftest.$ac_objext conftest$ac_exeext
20122 if { (ac_try="$ac_link"
20123 case "(($ac_try" in
20124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20125 *) ac_try_echo=$ac_try;;
20126 esac
20127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20128 (eval "$ac_link") 2>conftest.er1
20129 ac_status=$?
20130 grep -v '^ *+' conftest.er1 >conftest.err
20131 rm -f conftest.er1
20132 cat conftest.err >&5
20133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134 (exit $ac_status); } && {
20135 test -z "$ac_c_werror_flag" ||
20136 test ! -s conftest.err
20137 } && test -s conftest$ac_exeext &&
20138 $as_test_x conftest$ac_exeext; then
20139 ac_cv_lib_ldap_r_ldap_simple_bind=yes
20140 else
20141 echo "$as_me: failed program was:" >&5
20142 sed 's/^/| /' conftest.$ac_ext >&5
20144 ac_cv_lib_ldap_r_ldap_simple_bind=no
20147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20148 conftest$ac_exeext conftest.$ac_ext
20149 LIBS=$ac_check_lib_save_LIBS
20151 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
20152 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
20153 if test $ac_cv_lib_ldap_r_ldap_simple_bind = yes; then
20154 cat >>confdefs.h <<_ACEOF
20155 #define HAVE_LIBLDAP_R 1
20156 _ACEOF
20158 LIBS="-lldap_r $LIBS"
20160 else
20161 { { echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
20162 echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
20163 { (exit 1); exit 1; }; }
20166 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
20167 else
20168 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
20170 else
20172 { echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
20173 echo $ECHO_N "checking for ldap_bind in -lwldap32... $ECHO_C" >&6; }
20174 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
20175 echo $ECHO_N "(cached) $ECHO_C" >&6
20176 else
20177 ac_check_lib_save_LIBS=$LIBS
20178 LIBS="-lwldap32 $LIBS"
20179 cat >conftest.$ac_ext <<_ACEOF
20180 /* confdefs.h. */
20181 _ACEOF
20182 cat confdefs.h >>conftest.$ac_ext
20183 cat >>conftest.$ac_ext <<_ACEOF
20184 /* end confdefs.h. */
20186 /* Override any GCC internal prototype to avoid an error.
20187 Use char because int might match the return type of a GCC
20188 builtin and then its argument prototype would still apply. */
20189 #ifdef __cplusplus
20190 extern "C"
20191 #endif
20192 char ldap_bind ();
20194 main ()
20196 return ldap_bind ();
20198 return 0;
20200 _ACEOF
20201 rm -f conftest.$ac_objext conftest$ac_exeext
20202 if { (ac_try="$ac_link"
20203 case "(($ac_try" in
20204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20205 *) ac_try_echo=$ac_try;;
20206 esac
20207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20208 (eval "$ac_link") 2>conftest.er1
20209 ac_status=$?
20210 grep -v '^ *+' conftest.er1 >conftest.err
20211 rm -f conftest.er1
20212 cat conftest.err >&5
20213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20214 (exit $ac_status); } && {
20215 test -z "$ac_c_werror_flag" ||
20216 test ! -s conftest.err
20217 } && test -s conftest$ac_exeext &&
20218 $as_test_x conftest$ac_exeext; then
20219 ac_cv_lib_wldap32_ldap_bind=yes
20220 else
20221 echo "$as_me: failed program was:" >&5
20222 sed 's/^/| /' conftest.$ac_ext >&5
20224 ac_cv_lib_wldap32_ldap_bind=no
20227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20228 conftest$ac_exeext conftest.$ac_ext
20229 LIBS=$ac_check_lib_save_LIBS
20231 { echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
20232 echo "${ECHO_T}$ac_cv_lib_wldap32_ldap_bind" >&6; }
20233 if test $ac_cv_lib_wldap32_ldap_bind = yes; then
20234 cat >>confdefs.h <<_ACEOF
20235 #define HAVE_LIBWLDAP32 1
20236 _ACEOF
20238 LIBS="-lwldap32 $LIBS"
20240 else
20241 { { echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
20242 echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
20243 { (exit 1); exit 1; }; }
20246 LDAP_LIBS_FE="-lwldap32"
20247 LDAP_LIBS_BE="-lwldap32"
20249 LIBS="$_LIBS"
20255 # This test makes sure that run tests work at all. Sometimes a shared
20256 # library is found by the linker, but the runtime linker can't find it.
20257 # This check should come after all modifications of compiler or linker
20258 # variables, and before any other run tests.
20259 { echo "$as_me:$LINENO: checking test program" >&5
20260 echo $ECHO_N "checking test program... $ECHO_C" >&6; }
20261 if test "$cross_compiling" = yes; then
20262 { echo "$as_me:$LINENO: result: cross-compiling" >&5
20263 echo "${ECHO_T}cross-compiling" >&6; }
20264 else
20265 cat >conftest.$ac_ext <<_ACEOF
20266 /* confdefs.h. */
20267 _ACEOF
20268 cat confdefs.h >>conftest.$ac_ext
20269 cat >>conftest.$ac_ext <<_ACEOF
20270 /* end confdefs.h. */
20271 int main() { return 0; }
20272 _ACEOF
20273 rm -f conftest$ac_exeext
20274 if { (ac_try="$ac_link"
20275 case "(($ac_try" in
20276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20277 *) ac_try_echo=$ac_try;;
20278 esac
20279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20280 (eval "$ac_link") 2>&5
20281 ac_status=$?
20282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20284 { (case "(($ac_try" in
20285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20286 *) ac_try_echo=$ac_try;;
20287 esac
20288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20289 (eval "$ac_try") 2>&5
20290 ac_status=$?
20291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292 (exit $ac_status); }; }; then
20293 { echo "$as_me:$LINENO: result: ok" >&5
20294 echo "${ECHO_T}ok" >&6; }
20295 else
20296 echo "$as_me: program exited with status $ac_status" >&5
20297 echo "$as_me: failed program was:" >&5
20298 sed 's/^/| /' conftest.$ac_ext >&5
20300 ( exit $ac_status )
20301 { echo "$as_me:$LINENO: result: failed" >&5
20302 echo "${ECHO_T}failed" >&6; }
20303 { { echo "$as_me:$LINENO: error:
20304 Could not execute a simple test program. This may be a problem
20305 related to locating shared libraries. Check the file 'config.log'
20306 for the exact reason." >&5
20307 echo "$as_me: error:
20308 Could not execute a simple test program. This may be a problem
20309 related to locating shared libraries. Check the file 'config.log'
20310 for the exact reason." >&2;}
20311 { (exit 1); exit 1; }; }
20313 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20318 # --------------------
20319 # Run tests below here
20320 # --------------------
20322 # Force use of our snprintf if system's doesn't do arg control
20323 # See comment above at snprintf test for details.
20324 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
20325 { echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
20326 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6; }
20327 if test "${pgac_cv_printf_arg_control+set}" = set; then
20328 echo $ECHO_N "(cached) $ECHO_C" >&6
20329 else
20330 if test "$cross_compiling" = yes; then
20331 pgac_cv_printf_arg_control=cross
20332 else
20333 cat >conftest.$ac_ext <<_ACEOF
20334 /* confdefs.h. */
20335 _ACEOF
20336 cat confdefs.h >>conftest.$ac_ext
20337 cat >>conftest.$ac_ext <<_ACEOF
20338 /* end confdefs.h. */
20339 #include <stdio.h>
20340 #include <string.h>
20342 int main()
20344 char buf[100];
20346 /* can it swap arguments? */
20347 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
20348 if (strcmp(buf, "4 3") != 0)
20349 return 1;
20350 return 0;
20352 _ACEOF
20353 rm -f conftest$ac_exeext
20354 if { (ac_try="$ac_link"
20355 case "(($ac_try" in
20356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20357 *) ac_try_echo=$ac_try;;
20358 esac
20359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20360 (eval "$ac_link") 2>&5
20361 ac_status=$?
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20364 { (case "(($ac_try" in
20365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20366 *) ac_try_echo=$ac_try;;
20367 esac
20368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20369 (eval "$ac_try") 2>&5
20370 ac_status=$?
20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372 (exit $ac_status); }; }; then
20373 pgac_cv_printf_arg_control=yes
20374 else
20375 echo "$as_me: program exited with status $ac_status" >&5
20376 echo "$as_me: failed program was:" >&5
20377 sed 's/^/| /' conftest.$ac_ext >&5
20379 ( exit $ac_status )
20380 pgac_cv_printf_arg_control=no
20382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20388 { echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
20389 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6; }
20391 if test $pgac_cv_printf_arg_control != yes ; then
20392 pgac_need_repl_snprintf=yes
20398 { echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
20399 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6; }
20400 if test "${pgac_cv_type_long_int_64+set}" = set; then
20401 echo $ECHO_N "(cached) $ECHO_C" >&6
20402 else
20403 if test "$cross_compiling" = yes; then
20404 # If cross-compiling, check the size reported by the compiler and
20405 # trust that the arithmetic works.
20406 cat >conftest.$ac_ext <<_ACEOF
20407 /* confdefs.h. */
20408 _ACEOF
20409 cat confdefs.h >>conftest.$ac_ext
20410 cat >>conftest.$ac_ext <<_ACEOF
20411 /* end confdefs.h. */
20414 main ()
20416 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
20417 test_array [0] = 0
20420 return 0;
20422 _ACEOF
20423 rm -f conftest.$ac_objext
20424 if { (ac_try="$ac_compile"
20425 case "(($ac_try" in
20426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20427 *) ac_try_echo=$ac_try;;
20428 esac
20429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20430 (eval "$ac_compile") 2>conftest.er1
20431 ac_status=$?
20432 grep -v '^ *+' conftest.er1 >conftest.err
20433 rm -f conftest.er1
20434 cat conftest.err >&5
20435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436 (exit $ac_status); } && {
20437 test -z "$ac_c_werror_flag" ||
20438 test ! -s conftest.err
20439 } && test -s conftest.$ac_objext; then
20440 pgac_cv_type_long_int_64=yes
20441 else
20442 echo "$as_me: failed program was:" >&5
20443 sed 's/^/| /' conftest.$ac_ext >&5
20445 pgac_cv_type_long_int_64=no
20448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20449 else
20450 cat >conftest.$ac_ext <<_ACEOF
20451 /* confdefs.h. */
20452 _ACEOF
20453 cat confdefs.h >>conftest.$ac_ext
20454 cat >>conftest.$ac_ext <<_ACEOF
20455 /* end confdefs.h. */
20456 typedef long int ac_int64;
20459 * These are globals to discourage the compiler from folding all the
20460 * arithmetic tests down to compile-time constants.
20462 ac_int64 a = 20000001;
20463 ac_int64 b = 40000005;
20465 int does_int64_work()
20467 ac_int64 c,d;
20469 if (sizeof(ac_int64) != 8)
20470 return 0; /* definitely not the right size */
20472 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
20473 c = a * b;
20474 d = (c + b) / b;
20475 if (d != a+1)
20476 return 0;
20477 return 1;
20479 main() {
20480 exit(! does_int64_work());
20482 _ACEOF
20483 rm -f conftest$ac_exeext
20484 if { (ac_try="$ac_link"
20485 case "(($ac_try" in
20486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20487 *) ac_try_echo=$ac_try;;
20488 esac
20489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20490 (eval "$ac_link") 2>&5
20491 ac_status=$?
20492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20494 { (case "(($ac_try" in
20495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20496 *) ac_try_echo=$ac_try;;
20497 esac
20498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20499 (eval "$ac_try") 2>&5
20500 ac_status=$?
20501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502 (exit $ac_status); }; }; then
20503 pgac_cv_type_long_int_64=yes
20504 else
20505 echo "$as_me: program exited with status $ac_status" >&5
20506 echo "$as_me: failed program was:" >&5
20507 sed 's/^/| /' conftest.$ac_ext >&5
20509 ( exit $ac_status )
20510 pgac_cv_type_long_int_64=no
20512 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20517 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
20518 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6; }
20520 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
20521 if test x"$pgac_cv_type_long_int_64" = xyes ; then
20523 cat >>confdefs.h <<\_ACEOF
20524 #define HAVE_LONG_INT_64 1
20525 _ACEOF
20530 if test x"$HAVE_LONG_INT_64" = x"no" ; then
20531 { echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
20532 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6; }
20533 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
20534 echo $ECHO_N "(cached) $ECHO_C" >&6
20535 else
20536 if test "$cross_compiling" = yes; then
20537 # If cross-compiling, check the size reported by the compiler and
20538 # trust that the arithmetic works.
20539 cat >conftest.$ac_ext <<_ACEOF
20540 /* confdefs.h. */
20541 _ACEOF
20542 cat confdefs.h >>conftest.$ac_ext
20543 cat >>conftest.$ac_ext <<_ACEOF
20544 /* end confdefs.h. */
20547 main ()
20549 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
20550 test_array [0] = 0
20553 return 0;
20555 _ACEOF
20556 rm -f conftest.$ac_objext
20557 if { (ac_try="$ac_compile"
20558 case "(($ac_try" in
20559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20560 *) ac_try_echo=$ac_try;;
20561 esac
20562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20563 (eval "$ac_compile") 2>conftest.er1
20564 ac_status=$?
20565 grep -v '^ *+' conftest.er1 >conftest.err
20566 rm -f conftest.er1
20567 cat conftest.err >&5
20568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569 (exit $ac_status); } && {
20570 test -z "$ac_c_werror_flag" ||
20571 test ! -s conftest.err
20572 } && test -s conftest.$ac_objext; then
20573 pgac_cv_type_long_long_int_64=yes
20574 else
20575 echo "$as_me: failed program was:" >&5
20576 sed 's/^/| /' conftest.$ac_ext >&5
20578 pgac_cv_type_long_long_int_64=no
20581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20582 else
20583 cat >conftest.$ac_ext <<_ACEOF
20584 /* confdefs.h. */
20585 _ACEOF
20586 cat confdefs.h >>conftest.$ac_ext
20587 cat >>conftest.$ac_ext <<_ACEOF
20588 /* end confdefs.h. */
20589 typedef long long int ac_int64;
20592 * These are globals to discourage the compiler from folding all the
20593 * arithmetic tests down to compile-time constants.
20595 ac_int64 a = 20000001;
20596 ac_int64 b = 40000005;
20598 int does_int64_work()
20600 ac_int64 c,d;
20602 if (sizeof(ac_int64) != 8)
20603 return 0; /* definitely not the right size */
20605 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
20606 c = a * b;
20607 d = (c + b) / b;
20608 if (d != a+1)
20609 return 0;
20610 return 1;
20612 main() {
20613 exit(! does_int64_work());
20615 _ACEOF
20616 rm -f conftest$ac_exeext
20617 if { (ac_try="$ac_link"
20618 case "(($ac_try" in
20619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20620 *) ac_try_echo=$ac_try;;
20621 esac
20622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20623 (eval "$ac_link") 2>&5
20624 ac_status=$?
20625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20627 { (case "(($ac_try" in
20628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20629 *) ac_try_echo=$ac_try;;
20630 esac
20631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20632 (eval "$ac_try") 2>&5
20633 ac_status=$?
20634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635 (exit $ac_status); }; }; then
20636 pgac_cv_type_long_long_int_64=yes
20637 else
20638 echo "$as_me: program exited with status $ac_status" >&5
20639 echo "$as_me: failed program was:" >&5
20640 sed 's/^/| /' conftest.$ac_ext >&5
20642 ( exit $ac_status )
20643 pgac_cv_type_long_long_int_64=no
20645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20650 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
20651 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6; }
20653 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
20654 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
20656 cat >>confdefs.h <<\_ACEOF
20657 #define HAVE_LONG_LONG_INT_64 1
20658 _ACEOF
20666 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
20667 cat >conftest.$ac_ext <<_ACEOF
20668 /* confdefs.h. */
20669 _ACEOF
20670 cat confdefs.h >>conftest.$ac_ext
20671 cat >>conftest.$ac_ext <<_ACEOF
20672 /* end confdefs.h. */
20674 #define INT64CONST(x) x##LL
20675 long long int foo = INT64CONST(0x1234567890123456);
20678 main ()
20682 return 0;
20684 _ACEOF
20685 rm -f conftest.$ac_objext
20686 if { (ac_try="$ac_compile"
20687 case "(($ac_try" in
20688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20689 *) ac_try_echo=$ac_try;;
20690 esac
20691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20692 (eval "$ac_compile") 2>conftest.er1
20693 ac_status=$?
20694 grep -v '^ *+' conftest.er1 >conftest.err
20695 rm -f conftest.er1
20696 cat conftest.err >&5
20697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20698 (exit $ac_status); } && {
20699 test -z "$ac_c_werror_flag" ||
20700 test ! -s conftest.err
20701 } && test -s conftest.$ac_objext; then
20703 cat >>confdefs.h <<\_ACEOF
20704 #define HAVE_LL_CONSTANTS 1
20705 _ACEOF
20707 else
20708 echo "$as_me: failed program was:" >&5
20709 sed 's/^/| /' conftest.$ac_ext >&5
20714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20718 # If we found "long int" is 64 bits, assume snprintf handles it. If
20719 # we found we need to use "long long int", better check. We cope with
20720 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
20721 # work, fall back to our own snprintf emulation (which we know uses %lld).
20723 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
20724 if test $pgac_need_repl_snprintf = no; then
20725 { echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
20726 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6; }
20727 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
20728 echo $ECHO_N "(cached) $ECHO_C" >&6
20729 else
20730 for pgac_format in '%lld' '%qd' '%I64d'; do
20731 if test "$cross_compiling" = yes; then
20732 pgac_cv_snprintf_long_long_int_format=cross; break
20733 else
20734 cat >conftest.$ac_ext <<_ACEOF
20735 /* confdefs.h. */
20736 _ACEOF
20737 cat confdefs.h >>conftest.$ac_ext
20738 cat >>conftest.$ac_ext <<_ACEOF
20739 /* end confdefs.h. */
20740 #include <stdio.h>
20741 typedef long long int ac_int64;
20742 #define INT64_FORMAT "$pgac_format"
20744 ac_int64 a = 20000001;
20745 ac_int64 b = 40000005;
20747 int does_int64_snprintf_work()
20749 ac_int64 c;
20750 char buf[100];
20752 if (sizeof(ac_int64) != 8)
20753 return 0; /* doesn't look like the right size */
20755 c = a * b;
20756 snprintf(buf, 100, INT64_FORMAT, c);
20757 if (strcmp(buf, "800000140000005") != 0)
20758 return 0; /* either multiply or snprintf is busted */
20759 return 1;
20761 main() {
20762 exit(! does_int64_snprintf_work());
20764 _ACEOF
20765 rm -f conftest$ac_exeext
20766 if { (ac_try="$ac_link"
20767 case "(($ac_try" in
20768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20769 *) ac_try_echo=$ac_try;;
20770 esac
20771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20772 (eval "$ac_link") 2>&5
20773 ac_status=$?
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20776 { (case "(($ac_try" in
20777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20778 *) ac_try_echo=$ac_try;;
20779 esac
20780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20781 (eval "$ac_try") 2>&5
20782 ac_status=$?
20783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20784 (exit $ac_status); }; }; then
20785 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
20786 else
20787 echo "$as_me: program exited with status $ac_status" >&5
20788 echo "$as_me: failed program was:" >&5
20789 sed 's/^/| /' conftest.$ac_ext >&5
20792 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20796 done
20799 LONG_LONG_INT_FORMAT=''
20801 case $pgac_cv_snprintf_long_long_int_format in
20802 cross) { echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
20803 echo "${ECHO_T}cannot test (not on host machine)" >&6; };;
20804 ?*) { echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
20805 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6; }
20806 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
20807 *) { echo "$as_me:$LINENO: result: none" >&5
20808 echo "${ECHO_T}none" >&6; };;
20809 esac
20810 if test "$LONG_LONG_INT_FORMAT" = ""; then
20811 # Force usage of our own snprintf, since system snprintf is broken
20812 pgac_need_repl_snprintf=yes
20813 LONG_LONG_INT_FORMAT='%lld'
20815 else
20816 # Here if we previously decided we needed to use our own snprintf
20817 LONG_LONG_INT_FORMAT='%lld'
20819 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
20820 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
20821 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
20822 else
20823 # Here if we are not using 'long long int' at all
20824 INT64_FORMAT='"%ld"'
20825 UINT64_FORMAT='"%lu"'
20829 cat >>confdefs.h <<_ACEOF
20830 #define INT64_FORMAT $INT64_FORMAT
20831 _ACEOF
20835 cat >>confdefs.h <<_ACEOF
20836 #define UINT64_FORMAT $UINT64_FORMAT
20837 _ACEOF
20840 # Now we have checked all the reasons to replace snprintf
20841 if test $pgac_need_repl_snprintf = yes; then
20843 cat >>confdefs.h <<\_ACEOF
20844 #define USE_REPL_SNPRINTF 1
20845 _ACEOF
20847 case " $LIBOBJS " in
20848 *" snprintf.$ac_objext "* ) ;;
20849 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20851 esac
20855 # Need a #define for the size of Datum (unsigned long)
20856 { echo "$as_me:$LINENO: checking for unsigned long" >&5
20857 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
20858 if test "${ac_cv_type_unsigned_long+set}" = set; then
20859 echo $ECHO_N "(cached) $ECHO_C" >&6
20860 else
20861 cat >conftest.$ac_ext <<_ACEOF
20862 /* confdefs.h. */
20863 _ACEOF
20864 cat confdefs.h >>conftest.$ac_ext
20865 cat >>conftest.$ac_ext <<_ACEOF
20866 /* end confdefs.h. */
20867 $ac_includes_default
20868 typedef unsigned long ac__type_new_;
20870 main ()
20872 if ((ac__type_new_ *) 0)
20873 return 0;
20874 if (sizeof (ac__type_new_))
20875 return 0;
20877 return 0;
20879 _ACEOF
20880 rm -f conftest.$ac_objext
20881 if { (ac_try="$ac_compile"
20882 case "(($ac_try" in
20883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20884 *) ac_try_echo=$ac_try;;
20885 esac
20886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20887 (eval "$ac_compile") 2>conftest.er1
20888 ac_status=$?
20889 grep -v '^ *+' conftest.er1 >conftest.err
20890 rm -f conftest.er1
20891 cat conftest.err >&5
20892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893 (exit $ac_status); } && {
20894 test -z "$ac_c_werror_flag" ||
20895 test ! -s conftest.err
20896 } && test -s conftest.$ac_objext; then
20897 ac_cv_type_unsigned_long=yes
20898 else
20899 echo "$as_me: failed program was:" >&5
20900 sed 's/^/| /' conftest.$ac_ext >&5
20902 ac_cv_type_unsigned_long=no
20905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20907 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
20908 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
20910 # The cast to long int works around a bug in the HP C Compiler
20911 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20912 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20913 # This bug is HP SR number 8606223364.
20914 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
20915 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
20916 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
20917 echo $ECHO_N "(cached) $ECHO_C" >&6
20918 else
20919 if test "$cross_compiling" = yes; then
20920 # Depending upon the size, compute the lo and hi bounds.
20921 cat >conftest.$ac_ext <<_ACEOF
20922 /* confdefs.h. */
20923 _ACEOF
20924 cat confdefs.h >>conftest.$ac_ext
20925 cat >>conftest.$ac_ext <<_ACEOF
20926 /* end confdefs.h. */
20927 $ac_includes_default
20928 typedef unsigned long ac__type_sizeof_;
20930 main ()
20932 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20933 test_array [0] = 0
20936 return 0;
20938 _ACEOF
20939 rm -f conftest.$ac_objext
20940 if { (ac_try="$ac_compile"
20941 case "(($ac_try" in
20942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20943 *) ac_try_echo=$ac_try;;
20944 esac
20945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20946 (eval "$ac_compile") 2>conftest.er1
20947 ac_status=$?
20948 grep -v '^ *+' conftest.er1 >conftest.err
20949 rm -f conftest.er1
20950 cat conftest.err >&5
20951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952 (exit $ac_status); } && {
20953 test -z "$ac_c_werror_flag" ||
20954 test ! -s conftest.err
20955 } && test -s conftest.$ac_objext; then
20956 ac_lo=0 ac_mid=0
20957 while :; do
20958 cat >conftest.$ac_ext <<_ACEOF
20959 /* confdefs.h. */
20960 _ACEOF
20961 cat confdefs.h >>conftest.$ac_ext
20962 cat >>conftest.$ac_ext <<_ACEOF
20963 /* end confdefs.h. */
20964 $ac_includes_default
20965 typedef unsigned long ac__type_sizeof_;
20967 main ()
20969 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20970 test_array [0] = 0
20973 return 0;
20975 _ACEOF
20976 rm -f conftest.$ac_objext
20977 if { (ac_try="$ac_compile"
20978 case "(($ac_try" in
20979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20980 *) ac_try_echo=$ac_try;;
20981 esac
20982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20983 (eval "$ac_compile") 2>conftest.er1
20984 ac_status=$?
20985 grep -v '^ *+' conftest.er1 >conftest.err
20986 rm -f conftest.er1
20987 cat conftest.err >&5
20988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989 (exit $ac_status); } && {
20990 test -z "$ac_c_werror_flag" ||
20991 test ! -s conftest.err
20992 } && test -s conftest.$ac_objext; then
20993 ac_hi=$ac_mid; break
20994 else
20995 echo "$as_me: failed program was:" >&5
20996 sed 's/^/| /' conftest.$ac_ext >&5
20998 ac_lo=`expr $ac_mid + 1`
20999 if test $ac_lo -le $ac_mid; then
21000 ac_lo= ac_hi=
21001 break
21003 ac_mid=`expr 2 '*' $ac_mid + 1`
21006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21007 done
21008 else
21009 echo "$as_me: failed program was:" >&5
21010 sed 's/^/| /' conftest.$ac_ext >&5
21012 cat >conftest.$ac_ext <<_ACEOF
21013 /* confdefs.h. */
21014 _ACEOF
21015 cat confdefs.h >>conftest.$ac_ext
21016 cat >>conftest.$ac_ext <<_ACEOF
21017 /* end confdefs.h. */
21018 $ac_includes_default
21019 typedef unsigned long ac__type_sizeof_;
21021 main ()
21023 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21024 test_array [0] = 0
21027 return 0;
21029 _ACEOF
21030 rm -f conftest.$ac_objext
21031 if { (ac_try="$ac_compile"
21032 case "(($ac_try" in
21033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21034 *) ac_try_echo=$ac_try;;
21035 esac
21036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21037 (eval "$ac_compile") 2>conftest.er1
21038 ac_status=$?
21039 grep -v '^ *+' conftest.er1 >conftest.err
21040 rm -f conftest.er1
21041 cat conftest.err >&5
21042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21043 (exit $ac_status); } && {
21044 test -z "$ac_c_werror_flag" ||
21045 test ! -s conftest.err
21046 } && test -s conftest.$ac_objext; then
21047 ac_hi=-1 ac_mid=-1
21048 while :; do
21049 cat >conftest.$ac_ext <<_ACEOF
21050 /* confdefs.h. */
21051 _ACEOF
21052 cat confdefs.h >>conftest.$ac_ext
21053 cat >>conftest.$ac_ext <<_ACEOF
21054 /* end confdefs.h. */
21055 $ac_includes_default
21056 typedef unsigned long ac__type_sizeof_;
21058 main ()
21060 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21061 test_array [0] = 0
21064 return 0;
21066 _ACEOF
21067 rm -f conftest.$ac_objext
21068 if { (ac_try="$ac_compile"
21069 case "(($ac_try" in
21070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21071 *) ac_try_echo=$ac_try;;
21072 esac
21073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21074 (eval "$ac_compile") 2>conftest.er1
21075 ac_status=$?
21076 grep -v '^ *+' conftest.er1 >conftest.err
21077 rm -f conftest.er1
21078 cat conftest.err >&5
21079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080 (exit $ac_status); } && {
21081 test -z "$ac_c_werror_flag" ||
21082 test ! -s conftest.err
21083 } && test -s conftest.$ac_objext; then
21084 ac_lo=$ac_mid; break
21085 else
21086 echo "$as_me: failed program was:" >&5
21087 sed 's/^/| /' conftest.$ac_ext >&5
21089 ac_hi=`expr '(' $ac_mid ')' - 1`
21090 if test $ac_mid -le $ac_hi; then
21091 ac_lo= ac_hi=
21092 break
21094 ac_mid=`expr 2 '*' $ac_mid`
21097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21098 done
21099 else
21100 echo "$as_me: failed program was:" >&5
21101 sed 's/^/| /' conftest.$ac_ext >&5
21103 ac_lo= ac_hi=
21106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21110 # Binary search between lo and hi bounds.
21111 while test "x$ac_lo" != "x$ac_hi"; do
21112 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21113 cat >conftest.$ac_ext <<_ACEOF
21114 /* confdefs.h. */
21115 _ACEOF
21116 cat confdefs.h >>conftest.$ac_ext
21117 cat >>conftest.$ac_ext <<_ACEOF
21118 /* end confdefs.h. */
21119 $ac_includes_default
21120 typedef unsigned long ac__type_sizeof_;
21122 main ()
21124 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21125 test_array [0] = 0
21128 return 0;
21130 _ACEOF
21131 rm -f conftest.$ac_objext
21132 if { (ac_try="$ac_compile"
21133 case "(($ac_try" in
21134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21135 *) ac_try_echo=$ac_try;;
21136 esac
21137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21138 (eval "$ac_compile") 2>conftest.er1
21139 ac_status=$?
21140 grep -v '^ *+' conftest.er1 >conftest.err
21141 rm -f conftest.er1
21142 cat conftest.err >&5
21143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21144 (exit $ac_status); } && {
21145 test -z "$ac_c_werror_flag" ||
21146 test ! -s conftest.err
21147 } && test -s conftest.$ac_objext; then
21148 ac_hi=$ac_mid
21149 else
21150 echo "$as_me: failed program was:" >&5
21151 sed 's/^/| /' conftest.$ac_ext >&5
21153 ac_lo=`expr '(' $ac_mid ')' + 1`
21156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21157 done
21158 case $ac_lo in
21159 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
21160 '') if test "$ac_cv_type_unsigned_long" = yes; then
21161 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
21162 See \`config.log' for more details." >&5
21163 echo "$as_me: error: cannot compute sizeof (unsigned long)
21164 See \`config.log' for more details." >&2;}
21165 { (exit 77); exit 77; }; }
21166 else
21167 ac_cv_sizeof_unsigned_long=0
21168 fi ;;
21169 esac
21170 else
21171 cat >conftest.$ac_ext <<_ACEOF
21172 /* confdefs.h. */
21173 _ACEOF
21174 cat confdefs.h >>conftest.$ac_ext
21175 cat >>conftest.$ac_ext <<_ACEOF
21176 /* end confdefs.h. */
21177 $ac_includes_default
21178 typedef unsigned long ac__type_sizeof_;
21179 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21180 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21181 #include <stdio.h>
21182 #include <stdlib.h>
21184 main ()
21187 FILE *f = fopen ("conftest.val", "w");
21188 if (! f)
21189 return 1;
21190 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21192 long int i = longval ();
21193 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21194 return 1;
21195 fprintf (f, "%ld\n", i);
21197 else
21199 unsigned long int i = ulongval ();
21200 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21201 return 1;
21202 fprintf (f, "%lu\n", i);
21204 return ferror (f) || fclose (f) != 0;
21207 return 0;
21209 _ACEOF
21210 rm -f conftest$ac_exeext
21211 if { (ac_try="$ac_link"
21212 case "(($ac_try" in
21213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21214 *) ac_try_echo=$ac_try;;
21215 esac
21216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21217 (eval "$ac_link") 2>&5
21218 ac_status=$?
21219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21221 { (case "(($ac_try" in
21222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21223 *) ac_try_echo=$ac_try;;
21224 esac
21225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21226 (eval "$ac_try") 2>&5
21227 ac_status=$?
21228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229 (exit $ac_status); }; }; then
21230 ac_cv_sizeof_unsigned_long=`cat conftest.val`
21231 else
21232 echo "$as_me: program exited with status $ac_status" >&5
21233 echo "$as_me: failed program was:" >&5
21234 sed 's/^/| /' conftest.$ac_ext >&5
21236 ( exit $ac_status )
21237 if test "$ac_cv_type_unsigned_long" = yes; then
21238 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
21239 See \`config.log' for more details." >&5
21240 echo "$as_me: error: cannot compute sizeof (unsigned long)
21241 See \`config.log' for more details." >&2;}
21242 { (exit 77); exit 77; }; }
21243 else
21244 ac_cv_sizeof_unsigned_long=0
21247 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21249 rm -f conftest.val
21251 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
21252 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
21256 cat >>confdefs.h <<_ACEOF
21257 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21258 _ACEOF
21262 # And one for the size of size_t (enables tweaks for > 32bit address space)
21263 { echo "$as_me:$LINENO: checking for size_t" >&5
21264 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21265 if test "${ac_cv_type_size_t+set}" = set; then
21266 echo $ECHO_N "(cached) $ECHO_C" >&6
21267 else
21268 cat >conftest.$ac_ext <<_ACEOF
21269 /* confdefs.h. */
21270 _ACEOF
21271 cat confdefs.h >>conftest.$ac_ext
21272 cat >>conftest.$ac_ext <<_ACEOF
21273 /* end confdefs.h. */
21274 $ac_includes_default
21275 typedef size_t ac__type_new_;
21277 main ()
21279 if ((ac__type_new_ *) 0)
21280 return 0;
21281 if (sizeof (ac__type_new_))
21282 return 0;
21284 return 0;
21286 _ACEOF
21287 rm -f conftest.$ac_objext
21288 if { (ac_try="$ac_compile"
21289 case "(($ac_try" in
21290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21291 *) ac_try_echo=$ac_try;;
21292 esac
21293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21294 (eval "$ac_compile") 2>conftest.er1
21295 ac_status=$?
21296 grep -v '^ *+' conftest.er1 >conftest.err
21297 rm -f conftest.er1
21298 cat conftest.err >&5
21299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300 (exit $ac_status); } && {
21301 test -z "$ac_c_werror_flag" ||
21302 test ! -s conftest.err
21303 } && test -s conftest.$ac_objext; then
21304 ac_cv_type_size_t=yes
21305 else
21306 echo "$as_me: failed program was:" >&5
21307 sed 's/^/| /' conftest.$ac_ext >&5
21309 ac_cv_type_size_t=no
21312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21314 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21315 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21317 # The cast to long int works around a bug in the HP C Compiler
21318 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21319 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21320 # This bug is HP SR number 8606223364.
21321 { echo "$as_me:$LINENO: checking size of size_t" >&5
21322 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
21323 if test "${ac_cv_sizeof_size_t+set}" = set; then
21324 echo $ECHO_N "(cached) $ECHO_C" >&6
21325 else
21326 if test "$cross_compiling" = yes; then
21327 # Depending upon the size, compute the lo and hi bounds.
21328 cat >conftest.$ac_ext <<_ACEOF
21329 /* confdefs.h. */
21330 _ACEOF
21331 cat confdefs.h >>conftest.$ac_ext
21332 cat >>conftest.$ac_ext <<_ACEOF
21333 /* end confdefs.h. */
21334 $ac_includes_default
21335 typedef size_t ac__type_sizeof_;
21337 main ()
21339 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21340 test_array [0] = 0
21343 return 0;
21345 _ACEOF
21346 rm -f conftest.$ac_objext
21347 if { (ac_try="$ac_compile"
21348 case "(($ac_try" in
21349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21350 *) ac_try_echo=$ac_try;;
21351 esac
21352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21353 (eval "$ac_compile") 2>conftest.er1
21354 ac_status=$?
21355 grep -v '^ *+' conftest.er1 >conftest.err
21356 rm -f conftest.er1
21357 cat conftest.err >&5
21358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21359 (exit $ac_status); } && {
21360 test -z "$ac_c_werror_flag" ||
21361 test ! -s conftest.err
21362 } && test -s conftest.$ac_objext; then
21363 ac_lo=0 ac_mid=0
21364 while :; do
21365 cat >conftest.$ac_ext <<_ACEOF
21366 /* confdefs.h. */
21367 _ACEOF
21368 cat confdefs.h >>conftest.$ac_ext
21369 cat >>conftest.$ac_ext <<_ACEOF
21370 /* end confdefs.h. */
21371 $ac_includes_default
21372 typedef size_t ac__type_sizeof_;
21374 main ()
21376 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21377 test_array [0] = 0
21380 return 0;
21382 _ACEOF
21383 rm -f conftest.$ac_objext
21384 if { (ac_try="$ac_compile"
21385 case "(($ac_try" in
21386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21387 *) ac_try_echo=$ac_try;;
21388 esac
21389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21390 (eval "$ac_compile") 2>conftest.er1
21391 ac_status=$?
21392 grep -v '^ *+' conftest.er1 >conftest.err
21393 rm -f conftest.er1
21394 cat conftest.err >&5
21395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21396 (exit $ac_status); } && {
21397 test -z "$ac_c_werror_flag" ||
21398 test ! -s conftest.err
21399 } && test -s conftest.$ac_objext; then
21400 ac_hi=$ac_mid; break
21401 else
21402 echo "$as_me: failed program was:" >&5
21403 sed 's/^/| /' conftest.$ac_ext >&5
21405 ac_lo=`expr $ac_mid + 1`
21406 if test $ac_lo -le $ac_mid; then
21407 ac_lo= ac_hi=
21408 break
21410 ac_mid=`expr 2 '*' $ac_mid + 1`
21413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21414 done
21415 else
21416 echo "$as_me: failed program was:" >&5
21417 sed 's/^/| /' conftest.$ac_ext >&5
21419 cat >conftest.$ac_ext <<_ACEOF
21420 /* confdefs.h. */
21421 _ACEOF
21422 cat confdefs.h >>conftest.$ac_ext
21423 cat >>conftest.$ac_ext <<_ACEOF
21424 /* end confdefs.h. */
21425 $ac_includes_default
21426 typedef size_t ac__type_sizeof_;
21428 main ()
21430 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21431 test_array [0] = 0
21434 return 0;
21436 _ACEOF
21437 rm -f conftest.$ac_objext
21438 if { (ac_try="$ac_compile"
21439 case "(($ac_try" in
21440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21441 *) ac_try_echo=$ac_try;;
21442 esac
21443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21444 (eval "$ac_compile") 2>conftest.er1
21445 ac_status=$?
21446 grep -v '^ *+' conftest.er1 >conftest.err
21447 rm -f conftest.er1
21448 cat conftest.err >&5
21449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21450 (exit $ac_status); } && {
21451 test -z "$ac_c_werror_flag" ||
21452 test ! -s conftest.err
21453 } && test -s conftest.$ac_objext; then
21454 ac_hi=-1 ac_mid=-1
21455 while :; do
21456 cat >conftest.$ac_ext <<_ACEOF
21457 /* confdefs.h. */
21458 _ACEOF
21459 cat confdefs.h >>conftest.$ac_ext
21460 cat >>conftest.$ac_ext <<_ACEOF
21461 /* end confdefs.h. */
21462 $ac_includes_default
21463 typedef size_t ac__type_sizeof_;
21465 main ()
21467 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21468 test_array [0] = 0
21471 return 0;
21473 _ACEOF
21474 rm -f conftest.$ac_objext
21475 if { (ac_try="$ac_compile"
21476 case "(($ac_try" in
21477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21478 *) ac_try_echo=$ac_try;;
21479 esac
21480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21481 (eval "$ac_compile") 2>conftest.er1
21482 ac_status=$?
21483 grep -v '^ *+' conftest.er1 >conftest.err
21484 rm -f conftest.er1
21485 cat conftest.err >&5
21486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487 (exit $ac_status); } && {
21488 test -z "$ac_c_werror_flag" ||
21489 test ! -s conftest.err
21490 } && test -s conftest.$ac_objext; then
21491 ac_lo=$ac_mid; break
21492 else
21493 echo "$as_me: failed program was:" >&5
21494 sed 's/^/| /' conftest.$ac_ext >&5
21496 ac_hi=`expr '(' $ac_mid ')' - 1`
21497 if test $ac_mid -le $ac_hi; then
21498 ac_lo= ac_hi=
21499 break
21501 ac_mid=`expr 2 '*' $ac_mid`
21504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21505 done
21506 else
21507 echo "$as_me: failed program was:" >&5
21508 sed 's/^/| /' conftest.$ac_ext >&5
21510 ac_lo= ac_hi=
21513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21517 # Binary search between lo and hi bounds.
21518 while test "x$ac_lo" != "x$ac_hi"; do
21519 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21520 cat >conftest.$ac_ext <<_ACEOF
21521 /* confdefs.h. */
21522 _ACEOF
21523 cat confdefs.h >>conftest.$ac_ext
21524 cat >>conftest.$ac_ext <<_ACEOF
21525 /* end confdefs.h. */
21526 $ac_includes_default
21527 typedef size_t ac__type_sizeof_;
21529 main ()
21531 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21532 test_array [0] = 0
21535 return 0;
21537 _ACEOF
21538 rm -f conftest.$ac_objext
21539 if { (ac_try="$ac_compile"
21540 case "(($ac_try" in
21541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21542 *) ac_try_echo=$ac_try;;
21543 esac
21544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21545 (eval "$ac_compile") 2>conftest.er1
21546 ac_status=$?
21547 grep -v '^ *+' conftest.er1 >conftest.err
21548 rm -f conftest.er1
21549 cat conftest.err >&5
21550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21551 (exit $ac_status); } && {
21552 test -z "$ac_c_werror_flag" ||
21553 test ! -s conftest.err
21554 } && test -s conftest.$ac_objext; then
21555 ac_hi=$ac_mid
21556 else
21557 echo "$as_me: failed program was:" >&5
21558 sed 's/^/| /' conftest.$ac_ext >&5
21560 ac_lo=`expr '(' $ac_mid ')' + 1`
21563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21564 done
21565 case $ac_lo in
21566 ?*) ac_cv_sizeof_size_t=$ac_lo;;
21567 '') if test "$ac_cv_type_size_t" = yes; then
21568 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21569 See \`config.log' for more details." >&5
21570 echo "$as_me: error: cannot compute sizeof (size_t)
21571 See \`config.log' for more details." >&2;}
21572 { (exit 77); exit 77; }; }
21573 else
21574 ac_cv_sizeof_size_t=0
21575 fi ;;
21576 esac
21577 else
21578 cat >conftest.$ac_ext <<_ACEOF
21579 /* confdefs.h. */
21580 _ACEOF
21581 cat confdefs.h >>conftest.$ac_ext
21582 cat >>conftest.$ac_ext <<_ACEOF
21583 /* end confdefs.h. */
21584 $ac_includes_default
21585 typedef size_t ac__type_sizeof_;
21586 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21587 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21588 #include <stdio.h>
21589 #include <stdlib.h>
21591 main ()
21594 FILE *f = fopen ("conftest.val", "w");
21595 if (! f)
21596 return 1;
21597 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21599 long int i = longval ();
21600 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21601 return 1;
21602 fprintf (f, "%ld\n", i);
21604 else
21606 unsigned long int i = ulongval ();
21607 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21608 return 1;
21609 fprintf (f, "%lu\n", i);
21611 return ferror (f) || fclose (f) != 0;
21614 return 0;
21616 _ACEOF
21617 rm -f conftest$ac_exeext
21618 if { (ac_try="$ac_link"
21619 case "(($ac_try" in
21620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21621 *) ac_try_echo=$ac_try;;
21622 esac
21623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21624 (eval "$ac_link") 2>&5
21625 ac_status=$?
21626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21628 { (case "(($ac_try" in
21629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21630 *) ac_try_echo=$ac_try;;
21631 esac
21632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21633 (eval "$ac_try") 2>&5
21634 ac_status=$?
21635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21636 (exit $ac_status); }; }; then
21637 ac_cv_sizeof_size_t=`cat conftest.val`
21638 else
21639 echo "$as_me: program exited with status $ac_status" >&5
21640 echo "$as_me: failed program was:" >&5
21641 sed 's/^/| /' conftest.$ac_ext >&5
21643 ( exit $ac_status )
21644 if test "$ac_cv_type_size_t" = yes; then
21645 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21646 See \`config.log' for more details." >&5
21647 echo "$as_me: error: cannot compute sizeof (size_t)
21648 See \`config.log' for more details." >&2;}
21649 { (exit 77); exit 77; }; }
21650 else
21651 ac_cv_sizeof_size_t=0
21654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21656 rm -f conftest.val
21658 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
21659 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
21663 cat >>confdefs.h <<_ACEOF
21664 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21665 _ACEOF
21669 # Decide whether float4 is passed by value: user-selectable, enabled by default
21670 { echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
21671 echo $ECHO_N "checking whether to build with float4 passed by value... $ECHO_C" >&6; }
21673 pgac_args="$pgac_args enable_float4_byval"
21675 # Check whether --enable-float4-byval was given.
21676 if test "${enable_float4_byval+set}" = set; then
21677 enableval=$enable_float4_byval;
21678 case $enableval in
21679 yes)
21681 cat >>confdefs.h <<\_ACEOF
21682 #define USE_FLOAT4_BYVAL 1
21683 _ACEOF
21685 float4passbyval=true
21688 float4passbyval=false
21691 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
21692 echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
21693 { (exit 1); exit 1; }; }
21695 esac
21697 else
21698 enable_float4_byval=yes
21700 cat >>confdefs.h <<\_ACEOF
21701 #define USE_FLOAT4_BYVAL 1
21702 _ACEOF
21704 float4passbyval=true
21708 { echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
21709 echo "${ECHO_T}$enable_float4_byval" >&6; }
21711 cat >>confdefs.h <<_ACEOF
21712 #define FLOAT4PASSBYVAL $float4passbyval
21713 _ACEOF
21716 # Decide whether float8 is passed by value.
21717 # Note: this setting also controls int8 and related types such as timestamp.
21718 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
21719 # If not, trying to select it is an error.
21720 { echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
21721 echo $ECHO_N "checking whether to build with float8 passed by value... $ECHO_C" >&6; }
21722 if test $ac_cv_sizeof_unsigned_long -ge 8 ; then
21724 pgac_args="$pgac_args enable_float8_byval"
21726 # Check whether --enable-float8-byval was given.
21727 if test "${enable_float8_byval+set}" = set; then
21728 enableval=$enable_float8_byval;
21729 case $enableval in
21730 yes)
21737 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
21738 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
21739 { (exit 1); exit 1; }; }
21741 esac
21743 else
21744 enable_float8_byval=yes
21749 else
21751 pgac_args="$pgac_args enable_float8_byval"
21753 # Check whether --enable-float8-byval was given.
21754 if test "${enable_float8_byval+set}" = set; then
21755 enableval=$enable_float8_byval;
21756 case $enableval in
21757 yes)
21764 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
21765 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
21766 { (exit 1); exit 1; }; }
21768 esac
21770 else
21771 enable_float8_byval=no
21776 if test "$enable_float8_byval" = yes ; then
21777 { { echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
21778 echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
21779 { (exit 1); exit 1; }; }
21782 if test "$enable_float8_byval" = yes ; then
21784 cat >>confdefs.h <<\_ACEOF
21785 #define USE_FLOAT8_BYVAL 1
21786 _ACEOF
21788 float8passbyval=true
21789 else
21790 float8passbyval=false
21792 { echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
21793 echo "${ECHO_T}$enable_float8_byval" >&6; }
21795 cat >>confdefs.h <<_ACEOF
21796 #define FLOAT8PASSBYVAL $float8passbyval
21797 _ACEOF
21800 # Determine memory alignment requirements for the basic C data types.
21802 { echo "$as_me:$LINENO: checking for short" >&5
21803 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
21804 if test "${ac_cv_type_short+set}" = set; then
21805 echo $ECHO_N "(cached) $ECHO_C" >&6
21806 else
21807 cat >conftest.$ac_ext <<_ACEOF
21808 /* confdefs.h. */
21809 _ACEOF
21810 cat confdefs.h >>conftest.$ac_ext
21811 cat >>conftest.$ac_ext <<_ACEOF
21812 /* end confdefs.h. */
21813 $ac_includes_default
21814 typedef short ac__type_new_;
21816 main ()
21818 if ((ac__type_new_ *) 0)
21819 return 0;
21820 if (sizeof (ac__type_new_))
21821 return 0;
21823 return 0;
21825 _ACEOF
21826 rm -f conftest.$ac_objext
21827 if { (ac_try="$ac_compile"
21828 case "(($ac_try" in
21829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21830 *) ac_try_echo=$ac_try;;
21831 esac
21832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21833 (eval "$ac_compile") 2>conftest.er1
21834 ac_status=$?
21835 grep -v '^ *+' conftest.er1 >conftest.err
21836 rm -f conftest.er1
21837 cat conftest.err >&5
21838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21839 (exit $ac_status); } && {
21840 test -z "$ac_c_werror_flag" ||
21841 test ! -s conftest.err
21842 } && test -s conftest.$ac_objext; then
21843 ac_cv_type_short=yes
21844 else
21845 echo "$as_me: failed program was:" >&5
21846 sed 's/^/| /' conftest.$ac_ext >&5
21848 ac_cv_type_short=no
21851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21853 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
21854 echo "${ECHO_T}$ac_cv_type_short" >&6; }
21856 # The cast to long int works around a bug in the HP C Compiler,
21857 # see AC_CHECK_SIZEOF for more information.
21858 { echo "$as_me:$LINENO: checking alignment of short" >&5
21859 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6; }
21860 if test "${ac_cv_alignof_short+set}" = set; then
21861 echo $ECHO_N "(cached) $ECHO_C" >&6
21862 else
21863 if test "$cross_compiling" = yes; then
21864 # Depending upon the size, compute the lo and hi bounds.
21865 cat >conftest.$ac_ext <<_ACEOF
21866 /* confdefs.h. */
21867 _ACEOF
21868 cat confdefs.h >>conftest.$ac_ext
21869 cat >>conftest.$ac_ext <<_ACEOF
21870 /* end confdefs.h. */
21871 $ac_includes_default
21872 #ifndef offsetof
21873 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21874 #endif
21875 typedef struct { char x; short y; } ac__type_alignof_;
21877 main ()
21879 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
21880 test_array [0] = 0
21883 return 0;
21885 _ACEOF
21886 rm -f conftest.$ac_objext
21887 if { (ac_try="$ac_compile"
21888 case "(($ac_try" in
21889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21890 *) ac_try_echo=$ac_try;;
21891 esac
21892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21893 (eval "$ac_compile") 2>conftest.er1
21894 ac_status=$?
21895 grep -v '^ *+' conftest.er1 >conftest.err
21896 rm -f conftest.er1
21897 cat conftest.err >&5
21898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21899 (exit $ac_status); } && {
21900 test -z "$ac_c_werror_flag" ||
21901 test ! -s conftest.err
21902 } && test -s conftest.$ac_objext; then
21903 ac_lo=0 ac_mid=0
21904 while :; do
21905 cat >conftest.$ac_ext <<_ACEOF
21906 /* confdefs.h. */
21907 _ACEOF
21908 cat confdefs.h >>conftest.$ac_ext
21909 cat >>conftest.$ac_ext <<_ACEOF
21910 /* end confdefs.h. */
21911 $ac_includes_default
21912 #ifndef offsetof
21913 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21914 #endif
21915 typedef struct { char x; short y; } ac__type_alignof_;
21917 main ()
21919 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21920 test_array [0] = 0
21923 return 0;
21925 _ACEOF
21926 rm -f conftest.$ac_objext
21927 if { (ac_try="$ac_compile"
21928 case "(($ac_try" in
21929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21930 *) ac_try_echo=$ac_try;;
21931 esac
21932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21933 (eval "$ac_compile") 2>conftest.er1
21934 ac_status=$?
21935 grep -v '^ *+' conftest.er1 >conftest.err
21936 rm -f conftest.er1
21937 cat conftest.err >&5
21938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21939 (exit $ac_status); } && {
21940 test -z "$ac_c_werror_flag" ||
21941 test ! -s conftest.err
21942 } && test -s conftest.$ac_objext; then
21943 ac_hi=$ac_mid; break
21944 else
21945 echo "$as_me: failed program was:" >&5
21946 sed 's/^/| /' conftest.$ac_ext >&5
21948 ac_lo=`expr $ac_mid + 1`
21949 if test $ac_lo -le $ac_mid; then
21950 ac_lo= ac_hi=
21951 break
21953 ac_mid=`expr 2 '*' $ac_mid + 1`
21956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21957 done
21958 else
21959 echo "$as_me: failed program was:" >&5
21960 sed 's/^/| /' conftest.$ac_ext >&5
21962 cat >conftest.$ac_ext <<_ACEOF
21963 /* confdefs.h. */
21964 _ACEOF
21965 cat confdefs.h >>conftest.$ac_ext
21966 cat >>conftest.$ac_ext <<_ACEOF
21967 /* end confdefs.h. */
21968 $ac_includes_default
21969 #ifndef offsetof
21970 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21971 #endif
21972 typedef struct { char x; short y; } ac__type_alignof_;
21974 main ()
21976 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
21977 test_array [0] = 0
21980 return 0;
21982 _ACEOF
21983 rm -f conftest.$ac_objext
21984 if { (ac_try="$ac_compile"
21985 case "(($ac_try" in
21986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21987 *) ac_try_echo=$ac_try;;
21988 esac
21989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21990 (eval "$ac_compile") 2>conftest.er1
21991 ac_status=$?
21992 grep -v '^ *+' conftest.er1 >conftest.err
21993 rm -f conftest.er1
21994 cat conftest.err >&5
21995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21996 (exit $ac_status); } && {
21997 test -z "$ac_c_werror_flag" ||
21998 test ! -s conftest.err
21999 } && test -s conftest.$ac_objext; then
22000 ac_hi=-1 ac_mid=-1
22001 while :; do
22002 cat >conftest.$ac_ext <<_ACEOF
22003 /* confdefs.h. */
22004 _ACEOF
22005 cat confdefs.h >>conftest.$ac_ext
22006 cat >>conftest.$ac_ext <<_ACEOF
22007 /* end confdefs.h. */
22008 $ac_includes_default
22009 #ifndef offsetof
22010 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22011 #endif
22012 typedef struct { char x; short y; } ac__type_alignof_;
22014 main ()
22016 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22017 test_array [0] = 0
22020 return 0;
22022 _ACEOF
22023 rm -f conftest.$ac_objext
22024 if { (ac_try="$ac_compile"
22025 case "(($ac_try" in
22026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22027 *) ac_try_echo=$ac_try;;
22028 esac
22029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22030 (eval "$ac_compile") 2>conftest.er1
22031 ac_status=$?
22032 grep -v '^ *+' conftest.er1 >conftest.err
22033 rm -f conftest.er1
22034 cat conftest.err >&5
22035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22036 (exit $ac_status); } && {
22037 test -z "$ac_c_werror_flag" ||
22038 test ! -s conftest.err
22039 } && test -s conftest.$ac_objext; then
22040 ac_lo=$ac_mid; break
22041 else
22042 echo "$as_me: failed program was:" >&5
22043 sed 's/^/| /' conftest.$ac_ext >&5
22045 ac_hi=`expr '(' $ac_mid ')' - 1`
22046 if test $ac_mid -le $ac_hi; then
22047 ac_lo= ac_hi=
22048 break
22050 ac_mid=`expr 2 '*' $ac_mid`
22053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22054 done
22055 else
22056 echo "$as_me: failed program was:" >&5
22057 sed 's/^/| /' conftest.$ac_ext >&5
22059 ac_lo= ac_hi=
22062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22066 # Binary search between lo and hi bounds.
22067 while test "x$ac_lo" != "x$ac_hi"; do
22068 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22069 cat >conftest.$ac_ext <<_ACEOF
22070 /* confdefs.h. */
22071 _ACEOF
22072 cat confdefs.h >>conftest.$ac_ext
22073 cat >>conftest.$ac_ext <<_ACEOF
22074 /* end confdefs.h. */
22075 $ac_includes_default
22076 #ifndef offsetof
22077 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22078 #endif
22079 typedef struct { char x; short y; } ac__type_alignof_;
22081 main ()
22083 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22084 test_array [0] = 0
22087 return 0;
22089 _ACEOF
22090 rm -f conftest.$ac_objext
22091 if { (ac_try="$ac_compile"
22092 case "(($ac_try" in
22093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22094 *) ac_try_echo=$ac_try;;
22095 esac
22096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22097 (eval "$ac_compile") 2>conftest.er1
22098 ac_status=$?
22099 grep -v '^ *+' conftest.er1 >conftest.err
22100 rm -f conftest.er1
22101 cat conftest.err >&5
22102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22103 (exit $ac_status); } && {
22104 test -z "$ac_c_werror_flag" ||
22105 test ! -s conftest.err
22106 } && test -s conftest.$ac_objext; then
22107 ac_hi=$ac_mid
22108 else
22109 echo "$as_me: failed program was:" >&5
22110 sed 's/^/| /' conftest.$ac_ext >&5
22112 ac_lo=`expr '(' $ac_mid ')' + 1`
22115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22116 done
22117 case $ac_lo in
22118 ?*) ac_cv_alignof_short=$ac_lo;;
22119 '') if test "$ac_cv_type_short" = yes; then
22120 { { echo "$as_me:$LINENO: error: cannot compute alignment of short
22121 See \`config.log' for more details." >&5
22122 echo "$as_me: error: cannot compute alignment of short
22123 See \`config.log' for more details." >&2;}
22124 { (exit 77); exit 77; }; }
22125 else
22126 ac_cv_alignof_short=0
22127 fi ;;
22128 esac
22129 else
22130 cat >conftest.$ac_ext <<_ACEOF
22131 /* confdefs.h. */
22132 _ACEOF
22133 cat confdefs.h >>conftest.$ac_ext
22134 cat >>conftest.$ac_ext <<_ACEOF
22135 /* end confdefs.h. */
22136 $ac_includes_default
22137 #ifndef offsetof
22138 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22139 #endif
22140 typedef struct { char x; short y; } ac__type_alignof_;
22141 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22142 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22143 #include <stdio.h>
22144 #include <stdlib.h>
22146 main ()
22149 FILE *f = fopen ("conftest.val", "w");
22150 if (! f)
22151 return 1;
22152 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22154 long int i = longval ();
22155 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22156 return 1;
22157 fprintf (f, "%ld\n", i);
22159 else
22161 unsigned long int i = ulongval ();
22162 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22163 return 1;
22164 fprintf (f, "%lu\n", i);
22166 return ferror (f) || fclose (f) != 0;
22169 return 0;
22171 _ACEOF
22172 rm -f conftest$ac_exeext
22173 if { (ac_try="$ac_link"
22174 case "(($ac_try" in
22175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22176 *) ac_try_echo=$ac_try;;
22177 esac
22178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22179 (eval "$ac_link") 2>&5
22180 ac_status=$?
22181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22182 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22183 { (case "(($ac_try" in
22184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22185 *) ac_try_echo=$ac_try;;
22186 esac
22187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22188 (eval "$ac_try") 2>&5
22189 ac_status=$?
22190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22191 (exit $ac_status); }; }; then
22192 ac_cv_alignof_short=`cat conftest.val`
22193 else
22194 echo "$as_me: program exited with status $ac_status" >&5
22195 echo "$as_me: failed program was:" >&5
22196 sed 's/^/| /' conftest.$ac_ext >&5
22198 ( exit $ac_status )
22199 if test "$ac_cv_type_short" = yes; then
22200 { { echo "$as_me:$LINENO: error: cannot compute alignment of short
22201 See \`config.log' for more details." >&5
22202 echo "$as_me: error: cannot compute alignment of short
22203 See \`config.log' for more details." >&2;}
22204 { (exit 77); exit 77; }; }
22205 else
22206 ac_cv_alignof_short=0
22209 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22211 rm -f conftest.val
22213 { echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
22214 echo "${ECHO_T}$ac_cv_alignof_short" >&6; }
22218 cat >>confdefs.h <<_ACEOF
22219 #define ALIGNOF_SHORT $ac_cv_alignof_short
22220 _ACEOF
22223 { echo "$as_me:$LINENO: checking for int" >&5
22224 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
22225 if test "${ac_cv_type_int+set}" = set; then
22226 echo $ECHO_N "(cached) $ECHO_C" >&6
22227 else
22228 cat >conftest.$ac_ext <<_ACEOF
22229 /* confdefs.h. */
22230 _ACEOF
22231 cat confdefs.h >>conftest.$ac_ext
22232 cat >>conftest.$ac_ext <<_ACEOF
22233 /* end confdefs.h. */
22234 $ac_includes_default
22235 typedef int ac__type_new_;
22237 main ()
22239 if ((ac__type_new_ *) 0)
22240 return 0;
22241 if (sizeof (ac__type_new_))
22242 return 0;
22244 return 0;
22246 _ACEOF
22247 rm -f conftest.$ac_objext
22248 if { (ac_try="$ac_compile"
22249 case "(($ac_try" in
22250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22251 *) ac_try_echo=$ac_try;;
22252 esac
22253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22254 (eval "$ac_compile") 2>conftest.er1
22255 ac_status=$?
22256 grep -v '^ *+' conftest.er1 >conftest.err
22257 rm -f conftest.er1
22258 cat conftest.err >&5
22259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22260 (exit $ac_status); } && {
22261 test -z "$ac_c_werror_flag" ||
22262 test ! -s conftest.err
22263 } && test -s conftest.$ac_objext; then
22264 ac_cv_type_int=yes
22265 else
22266 echo "$as_me: failed program was:" >&5
22267 sed 's/^/| /' conftest.$ac_ext >&5
22269 ac_cv_type_int=no
22272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22274 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
22275 echo "${ECHO_T}$ac_cv_type_int" >&6; }
22277 # The cast to long int works around a bug in the HP C Compiler,
22278 # see AC_CHECK_SIZEOF for more information.
22279 { echo "$as_me:$LINENO: checking alignment of int" >&5
22280 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6; }
22281 if test "${ac_cv_alignof_int+set}" = set; then
22282 echo $ECHO_N "(cached) $ECHO_C" >&6
22283 else
22284 if test "$cross_compiling" = yes; then
22285 # Depending upon the size, compute the lo and hi bounds.
22286 cat >conftest.$ac_ext <<_ACEOF
22287 /* confdefs.h. */
22288 _ACEOF
22289 cat confdefs.h >>conftest.$ac_ext
22290 cat >>conftest.$ac_ext <<_ACEOF
22291 /* end confdefs.h. */
22292 $ac_includes_default
22293 #ifndef offsetof
22294 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22295 #endif
22296 typedef struct { char x; int y; } ac__type_alignof_;
22298 main ()
22300 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22301 test_array [0] = 0
22304 return 0;
22306 _ACEOF
22307 rm -f conftest.$ac_objext
22308 if { (ac_try="$ac_compile"
22309 case "(($ac_try" in
22310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22311 *) ac_try_echo=$ac_try;;
22312 esac
22313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22314 (eval "$ac_compile") 2>conftest.er1
22315 ac_status=$?
22316 grep -v '^ *+' conftest.er1 >conftest.err
22317 rm -f conftest.er1
22318 cat conftest.err >&5
22319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22320 (exit $ac_status); } && {
22321 test -z "$ac_c_werror_flag" ||
22322 test ! -s conftest.err
22323 } && test -s conftest.$ac_objext; then
22324 ac_lo=0 ac_mid=0
22325 while :; do
22326 cat >conftest.$ac_ext <<_ACEOF
22327 /* confdefs.h. */
22328 _ACEOF
22329 cat confdefs.h >>conftest.$ac_ext
22330 cat >>conftest.$ac_ext <<_ACEOF
22331 /* end confdefs.h. */
22332 $ac_includes_default
22333 #ifndef offsetof
22334 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22335 #endif
22336 typedef struct { char x; int y; } ac__type_alignof_;
22338 main ()
22340 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22341 test_array [0] = 0
22344 return 0;
22346 _ACEOF
22347 rm -f conftest.$ac_objext
22348 if { (ac_try="$ac_compile"
22349 case "(($ac_try" in
22350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22351 *) ac_try_echo=$ac_try;;
22352 esac
22353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22354 (eval "$ac_compile") 2>conftest.er1
22355 ac_status=$?
22356 grep -v '^ *+' conftest.er1 >conftest.err
22357 rm -f conftest.er1
22358 cat conftest.err >&5
22359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22360 (exit $ac_status); } && {
22361 test -z "$ac_c_werror_flag" ||
22362 test ! -s conftest.err
22363 } && test -s conftest.$ac_objext; then
22364 ac_hi=$ac_mid; break
22365 else
22366 echo "$as_me: failed program was:" >&5
22367 sed 's/^/| /' conftest.$ac_ext >&5
22369 ac_lo=`expr $ac_mid + 1`
22370 if test $ac_lo -le $ac_mid; then
22371 ac_lo= ac_hi=
22372 break
22374 ac_mid=`expr 2 '*' $ac_mid + 1`
22377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22378 done
22379 else
22380 echo "$as_me: failed program was:" >&5
22381 sed 's/^/| /' conftest.$ac_ext >&5
22383 cat >conftest.$ac_ext <<_ACEOF
22384 /* confdefs.h. */
22385 _ACEOF
22386 cat confdefs.h >>conftest.$ac_ext
22387 cat >>conftest.$ac_ext <<_ACEOF
22388 /* end confdefs.h. */
22389 $ac_includes_default
22390 #ifndef offsetof
22391 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22392 #endif
22393 typedef struct { char x; int y; } ac__type_alignof_;
22395 main ()
22397 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22398 test_array [0] = 0
22401 return 0;
22403 _ACEOF
22404 rm -f conftest.$ac_objext
22405 if { (ac_try="$ac_compile"
22406 case "(($ac_try" in
22407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22408 *) ac_try_echo=$ac_try;;
22409 esac
22410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22411 (eval "$ac_compile") 2>conftest.er1
22412 ac_status=$?
22413 grep -v '^ *+' conftest.er1 >conftest.err
22414 rm -f conftest.er1
22415 cat conftest.err >&5
22416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22417 (exit $ac_status); } && {
22418 test -z "$ac_c_werror_flag" ||
22419 test ! -s conftest.err
22420 } && test -s conftest.$ac_objext; then
22421 ac_hi=-1 ac_mid=-1
22422 while :; do
22423 cat >conftest.$ac_ext <<_ACEOF
22424 /* confdefs.h. */
22425 _ACEOF
22426 cat confdefs.h >>conftest.$ac_ext
22427 cat >>conftest.$ac_ext <<_ACEOF
22428 /* end confdefs.h. */
22429 $ac_includes_default
22430 #ifndef offsetof
22431 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22432 #endif
22433 typedef struct { char x; int y; } ac__type_alignof_;
22435 main ()
22437 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22438 test_array [0] = 0
22441 return 0;
22443 _ACEOF
22444 rm -f conftest.$ac_objext
22445 if { (ac_try="$ac_compile"
22446 case "(($ac_try" in
22447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22448 *) ac_try_echo=$ac_try;;
22449 esac
22450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22451 (eval "$ac_compile") 2>conftest.er1
22452 ac_status=$?
22453 grep -v '^ *+' conftest.er1 >conftest.err
22454 rm -f conftest.er1
22455 cat conftest.err >&5
22456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22457 (exit $ac_status); } && {
22458 test -z "$ac_c_werror_flag" ||
22459 test ! -s conftest.err
22460 } && test -s conftest.$ac_objext; then
22461 ac_lo=$ac_mid; break
22462 else
22463 echo "$as_me: failed program was:" >&5
22464 sed 's/^/| /' conftest.$ac_ext >&5
22466 ac_hi=`expr '(' $ac_mid ')' - 1`
22467 if test $ac_mid -le $ac_hi; then
22468 ac_lo= ac_hi=
22469 break
22471 ac_mid=`expr 2 '*' $ac_mid`
22474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22475 done
22476 else
22477 echo "$as_me: failed program was:" >&5
22478 sed 's/^/| /' conftest.$ac_ext >&5
22480 ac_lo= ac_hi=
22483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22487 # Binary search between lo and hi bounds.
22488 while test "x$ac_lo" != "x$ac_hi"; do
22489 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22490 cat >conftest.$ac_ext <<_ACEOF
22491 /* confdefs.h. */
22492 _ACEOF
22493 cat confdefs.h >>conftest.$ac_ext
22494 cat >>conftest.$ac_ext <<_ACEOF
22495 /* end confdefs.h. */
22496 $ac_includes_default
22497 #ifndef offsetof
22498 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22499 #endif
22500 typedef struct { char x; int y; } ac__type_alignof_;
22502 main ()
22504 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22505 test_array [0] = 0
22508 return 0;
22510 _ACEOF
22511 rm -f conftest.$ac_objext
22512 if { (ac_try="$ac_compile"
22513 case "(($ac_try" in
22514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22515 *) ac_try_echo=$ac_try;;
22516 esac
22517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22518 (eval "$ac_compile") 2>conftest.er1
22519 ac_status=$?
22520 grep -v '^ *+' conftest.er1 >conftest.err
22521 rm -f conftest.er1
22522 cat conftest.err >&5
22523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524 (exit $ac_status); } && {
22525 test -z "$ac_c_werror_flag" ||
22526 test ! -s conftest.err
22527 } && test -s conftest.$ac_objext; then
22528 ac_hi=$ac_mid
22529 else
22530 echo "$as_me: failed program was:" >&5
22531 sed 's/^/| /' conftest.$ac_ext >&5
22533 ac_lo=`expr '(' $ac_mid ')' + 1`
22536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22537 done
22538 case $ac_lo in
22539 ?*) ac_cv_alignof_int=$ac_lo;;
22540 '') if test "$ac_cv_type_int" = yes; then
22541 { { echo "$as_me:$LINENO: error: cannot compute alignment of int
22542 See \`config.log' for more details." >&5
22543 echo "$as_me: error: cannot compute alignment of int
22544 See \`config.log' for more details." >&2;}
22545 { (exit 77); exit 77; }; }
22546 else
22547 ac_cv_alignof_int=0
22548 fi ;;
22549 esac
22550 else
22551 cat >conftest.$ac_ext <<_ACEOF
22552 /* confdefs.h. */
22553 _ACEOF
22554 cat confdefs.h >>conftest.$ac_ext
22555 cat >>conftest.$ac_ext <<_ACEOF
22556 /* end confdefs.h. */
22557 $ac_includes_default
22558 #ifndef offsetof
22559 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22560 #endif
22561 typedef struct { char x; int y; } ac__type_alignof_;
22562 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22563 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22564 #include <stdio.h>
22565 #include <stdlib.h>
22567 main ()
22570 FILE *f = fopen ("conftest.val", "w");
22571 if (! f)
22572 return 1;
22573 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22575 long int i = longval ();
22576 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22577 return 1;
22578 fprintf (f, "%ld\n", i);
22580 else
22582 unsigned long int i = ulongval ();
22583 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22584 return 1;
22585 fprintf (f, "%lu\n", i);
22587 return ferror (f) || fclose (f) != 0;
22590 return 0;
22592 _ACEOF
22593 rm -f conftest$ac_exeext
22594 if { (ac_try="$ac_link"
22595 case "(($ac_try" in
22596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22597 *) ac_try_echo=$ac_try;;
22598 esac
22599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22600 (eval "$ac_link") 2>&5
22601 ac_status=$?
22602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22603 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22604 { (case "(($ac_try" in
22605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22606 *) ac_try_echo=$ac_try;;
22607 esac
22608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22609 (eval "$ac_try") 2>&5
22610 ac_status=$?
22611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22612 (exit $ac_status); }; }; then
22613 ac_cv_alignof_int=`cat conftest.val`
22614 else
22615 echo "$as_me: program exited with status $ac_status" >&5
22616 echo "$as_me: failed program was:" >&5
22617 sed 's/^/| /' conftest.$ac_ext >&5
22619 ( exit $ac_status )
22620 if test "$ac_cv_type_int" = yes; then
22621 { { echo "$as_me:$LINENO: error: cannot compute alignment of int
22622 See \`config.log' for more details." >&5
22623 echo "$as_me: error: cannot compute alignment of int
22624 See \`config.log' for more details." >&2;}
22625 { (exit 77); exit 77; }; }
22626 else
22627 ac_cv_alignof_int=0
22630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22632 rm -f conftest.val
22634 { echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
22635 echo "${ECHO_T}$ac_cv_alignof_int" >&6; }
22639 cat >>confdefs.h <<_ACEOF
22640 #define ALIGNOF_INT $ac_cv_alignof_int
22641 _ACEOF
22644 { echo "$as_me:$LINENO: checking for long" >&5
22645 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
22646 if test "${ac_cv_type_long+set}" = set; then
22647 echo $ECHO_N "(cached) $ECHO_C" >&6
22648 else
22649 cat >conftest.$ac_ext <<_ACEOF
22650 /* confdefs.h. */
22651 _ACEOF
22652 cat confdefs.h >>conftest.$ac_ext
22653 cat >>conftest.$ac_ext <<_ACEOF
22654 /* end confdefs.h. */
22655 $ac_includes_default
22656 typedef long ac__type_new_;
22658 main ()
22660 if ((ac__type_new_ *) 0)
22661 return 0;
22662 if (sizeof (ac__type_new_))
22663 return 0;
22665 return 0;
22667 _ACEOF
22668 rm -f conftest.$ac_objext
22669 if { (ac_try="$ac_compile"
22670 case "(($ac_try" in
22671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22672 *) ac_try_echo=$ac_try;;
22673 esac
22674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22675 (eval "$ac_compile") 2>conftest.er1
22676 ac_status=$?
22677 grep -v '^ *+' conftest.er1 >conftest.err
22678 rm -f conftest.er1
22679 cat conftest.err >&5
22680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22681 (exit $ac_status); } && {
22682 test -z "$ac_c_werror_flag" ||
22683 test ! -s conftest.err
22684 } && test -s conftest.$ac_objext; then
22685 ac_cv_type_long=yes
22686 else
22687 echo "$as_me: failed program was:" >&5
22688 sed 's/^/| /' conftest.$ac_ext >&5
22690 ac_cv_type_long=no
22693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22695 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
22696 echo "${ECHO_T}$ac_cv_type_long" >&6; }
22698 # The cast to long int works around a bug in the HP C Compiler,
22699 # see AC_CHECK_SIZEOF for more information.
22700 { echo "$as_me:$LINENO: checking alignment of long" >&5
22701 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6; }
22702 if test "${ac_cv_alignof_long+set}" = set; then
22703 echo $ECHO_N "(cached) $ECHO_C" >&6
22704 else
22705 if test "$cross_compiling" = yes; then
22706 # Depending upon the size, compute the lo and hi bounds.
22707 cat >conftest.$ac_ext <<_ACEOF
22708 /* confdefs.h. */
22709 _ACEOF
22710 cat confdefs.h >>conftest.$ac_ext
22711 cat >>conftest.$ac_ext <<_ACEOF
22712 /* end confdefs.h. */
22713 $ac_includes_default
22714 #ifndef offsetof
22715 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22716 #endif
22717 typedef struct { char x; long y; } ac__type_alignof_;
22719 main ()
22721 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22722 test_array [0] = 0
22725 return 0;
22727 _ACEOF
22728 rm -f conftest.$ac_objext
22729 if { (ac_try="$ac_compile"
22730 case "(($ac_try" in
22731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22732 *) ac_try_echo=$ac_try;;
22733 esac
22734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22735 (eval "$ac_compile") 2>conftest.er1
22736 ac_status=$?
22737 grep -v '^ *+' conftest.er1 >conftest.err
22738 rm -f conftest.er1
22739 cat conftest.err >&5
22740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22741 (exit $ac_status); } && {
22742 test -z "$ac_c_werror_flag" ||
22743 test ! -s conftest.err
22744 } && test -s conftest.$ac_objext; then
22745 ac_lo=0 ac_mid=0
22746 while :; do
22747 cat >conftest.$ac_ext <<_ACEOF
22748 /* confdefs.h. */
22749 _ACEOF
22750 cat confdefs.h >>conftest.$ac_ext
22751 cat >>conftest.$ac_ext <<_ACEOF
22752 /* end confdefs.h. */
22753 $ac_includes_default
22754 #ifndef offsetof
22755 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22756 #endif
22757 typedef struct { char x; long y; } ac__type_alignof_;
22759 main ()
22761 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22762 test_array [0] = 0
22765 return 0;
22767 _ACEOF
22768 rm -f conftest.$ac_objext
22769 if { (ac_try="$ac_compile"
22770 case "(($ac_try" in
22771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22772 *) ac_try_echo=$ac_try;;
22773 esac
22774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22775 (eval "$ac_compile") 2>conftest.er1
22776 ac_status=$?
22777 grep -v '^ *+' conftest.er1 >conftest.err
22778 rm -f conftest.er1
22779 cat conftest.err >&5
22780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22781 (exit $ac_status); } && {
22782 test -z "$ac_c_werror_flag" ||
22783 test ! -s conftest.err
22784 } && test -s conftest.$ac_objext; then
22785 ac_hi=$ac_mid; break
22786 else
22787 echo "$as_me: failed program was:" >&5
22788 sed 's/^/| /' conftest.$ac_ext >&5
22790 ac_lo=`expr $ac_mid + 1`
22791 if test $ac_lo -le $ac_mid; then
22792 ac_lo= ac_hi=
22793 break
22795 ac_mid=`expr 2 '*' $ac_mid + 1`
22798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22799 done
22800 else
22801 echo "$as_me: failed program was:" >&5
22802 sed 's/^/| /' conftest.$ac_ext >&5
22804 cat >conftest.$ac_ext <<_ACEOF
22805 /* confdefs.h. */
22806 _ACEOF
22807 cat confdefs.h >>conftest.$ac_ext
22808 cat >>conftest.$ac_ext <<_ACEOF
22809 /* end confdefs.h. */
22810 $ac_includes_default
22811 #ifndef offsetof
22812 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22813 #endif
22814 typedef struct { char x; long y; } ac__type_alignof_;
22816 main ()
22818 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22819 test_array [0] = 0
22822 return 0;
22824 _ACEOF
22825 rm -f conftest.$ac_objext
22826 if { (ac_try="$ac_compile"
22827 case "(($ac_try" in
22828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22829 *) ac_try_echo=$ac_try;;
22830 esac
22831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22832 (eval "$ac_compile") 2>conftest.er1
22833 ac_status=$?
22834 grep -v '^ *+' conftest.er1 >conftest.err
22835 rm -f conftest.er1
22836 cat conftest.err >&5
22837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22838 (exit $ac_status); } && {
22839 test -z "$ac_c_werror_flag" ||
22840 test ! -s conftest.err
22841 } && test -s conftest.$ac_objext; then
22842 ac_hi=-1 ac_mid=-1
22843 while :; do
22844 cat >conftest.$ac_ext <<_ACEOF
22845 /* confdefs.h. */
22846 _ACEOF
22847 cat confdefs.h >>conftest.$ac_ext
22848 cat >>conftest.$ac_ext <<_ACEOF
22849 /* end confdefs.h. */
22850 $ac_includes_default
22851 #ifndef offsetof
22852 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22853 #endif
22854 typedef struct { char x; long y; } ac__type_alignof_;
22856 main ()
22858 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22859 test_array [0] = 0
22862 return 0;
22864 _ACEOF
22865 rm -f conftest.$ac_objext
22866 if { (ac_try="$ac_compile"
22867 case "(($ac_try" in
22868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22869 *) ac_try_echo=$ac_try;;
22870 esac
22871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22872 (eval "$ac_compile") 2>conftest.er1
22873 ac_status=$?
22874 grep -v '^ *+' conftest.er1 >conftest.err
22875 rm -f conftest.er1
22876 cat conftest.err >&5
22877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22878 (exit $ac_status); } && {
22879 test -z "$ac_c_werror_flag" ||
22880 test ! -s conftest.err
22881 } && test -s conftest.$ac_objext; then
22882 ac_lo=$ac_mid; break
22883 else
22884 echo "$as_me: failed program was:" >&5
22885 sed 's/^/| /' conftest.$ac_ext >&5
22887 ac_hi=`expr '(' $ac_mid ')' - 1`
22888 if test $ac_mid -le $ac_hi; then
22889 ac_lo= ac_hi=
22890 break
22892 ac_mid=`expr 2 '*' $ac_mid`
22895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22896 done
22897 else
22898 echo "$as_me: failed program was:" >&5
22899 sed 's/^/| /' conftest.$ac_ext >&5
22901 ac_lo= ac_hi=
22904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22908 # Binary search between lo and hi bounds.
22909 while test "x$ac_lo" != "x$ac_hi"; do
22910 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22911 cat >conftest.$ac_ext <<_ACEOF
22912 /* confdefs.h. */
22913 _ACEOF
22914 cat confdefs.h >>conftest.$ac_ext
22915 cat >>conftest.$ac_ext <<_ACEOF
22916 /* end confdefs.h. */
22917 $ac_includes_default
22918 #ifndef offsetof
22919 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22920 #endif
22921 typedef struct { char x; long y; } ac__type_alignof_;
22923 main ()
22925 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22926 test_array [0] = 0
22929 return 0;
22931 _ACEOF
22932 rm -f conftest.$ac_objext
22933 if { (ac_try="$ac_compile"
22934 case "(($ac_try" in
22935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22936 *) ac_try_echo=$ac_try;;
22937 esac
22938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22939 (eval "$ac_compile") 2>conftest.er1
22940 ac_status=$?
22941 grep -v '^ *+' conftest.er1 >conftest.err
22942 rm -f conftest.er1
22943 cat conftest.err >&5
22944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22945 (exit $ac_status); } && {
22946 test -z "$ac_c_werror_flag" ||
22947 test ! -s conftest.err
22948 } && test -s conftest.$ac_objext; then
22949 ac_hi=$ac_mid
22950 else
22951 echo "$as_me: failed program was:" >&5
22952 sed 's/^/| /' conftest.$ac_ext >&5
22954 ac_lo=`expr '(' $ac_mid ')' + 1`
22957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22958 done
22959 case $ac_lo in
22960 ?*) ac_cv_alignof_long=$ac_lo;;
22961 '') if test "$ac_cv_type_long" = yes; then
22962 { { echo "$as_me:$LINENO: error: cannot compute alignment of long
22963 See \`config.log' for more details." >&5
22964 echo "$as_me: error: cannot compute alignment of long
22965 See \`config.log' for more details." >&2;}
22966 { (exit 77); exit 77; }; }
22967 else
22968 ac_cv_alignof_long=0
22969 fi ;;
22970 esac
22971 else
22972 cat >conftest.$ac_ext <<_ACEOF
22973 /* confdefs.h. */
22974 _ACEOF
22975 cat confdefs.h >>conftest.$ac_ext
22976 cat >>conftest.$ac_ext <<_ACEOF
22977 /* end confdefs.h. */
22978 $ac_includes_default
22979 #ifndef offsetof
22980 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22981 #endif
22982 typedef struct { char x; long y; } ac__type_alignof_;
22983 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22984 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22985 #include <stdio.h>
22986 #include <stdlib.h>
22988 main ()
22991 FILE *f = fopen ("conftest.val", "w");
22992 if (! f)
22993 return 1;
22994 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22996 long int i = longval ();
22997 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22998 return 1;
22999 fprintf (f, "%ld\n", i);
23001 else
23003 unsigned long int i = ulongval ();
23004 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23005 return 1;
23006 fprintf (f, "%lu\n", i);
23008 return ferror (f) || fclose (f) != 0;
23011 return 0;
23013 _ACEOF
23014 rm -f conftest$ac_exeext
23015 if { (ac_try="$ac_link"
23016 case "(($ac_try" in
23017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23018 *) ac_try_echo=$ac_try;;
23019 esac
23020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23021 (eval "$ac_link") 2>&5
23022 ac_status=$?
23023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23024 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23025 { (case "(($ac_try" in
23026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23027 *) ac_try_echo=$ac_try;;
23028 esac
23029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23030 (eval "$ac_try") 2>&5
23031 ac_status=$?
23032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23033 (exit $ac_status); }; }; then
23034 ac_cv_alignof_long=`cat conftest.val`
23035 else
23036 echo "$as_me: program exited with status $ac_status" >&5
23037 echo "$as_me: failed program was:" >&5
23038 sed 's/^/| /' conftest.$ac_ext >&5
23040 ( exit $ac_status )
23041 if test "$ac_cv_type_long" = yes; then
23042 { { echo "$as_me:$LINENO: error: cannot compute alignment of long
23043 See \`config.log' for more details." >&5
23044 echo "$as_me: error: cannot compute alignment of long
23045 See \`config.log' for more details." >&2;}
23046 { (exit 77); exit 77; }; }
23047 else
23048 ac_cv_alignof_long=0
23051 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23053 rm -f conftest.val
23055 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
23056 echo "${ECHO_T}$ac_cv_alignof_long" >&6; }
23060 cat >>confdefs.h <<_ACEOF
23061 #define ALIGNOF_LONG $ac_cv_alignof_long
23062 _ACEOF
23065 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
23066 { echo "$as_me:$LINENO: checking for long long int" >&5
23067 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
23068 if test "${ac_cv_type_long_long_int+set}" = set; then
23069 echo $ECHO_N "(cached) $ECHO_C" >&6
23070 else
23071 cat >conftest.$ac_ext <<_ACEOF
23072 /* confdefs.h. */
23073 _ACEOF
23074 cat confdefs.h >>conftest.$ac_ext
23075 cat >>conftest.$ac_ext <<_ACEOF
23076 /* end confdefs.h. */
23077 $ac_includes_default
23078 typedef long long int ac__type_new_;
23080 main ()
23082 if ((ac__type_new_ *) 0)
23083 return 0;
23084 if (sizeof (ac__type_new_))
23085 return 0;
23087 return 0;
23089 _ACEOF
23090 rm -f conftest.$ac_objext
23091 if { (ac_try="$ac_compile"
23092 case "(($ac_try" in
23093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23094 *) ac_try_echo=$ac_try;;
23095 esac
23096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23097 (eval "$ac_compile") 2>conftest.er1
23098 ac_status=$?
23099 grep -v '^ *+' conftest.er1 >conftest.err
23100 rm -f conftest.er1
23101 cat conftest.err >&5
23102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23103 (exit $ac_status); } && {
23104 test -z "$ac_c_werror_flag" ||
23105 test ! -s conftest.err
23106 } && test -s conftest.$ac_objext; then
23107 ac_cv_type_long_long_int=yes
23108 else
23109 echo "$as_me: failed program was:" >&5
23110 sed 's/^/| /' conftest.$ac_ext >&5
23112 ac_cv_type_long_long_int=no
23115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23117 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
23118 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
23120 # The cast to long int works around a bug in the HP C Compiler,
23121 # see AC_CHECK_SIZEOF for more information.
23122 { echo "$as_me:$LINENO: checking alignment of long long int" >&5
23123 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6; }
23124 if test "${ac_cv_alignof_long_long_int+set}" = set; then
23125 echo $ECHO_N "(cached) $ECHO_C" >&6
23126 else
23127 if test "$cross_compiling" = yes; then
23128 # Depending upon the size, compute the lo and hi bounds.
23129 cat >conftest.$ac_ext <<_ACEOF
23130 /* confdefs.h. */
23131 _ACEOF
23132 cat confdefs.h >>conftest.$ac_ext
23133 cat >>conftest.$ac_ext <<_ACEOF
23134 /* end confdefs.h. */
23135 $ac_includes_default
23136 #ifndef offsetof
23137 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23138 #endif
23139 typedef struct { char x; long long int y; } ac__type_alignof_;
23141 main ()
23143 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
23144 test_array [0] = 0
23147 return 0;
23149 _ACEOF
23150 rm -f conftest.$ac_objext
23151 if { (ac_try="$ac_compile"
23152 case "(($ac_try" in
23153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23154 *) ac_try_echo=$ac_try;;
23155 esac
23156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23157 (eval "$ac_compile") 2>conftest.er1
23158 ac_status=$?
23159 grep -v '^ *+' conftest.er1 >conftest.err
23160 rm -f conftest.er1
23161 cat conftest.err >&5
23162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23163 (exit $ac_status); } && {
23164 test -z "$ac_c_werror_flag" ||
23165 test ! -s conftest.err
23166 } && test -s conftest.$ac_objext; then
23167 ac_lo=0 ac_mid=0
23168 while :; do
23169 cat >conftest.$ac_ext <<_ACEOF
23170 /* confdefs.h. */
23171 _ACEOF
23172 cat confdefs.h >>conftest.$ac_ext
23173 cat >>conftest.$ac_ext <<_ACEOF
23174 /* end confdefs.h. */
23175 $ac_includes_default
23176 #ifndef offsetof
23177 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23178 #endif
23179 typedef struct { char x; long long int y; } ac__type_alignof_;
23181 main ()
23183 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23184 test_array [0] = 0
23187 return 0;
23189 _ACEOF
23190 rm -f conftest.$ac_objext
23191 if { (ac_try="$ac_compile"
23192 case "(($ac_try" in
23193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23194 *) ac_try_echo=$ac_try;;
23195 esac
23196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23197 (eval "$ac_compile") 2>conftest.er1
23198 ac_status=$?
23199 grep -v '^ *+' conftest.er1 >conftest.err
23200 rm -f conftest.er1
23201 cat conftest.err >&5
23202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23203 (exit $ac_status); } && {
23204 test -z "$ac_c_werror_flag" ||
23205 test ! -s conftest.err
23206 } && test -s conftest.$ac_objext; then
23207 ac_hi=$ac_mid; break
23208 else
23209 echo "$as_me: failed program was:" >&5
23210 sed 's/^/| /' conftest.$ac_ext >&5
23212 ac_lo=`expr $ac_mid + 1`
23213 if test $ac_lo -le $ac_mid; then
23214 ac_lo= ac_hi=
23215 break
23217 ac_mid=`expr 2 '*' $ac_mid + 1`
23220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23221 done
23222 else
23223 echo "$as_me: failed program was:" >&5
23224 sed 's/^/| /' conftest.$ac_ext >&5
23226 cat >conftest.$ac_ext <<_ACEOF
23227 /* confdefs.h. */
23228 _ACEOF
23229 cat confdefs.h >>conftest.$ac_ext
23230 cat >>conftest.$ac_ext <<_ACEOF
23231 /* end confdefs.h. */
23232 $ac_includes_default
23233 #ifndef offsetof
23234 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23235 #endif
23236 typedef struct { char x; long long int y; } ac__type_alignof_;
23238 main ()
23240 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
23241 test_array [0] = 0
23244 return 0;
23246 _ACEOF
23247 rm -f conftest.$ac_objext
23248 if { (ac_try="$ac_compile"
23249 case "(($ac_try" in
23250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23251 *) ac_try_echo=$ac_try;;
23252 esac
23253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23254 (eval "$ac_compile") 2>conftest.er1
23255 ac_status=$?
23256 grep -v '^ *+' conftest.er1 >conftest.err
23257 rm -f conftest.er1
23258 cat conftest.err >&5
23259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23260 (exit $ac_status); } && {
23261 test -z "$ac_c_werror_flag" ||
23262 test ! -s conftest.err
23263 } && test -s conftest.$ac_objext; then
23264 ac_hi=-1 ac_mid=-1
23265 while :; do
23266 cat >conftest.$ac_ext <<_ACEOF
23267 /* confdefs.h. */
23268 _ACEOF
23269 cat confdefs.h >>conftest.$ac_ext
23270 cat >>conftest.$ac_ext <<_ACEOF
23271 /* end confdefs.h. */
23272 $ac_includes_default
23273 #ifndef offsetof
23274 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23275 #endif
23276 typedef struct { char x; long long int y; } ac__type_alignof_;
23278 main ()
23280 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
23281 test_array [0] = 0
23284 return 0;
23286 _ACEOF
23287 rm -f conftest.$ac_objext
23288 if { (ac_try="$ac_compile"
23289 case "(($ac_try" in
23290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23291 *) ac_try_echo=$ac_try;;
23292 esac
23293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23294 (eval "$ac_compile") 2>conftest.er1
23295 ac_status=$?
23296 grep -v '^ *+' conftest.er1 >conftest.err
23297 rm -f conftest.er1
23298 cat conftest.err >&5
23299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23300 (exit $ac_status); } && {
23301 test -z "$ac_c_werror_flag" ||
23302 test ! -s conftest.err
23303 } && test -s conftest.$ac_objext; then
23304 ac_lo=$ac_mid; break
23305 else
23306 echo "$as_me: failed program was:" >&5
23307 sed 's/^/| /' conftest.$ac_ext >&5
23309 ac_hi=`expr '(' $ac_mid ')' - 1`
23310 if test $ac_mid -le $ac_hi; then
23311 ac_lo= ac_hi=
23312 break
23314 ac_mid=`expr 2 '*' $ac_mid`
23317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23318 done
23319 else
23320 echo "$as_me: failed program was:" >&5
23321 sed 's/^/| /' conftest.$ac_ext >&5
23323 ac_lo= ac_hi=
23326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23330 # Binary search between lo and hi bounds.
23331 while test "x$ac_lo" != "x$ac_hi"; do
23332 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23333 cat >conftest.$ac_ext <<_ACEOF
23334 /* confdefs.h. */
23335 _ACEOF
23336 cat confdefs.h >>conftest.$ac_ext
23337 cat >>conftest.$ac_ext <<_ACEOF
23338 /* end confdefs.h. */
23339 $ac_includes_default
23340 #ifndef offsetof
23341 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23342 #endif
23343 typedef struct { char x; long long int y; } ac__type_alignof_;
23345 main ()
23347 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23348 test_array [0] = 0
23351 return 0;
23353 _ACEOF
23354 rm -f conftest.$ac_objext
23355 if { (ac_try="$ac_compile"
23356 case "(($ac_try" in
23357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23358 *) ac_try_echo=$ac_try;;
23359 esac
23360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23361 (eval "$ac_compile") 2>conftest.er1
23362 ac_status=$?
23363 grep -v '^ *+' conftest.er1 >conftest.err
23364 rm -f conftest.er1
23365 cat conftest.err >&5
23366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23367 (exit $ac_status); } && {
23368 test -z "$ac_c_werror_flag" ||
23369 test ! -s conftest.err
23370 } && test -s conftest.$ac_objext; then
23371 ac_hi=$ac_mid
23372 else
23373 echo "$as_me: failed program was:" >&5
23374 sed 's/^/| /' conftest.$ac_ext >&5
23376 ac_lo=`expr '(' $ac_mid ')' + 1`
23379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23380 done
23381 case $ac_lo in
23382 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
23383 '') if test "$ac_cv_type_long_long_int" = yes; then
23384 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
23385 See \`config.log' for more details." >&5
23386 echo "$as_me: error: cannot compute alignment of long long int
23387 See \`config.log' for more details." >&2;}
23388 { (exit 77); exit 77; }; }
23389 else
23390 ac_cv_alignof_long_long_int=0
23391 fi ;;
23392 esac
23393 else
23394 cat >conftest.$ac_ext <<_ACEOF
23395 /* confdefs.h. */
23396 _ACEOF
23397 cat confdefs.h >>conftest.$ac_ext
23398 cat >>conftest.$ac_ext <<_ACEOF
23399 /* end confdefs.h. */
23400 $ac_includes_default
23401 #ifndef offsetof
23402 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23403 #endif
23404 typedef struct { char x; long long int y; } ac__type_alignof_;
23405 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23406 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23407 #include <stdio.h>
23408 #include <stdlib.h>
23410 main ()
23413 FILE *f = fopen ("conftest.val", "w");
23414 if (! f)
23415 return 1;
23416 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23418 long int i = longval ();
23419 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23420 return 1;
23421 fprintf (f, "%ld\n", i);
23423 else
23425 unsigned long int i = ulongval ();
23426 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23427 return 1;
23428 fprintf (f, "%lu\n", i);
23430 return ferror (f) || fclose (f) != 0;
23433 return 0;
23435 _ACEOF
23436 rm -f conftest$ac_exeext
23437 if { (ac_try="$ac_link"
23438 case "(($ac_try" in
23439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23440 *) ac_try_echo=$ac_try;;
23441 esac
23442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23443 (eval "$ac_link") 2>&5
23444 ac_status=$?
23445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23446 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23447 { (case "(($ac_try" in
23448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23449 *) ac_try_echo=$ac_try;;
23450 esac
23451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23452 (eval "$ac_try") 2>&5
23453 ac_status=$?
23454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23455 (exit $ac_status); }; }; then
23456 ac_cv_alignof_long_long_int=`cat conftest.val`
23457 else
23458 echo "$as_me: program exited with status $ac_status" >&5
23459 echo "$as_me: failed program was:" >&5
23460 sed 's/^/| /' conftest.$ac_ext >&5
23462 ( exit $ac_status )
23463 if test "$ac_cv_type_long_long_int" = yes; then
23464 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
23465 See \`config.log' for more details." >&5
23466 echo "$as_me: error: cannot compute alignment of long long int
23467 See \`config.log' for more details." >&2;}
23468 { (exit 77); exit 77; }; }
23469 else
23470 ac_cv_alignof_long_long_int=0
23473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23475 rm -f conftest.val
23477 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
23478 echo "${ECHO_T}$ac_cv_alignof_long_long_int" >&6; }
23482 cat >>confdefs.h <<_ACEOF
23483 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
23484 _ACEOF
23488 { echo "$as_me:$LINENO: checking for double" >&5
23489 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
23490 if test "${ac_cv_type_double+set}" = set; then
23491 echo $ECHO_N "(cached) $ECHO_C" >&6
23492 else
23493 cat >conftest.$ac_ext <<_ACEOF
23494 /* confdefs.h. */
23495 _ACEOF
23496 cat confdefs.h >>conftest.$ac_ext
23497 cat >>conftest.$ac_ext <<_ACEOF
23498 /* end confdefs.h. */
23499 $ac_includes_default
23500 typedef double ac__type_new_;
23502 main ()
23504 if ((ac__type_new_ *) 0)
23505 return 0;
23506 if (sizeof (ac__type_new_))
23507 return 0;
23509 return 0;
23511 _ACEOF
23512 rm -f conftest.$ac_objext
23513 if { (ac_try="$ac_compile"
23514 case "(($ac_try" in
23515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23516 *) ac_try_echo=$ac_try;;
23517 esac
23518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23519 (eval "$ac_compile") 2>conftest.er1
23520 ac_status=$?
23521 grep -v '^ *+' conftest.er1 >conftest.err
23522 rm -f conftest.er1
23523 cat conftest.err >&5
23524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23525 (exit $ac_status); } && {
23526 test -z "$ac_c_werror_flag" ||
23527 test ! -s conftest.err
23528 } && test -s conftest.$ac_objext; then
23529 ac_cv_type_double=yes
23530 else
23531 echo "$as_me: failed program was:" >&5
23532 sed 's/^/| /' conftest.$ac_ext >&5
23534 ac_cv_type_double=no
23537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23539 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
23540 echo "${ECHO_T}$ac_cv_type_double" >&6; }
23542 # The cast to long int works around a bug in the HP C Compiler,
23543 # see AC_CHECK_SIZEOF for more information.
23544 { echo "$as_me:$LINENO: checking alignment of double" >&5
23545 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6; }
23546 if test "${ac_cv_alignof_double+set}" = set; then
23547 echo $ECHO_N "(cached) $ECHO_C" >&6
23548 else
23549 if test "$cross_compiling" = yes; then
23550 # Depending upon the size, compute the lo and hi bounds.
23551 cat >conftest.$ac_ext <<_ACEOF
23552 /* confdefs.h. */
23553 _ACEOF
23554 cat confdefs.h >>conftest.$ac_ext
23555 cat >>conftest.$ac_ext <<_ACEOF
23556 /* end confdefs.h. */
23557 $ac_includes_default
23558 #ifndef offsetof
23559 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23560 #endif
23561 typedef struct { char x; double y; } ac__type_alignof_;
23563 main ()
23565 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
23566 test_array [0] = 0
23569 return 0;
23571 _ACEOF
23572 rm -f conftest.$ac_objext
23573 if { (ac_try="$ac_compile"
23574 case "(($ac_try" in
23575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23576 *) ac_try_echo=$ac_try;;
23577 esac
23578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23579 (eval "$ac_compile") 2>conftest.er1
23580 ac_status=$?
23581 grep -v '^ *+' conftest.er1 >conftest.err
23582 rm -f conftest.er1
23583 cat conftest.err >&5
23584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585 (exit $ac_status); } && {
23586 test -z "$ac_c_werror_flag" ||
23587 test ! -s conftest.err
23588 } && test -s conftest.$ac_objext; then
23589 ac_lo=0 ac_mid=0
23590 while :; do
23591 cat >conftest.$ac_ext <<_ACEOF
23592 /* confdefs.h. */
23593 _ACEOF
23594 cat confdefs.h >>conftest.$ac_ext
23595 cat >>conftest.$ac_ext <<_ACEOF
23596 /* end confdefs.h. */
23597 $ac_includes_default
23598 #ifndef offsetof
23599 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23600 #endif
23601 typedef struct { char x; double y; } ac__type_alignof_;
23603 main ()
23605 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23606 test_array [0] = 0
23609 return 0;
23611 _ACEOF
23612 rm -f conftest.$ac_objext
23613 if { (ac_try="$ac_compile"
23614 case "(($ac_try" in
23615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23616 *) ac_try_echo=$ac_try;;
23617 esac
23618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23619 (eval "$ac_compile") 2>conftest.er1
23620 ac_status=$?
23621 grep -v '^ *+' conftest.er1 >conftest.err
23622 rm -f conftest.er1
23623 cat conftest.err >&5
23624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23625 (exit $ac_status); } && {
23626 test -z "$ac_c_werror_flag" ||
23627 test ! -s conftest.err
23628 } && test -s conftest.$ac_objext; then
23629 ac_hi=$ac_mid; break
23630 else
23631 echo "$as_me: failed program was:" >&5
23632 sed 's/^/| /' conftest.$ac_ext >&5
23634 ac_lo=`expr $ac_mid + 1`
23635 if test $ac_lo -le $ac_mid; then
23636 ac_lo= ac_hi=
23637 break
23639 ac_mid=`expr 2 '*' $ac_mid + 1`
23642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23643 done
23644 else
23645 echo "$as_me: failed program was:" >&5
23646 sed 's/^/| /' conftest.$ac_ext >&5
23648 cat >conftest.$ac_ext <<_ACEOF
23649 /* confdefs.h. */
23650 _ACEOF
23651 cat confdefs.h >>conftest.$ac_ext
23652 cat >>conftest.$ac_ext <<_ACEOF
23653 /* end confdefs.h. */
23654 $ac_includes_default
23655 #ifndef offsetof
23656 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23657 #endif
23658 typedef struct { char x; double y; } ac__type_alignof_;
23660 main ()
23662 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
23663 test_array [0] = 0
23666 return 0;
23668 _ACEOF
23669 rm -f conftest.$ac_objext
23670 if { (ac_try="$ac_compile"
23671 case "(($ac_try" in
23672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23673 *) ac_try_echo=$ac_try;;
23674 esac
23675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23676 (eval "$ac_compile") 2>conftest.er1
23677 ac_status=$?
23678 grep -v '^ *+' conftest.er1 >conftest.err
23679 rm -f conftest.er1
23680 cat conftest.err >&5
23681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23682 (exit $ac_status); } && {
23683 test -z "$ac_c_werror_flag" ||
23684 test ! -s conftest.err
23685 } && test -s conftest.$ac_objext; then
23686 ac_hi=-1 ac_mid=-1
23687 while :; do
23688 cat >conftest.$ac_ext <<_ACEOF
23689 /* confdefs.h. */
23690 _ACEOF
23691 cat confdefs.h >>conftest.$ac_ext
23692 cat >>conftest.$ac_ext <<_ACEOF
23693 /* end confdefs.h. */
23694 $ac_includes_default
23695 #ifndef offsetof
23696 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23697 #endif
23698 typedef struct { char x; double y; } ac__type_alignof_;
23700 main ()
23702 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
23703 test_array [0] = 0
23706 return 0;
23708 _ACEOF
23709 rm -f conftest.$ac_objext
23710 if { (ac_try="$ac_compile"
23711 case "(($ac_try" in
23712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23713 *) ac_try_echo=$ac_try;;
23714 esac
23715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23716 (eval "$ac_compile") 2>conftest.er1
23717 ac_status=$?
23718 grep -v '^ *+' conftest.er1 >conftest.err
23719 rm -f conftest.er1
23720 cat conftest.err >&5
23721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23722 (exit $ac_status); } && {
23723 test -z "$ac_c_werror_flag" ||
23724 test ! -s conftest.err
23725 } && test -s conftest.$ac_objext; then
23726 ac_lo=$ac_mid; break
23727 else
23728 echo "$as_me: failed program was:" >&5
23729 sed 's/^/| /' conftest.$ac_ext >&5
23731 ac_hi=`expr '(' $ac_mid ')' - 1`
23732 if test $ac_mid -le $ac_hi; then
23733 ac_lo= ac_hi=
23734 break
23736 ac_mid=`expr 2 '*' $ac_mid`
23739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23740 done
23741 else
23742 echo "$as_me: failed program was:" >&5
23743 sed 's/^/| /' conftest.$ac_ext >&5
23745 ac_lo= ac_hi=
23748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23752 # Binary search between lo and hi bounds.
23753 while test "x$ac_lo" != "x$ac_hi"; do
23754 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23755 cat >conftest.$ac_ext <<_ACEOF
23756 /* confdefs.h. */
23757 _ACEOF
23758 cat confdefs.h >>conftest.$ac_ext
23759 cat >>conftest.$ac_ext <<_ACEOF
23760 /* end confdefs.h. */
23761 $ac_includes_default
23762 #ifndef offsetof
23763 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23764 #endif
23765 typedef struct { char x; double y; } ac__type_alignof_;
23767 main ()
23769 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23770 test_array [0] = 0
23773 return 0;
23775 _ACEOF
23776 rm -f conftest.$ac_objext
23777 if { (ac_try="$ac_compile"
23778 case "(($ac_try" in
23779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23780 *) ac_try_echo=$ac_try;;
23781 esac
23782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23783 (eval "$ac_compile") 2>conftest.er1
23784 ac_status=$?
23785 grep -v '^ *+' conftest.er1 >conftest.err
23786 rm -f conftest.er1
23787 cat conftest.err >&5
23788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23789 (exit $ac_status); } && {
23790 test -z "$ac_c_werror_flag" ||
23791 test ! -s conftest.err
23792 } && test -s conftest.$ac_objext; then
23793 ac_hi=$ac_mid
23794 else
23795 echo "$as_me: failed program was:" >&5
23796 sed 's/^/| /' conftest.$ac_ext >&5
23798 ac_lo=`expr '(' $ac_mid ')' + 1`
23801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23802 done
23803 case $ac_lo in
23804 ?*) ac_cv_alignof_double=$ac_lo;;
23805 '') if test "$ac_cv_type_double" = yes; then
23806 { { echo "$as_me:$LINENO: error: cannot compute alignment of double
23807 See \`config.log' for more details." >&5
23808 echo "$as_me: error: cannot compute alignment of double
23809 See \`config.log' for more details." >&2;}
23810 { (exit 77); exit 77; }; }
23811 else
23812 ac_cv_alignof_double=0
23813 fi ;;
23814 esac
23815 else
23816 cat >conftest.$ac_ext <<_ACEOF
23817 /* confdefs.h. */
23818 _ACEOF
23819 cat confdefs.h >>conftest.$ac_ext
23820 cat >>conftest.$ac_ext <<_ACEOF
23821 /* end confdefs.h. */
23822 $ac_includes_default
23823 #ifndef offsetof
23824 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23825 #endif
23826 typedef struct { char x; double y; } ac__type_alignof_;
23827 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23828 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23829 #include <stdio.h>
23830 #include <stdlib.h>
23832 main ()
23835 FILE *f = fopen ("conftest.val", "w");
23836 if (! f)
23837 return 1;
23838 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23840 long int i = longval ();
23841 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23842 return 1;
23843 fprintf (f, "%ld\n", i);
23845 else
23847 unsigned long int i = ulongval ();
23848 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23849 return 1;
23850 fprintf (f, "%lu\n", i);
23852 return ferror (f) || fclose (f) != 0;
23855 return 0;
23857 _ACEOF
23858 rm -f conftest$ac_exeext
23859 if { (ac_try="$ac_link"
23860 case "(($ac_try" in
23861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23862 *) ac_try_echo=$ac_try;;
23863 esac
23864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23865 (eval "$ac_link") 2>&5
23866 ac_status=$?
23867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23868 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23869 { (case "(($ac_try" in
23870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23871 *) ac_try_echo=$ac_try;;
23872 esac
23873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23874 (eval "$ac_try") 2>&5
23875 ac_status=$?
23876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23877 (exit $ac_status); }; }; then
23878 ac_cv_alignof_double=`cat conftest.val`
23879 else
23880 echo "$as_me: program exited with status $ac_status" >&5
23881 echo "$as_me: failed program was:" >&5
23882 sed 's/^/| /' conftest.$ac_ext >&5
23884 ( exit $ac_status )
23885 if test "$ac_cv_type_double" = yes; then
23886 { { echo "$as_me:$LINENO: error: cannot compute alignment of double
23887 See \`config.log' for more details." >&5
23888 echo "$as_me: error: cannot compute alignment of double
23889 See \`config.log' for more details." >&2;}
23890 { (exit 77); exit 77; }; }
23891 else
23892 ac_cv_alignof_double=0
23895 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23897 rm -f conftest.val
23899 { echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
23900 echo "${ECHO_T}$ac_cv_alignof_double" >&6; }
23904 cat >>confdefs.h <<_ACEOF
23905 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
23906 _ACEOF
23910 # Compute maximum alignment of any basic type.
23911 # We assume long's alignment is at least as strong as char, short, or int;
23912 # but we must check long long (if it exists) and double.
23914 MAX_ALIGNOF=$ac_cv_alignof_long
23915 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
23916 MAX_ALIGNOF=$ac_cv_alignof_double
23918 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
23919 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
23922 cat >>confdefs.h <<_ACEOF
23923 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
23924 _ACEOF
23928 # Some platforms predefine the types int8, int16, etc. Only check
23929 # a (hopefully) representative subset.
23930 { echo "$as_me:$LINENO: checking for int8" >&5
23931 echo $ECHO_N "checking for int8... $ECHO_C" >&6; }
23932 if test "${ac_cv_type_int8+set}" = set; then
23933 echo $ECHO_N "(cached) $ECHO_C" >&6
23934 else
23935 cat >conftest.$ac_ext <<_ACEOF
23936 /* confdefs.h. */
23937 _ACEOF
23938 cat confdefs.h >>conftest.$ac_ext
23939 cat >>conftest.$ac_ext <<_ACEOF
23940 /* end confdefs.h. */
23941 #include <stdio.h>
23942 #ifdef HAVE_SUPPORTDEFS_H
23943 #include <SupportDefs.h>
23944 #endif
23946 typedef int8 ac__type_new_;
23948 main ()
23950 if ((ac__type_new_ *) 0)
23951 return 0;
23952 if (sizeof (ac__type_new_))
23953 return 0;
23955 return 0;
23957 _ACEOF
23958 rm -f conftest.$ac_objext
23959 if { (ac_try="$ac_compile"
23960 case "(($ac_try" in
23961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23962 *) ac_try_echo=$ac_try;;
23963 esac
23964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23965 (eval "$ac_compile") 2>conftest.er1
23966 ac_status=$?
23967 grep -v '^ *+' conftest.er1 >conftest.err
23968 rm -f conftest.er1
23969 cat conftest.err >&5
23970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23971 (exit $ac_status); } && {
23972 test -z "$ac_c_werror_flag" ||
23973 test ! -s conftest.err
23974 } && test -s conftest.$ac_objext; then
23975 ac_cv_type_int8=yes
23976 else
23977 echo "$as_me: failed program was:" >&5
23978 sed 's/^/| /' conftest.$ac_ext >&5
23980 ac_cv_type_int8=no
23983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23985 { echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
23986 echo "${ECHO_T}$ac_cv_type_int8" >&6; }
23987 if test $ac_cv_type_int8 = yes; then
23989 cat >>confdefs.h <<_ACEOF
23990 #define HAVE_INT8 1
23991 _ACEOF
23995 { echo "$as_me:$LINENO: checking for uint8" >&5
23996 echo $ECHO_N "checking for uint8... $ECHO_C" >&6; }
23997 if test "${ac_cv_type_uint8+set}" = set; then
23998 echo $ECHO_N "(cached) $ECHO_C" >&6
23999 else
24000 cat >conftest.$ac_ext <<_ACEOF
24001 /* confdefs.h. */
24002 _ACEOF
24003 cat confdefs.h >>conftest.$ac_ext
24004 cat >>conftest.$ac_ext <<_ACEOF
24005 /* end confdefs.h. */
24006 #include <stdio.h>
24007 #ifdef HAVE_SUPPORTDEFS_H
24008 #include <SupportDefs.h>
24009 #endif
24011 typedef uint8 ac__type_new_;
24013 main ()
24015 if ((ac__type_new_ *) 0)
24016 return 0;
24017 if (sizeof (ac__type_new_))
24018 return 0;
24020 return 0;
24022 _ACEOF
24023 rm -f conftest.$ac_objext
24024 if { (ac_try="$ac_compile"
24025 case "(($ac_try" in
24026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24027 *) ac_try_echo=$ac_try;;
24028 esac
24029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24030 (eval "$ac_compile") 2>conftest.er1
24031 ac_status=$?
24032 grep -v '^ *+' conftest.er1 >conftest.err
24033 rm -f conftest.er1
24034 cat conftest.err >&5
24035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24036 (exit $ac_status); } && {
24037 test -z "$ac_c_werror_flag" ||
24038 test ! -s conftest.err
24039 } && test -s conftest.$ac_objext; then
24040 ac_cv_type_uint8=yes
24041 else
24042 echo "$as_me: failed program was:" >&5
24043 sed 's/^/| /' conftest.$ac_ext >&5
24045 ac_cv_type_uint8=no
24048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24050 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
24051 echo "${ECHO_T}$ac_cv_type_uint8" >&6; }
24052 if test $ac_cv_type_uint8 = yes; then
24054 cat >>confdefs.h <<_ACEOF
24055 #define HAVE_UINT8 1
24056 _ACEOF
24060 { echo "$as_me:$LINENO: checking for int64" >&5
24061 echo $ECHO_N "checking for int64... $ECHO_C" >&6; }
24062 if test "${ac_cv_type_int64+set}" = set; then
24063 echo $ECHO_N "(cached) $ECHO_C" >&6
24064 else
24065 cat >conftest.$ac_ext <<_ACEOF
24066 /* confdefs.h. */
24067 _ACEOF
24068 cat confdefs.h >>conftest.$ac_ext
24069 cat >>conftest.$ac_ext <<_ACEOF
24070 /* end confdefs.h. */
24071 #include <stdio.h>
24072 #ifdef HAVE_SUPPORTDEFS_H
24073 #include <SupportDefs.h>
24074 #endif
24076 typedef int64 ac__type_new_;
24078 main ()
24080 if ((ac__type_new_ *) 0)
24081 return 0;
24082 if (sizeof (ac__type_new_))
24083 return 0;
24085 return 0;
24087 _ACEOF
24088 rm -f conftest.$ac_objext
24089 if { (ac_try="$ac_compile"
24090 case "(($ac_try" in
24091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24092 *) ac_try_echo=$ac_try;;
24093 esac
24094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24095 (eval "$ac_compile") 2>conftest.er1
24096 ac_status=$?
24097 grep -v '^ *+' conftest.er1 >conftest.err
24098 rm -f conftest.er1
24099 cat conftest.err >&5
24100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24101 (exit $ac_status); } && {
24102 test -z "$ac_c_werror_flag" ||
24103 test ! -s conftest.err
24104 } && test -s conftest.$ac_objext; then
24105 ac_cv_type_int64=yes
24106 else
24107 echo "$as_me: failed program was:" >&5
24108 sed 's/^/| /' conftest.$ac_ext >&5
24110 ac_cv_type_int64=no
24113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24115 { echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
24116 echo "${ECHO_T}$ac_cv_type_int64" >&6; }
24117 if test $ac_cv_type_int64 = yes; then
24119 cat >>confdefs.h <<_ACEOF
24120 #define HAVE_INT64 1
24121 _ACEOF
24125 { echo "$as_me:$LINENO: checking for uint64" >&5
24126 echo $ECHO_N "checking for uint64... $ECHO_C" >&6; }
24127 if test "${ac_cv_type_uint64+set}" = set; then
24128 echo $ECHO_N "(cached) $ECHO_C" >&6
24129 else
24130 cat >conftest.$ac_ext <<_ACEOF
24131 /* confdefs.h. */
24132 _ACEOF
24133 cat confdefs.h >>conftest.$ac_ext
24134 cat >>conftest.$ac_ext <<_ACEOF
24135 /* end confdefs.h. */
24136 #include <stdio.h>
24137 #ifdef HAVE_SUPPORTDEFS_H
24138 #include <SupportDefs.h>
24139 #endif
24141 typedef uint64 ac__type_new_;
24143 main ()
24145 if ((ac__type_new_ *) 0)
24146 return 0;
24147 if (sizeof (ac__type_new_))
24148 return 0;
24150 return 0;
24152 _ACEOF
24153 rm -f conftest.$ac_objext
24154 if { (ac_try="$ac_compile"
24155 case "(($ac_try" in
24156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24157 *) ac_try_echo=$ac_try;;
24158 esac
24159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24160 (eval "$ac_compile") 2>conftest.er1
24161 ac_status=$?
24162 grep -v '^ *+' conftest.er1 >conftest.err
24163 rm -f conftest.er1
24164 cat conftest.err >&5
24165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24166 (exit $ac_status); } && {
24167 test -z "$ac_c_werror_flag" ||
24168 test ! -s conftest.err
24169 } && test -s conftest.$ac_objext; then
24170 ac_cv_type_uint64=yes
24171 else
24172 echo "$as_me: failed program was:" >&5
24173 sed 's/^/| /' conftest.$ac_ext >&5
24175 ac_cv_type_uint64=no
24178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24180 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
24181 echo "${ECHO_T}$ac_cv_type_uint64" >&6; }
24182 if test $ac_cv_type_uint64 = yes; then
24184 cat >>confdefs.h <<_ACEOF
24185 #define HAVE_UINT64 1
24186 _ACEOF
24192 # We also check for sig_atomic_t, which *should* be defined per ANSI
24193 # C, but is missing on some old platforms.
24194 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
24195 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
24196 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
24197 echo $ECHO_N "(cached) $ECHO_C" >&6
24198 else
24199 cat >conftest.$ac_ext <<_ACEOF
24200 /* confdefs.h. */
24201 _ACEOF
24202 cat confdefs.h >>conftest.$ac_ext
24203 cat >>conftest.$ac_ext <<_ACEOF
24204 /* end confdefs.h. */
24205 #include <signal.h>
24207 typedef sig_atomic_t ac__type_new_;
24209 main ()
24211 if ((ac__type_new_ *) 0)
24212 return 0;
24213 if (sizeof (ac__type_new_))
24214 return 0;
24216 return 0;
24218 _ACEOF
24219 rm -f conftest.$ac_objext
24220 if { (ac_try="$ac_compile"
24221 case "(($ac_try" in
24222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24223 *) ac_try_echo=$ac_try;;
24224 esac
24225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24226 (eval "$ac_compile") 2>conftest.er1
24227 ac_status=$?
24228 grep -v '^ *+' conftest.er1 >conftest.err
24229 rm -f conftest.er1
24230 cat conftest.err >&5
24231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24232 (exit $ac_status); } && {
24233 test -z "$ac_c_werror_flag" ||
24234 test ! -s conftest.err
24235 } && test -s conftest.$ac_objext; then
24236 ac_cv_type_sig_atomic_t=yes
24237 else
24238 echo "$as_me: failed program was:" >&5
24239 sed 's/^/| /' conftest.$ac_ext >&5
24241 ac_cv_type_sig_atomic_t=no
24244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24246 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
24247 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
24248 if test $ac_cv_type_sig_atomic_t = yes; then
24250 cat >>confdefs.h <<_ACEOF
24251 #define HAVE_SIG_ATOMIC_T 1
24252 _ACEOF
24259 # If the user did not disable integer datetimes, check that
24260 # there is a working 64-bit integral type to use.
24261 if test x"$USE_INTEGER_DATETIMES" = x"yes" &&
24262 test x"$HAVE_LONG_INT_64" = x"no" &&
24263 test x"$HAVE_LONG_LONG_INT_64" = x"no" &&
24264 test x"$HAVE_INT64" = x"no" ; then
24265 { { echo "$as_me:$LINENO: error:
24266 Integer-based datetime support requires a 64-bit integer type,
24267 but no such type could be found. The --disable-integer-datetimes
24268 configure option can be used to disable integer-based storage
24269 of datetime values." >&5
24270 echo "$as_me: error:
24271 Integer-based datetime support requires a 64-bit integer type,
24272 but no such type could be found. The --disable-integer-datetimes
24273 configure option can be used to disable integer-based storage
24274 of datetime values." >&2;}
24275 { (exit 1); exit 1; }; }
24279 if test "$PORTNAME" != "win32"
24280 then
24281 { echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
24282 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6; }
24283 if test "${pgac_cv_func_posix_signals+set}" = set; then
24284 echo $ECHO_N "(cached) $ECHO_C" >&6
24285 else
24286 cat >conftest.$ac_ext <<_ACEOF
24287 /* confdefs.h. */
24288 _ACEOF
24289 cat confdefs.h >>conftest.$ac_ext
24290 cat >>conftest.$ac_ext <<_ACEOF
24291 /* end confdefs.h. */
24292 #include <signal.h>
24295 main ()
24297 struct sigaction act, oact;
24298 sigemptyset(&act.sa_mask);
24299 act.sa_flags = SA_RESTART;
24300 sigaction(0, &act, &oact);
24302 return 0;
24304 _ACEOF
24305 rm -f conftest.$ac_objext conftest$ac_exeext
24306 if { (ac_try="$ac_link"
24307 case "(($ac_try" in
24308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24309 *) ac_try_echo=$ac_try;;
24310 esac
24311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24312 (eval "$ac_link") 2>conftest.er1
24313 ac_status=$?
24314 grep -v '^ *+' conftest.er1 >conftest.err
24315 rm -f conftest.er1
24316 cat conftest.err >&5
24317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24318 (exit $ac_status); } && {
24319 test -z "$ac_c_werror_flag" ||
24320 test ! -s conftest.err
24321 } && test -s conftest$ac_exeext &&
24322 $as_test_x conftest$ac_exeext; then
24323 pgac_cv_func_posix_signals=yes
24324 else
24325 echo "$as_me: failed program was:" >&5
24326 sed 's/^/| /' conftest.$ac_ext >&5
24328 pgac_cv_func_posix_signals=no
24331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24332 conftest$ac_exeext conftest.$ac_ext
24334 { echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
24335 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6; }
24336 if test x"$pgac_cv_func_posix_signals" = xyes ; then
24338 cat >>confdefs.h <<\_ACEOF
24339 #define HAVE_POSIX_SIGNALS
24340 _ACEOF
24343 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
24345 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
24346 { { echo "$as_me:$LINENO: error:
24347 Thread-safety requires POSIX signals, which are not supported by this
24348 operating system." >&5
24349 echo "$as_me: error:
24350 Thread-safety requires POSIX signals, which are not supported by this
24351 operating system." >&2;}
24352 { (exit 1); exit 1; }; }
24356 if test $ac_cv_func_fseeko = yes; then
24357 # Check whether --enable-largefile was given.
24358 if test "${enable_largefile+set}" = set; then
24359 enableval=$enable_largefile;
24362 if test "$enable_largefile" != no; then
24364 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
24365 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
24366 if test "${ac_cv_sys_largefile_CC+set}" = set; then
24367 echo $ECHO_N "(cached) $ECHO_C" >&6
24368 else
24369 ac_cv_sys_largefile_CC=no
24370 if test "$GCC" != yes; then
24371 ac_save_CC=$CC
24372 while :; do
24373 # IRIX 6.2 and later do not support large files by default,
24374 # so use the C compiler's -n32 option if that helps.
24375 cat >conftest.$ac_ext <<_ACEOF
24376 /* confdefs.h. */
24377 _ACEOF
24378 cat confdefs.h >>conftest.$ac_ext
24379 cat >>conftest.$ac_ext <<_ACEOF
24380 /* end confdefs.h. */
24381 #include <sys/types.h>
24382 /* Check that off_t can represent 2**63 - 1 correctly.
24383 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24384 since some C++ compilers masquerading as C compilers
24385 incorrectly reject 9223372036854775807. */
24386 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24387 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24388 && LARGE_OFF_T % 2147483647 == 1)
24389 ? 1 : -1];
24391 main ()
24395 return 0;
24397 _ACEOF
24398 rm -f conftest.$ac_objext
24399 if { (ac_try="$ac_compile"
24400 case "(($ac_try" in
24401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24402 *) ac_try_echo=$ac_try;;
24403 esac
24404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24405 (eval "$ac_compile") 2>conftest.er1
24406 ac_status=$?
24407 grep -v '^ *+' conftest.er1 >conftest.err
24408 rm -f conftest.er1
24409 cat conftest.err >&5
24410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24411 (exit $ac_status); } && {
24412 test -z "$ac_c_werror_flag" ||
24413 test ! -s conftest.err
24414 } && test -s conftest.$ac_objext; then
24415 break
24416 else
24417 echo "$as_me: failed program was:" >&5
24418 sed 's/^/| /' conftest.$ac_ext >&5
24423 rm -f core conftest.err conftest.$ac_objext
24424 CC="$CC -n32"
24425 rm -f conftest.$ac_objext
24426 if { (ac_try="$ac_compile"
24427 case "(($ac_try" in
24428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24429 *) ac_try_echo=$ac_try;;
24430 esac
24431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24432 (eval "$ac_compile") 2>conftest.er1
24433 ac_status=$?
24434 grep -v '^ *+' conftest.er1 >conftest.err
24435 rm -f conftest.er1
24436 cat conftest.err >&5
24437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24438 (exit $ac_status); } && {
24439 test -z "$ac_c_werror_flag" ||
24440 test ! -s conftest.err
24441 } && test -s conftest.$ac_objext; then
24442 ac_cv_sys_largefile_CC=' -n32'; break
24443 else
24444 echo "$as_me: failed program was:" >&5
24445 sed 's/^/| /' conftest.$ac_ext >&5
24450 rm -f core conftest.err conftest.$ac_objext
24451 break
24452 done
24453 CC=$ac_save_CC
24454 rm -f conftest.$ac_ext
24457 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
24458 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
24459 if test "$ac_cv_sys_largefile_CC" != no; then
24460 CC=$CC$ac_cv_sys_largefile_CC
24463 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
24464 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
24465 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
24466 echo $ECHO_N "(cached) $ECHO_C" >&6
24467 else
24468 while :; do
24469 cat >conftest.$ac_ext <<_ACEOF
24470 /* confdefs.h. */
24471 _ACEOF
24472 cat confdefs.h >>conftest.$ac_ext
24473 cat >>conftest.$ac_ext <<_ACEOF
24474 /* end confdefs.h. */
24475 #include <sys/types.h>
24476 /* Check that off_t can represent 2**63 - 1 correctly.
24477 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24478 since some C++ compilers masquerading as C compilers
24479 incorrectly reject 9223372036854775807. */
24480 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24481 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24482 && LARGE_OFF_T % 2147483647 == 1)
24483 ? 1 : -1];
24485 main ()
24489 return 0;
24491 _ACEOF
24492 rm -f conftest.$ac_objext
24493 if { (ac_try="$ac_compile"
24494 case "(($ac_try" in
24495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24496 *) ac_try_echo=$ac_try;;
24497 esac
24498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24499 (eval "$ac_compile") 2>conftest.er1
24500 ac_status=$?
24501 grep -v '^ *+' conftest.er1 >conftest.err
24502 rm -f conftest.er1
24503 cat conftest.err >&5
24504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24505 (exit $ac_status); } && {
24506 test -z "$ac_c_werror_flag" ||
24507 test ! -s conftest.err
24508 } && test -s conftest.$ac_objext; then
24509 ac_cv_sys_file_offset_bits=no; break
24510 else
24511 echo "$as_me: failed program was:" >&5
24512 sed 's/^/| /' conftest.$ac_ext >&5
24517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24518 cat >conftest.$ac_ext <<_ACEOF
24519 /* confdefs.h. */
24520 _ACEOF
24521 cat confdefs.h >>conftest.$ac_ext
24522 cat >>conftest.$ac_ext <<_ACEOF
24523 /* end confdefs.h. */
24524 #define _FILE_OFFSET_BITS 64
24525 #include <sys/types.h>
24526 /* Check that off_t can represent 2**63 - 1 correctly.
24527 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24528 since some C++ compilers masquerading as C compilers
24529 incorrectly reject 9223372036854775807. */
24530 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24531 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24532 && LARGE_OFF_T % 2147483647 == 1)
24533 ? 1 : -1];
24535 main ()
24539 return 0;
24541 _ACEOF
24542 rm -f conftest.$ac_objext
24543 if { (ac_try="$ac_compile"
24544 case "(($ac_try" in
24545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24546 *) ac_try_echo=$ac_try;;
24547 esac
24548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24549 (eval "$ac_compile") 2>conftest.er1
24550 ac_status=$?
24551 grep -v '^ *+' conftest.er1 >conftest.err
24552 rm -f conftest.er1
24553 cat conftest.err >&5
24554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24555 (exit $ac_status); } && {
24556 test -z "$ac_c_werror_flag" ||
24557 test ! -s conftest.err
24558 } && test -s conftest.$ac_objext; then
24559 ac_cv_sys_file_offset_bits=64; break
24560 else
24561 echo "$as_me: failed program was:" >&5
24562 sed 's/^/| /' conftest.$ac_ext >&5
24567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24568 ac_cv_sys_file_offset_bits=unknown
24569 break
24570 done
24572 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
24573 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
24574 case $ac_cv_sys_file_offset_bits in #(
24575 no | unknown) ;;
24577 cat >>confdefs.h <<_ACEOF
24578 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24579 _ACEOF
24581 esac
24582 rm -f conftest*
24583 if test $ac_cv_sys_file_offset_bits = unknown; then
24584 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
24585 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
24586 if test "${ac_cv_sys_large_files+set}" = set; then
24587 echo $ECHO_N "(cached) $ECHO_C" >&6
24588 else
24589 while :; do
24590 cat >conftest.$ac_ext <<_ACEOF
24591 /* confdefs.h. */
24592 _ACEOF
24593 cat confdefs.h >>conftest.$ac_ext
24594 cat >>conftest.$ac_ext <<_ACEOF
24595 /* end confdefs.h. */
24596 #include <sys/types.h>
24597 /* Check that off_t can represent 2**63 - 1 correctly.
24598 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24599 since some C++ compilers masquerading as C compilers
24600 incorrectly reject 9223372036854775807. */
24601 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24602 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24603 && LARGE_OFF_T % 2147483647 == 1)
24604 ? 1 : -1];
24606 main ()
24610 return 0;
24612 _ACEOF
24613 rm -f conftest.$ac_objext
24614 if { (ac_try="$ac_compile"
24615 case "(($ac_try" in
24616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24617 *) ac_try_echo=$ac_try;;
24618 esac
24619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24620 (eval "$ac_compile") 2>conftest.er1
24621 ac_status=$?
24622 grep -v '^ *+' conftest.er1 >conftest.err
24623 rm -f conftest.er1
24624 cat conftest.err >&5
24625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24626 (exit $ac_status); } && {
24627 test -z "$ac_c_werror_flag" ||
24628 test ! -s conftest.err
24629 } && test -s conftest.$ac_objext; then
24630 ac_cv_sys_large_files=no; break
24631 else
24632 echo "$as_me: failed program was:" >&5
24633 sed 's/^/| /' conftest.$ac_ext >&5
24638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24639 cat >conftest.$ac_ext <<_ACEOF
24640 /* confdefs.h. */
24641 _ACEOF
24642 cat confdefs.h >>conftest.$ac_ext
24643 cat >>conftest.$ac_ext <<_ACEOF
24644 /* end confdefs.h. */
24645 #define _LARGE_FILES 1
24646 #include <sys/types.h>
24647 /* Check that off_t can represent 2**63 - 1 correctly.
24648 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24649 since some C++ compilers masquerading as C compilers
24650 incorrectly reject 9223372036854775807. */
24651 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24652 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24653 && LARGE_OFF_T % 2147483647 == 1)
24654 ? 1 : -1];
24656 main ()
24660 return 0;
24662 _ACEOF
24663 rm -f conftest.$ac_objext
24664 if { (ac_try="$ac_compile"
24665 case "(($ac_try" in
24666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24667 *) ac_try_echo=$ac_try;;
24668 esac
24669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24670 (eval "$ac_compile") 2>conftest.er1
24671 ac_status=$?
24672 grep -v '^ *+' conftest.er1 >conftest.err
24673 rm -f conftest.er1
24674 cat conftest.err >&5
24675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24676 (exit $ac_status); } && {
24677 test -z "$ac_c_werror_flag" ||
24678 test ! -s conftest.err
24679 } && test -s conftest.$ac_objext; then
24680 ac_cv_sys_large_files=1; break
24681 else
24682 echo "$as_me: failed program was:" >&5
24683 sed 's/^/| /' conftest.$ac_ext >&5
24688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24689 ac_cv_sys_large_files=unknown
24690 break
24691 done
24693 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
24694 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
24695 case $ac_cv_sys_large_files in #(
24696 no | unknown) ;;
24698 cat >>confdefs.h <<_ACEOF
24699 #define _LARGE_FILES $ac_cv_sys_large_files
24700 _ACEOF
24702 esac
24703 rm -f conftest*
24709 # Check for largefile support (must be after AC_SYS_LARGEFILE)
24710 { echo "$as_me:$LINENO: checking for off_t" >&5
24711 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24712 if test "${ac_cv_type_off_t+set}" = set; then
24713 echo $ECHO_N "(cached) $ECHO_C" >&6
24714 else
24715 cat >conftest.$ac_ext <<_ACEOF
24716 /* confdefs.h. */
24717 _ACEOF
24718 cat confdefs.h >>conftest.$ac_ext
24719 cat >>conftest.$ac_ext <<_ACEOF
24720 /* end confdefs.h. */
24721 $ac_includes_default
24722 typedef off_t ac__type_new_;
24724 main ()
24726 if ((ac__type_new_ *) 0)
24727 return 0;
24728 if (sizeof (ac__type_new_))
24729 return 0;
24731 return 0;
24733 _ACEOF
24734 rm -f conftest.$ac_objext
24735 if { (ac_try="$ac_compile"
24736 case "(($ac_try" in
24737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24738 *) ac_try_echo=$ac_try;;
24739 esac
24740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24741 (eval "$ac_compile") 2>conftest.er1
24742 ac_status=$?
24743 grep -v '^ *+' conftest.er1 >conftest.err
24744 rm -f conftest.er1
24745 cat conftest.err >&5
24746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24747 (exit $ac_status); } && {
24748 test -z "$ac_c_werror_flag" ||
24749 test ! -s conftest.err
24750 } && test -s conftest.$ac_objext; then
24751 ac_cv_type_off_t=yes
24752 else
24753 echo "$as_me: failed program was:" >&5
24754 sed 's/^/| /' conftest.$ac_ext >&5
24756 ac_cv_type_off_t=no
24759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24761 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24762 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24764 # The cast to long int works around a bug in the HP C Compiler
24765 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24766 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24767 # This bug is HP SR number 8606223364.
24768 { echo "$as_me:$LINENO: checking size of off_t" >&5
24769 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
24770 if test "${ac_cv_sizeof_off_t+set}" = set; then
24771 echo $ECHO_N "(cached) $ECHO_C" >&6
24772 else
24773 if test "$cross_compiling" = yes; then
24774 # Depending upon the size, compute the lo and hi bounds.
24775 cat >conftest.$ac_ext <<_ACEOF
24776 /* confdefs.h. */
24777 _ACEOF
24778 cat confdefs.h >>conftest.$ac_ext
24779 cat >>conftest.$ac_ext <<_ACEOF
24780 /* end confdefs.h. */
24781 $ac_includes_default
24782 typedef off_t ac__type_sizeof_;
24784 main ()
24786 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24787 test_array [0] = 0
24790 return 0;
24792 _ACEOF
24793 rm -f conftest.$ac_objext
24794 if { (ac_try="$ac_compile"
24795 case "(($ac_try" in
24796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24797 *) ac_try_echo=$ac_try;;
24798 esac
24799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24800 (eval "$ac_compile") 2>conftest.er1
24801 ac_status=$?
24802 grep -v '^ *+' conftest.er1 >conftest.err
24803 rm -f conftest.er1
24804 cat conftest.err >&5
24805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24806 (exit $ac_status); } && {
24807 test -z "$ac_c_werror_flag" ||
24808 test ! -s conftest.err
24809 } && test -s conftest.$ac_objext; then
24810 ac_lo=0 ac_mid=0
24811 while :; do
24812 cat >conftest.$ac_ext <<_ACEOF
24813 /* confdefs.h. */
24814 _ACEOF
24815 cat confdefs.h >>conftest.$ac_ext
24816 cat >>conftest.$ac_ext <<_ACEOF
24817 /* end confdefs.h. */
24818 $ac_includes_default
24819 typedef off_t ac__type_sizeof_;
24821 main ()
24823 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24824 test_array [0] = 0
24827 return 0;
24829 _ACEOF
24830 rm -f conftest.$ac_objext
24831 if { (ac_try="$ac_compile"
24832 case "(($ac_try" in
24833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24834 *) ac_try_echo=$ac_try;;
24835 esac
24836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24837 (eval "$ac_compile") 2>conftest.er1
24838 ac_status=$?
24839 grep -v '^ *+' conftest.er1 >conftest.err
24840 rm -f conftest.er1
24841 cat conftest.err >&5
24842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24843 (exit $ac_status); } && {
24844 test -z "$ac_c_werror_flag" ||
24845 test ! -s conftest.err
24846 } && test -s conftest.$ac_objext; then
24847 ac_hi=$ac_mid; break
24848 else
24849 echo "$as_me: failed program was:" >&5
24850 sed 's/^/| /' conftest.$ac_ext >&5
24852 ac_lo=`expr $ac_mid + 1`
24853 if test $ac_lo -le $ac_mid; then
24854 ac_lo= ac_hi=
24855 break
24857 ac_mid=`expr 2 '*' $ac_mid + 1`
24860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24861 done
24862 else
24863 echo "$as_me: failed program was:" >&5
24864 sed 's/^/| /' conftest.$ac_ext >&5
24866 cat >conftest.$ac_ext <<_ACEOF
24867 /* confdefs.h. */
24868 _ACEOF
24869 cat confdefs.h >>conftest.$ac_ext
24870 cat >>conftest.$ac_ext <<_ACEOF
24871 /* end confdefs.h. */
24872 $ac_includes_default
24873 typedef off_t ac__type_sizeof_;
24875 main ()
24877 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24878 test_array [0] = 0
24881 return 0;
24883 _ACEOF
24884 rm -f conftest.$ac_objext
24885 if { (ac_try="$ac_compile"
24886 case "(($ac_try" in
24887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24888 *) ac_try_echo=$ac_try;;
24889 esac
24890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24891 (eval "$ac_compile") 2>conftest.er1
24892 ac_status=$?
24893 grep -v '^ *+' conftest.er1 >conftest.err
24894 rm -f conftest.er1
24895 cat conftest.err >&5
24896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24897 (exit $ac_status); } && {
24898 test -z "$ac_c_werror_flag" ||
24899 test ! -s conftest.err
24900 } && test -s conftest.$ac_objext; then
24901 ac_hi=-1 ac_mid=-1
24902 while :; do
24903 cat >conftest.$ac_ext <<_ACEOF
24904 /* confdefs.h. */
24905 _ACEOF
24906 cat confdefs.h >>conftest.$ac_ext
24907 cat >>conftest.$ac_ext <<_ACEOF
24908 /* end confdefs.h. */
24909 $ac_includes_default
24910 typedef off_t ac__type_sizeof_;
24912 main ()
24914 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24915 test_array [0] = 0
24918 return 0;
24920 _ACEOF
24921 rm -f conftest.$ac_objext
24922 if { (ac_try="$ac_compile"
24923 case "(($ac_try" in
24924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24925 *) ac_try_echo=$ac_try;;
24926 esac
24927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24928 (eval "$ac_compile") 2>conftest.er1
24929 ac_status=$?
24930 grep -v '^ *+' conftest.er1 >conftest.err
24931 rm -f conftest.er1
24932 cat conftest.err >&5
24933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24934 (exit $ac_status); } && {
24935 test -z "$ac_c_werror_flag" ||
24936 test ! -s conftest.err
24937 } && test -s conftest.$ac_objext; then
24938 ac_lo=$ac_mid; break
24939 else
24940 echo "$as_me: failed program was:" >&5
24941 sed 's/^/| /' conftest.$ac_ext >&5
24943 ac_hi=`expr '(' $ac_mid ')' - 1`
24944 if test $ac_mid -le $ac_hi; then
24945 ac_lo= ac_hi=
24946 break
24948 ac_mid=`expr 2 '*' $ac_mid`
24951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24952 done
24953 else
24954 echo "$as_me: failed program was:" >&5
24955 sed 's/^/| /' conftest.$ac_ext >&5
24957 ac_lo= ac_hi=
24960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24964 # Binary search between lo and hi bounds.
24965 while test "x$ac_lo" != "x$ac_hi"; do
24966 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24967 cat >conftest.$ac_ext <<_ACEOF
24968 /* confdefs.h. */
24969 _ACEOF
24970 cat confdefs.h >>conftest.$ac_ext
24971 cat >>conftest.$ac_ext <<_ACEOF
24972 /* end confdefs.h. */
24973 $ac_includes_default
24974 typedef off_t ac__type_sizeof_;
24976 main ()
24978 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24979 test_array [0] = 0
24982 return 0;
24984 _ACEOF
24985 rm -f conftest.$ac_objext
24986 if { (ac_try="$ac_compile"
24987 case "(($ac_try" in
24988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24989 *) ac_try_echo=$ac_try;;
24990 esac
24991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24992 (eval "$ac_compile") 2>conftest.er1
24993 ac_status=$?
24994 grep -v '^ *+' conftest.er1 >conftest.err
24995 rm -f conftest.er1
24996 cat conftest.err >&5
24997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24998 (exit $ac_status); } && {
24999 test -z "$ac_c_werror_flag" ||
25000 test ! -s conftest.err
25001 } && test -s conftest.$ac_objext; then
25002 ac_hi=$ac_mid
25003 else
25004 echo "$as_me: failed program was:" >&5
25005 sed 's/^/| /' conftest.$ac_ext >&5
25007 ac_lo=`expr '(' $ac_mid ')' + 1`
25010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25011 done
25012 case $ac_lo in
25013 ?*) ac_cv_sizeof_off_t=$ac_lo;;
25014 '') if test "$ac_cv_type_off_t" = yes; then
25015 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
25016 See \`config.log' for more details." >&5
25017 echo "$as_me: error: cannot compute sizeof (off_t)
25018 See \`config.log' for more details." >&2;}
25019 { (exit 77); exit 77; }; }
25020 else
25021 ac_cv_sizeof_off_t=0
25022 fi ;;
25023 esac
25024 else
25025 cat >conftest.$ac_ext <<_ACEOF
25026 /* confdefs.h. */
25027 _ACEOF
25028 cat confdefs.h >>conftest.$ac_ext
25029 cat >>conftest.$ac_ext <<_ACEOF
25030 /* end confdefs.h. */
25031 $ac_includes_default
25032 typedef off_t ac__type_sizeof_;
25033 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25034 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25035 #include <stdio.h>
25036 #include <stdlib.h>
25038 main ()
25041 FILE *f = fopen ("conftest.val", "w");
25042 if (! f)
25043 return 1;
25044 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25046 long int i = longval ();
25047 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25048 return 1;
25049 fprintf (f, "%ld\n", i);
25051 else
25053 unsigned long int i = ulongval ();
25054 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25055 return 1;
25056 fprintf (f, "%lu\n", i);
25058 return ferror (f) || fclose (f) != 0;
25061 return 0;
25063 _ACEOF
25064 rm -f conftest$ac_exeext
25065 if { (ac_try="$ac_link"
25066 case "(($ac_try" in
25067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25068 *) ac_try_echo=$ac_try;;
25069 esac
25070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25071 (eval "$ac_link") 2>&5
25072 ac_status=$?
25073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25074 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25075 { (case "(($ac_try" in
25076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25077 *) ac_try_echo=$ac_try;;
25078 esac
25079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25080 (eval "$ac_try") 2>&5
25081 ac_status=$?
25082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25083 (exit $ac_status); }; }; then
25084 ac_cv_sizeof_off_t=`cat conftest.val`
25085 else
25086 echo "$as_me: program exited with status $ac_status" >&5
25087 echo "$as_me: failed program was:" >&5
25088 sed 's/^/| /' conftest.$ac_ext >&5
25090 ( exit $ac_status )
25091 if test "$ac_cv_type_off_t" = yes; then
25092 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
25093 See \`config.log' for more details." >&5
25094 echo "$as_me: error: cannot compute sizeof (off_t)
25095 See \`config.log' for more details." >&2;}
25096 { (exit 77); exit 77; }; }
25097 else
25098 ac_cv_sizeof_off_t=0
25101 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25103 rm -f conftest.val
25105 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
25106 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
25110 cat >>confdefs.h <<_ACEOF
25111 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
25112 _ACEOF
25116 # If we don't have largefile support, can't handle segsize >= 2GB.
25117 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
25118 { { echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
25119 echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
25120 { (exit 1); exit 1; }; }
25123 # SunOS doesn't handle negative byte comparisons properly with +/- return
25124 { echo "$as_me:$LINENO: checking for working memcmp" >&5
25125 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
25126 if test "${ac_cv_func_memcmp_working+set}" = set; then
25127 echo $ECHO_N "(cached) $ECHO_C" >&6
25128 else
25129 if test "$cross_compiling" = yes; then
25130 ac_cv_func_memcmp_working=no
25131 else
25132 cat >conftest.$ac_ext <<_ACEOF
25133 /* confdefs.h. */
25134 _ACEOF
25135 cat confdefs.h >>conftest.$ac_ext
25136 cat >>conftest.$ac_ext <<_ACEOF
25137 /* end confdefs.h. */
25138 $ac_includes_default
25140 main ()
25143 /* Some versions of memcmp are not 8-bit clean. */
25144 char c0 = '\100', c1 = '\200', c2 = '\201';
25145 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25146 return 1;
25148 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25149 or more and with at least one buffer not starting on a 4-byte boundary.
25150 William Lewis provided this test program. */
25152 char foo[21];
25153 char bar[21];
25154 int i;
25155 for (i = 0; i < 4; i++)
25157 char *a = foo + i;
25158 char *b = bar + i;
25159 strcpy (a, "--------01111111");
25160 strcpy (b, "--------10000000");
25161 if (memcmp (a, b, 16) >= 0)
25162 return 1;
25164 return 0;
25168 return 0;
25170 _ACEOF
25171 rm -f conftest$ac_exeext
25172 if { (ac_try="$ac_link"
25173 case "(($ac_try" in
25174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25175 *) ac_try_echo=$ac_try;;
25176 esac
25177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25178 (eval "$ac_link") 2>&5
25179 ac_status=$?
25180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25181 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25182 { (case "(($ac_try" in
25183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25184 *) ac_try_echo=$ac_try;;
25185 esac
25186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25187 (eval "$ac_try") 2>&5
25188 ac_status=$?
25189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25190 (exit $ac_status); }; }; then
25191 ac_cv_func_memcmp_working=yes
25192 else
25193 echo "$as_me: program exited with status $ac_status" >&5
25194 echo "$as_me: failed program was:" >&5
25195 sed 's/^/| /' conftest.$ac_ext >&5
25197 ( exit $ac_status )
25198 ac_cv_func_memcmp_working=no
25200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25205 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
25206 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
25207 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
25208 *" memcmp.$ac_objext "* ) ;;
25209 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
25211 esac
25216 # Select semaphore implementation type.
25217 if test "$PORTNAME" != "win32"; then
25218 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
25220 cat >>confdefs.h <<\_ACEOF
25221 #define USE_NAMED_POSIX_SEMAPHORES 1
25222 _ACEOF
25224 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
25225 else
25226 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
25228 cat >>confdefs.h <<\_ACEOF
25229 #define USE_UNNAMED_POSIX_SEMAPHORES 1
25230 _ACEOF
25232 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
25233 else
25235 cat >>confdefs.h <<\_ACEOF
25236 #define USE_SYSV_SEMAPHORES 1
25237 _ACEOF
25239 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
25242 else
25244 cat >>confdefs.h <<\_ACEOF
25245 #define USE_WIN32_SEMAPHORES 1
25246 _ACEOF
25248 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
25252 # Select shared-memory implementation type.
25253 if test "$PORTNAME" != "win32"; then
25255 cat >>confdefs.h <<\_ACEOF
25256 #define USE_SYSV_SHARED_MEMORY 1
25257 _ACEOF
25259 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
25260 else
25262 cat >>confdefs.h <<\_ACEOF
25263 #define USE_WIN32_SHARED_MEMORY 1
25264 _ACEOF
25266 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
25269 # If not set in template file, set bytes to use libc memset()
25270 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
25271 MEMSET_LOOP_LIMIT=1024
25274 cat >>confdefs.h <<_ACEOF
25275 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
25276 _ACEOF
25280 if test "$enable_nls" = yes ; then
25282 { echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
25283 echo $ECHO_N "checking for library containing bind_textdomain_codeset... $ECHO_C" >&6; }
25284 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
25285 echo $ECHO_N "(cached) $ECHO_C" >&6
25286 else
25287 ac_func_search_save_LIBS=$LIBS
25288 cat >conftest.$ac_ext <<_ACEOF
25289 /* confdefs.h. */
25290 _ACEOF
25291 cat confdefs.h >>conftest.$ac_ext
25292 cat >>conftest.$ac_ext <<_ACEOF
25293 /* end confdefs.h. */
25295 /* Override any GCC internal prototype to avoid an error.
25296 Use char because int might match the return type of a GCC
25297 builtin and then its argument prototype would still apply. */
25298 #ifdef __cplusplus
25299 extern "C"
25300 #endif
25301 char bind_textdomain_codeset ();
25303 main ()
25305 return bind_textdomain_codeset ();
25307 return 0;
25309 _ACEOF
25310 for ac_lib in '' intl; do
25311 if test -z "$ac_lib"; then
25312 ac_res="none required"
25313 else
25314 ac_res=-l$ac_lib
25315 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25317 rm -f conftest.$ac_objext conftest$ac_exeext
25318 if { (ac_try="$ac_link"
25319 case "(($ac_try" in
25320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25321 *) ac_try_echo=$ac_try;;
25322 esac
25323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25324 (eval "$ac_link") 2>conftest.er1
25325 ac_status=$?
25326 grep -v '^ *+' conftest.er1 >conftest.err
25327 rm -f conftest.er1
25328 cat conftest.err >&5
25329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25330 (exit $ac_status); } && {
25331 test -z "$ac_c_werror_flag" ||
25332 test ! -s conftest.err
25333 } && test -s conftest$ac_exeext &&
25334 $as_test_x conftest$ac_exeext; then
25335 ac_cv_search_bind_textdomain_codeset=$ac_res
25336 else
25337 echo "$as_me: failed program was:" >&5
25338 sed 's/^/| /' conftest.$ac_ext >&5
25343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25344 conftest$ac_exeext
25345 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
25346 break
25348 done
25349 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
25351 else
25352 ac_cv_search_bind_textdomain_codeset=no
25354 rm conftest.$ac_ext
25355 LIBS=$ac_func_search_save_LIBS
25357 { echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
25358 echo "${ECHO_T}$ac_cv_search_bind_textdomain_codeset" >&6; }
25359 ac_res=$ac_cv_search_bind_textdomain_codeset
25360 if test "$ac_res" != no; then
25361 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25363 else
25364 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
25365 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
25366 { (exit 1); exit 1; }; }
25369 if test "${ac_cv_header_libintl_h+set}" = set; then
25370 { echo "$as_me:$LINENO: checking for libintl.h" >&5
25371 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
25372 if test "${ac_cv_header_libintl_h+set}" = set; then
25373 echo $ECHO_N "(cached) $ECHO_C" >&6
25375 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
25376 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
25377 else
25378 # Is the header compilable?
25379 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
25380 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
25381 cat >conftest.$ac_ext <<_ACEOF
25382 /* confdefs.h. */
25383 _ACEOF
25384 cat confdefs.h >>conftest.$ac_ext
25385 cat >>conftest.$ac_ext <<_ACEOF
25386 /* end confdefs.h. */
25387 $ac_includes_default
25388 #include <libintl.h>
25389 _ACEOF
25390 rm -f conftest.$ac_objext
25391 if { (ac_try="$ac_compile"
25392 case "(($ac_try" in
25393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25394 *) ac_try_echo=$ac_try;;
25395 esac
25396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25397 (eval "$ac_compile") 2>conftest.er1
25398 ac_status=$?
25399 grep -v '^ *+' conftest.er1 >conftest.err
25400 rm -f conftest.er1
25401 cat conftest.err >&5
25402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25403 (exit $ac_status); } && {
25404 test -z "$ac_c_werror_flag" ||
25405 test ! -s conftest.err
25406 } && test -s conftest.$ac_objext; then
25407 ac_header_compiler=yes
25408 else
25409 echo "$as_me: failed program was:" >&5
25410 sed 's/^/| /' conftest.$ac_ext >&5
25412 ac_header_compiler=no
25415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25416 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25417 echo "${ECHO_T}$ac_header_compiler" >&6; }
25419 # Is the header present?
25420 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
25421 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
25422 cat >conftest.$ac_ext <<_ACEOF
25423 /* confdefs.h. */
25424 _ACEOF
25425 cat confdefs.h >>conftest.$ac_ext
25426 cat >>conftest.$ac_ext <<_ACEOF
25427 /* end confdefs.h. */
25428 #include <libintl.h>
25429 _ACEOF
25430 if { (ac_try="$ac_cpp conftest.$ac_ext"
25431 case "(($ac_try" in
25432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25433 *) ac_try_echo=$ac_try;;
25434 esac
25435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25437 ac_status=$?
25438 grep -v '^ *+' conftest.er1 >conftest.err
25439 rm -f conftest.er1
25440 cat conftest.err >&5
25441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25442 (exit $ac_status); } >/dev/null && {
25443 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25444 test ! -s conftest.err
25445 }; then
25446 ac_header_preproc=yes
25447 else
25448 echo "$as_me: failed program was:" >&5
25449 sed 's/^/| /' conftest.$ac_ext >&5
25451 ac_header_preproc=no
25454 rm -f conftest.err conftest.$ac_ext
25455 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25456 echo "${ECHO_T}$ac_header_preproc" >&6; }
25458 # So? What about this header?
25459 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25460 yes:no: )
25461 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25462 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25463 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
25464 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
25465 ac_header_preproc=yes
25467 no:yes:* )
25468 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
25469 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
25470 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
25471 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
25472 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
25473 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
25474 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
25475 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
25476 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
25477 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
25478 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
25479 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
25480 ( cat <<\_ASBOX
25481 ## ---------------------------------------- ##
25482 ## Report this to pgsql-bugs@postgresql.org ##
25483 ## ---------------------------------------- ##
25484 _ASBOX
25485 ) | sed "s/^/$as_me: WARNING: /" >&2
25487 esac
25488 { echo "$as_me:$LINENO: checking for libintl.h" >&5
25489 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
25490 if test "${ac_cv_header_libintl_h+set}" = set; then
25491 echo $ECHO_N "(cached) $ECHO_C" >&6
25492 else
25493 ac_cv_header_libintl_h=$ac_header_preproc
25495 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
25496 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
25499 if test $ac_cv_header_libintl_h = yes; then
25501 else
25502 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
25503 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
25504 { (exit 1); exit 1; }; }
25508 for ac_prog in msgfmt
25510 # Extract the first word of "$ac_prog", so it can be a program name with args.
25511 set dummy $ac_prog; ac_word=$2
25512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25514 if test "${ac_cv_prog_MSGFMT+set}" = set; then
25515 echo $ECHO_N "(cached) $ECHO_C" >&6
25516 else
25517 if test -n "$MSGFMT"; then
25518 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
25519 else
25520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25521 for as_dir in $PATH
25523 IFS=$as_save_IFS
25524 test -z "$as_dir" && as_dir=.
25525 for ac_exec_ext in '' $ac_executable_extensions; do
25526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25527 ac_cv_prog_MSGFMT="$ac_prog"
25528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25529 break 2
25531 done
25532 done
25533 IFS=$as_save_IFS
25537 MSGFMT=$ac_cv_prog_MSGFMT
25538 if test -n "$MSGFMT"; then
25539 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
25540 echo "${ECHO_T}$MSGFMT" >&6; }
25541 else
25542 { echo "$as_me:$LINENO: result: no" >&5
25543 echo "${ECHO_T}no" >&6; }
25547 test -n "$MSGFMT" && break
25548 done
25550 if test -z "$MSGFMT"; then
25551 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
25552 echo "$as_me: error: msgfmt is required for NLS" >&2;}
25553 { (exit 1); exit 1; }; }
25555 for ac_prog in msgmerge
25557 # Extract the first word of "$ac_prog", so it can be a program name with args.
25558 set dummy $ac_prog; ac_word=$2
25559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25561 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
25562 echo $ECHO_N "(cached) $ECHO_C" >&6
25563 else
25564 if test -n "$MSGMERGE"; then
25565 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
25566 else
25567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25568 for as_dir in $PATH
25570 IFS=$as_save_IFS
25571 test -z "$as_dir" && as_dir=.
25572 for ac_exec_ext in '' $ac_executable_extensions; do
25573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25574 ac_cv_prog_MSGMERGE="$ac_prog"
25575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25576 break 2
25578 done
25579 done
25580 IFS=$as_save_IFS
25584 MSGMERGE=$ac_cv_prog_MSGMERGE
25585 if test -n "$MSGMERGE"; then
25586 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
25587 echo "${ECHO_T}$MSGMERGE" >&6; }
25588 else
25589 { echo "$as_me:$LINENO: result: no" >&5
25590 echo "${ECHO_T}no" >&6; }
25594 test -n "$MSGMERGE" && break
25595 done
25597 for ac_prog in xgettext
25599 # Extract the first word of "$ac_prog", so it can be a program name with args.
25600 set dummy $ac_prog; ac_word=$2
25601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25603 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
25604 echo $ECHO_N "(cached) $ECHO_C" >&6
25605 else
25606 if test -n "$XGETTEXT"; then
25607 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
25608 else
25609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25610 for as_dir in $PATH
25612 IFS=$as_save_IFS
25613 test -z "$as_dir" && as_dir=.
25614 for ac_exec_ext in '' $ac_executable_extensions; do
25615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25616 ac_cv_prog_XGETTEXT="$ac_prog"
25617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25618 break 2
25620 done
25621 done
25622 IFS=$as_save_IFS
25626 XGETTEXT=$ac_cv_prog_XGETTEXT
25627 if test -n "$XGETTEXT"; then
25628 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
25629 echo "${ECHO_T}$XGETTEXT" >&6; }
25630 else
25631 { echo "$as_me:$LINENO: result: no" >&5
25632 echo "${ECHO_T}no" >&6; }
25636 test -n "$XGETTEXT" && break
25637 done
25642 # Check for Tcl configuration script tclConfig.sh
25643 if test "$with_tcl" = yes; then
25644 for ac_prog in tclsh tcl tclsh8.5 tclsh8.4 tclsh8.3
25646 # Extract the first word of "$ac_prog", so it can be a program name with args.
25647 set dummy $ac_prog; ac_word=$2
25648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25650 if test "${ac_cv_path_TCLSH+set}" = set; then
25651 echo $ECHO_N "(cached) $ECHO_C" >&6
25652 else
25653 case $TCLSH in
25654 [\\/]* | ?:[\\/]*)
25655 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
25658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25659 for as_dir in $PATH
25661 IFS=$as_save_IFS
25662 test -z "$as_dir" && as_dir=.
25663 for ac_exec_ext in '' $ac_executable_extensions; do
25664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25665 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
25666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25667 break 2
25669 done
25670 done
25671 IFS=$as_save_IFS
25674 esac
25676 TCLSH=$ac_cv_path_TCLSH
25677 if test -n "$TCLSH"; then
25678 { echo "$as_me:$LINENO: result: $TCLSH" >&5
25679 echo "${ECHO_T}$TCLSH" >&6; }
25680 else
25681 { echo "$as_me:$LINENO: result: no" >&5
25682 echo "${ECHO_T}no" >&6; }
25686 test -n "$TCLSH" && break
25687 done
25689 if test x"$TCLSH" = x""; then
25690 { { echo "$as_me:$LINENO: error: Tcl shell not found" >&5
25691 echo "$as_me: error: Tcl shell not found" >&2;}
25692 { (exit 1); exit 1; }; }
25695 { echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
25696 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6; }
25697 # Let user override test
25698 if test -z "$TCL_CONFIG_SH"; then
25699 pgac_test_dirs="$with_tclconfig"
25701 set X $pgac_test_dirs; shift
25702 if test $# -eq 0; then
25703 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
25704 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
25705 { (exit 1); exit 1; }; }
25706 set X `echo 'puts $auto_path' | $TCLSH`; shift
25709 for pgac_dir do
25710 if test -r "$pgac_dir/tclConfig.sh"; then
25711 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
25712 break
25714 done
25717 if test -z "$TCL_CONFIG_SH"; then
25718 { echo "$as_me:$LINENO: result: no" >&5
25719 echo "${ECHO_T}no" >&6; }
25720 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
25721 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
25722 { (exit 1); exit 1; }; }
25723 else
25724 { echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
25725 echo "${ECHO_T}$TCL_CONFIG_SH" >&6; }
25730 . "$TCL_CONFIG_SH"
25731 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
25732 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
25733 eval TCL_LIBS=\"$TCL_LIBS\"
25734 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
25735 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
25737 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
25738 ac_save_CPPFLAGS=$CPPFLAGS
25739 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
25740 if test "${ac_cv_header_tcl_h+set}" = set; then
25741 { echo "$as_me:$LINENO: checking for tcl.h" >&5
25742 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
25743 if test "${ac_cv_header_tcl_h+set}" = set; then
25744 echo $ECHO_N "(cached) $ECHO_C" >&6
25746 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
25747 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
25748 else
25749 # Is the header compilable?
25750 { echo "$as_me:$LINENO: checking tcl.h usability" >&5
25751 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6; }
25752 cat >conftest.$ac_ext <<_ACEOF
25753 /* confdefs.h. */
25754 _ACEOF
25755 cat confdefs.h >>conftest.$ac_ext
25756 cat >>conftest.$ac_ext <<_ACEOF
25757 /* end confdefs.h. */
25758 $ac_includes_default
25759 #include <tcl.h>
25760 _ACEOF
25761 rm -f conftest.$ac_objext
25762 if { (ac_try="$ac_compile"
25763 case "(($ac_try" in
25764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25765 *) ac_try_echo=$ac_try;;
25766 esac
25767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25768 (eval "$ac_compile") 2>conftest.er1
25769 ac_status=$?
25770 grep -v '^ *+' conftest.er1 >conftest.err
25771 rm -f conftest.er1
25772 cat conftest.err >&5
25773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25774 (exit $ac_status); } && {
25775 test -z "$ac_c_werror_flag" ||
25776 test ! -s conftest.err
25777 } && test -s conftest.$ac_objext; then
25778 ac_header_compiler=yes
25779 else
25780 echo "$as_me: failed program was:" >&5
25781 sed 's/^/| /' conftest.$ac_ext >&5
25783 ac_header_compiler=no
25786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25787 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25788 echo "${ECHO_T}$ac_header_compiler" >&6; }
25790 # Is the header present?
25791 { echo "$as_me:$LINENO: checking tcl.h presence" >&5
25792 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6; }
25793 cat >conftest.$ac_ext <<_ACEOF
25794 /* confdefs.h. */
25795 _ACEOF
25796 cat confdefs.h >>conftest.$ac_ext
25797 cat >>conftest.$ac_ext <<_ACEOF
25798 /* end confdefs.h. */
25799 #include <tcl.h>
25800 _ACEOF
25801 if { (ac_try="$ac_cpp conftest.$ac_ext"
25802 case "(($ac_try" in
25803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25804 *) ac_try_echo=$ac_try;;
25805 esac
25806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25808 ac_status=$?
25809 grep -v '^ *+' conftest.er1 >conftest.err
25810 rm -f conftest.er1
25811 cat conftest.err >&5
25812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25813 (exit $ac_status); } >/dev/null && {
25814 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25815 test ! -s conftest.err
25816 }; then
25817 ac_header_preproc=yes
25818 else
25819 echo "$as_me: failed program was:" >&5
25820 sed 's/^/| /' conftest.$ac_ext >&5
25822 ac_header_preproc=no
25825 rm -f conftest.err conftest.$ac_ext
25826 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25827 echo "${ECHO_T}$ac_header_preproc" >&6; }
25829 # So? What about this header?
25830 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25831 yes:no: )
25832 { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25833 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25834 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
25835 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
25836 ac_header_preproc=yes
25838 no:yes:* )
25839 { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
25840 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
25841 { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
25842 echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
25843 { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
25844 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
25845 { echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
25846 echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
25847 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
25848 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
25849 { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
25850 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
25851 ( cat <<\_ASBOX
25852 ## ---------------------------------------- ##
25853 ## Report this to pgsql-bugs@postgresql.org ##
25854 ## ---------------------------------------- ##
25855 _ASBOX
25856 ) | sed "s/^/$as_me: WARNING: /" >&2
25858 esac
25859 { echo "$as_me:$LINENO: checking for tcl.h" >&5
25860 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
25861 if test "${ac_cv_header_tcl_h+set}" = set; then
25862 echo $ECHO_N "(cached) $ECHO_C" >&6
25863 else
25864 ac_cv_header_tcl_h=$ac_header_preproc
25866 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
25867 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
25870 if test $ac_cv_header_tcl_h = yes; then
25872 else
25873 { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
25874 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
25875 { (exit 1); exit 1; }; }
25879 CPPFLAGS=$ac_save_CPPFLAGS
25883 # Check for DocBook and tools
25885 for ac_prog in onsgmls nsgmls
25887 # Extract the first word of "$ac_prog", so it can be a program name with args.
25888 set dummy $ac_prog; ac_word=$2
25889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25891 if test "${ac_cv_prog_NSGMLS+set}" = set; then
25892 echo $ECHO_N "(cached) $ECHO_C" >&6
25893 else
25894 if test -n "$NSGMLS"; then
25895 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
25896 else
25897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25898 for as_dir in $PATH
25900 IFS=$as_save_IFS
25901 test -z "$as_dir" && as_dir=.
25902 for ac_exec_ext in '' $ac_executable_extensions; do
25903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25904 ac_cv_prog_NSGMLS="$ac_prog"
25905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25906 break 2
25908 done
25909 done
25910 IFS=$as_save_IFS
25914 NSGMLS=$ac_cv_prog_NSGMLS
25915 if test -n "$NSGMLS"; then
25916 { echo "$as_me:$LINENO: result: $NSGMLS" >&5
25917 echo "${ECHO_T}$NSGMLS" >&6; }
25918 else
25919 { echo "$as_me:$LINENO: result: no" >&5
25920 echo "${ECHO_T}no" >&6; }
25924 test -n "$NSGMLS" && break
25925 done
25927 for ac_prog in openjade jade
25929 # Extract the first word of "$ac_prog", so it can be a program name with args.
25930 set dummy $ac_prog; ac_word=$2
25931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25933 if test "${ac_cv_prog_JADE+set}" = set; then
25934 echo $ECHO_N "(cached) $ECHO_C" >&6
25935 else
25936 if test -n "$JADE"; then
25937 ac_cv_prog_JADE="$JADE" # Let the user override the test.
25938 else
25939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25940 for as_dir in $PATH
25942 IFS=$as_save_IFS
25943 test -z "$as_dir" && as_dir=.
25944 for ac_exec_ext in '' $ac_executable_extensions; do
25945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25946 ac_cv_prog_JADE="$ac_prog"
25947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25948 break 2
25950 done
25951 done
25952 IFS=$as_save_IFS
25956 JADE=$ac_cv_prog_JADE
25957 if test -n "$JADE"; then
25958 { echo "$as_me:$LINENO: result: $JADE" >&5
25959 echo "${ECHO_T}$JADE" >&6; }
25960 else
25961 { echo "$as_me:$LINENO: result: no" >&5
25962 echo "${ECHO_T}no" >&6; }
25966 test -n "$JADE" && break
25967 done
25970 { echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
25971 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6; }
25972 if test "${pgac_cv_check_docbook+set}" = set; then
25973 echo $ECHO_N "(cached) $ECHO_C" >&6
25974 else
25975 cat >conftest.sgml <<EOF
25976 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
25977 <book>
25978 <title>test</title>
25979 <chapter>
25980 <title>random</title>
25981 <sect1>
25982 <title>testsect</title>
25983 <para>text</para>
25984 </sect1>
25985 </chapter>
25986 </book>
25989 pgac_cv_check_docbook=no
25991 if test -n "$NSGMLS"; then
25992 $NSGMLS -s conftest.sgml 1>&5 2>&1
25993 if test $? -eq 0; then
25994 pgac_cv_check_docbook=yes
25997 rm -f conftest.sgml
25999 { echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
26000 echo "${ECHO_T}$pgac_cv_check_docbook" >&6; }
26002 have_docbook=$pgac_cv_check_docbook
26005 { echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
26006 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6; }
26007 if test "${pgac_cv_path_stylesheets+set}" = set; then
26008 echo $ECHO_N "(cached) $ECHO_C" >&6
26009 else
26010 if test -n "$DOCBOOKSTYLE"; then
26011 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
26012 else
26013 for pgac_prefix in /usr /usr/local /opt /sw; do
26014 for pgac_infix in share lib; do
26015 for pgac_postfix in \
26016 sgml/stylesheets/nwalsh-modular \
26017 sgml/stylesheets/docbook \
26018 sgml/stylesheets/dsssl/docbook \
26019 sgml/docbook-dsssl \
26020 sgml/docbook/dsssl/modular \
26021 sgml/docbook/stylesheet/dsssl/modular \
26022 sgml/docbook/dsssl-stylesheets \
26023 sgml/dsssl/docbook-dsssl-nwalsh
26025 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
26026 if test -r "$pgac_candidate/html/docbook.dsl" \
26027 && test -r "$pgac_candidate/print/docbook.dsl"
26028 then
26029 pgac_cv_path_stylesheets=$pgac_candidate
26030 break 3
26032 done
26033 done
26034 done
26038 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
26040 if test -n "$DOCBOOKSTYLE"; then
26041 { echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
26042 echo "${ECHO_T}$DOCBOOKSTYLE" >&6; }
26043 else
26044 { echo "$as_me:$LINENO: result: no" >&5
26045 echo "${ECHO_T}no" >&6; }
26047 if test -n "$DOCBOOKSTYLE"; then
26048 for ac_prog in collateindex.pl
26050 # Extract the first word of "$ac_prog", so it can be a program name with args.
26051 set dummy $ac_prog; ac_word=$2
26052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26054 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
26055 echo $ECHO_N "(cached) $ECHO_C" >&6
26056 else
26057 case $COLLATEINDEX in
26058 [\\/]* | ?:[\\/]*)
26059 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
26062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26063 for as_dir in $DOCBOOKSTYLE/bin $PATH
26065 IFS=$as_save_IFS
26066 test -z "$as_dir" && as_dir=.
26067 for ac_exec_ext in '' $ac_executable_extensions; do
26068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26069 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
26070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26071 break 2
26073 done
26074 done
26075 IFS=$as_save_IFS
26078 esac
26080 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
26081 if test -n "$COLLATEINDEX"; then
26082 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
26083 echo "${ECHO_T}$COLLATEINDEX" >&6; }
26084 else
26085 { echo "$as_me:$LINENO: result: no" >&5
26086 echo "${ECHO_T}no" >&6; }
26090 test -n "$COLLATEINDEX" && break
26091 done
26093 else
26094 for ac_prog in collateindex.pl
26096 # Extract the first word of "$ac_prog", so it can be a program name with args.
26097 set dummy $ac_prog; ac_word=$2
26098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26100 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
26101 echo $ECHO_N "(cached) $ECHO_C" >&6
26102 else
26103 case $COLLATEINDEX in
26104 [\\/]* | ?:[\\/]*)
26105 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
26108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26109 for as_dir in $PATH
26111 IFS=$as_save_IFS
26112 test -z "$as_dir" && as_dir=.
26113 for ac_exec_ext in '' $ac_executable_extensions; do
26114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26115 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
26116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26117 break 2
26119 done
26120 done
26121 IFS=$as_save_IFS
26124 esac
26126 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
26127 if test -n "$COLLATEINDEX"; then
26128 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
26129 echo "${ECHO_T}$COLLATEINDEX" >&6; }
26130 else
26131 { echo "$as_me:$LINENO: result: no" >&5
26132 echo "${ECHO_T}no" >&6; }
26136 test -n "$COLLATEINDEX" && break
26137 done
26140 for ac_prog in sgmlspl
26142 # Extract the first word of "$ac_prog", so it can be a program name with args.
26143 set dummy $ac_prog; ac_word=$2
26144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26146 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
26147 echo $ECHO_N "(cached) $ECHO_C" >&6
26148 else
26149 if test -n "$SGMLSPL"; then
26150 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
26151 else
26152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26153 for as_dir in $PATH
26155 IFS=$as_save_IFS
26156 test -z "$as_dir" && as_dir=.
26157 for ac_exec_ext in '' $ac_executable_extensions; do
26158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26159 ac_cv_prog_SGMLSPL="$ac_prog"
26160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26161 break 2
26163 done
26164 done
26165 IFS=$as_save_IFS
26169 SGMLSPL=$ac_cv_prog_SGMLSPL
26170 if test -n "$SGMLSPL"; then
26171 { echo "$as_me:$LINENO: result: $SGMLSPL" >&5
26172 echo "${ECHO_T}$SGMLSPL" >&6; }
26173 else
26174 { echo "$as_me:$LINENO: result: no" >&5
26175 echo "${ECHO_T}no" >&6; }
26179 test -n "$SGMLSPL" && break
26180 done
26182 { echo "$as_me:$LINENO: checking for docbook2man" >&5
26183 echo $ECHO_N "checking for docbook2man... $ECHO_C" >&6; }
26184 if test "${ac_cv_path_DOCBOOK2MAN+set}" = set; then
26185 echo $ECHO_N "(cached) $ECHO_C" >&6
26186 else
26187 if test -z "$DOCBOOK2MAN"; then
26188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26189 for as_dir in $PATH
26191 IFS=$as_save_IFS
26192 test -z "$as_dir" && as_dir=.
26193 for ac_prog in docbook2x-man db2x_docbook2man docbook2man; do
26194 ac_path="$as_dir/$ac_prog"
26195 { test -f "$ac_path" && $as_test_x "$ac_path"; } || continue
26196 if "$ac_path" --version 2>/dev/null | $GREP docbook2x >/dev/null 2>&1; then
26197 ac_cv_path_DOCBOOK2MAN=$ac_path
26198 break
26200 done
26201 done
26202 IFS=$as_save_IFS
26204 else
26205 ac_cv_path_DOCBOOK2MAN=$DOCBOOK2MAN
26208 { echo "$as_me:$LINENO: result: $ac_cv_path_DOCBOOK2MAN" >&5
26209 echo "${ECHO_T}$ac_cv_path_DOCBOOK2MAN" >&6; }
26210 DOCBOOK2MAN=$ac_cv_path_DOCBOOK2MAN
26214 # Thread testing
26216 # We have to run the thread test near the end so we have all our symbols
26217 # defined. Cross compiling throws a warning.
26219 if test "$enable_thread_safety_force" = yes; then
26220 if test "$PORTNAME" != "win32"
26221 then
26222 { echo "$as_me:$LINENO: WARNING:
26223 *** Skipping thread test program. --enable-thread-safety-force was used.
26224 *** Run the program in src/test/thread on the your machine and add proper
26225 *** locking function calls to your applications to guarantee thread safety.
26226 " >&5
26227 echo "$as_me: WARNING:
26228 *** Skipping thread test program. --enable-thread-safety-force was used.
26229 *** Run the program in src/test/thread on the your machine and add proper
26230 *** locking function calls to your applications to guarantee thread safety.
26231 " >&2;}
26232 else
26233 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
26234 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
26236 elif test "$enable_thread_safety" = yes; then
26237 if test "$PORTNAME" != "win32"
26238 then
26239 { echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
26240 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6; }
26242 _CFLAGS="$CFLAGS"
26243 _LIBS="$LIBS"
26244 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
26245 LIBS="$LIBS $PTHREAD_LIBS"
26246 if test "$cross_compiling" = yes; then
26247 { echo "$as_me:$LINENO: result: maybe" >&5
26248 echo "${ECHO_T}maybe" >&6; }
26249 { echo "$as_me:$LINENO: WARNING:
26250 *** Skipping thread test program because of cross-compile build.
26251 *** Run the program in src/test/thread on the target machine.
26252 " >&5
26253 echo "$as_me: WARNING:
26254 *** Skipping thread test program because of cross-compile build.
26255 *** Run the program in src/test/thread on the target machine.
26256 " >&2;}
26257 else
26258 cat >conftest.$ac_ext <<_ACEOF
26259 /* confdefs.h. */
26260 _ACEOF
26261 cat confdefs.h >>conftest.$ac_ext
26262 cat >>conftest.$ac_ext <<_ACEOF
26263 /* end confdefs.h. */
26264 #include "$srcdir/src/test/thread/thread_test.c"
26265 _ACEOF
26266 rm -f conftest$ac_exeext
26267 if { (ac_try="$ac_link"
26268 case "(($ac_try" in
26269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26270 *) ac_try_echo=$ac_try;;
26271 esac
26272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26273 (eval "$ac_link") 2>&5
26274 ac_status=$?
26275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26276 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26277 { (case "(($ac_try" in
26278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26279 *) ac_try_echo=$ac_try;;
26280 esac
26281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26282 (eval "$ac_try") 2>&5
26283 ac_status=$?
26284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26285 (exit $ac_status); }; }; then
26286 { echo "$as_me:$LINENO: result: yes" >&5
26287 echo "${ECHO_T}yes" >&6; }
26288 else
26289 echo "$as_me: program exited with status $ac_status" >&5
26290 echo "$as_me: failed program was:" >&5
26291 sed 's/^/| /' conftest.$ac_ext >&5
26293 ( exit $ac_status )
26294 { echo "$as_me:$LINENO: result: no" >&5
26295 echo "${ECHO_T}no" >&6; }
26296 { { echo "$as_me:$LINENO: error: thread test program failed
26297 This platform is not thread-safe. Check the file 'config.log' for the
26298 exact reason.
26300 You can use the configure option --enable-thread-safety-force to force
26301 threads to be enabled. But you must then run the program in
26302 src/test/thread and add locking function calls to your applications to
26303 guarantee thread safety." >&5
26304 echo "$as_me: 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." >&2;}
26312 { (exit 1); exit 1; }; }
26314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26318 CFLAGS="$_CFLAGS"
26319 LIBS="$_LIBS"
26320 else
26321 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
26322 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
26326 # If compiler will take -Wl,--as-needed then add that to LDFLAGS.
26327 # This is much easier than trying to filter LIBS to the minimum for each
26328 # executable. (Note that shared library links won't use this switch, though.)
26329 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
26330 # libreadline; therefore we postpone testing it until we know what library
26331 # dependencies readline has. The test code will try to link with $LIBS.
26332 if test "$with_readline" = yes; then
26333 link_test_func=readline
26334 else
26335 link_test_func=exit
26337 if test "$PORTNAME" != "darwin"; then
26338 { echo "$as_me:$LINENO: checking if $CC supports -Wl,--as-needed" >&5
26339 echo $ECHO_N "checking if $CC supports -Wl,--as-needed... $ECHO_C" >&6; }
26340 pgac_save_LDFLAGS=$LDFLAGS
26341 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
26342 if test "$cross_compiling" = yes; then
26343 LDFLAGS="$pgac_save_LDFLAGS"
26344 { echo "$as_me:$LINENO: result: assuming no" >&5
26345 echo "${ECHO_T}assuming no" >&6; }
26346 else
26347 cat >conftest.$ac_ext <<_ACEOF
26348 /* confdefs.h. */
26349 _ACEOF
26350 cat confdefs.h >>conftest.$ac_ext
26351 cat >>conftest.$ac_ext <<_ACEOF
26352 /* end confdefs.h. */
26353 extern void $link_test_func (); void (*fptr) () = $link_test_func;
26355 main ()
26359 return 0;
26361 _ACEOF
26362 rm -f conftest$ac_exeext
26363 if { (ac_try="$ac_link"
26364 case "(($ac_try" in
26365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26366 *) ac_try_echo=$ac_try;;
26367 esac
26368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26369 (eval "$ac_link") 2>&5
26370 ac_status=$?
26371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26372 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26373 { (case "(($ac_try" in
26374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26375 *) ac_try_echo=$ac_try;;
26376 esac
26377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26378 (eval "$ac_try") 2>&5
26379 ac_status=$?
26380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26381 (exit $ac_status); }; }; then
26382 { echo "$as_me:$LINENO: result: yes" >&5
26383 echo "${ECHO_T}yes" >&6; }
26384 else
26385 echo "$as_me: program exited with status $ac_status" >&5
26386 echo "$as_me: failed program was:" >&5
26387 sed 's/^/| /' conftest.$ac_ext >&5
26389 ( exit $ac_status )
26390 LDFLAGS="$pgac_save_LDFLAGS"
26391 { echo "$as_me:$LINENO: result: no" >&5
26392 echo "${ECHO_T}no" >&6; }
26394 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26399 else
26400 # On Darwin it's spelled -Wl,-dead_strip_dylibs, but don't try that elsewhere
26401 { echo "$as_me:$LINENO: checking if $CC supports -Wl,-dead_strip_dylibs" >&5
26402 echo $ECHO_N "checking if $CC supports -Wl,-dead_strip_dylibs... $ECHO_C" >&6; }
26403 pgac_save_LDFLAGS=$LDFLAGS
26404 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
26405 if test "$cross_compiling" = yes; then
26406 LDFLAGS="$pgac_save_LDFLAGS"
26407 { echo "$as_me:$LINENO: result: assuming no" >&5
26408 echo "${ECHO_T}assuming no" >&6; }
26409 else
26410 cat >conftest.$ac_ext <<_ACEOF
26411 /* confdefs.h. */
26412 _ACEOF
26413 cat confdefs.h >>conftest.$ac_ext
26414 cat >>conftest.$ac_ext <<_ACEOF
26415 /* end confdefs.h. */
26416 extern void $link_test_func (); void (*fptr) () = $link_test_func;
26418 main ()
26422 return 0;
26424 _ACEOF
26425 rm -f conftest$ac_exeext
26426 if { (ac_try="$ac_link"
26427 case "(($ac_try" in
26428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26429 *) ac_try_echo=$ac_try;;
26430 esac
26431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26432 (eval "$ac_link") 2>&5
26433 ac_status=$?
26434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26435 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26436 { (case "(($ac_try" in
26437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26438 *) ac_try_echo=$ac_try;;
26439 esac
26440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26441 (eval "$ac_try") 2>&5
26442 ac_status=$?
26443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26444 (exit $ac_status); }; }; then
26445 { echo "$as_me:$LINENO: result: yes" >&5
26446 echo "${ECHO_T}yes" >&6; }
26447 else
26448 echo "$as_me: program exited with status $ac_status" >&5
26449 echo "$as_me: failed program was:" >&5
26450 sed 's/^/| /' conftest.$ac_ext >&5
26452 ( exit $ac_status )
26453 LDFLAGS="$pgac_save_LDFLAGS"
26454 { echo "$as_me:$LINENO: result: no" >&5
26455 echo "${ECHO_T}no" >&6; }
26457 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26465 # Begin output steps
26467 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
26468 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
26469 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
26470 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
26471 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
26472 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
26474 # prepare build tree if outside source tree
26475 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
26476 # Note 2: /bin/pwd might be better than shell's built-in at getting
26477 # a symlink-free name.
26478 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
26479 vpath_build=no
26480 else
26481 vpath_build=yes
26482 if test "$no_create" != yes; then
26483 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
26484 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
26485 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
26486 || { { echo "$as_me:$LINENO: error: failed" >&5
26487 echo "$as_me: error: failed" >&2;}
26488 { (exit 1); exit 1; }; }
26489 { echo "$as_me:$LINENO: result: done" >&5
26490 echo "${ECHO_T}done" >&6; }
26496 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
26499 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}"
26502 if test "$PORTNAME" = "win32"; then
26503 ac_config_commands="$ac_config_commands check_win32_symlinks"
26507 ac_config_headers="$ac_config_headers src/include/pg_config.h"
26510 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
26513 cat >confcache <<\_ACEOF
26514 # This file is a shell script that caches the results of configure
26515 # tests run on this system so they can be shared between configure
26516 # scripts and configure runs, see configure's option --config-cache.
26517 # It is not useful on other systems. If it contains results you don't
26518 # want to keep, you may remove or edit it.
26520 # config.status only pays attention to the cache file if you give it
26521 # the --recheck option to rerun configure.
26523 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26524 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26525 # following values.
26527 _ACEOF
26529 # The following way of writing the cache mishandles newlines in values,
26530 # but we know of no workaround that is simple, portable, and efficient.
26531 # So, we kill variables containing newlines.
26532 # Ultrix sh set writes to stderr and can't be redirected directly,
26533 # and sets the high bit in the cache file unless we assign to the vars.
26535 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26536 eval ac_val=\$$ac_var
26537 case $ac_val in #(
26538 *${as_nl}*)
26539 case $ac_var in #(
26540 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26541 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26542 esac
26543 case $ac_var in #(
26544 _ | IFS | as_nl) ;; #(
26545 *) $as_unset $ac_var ;;
26546 esac ;;
26547 esac
26548 done
26550 (set) 2>&1 |
26551 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26552 *${as_nl}ac_space=\ *)
26553 # `set' does not quote correctly, so add quotes (double-quote
26554 # substitution turns \\\\ into \\, and sed turns \\ into \).
26555 sed -n \
26556 "s/'/'\\\\''/g;
26557 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26558 ;; #(
26560 # `set' quotes correctly as required by POSIX, so do not add quotes.
26561 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26563 esac |
26564 sort
26566 sed '
26567 /^ac_cv_env_/b end
26568 t clear
26569 :clear
26570 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26571 t end
26572 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26573 :end' >>confcache
26574 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26575 if test -w "$cache_file"; then
26576 test "x$cache_file" != "x/dev/null" &&
26577 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26578 echo "$as_me: updating cache $cache_file" >&6;}
26579 cat confcache >$cache_file
26580 else
26581 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26582 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26585 rm -f confcache
26587 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26588 # Let make expand exec_prefix.
26589 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26591 DEFS=-DHAVE_CONFIG_H
26593 ac_libobjs=
26594 ac_ltlibobjs=
26595 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26596 # 1. Remove the extension, and $U if already installed.
26597 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26598 ac_i=`echo "$ac_i" | sed "$ac_script"`
26599 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26600 # will be set to the directory where LIBOBJS objects are built.
26601 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26602 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26603 done
26604 LIBOBJS=$ac_libobjs
26606 LTLIBOBJS=$ac_ltlibobjs
26610 : ${CONFIG_STATUS=./config.status}
26611 ac_clean_files_save=$ac_clean_files
26612 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26613 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26614 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26615 cat >$CONFIG_STATUS <<_ACEOF
26616 #! $SHELL
26617 # Generated by $as_me.
26618 # Run this file to recreate the current configuration.
26619 # Compiler output produced by configure, useful for debugging
26620 # configure, is in config.log if it exists.
26622 debug=false
26623 ac_cs_recheck=false
26624 ac_cs_silent=false
26625 SHELL=\${CONFIG_SHELL-$SHELL}
26626 _ACEOF
26628 cat >>$CONFIG_STATUS <<\_ACEOF
26629 ## --------------------- ##
26630 ## M4sh Initialization. ##
26631 ## --------------------- ##
26633 # Be more Bourne compatible
26634 DUALCASE=1; export DUALCASE # for MKS sh
26635 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26636 emulate sh
26637 NULLCMD=:
26638 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26639 # is contrary to our usage. Disable this feature.
26640 alias -g '${1+"$@"}'='"$@"'
26641 setopt NO_GLOB_SUBST
26642 else
26643 case `(set -o) 2>/dev/null` in
26644 *posix*) set -o posix ;;
26645 esac
26652 # PATH needs CR
26653 # Avoid depending upon Character Ranges.
26654 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26655 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26656 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26657 as_cr_digits='0123456789'
26658 as_cr_alnum=$as_cr_Letters$as_cr_digits
26660 # The user is always right.
26661 if test "${PATH_SEPARATOR+set}" != set; then
26662 echo "#! /bin/sh" >conf$$.sh
26663 echo "exit 0" >>conf$$.sh
26664 chmod +x conf$$.sh
26665 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26666 PATH_SEPARATOR=';'
26667 else
26668 PATH_SEPARATOR=:
26670 rm -f conf$$.sh
26673 # Support unset when possible.
26674 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26675 as_unset=unset
26676 else
26677 as_unset=false
26681 # IFS
26682 # We need space, tab and new line, in precisely that order. Quoting is
26683 # there to prevent editors from complaining about space-tab.
26684 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26685 # splitting by setting IFS to empty value.)
26686 as_nl='
26688 IFS=" "" $as_nl"
26690 # Find who we are. Look in the path if we contain no directory separator.
26691 case $0 in
26692 *[\\/]* ) as_myself=$0 ;;
26693 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26694 for as_dir in $PATH
26696 IFS=$as_save_IFS
26697 test -z "$as_dir" && as_dir=.
26698 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26699 done
26700 IFS=$as_save_IFS
26703 esac
26704 # We did not find ourselves, most probably we were run as `sh COMMAND'
26705 # in which case we are not to be found in the path.
26706 if test "x$as_myself" = x; then
26707 as_myself=$0
26709 if test ! -f "$as_myself"; then
26710 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26711 { (exit 1); exit 1; }
26714 # Work around bugs in pre-3.0 UWIN ksh.
26715 for as_var in ENV MAIL MAILPATH
26716 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26717 done
26718 PS1='$ '
26719 PS2='> '
26720 PS4='+ '
26722 # NLS nuisances.
26723 for as_var in \
26724 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26725 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26726 LC_TELEPHONE LC_TIME
26728 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26729 eval $as_var=C; export $as_var
26730 else
26731 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26733 done
26735 # Required to use basename.
26736 if expr a : '\(a\)' >/dev/null 2>&1 &&
26737 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26738 as_expr=expr
26739 else
26740 as_expr=false
26743 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26744 as_basename=basename
26745 else
26746 as_basename=false
26750 # Name of the executable.
26751 as_me=`$as_basename -- "$0" ||
26752 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26753 X"$0" : 'X\(//\)$' \| \
26754 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26755 echo X/"$0" |
26756 sed '/^.*\/\([^/][^/]*\)\/*$/{
26757 s//\1/
26760 /^X\/\(\/\/\)$/{
26761 s//\1/
26764 /^X\/\(\/\).*/{
26765 s//\1/
26768 s/.*/./; q'`
26770 # CDPATH.
26771 $as_unset CDPATH
26775 as_lineno_1=$LINENO
26776 as_lineno_2=$LINENO
26777 test "x$as_lineno_1" != "x$as_lineno_2" &&
26778 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26780 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26781 # uniformly replaced by the line number. The first 'sed' inserts a
26782 # line-number line after each line using $LINENO; the second 'sed'
26783 # does the real work. The second script uses 'N' to pair each
26784 # line-number line with the line containing $LINENO, and appends
26785 # trailing '-' during substitution so that $LINENO is not a special
26786 # case at line end.
26787 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26788 # scripts with optimization help from Paolo Bonzini. Blame Lee
26789 # E. McMahon (1931-1989) for sed's syntax. :-)
26790 sed -n '
26792 /[$]LINENO/=
26793 ' <$as_myself |
26794 sed '
26795 s/[$]LINENO.*/&-/
26796 t lineno
26798 :lineno
26800 :loop
26801 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26802 t loop
26803 s/-\n.*//
26804 ' >$as_me.lineno &&
26805 chmod +x "$as_me.lineno" ||
26806 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26807 { (exit 1); exit 1; }; }
26809 # Don't try to exec as it changes $[0], causing all sort of problems
26810 # (the dirname of $[0] is not the place where we might find the
26811 # original and so on. Autoconf is especially sensitive to this).
26812 . "./$as_me.lineno"
26813 # Exit status is that of the last command.
26814 exit
26818 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26819 as_dirname=dirname
26820 else
26821 as_dirname=false
26824 ECHO_C= ECHO_N= ECHO_T=
26825 case `echo -n x` in
26826 -n*)
26827 case `echo 'x\c'` in
26828 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26829 *) ECHO_C='\c';;
26830 esac;;
26832 ECHO_N='-n';;
26833 esac
26835 if expr a : '\(a\)' >/dev/null 2>&1 &&
26836 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26837 as_expr=expr
26838 else
26839 as_expr=false
26842 rm -f conf$$ conf$$.exe conf$$.file
26843 if test -d conf$$.dir; then
26844 rm -f conf$$.dir/conf$$.file
26845 else
26846 rm -f conf$$.dir
26847 mkdir conf$$.dir
26849 echo >conf$$.file
26850 if ln -s conf$$.file conf$$ 2>/dev/null; then
26851 as_ln_s='ln -s'
26852 # ... but there are two gotchas:
26853 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26854 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26855 # In both cases, we have to default to `cp -p'.
26856 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26857 as_ln_s='cp -p'
26858 elif ln conf$$.file conf$$ 2>/dev/null; then
26859 as_ln_s=ln
26860 else
26861 as_ln_s='cp -p'
26863 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26864 rmdir conf$$.dir 2>/dev/null
26866 if mkdir -p . 2>/dev/null; then
26867 as_mkdir_p=:
26868 else
26869 test -d ./-p && rmdir ./-p
26870 as_mkdir_p=false
26873 if test -x / >/dev/null 2>&1; then
26874 as_test_x='test -x'
26875 else
26876 if ls -dL / >/dev/null 2>&1; then
26877 as_ls_L_option=L
26878 else
26879 as_ls_L_option=
26881 as_test_x='
26882 eval sh -c '\''
26883 if test -d "$1"; then
26884 test -d "$1/.";
26885 else
26886 case $1 in
26887 -*)set "./$1";;
26888 esac;
26889 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26890 ???[sx]*):;;*)false;;esac;fi
26891 '\'' sh
26894 as_executable_p=$as_test_x
26896 # Sed expression to map a string onto a valid CPP name.
26897 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26899 # Sed expression to map a string onto a valid variable name.
26900 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26903 exec 6>&1
26905 # Save the log message, to keep $[0] and so on meaningful, and to
26906 # report actual input values of CONFIG_FILES etc. instead of their
26907 # values after options handling.
26908 ac_log="
26909 This file was extended by PostgreSQL $as_me 8.4devel, which was
26910 generated by GNU Autoconf 2.61. Invocation command line was
26912 CONFIG_FILES = $CONFIG_FILES
26913 CONFIG_HEADERS = $CONFIG_HEADERS
26914 CONFIG_LINKS = $CONFIG_LINKS
26915 CONFIG_COMMANDS = $CONFIG_COMMANDS
26916 $ $0 $@
26918 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26921 _ACEOF
26923 cat >>$CONFIG_STATUS <<_ACEOF
26924 # Files that config.status was made for.
26925 config_files="$ac_config_files"
26926 config_headers="$ac_config_headers"
26927 config_links="$ac_config_links"
26928 config_commands="$ac_config_commands"
26930 _ACEOF
26932 cat >>$CONFIG_STATUS <<\_ACEOF
26933 ac_cs_usage="\
26934 \`$as_me' instantiates files from templates according to the
26935 current configuration.
26937 Usage: $0 [OPTIONS] [FILE]...
26939 -h, --help print this help, then exit
26940 -V, --version print version number and configuration settings, then exit
26941 -q, --quiet do not print progress messages
26942 -d, --debug don't remove temporary files
26943 --recheck update $as_me by reconfiguring in the same conditions
26944 --file=FILE[:TEMPLATE]
26945 instantiate the configuration file FILE
26946 --header=FILE[:TEMPLATE]
26947 instantiate the configuration header FILE
26949 Configuration files:
26950 $config_files
26952 Configuration headers:
26953 $config_headers
26955 Configuration links:
26956 $config_links
26958 Configuration commands:
26959 $config_commands
26961 Report bugs to <bug-autoconf@gnu.org>."
26963 _ACEOF
26964 cat >>$CONFIG_STATUS <<_ACEOF
26965 ac_cs_version="\\
26966 PostgreSQL config.status 8.4devel
26967 configured by $0, generated by GNU Autoconf 2.61,
26968 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26970 Copyright (C) 2006 Free Software Foundation, Inc.
26971 This config.status script is free software; the Free Software Foundation
26972 gives unlimited permission to copy, distribute and modify it."
26974 ac_pwd='$ac_pwd'
26975 srcdir='$srcdir'
26976 _ACEOF
26978 cat >>$CONFIG_STATUS <<\_ACEOF
26979 # If no file are specified by the user, then we need to provide default
26980 # value. By we need to know if files were specified by the user.
26981 ac_need_defaults=:
26982 while test $# != 0
26984 case $1 in
26985 --*=*)
26986 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26987 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26988 ac_shift=:
26991 ac_option=$1
26992 ac_optarg=$2
26993 ac_shift=shift
26995 esac
26997 case $ac_option in
26998 # Handling of the options.
26999 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27000 ac_cs_recheck=: ;;
27001 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27002 echo "$ac_cs_version"; exit ;;
27003 --debug | --debu | --deb | --de | --d | -d )
27004 debug=: ;;
27005 --file | --fil | --fi | --f )
27006 $ac_shift
27007 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27008 ac_need_defaults=false;;
27009 --header | --heade | --head | --hea )
27010 $ac_shift
27011 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27012 ac_need_defaults=false;;
27013 --he | --h)
27014 # Conflict between --help and --header
27015 { echo "$as_me: error: ambiguous option: $1
27016 Try \`$0 --help' for more information." >&2
27017 { (exit 1); exit 1; }; };;
27018 --help | --hel | -h )
27019 echo "$ac_cs_usage"; exit ;;
27020 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27021 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27022 ac_cs_silent=: ;;
27024 # This is an error.
27025 -*) { echo "$as_me: error: unrecognized option: $1
27026 Try \`$0 --help' for more information." >&2
27027 { (exit 1); exit 1; }; } ;;
27029 *) ac_config_targets="$ac_config_targets $1"
27030 ac_need_defaults=false ;;
27032 esac
27033 shift
27034 done
27036 ac_configure_extra_args=
27038 if $ac_cs_silent; then
27039 exec 6>/dev/null
27040 ac_configure_extra_args="$ac_configure_extra_args --silent"
27043 _ACEOF
27044 cat >>$CONFIG_STATUS <<_ACEOF
27045 if \$ac_cs_recheck; then
27046 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27047 CONFIG_SHELL=$SHELL
27048 export CONFIG_SHELL
27049 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27052 _ACEOF
27053 cat >>$CONFIG_STATUS <<\_ACEOF
27054 exec 5>>config.log
27056 echo
27057 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27058 ## Running $as_me. ##
27059 _ASBOX
27060 echo "$ac_log"
27061 } >&5
27063 _ACEOF
27064 cat >>$CONFIG_STATUS <<_ACEOF
27065 _ACEOF
27067 cat >>$CONFIG_STATUS <<\_ACEOF
27069 # Handling of arguments.
27070 for ac_config_target in $ac_config_targets
27072 case $ac_config_target in
27073 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
27074 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
27075 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
27076 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
27077 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
27078 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
27079 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
27080 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
27081 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
27082 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
27083 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
27084 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
27086 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27087 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27088 { (exit 1); exit 1; }; };;
27089 esac
27090 done
27093 # If the user did not use the arguments to specify the items to instantiate,
27094 # then the envvar interface is used. Set only those that are not.
27095 # We use the long form for the default assignment because of an extremely
27096 # bizarre bug on SunOS 4.1.3.
27097 if $ac_need_defaults; then
27098 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27099 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27100 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
27101 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27104 # Have a temporary directory for convenience. Make it in the build tree
27105 # simply because there is no reason against having it here, and in addition,
27106 # creating and moving files from /tmp can sometimes cause problems.
27107 # Hook for its removal unless debugging.
27108 # Note that there is a small window in which the directory will not be cleaned:
27109 # after its creation but before its name has been assigned to `$tmp'.
27110 $debug ||
27112 tmp=
27113 trap 'exit_status=$?
27114 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27116 trap '{ (exit 1); exit 1; }' 1 2 13 15
27118 # Create a (secure) tmp directory for tmp files.
27121 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27122 test -n "$tmp" && test -d "$tmp"
27123 } ||
27125 tmp=./conf$$-$RANDOM
27126 (umask 077 && mkdir "$tmp")
27127 } ||
27129 echo "$me: cannot create a temporary directory in ." >&2
27130 { (exit 1); exit 1; }
27134 # Set up the sed scripts for CONFIG_FILES section.
27137 # No need to generate the scripts if there are no CONFIG_FILES.
27138 # This happens for instance when ./config.status config.h
27139 if test -n "$CONFIG_FILES"; then
27141 _ACEOF
27145 ac_delim='%!_!# '
27146 for ac_last_try in false false false false false :; do
27147 cat >conf$$subs.sed <<_ACEOF
27148 SHELL!$SHELL$ac_delim
27149 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27150 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27151 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27152 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27153 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27154 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27155 exec_prefix!$exec_prefix$ac_delim
27156 prefix!$prefix$ac_delim
27157 program_transform_name!$program_transform_name$ac_delim
27158 bindir!$bindir$ac_delim
27159 sbindir!$sbindir$ac_delim
27160 libexecdir!$libexecdir$ac_delim
27161 datarootdir!$datarootdir$ac_delim
27162 datadir!$datadir$ac_delim
27163 sysconfdir!$sysconfdir$ac_delim
27164 sharedstatedir!$sharedstatedir$ac_delim
27165 localstatedir!$localstatedir$ac_delim
27166 includedir!$includedir$ac_delim
27167 oldincludedir!$oldincludedir$ac_delim
27168 docdir!$docdir$ac_delim
27169 infodir!$infodir$ac_delim
27170 htmldir!$htmldir$ac_delim
27171 dvidir!$dvidir$ac_delim
27172 pdfdir!$pdfdir$ac_delim
27173 psdir!$psdir$ac_delim
27174 libdir!$libdir$ac_delim
27175 localedir!$localedir$ac_delim
27176 mandir!$mandir$ac_delim
27177 DEFS!$DEFS$ac_delim
27178 ECHO_C!$ECHO_C$ac_delim
27179 ECHO_N!$ECHO_N$ac_delim
27180 ECHO_T!$ECHO_T$ac_delim
27181 LIBS!$LIBS$ac_delim
27182 build_alias!$build_alias$ac_delim
27183 host_alias!$host_alias$ac_delim
27184 target_alias!$target_alias$ac_delim
27185 configure_args!$configure_args$ac_delim
27186 build!$build$ac_delim
27187 build_cpu!$build_cpu$ac_delim
27188 build_vendor!$build_vendor$ac_delim
27189 build_os!$build_os$ac_delim
27190 host!$host$ac_delim
27191 host_cpu!$host_cpu$ac_delim
27192 host_vendor!$host_vendor$ac_delim
27193 host_os!$host_os$ac_delim
27194 PORTNAME!$PORTNAME$ac_delim
27195 enable_nls!$enable_nls$ac_delim
27196 WANTED_LANGUAGES!$WANTED_LANGUAGES$ac_delim
27197 default_port!$default_port$ac_delim
27198 enable_shared!$enable_shared$ac_delim
27199 enable_rpath!$enable_rpath$ac_delim
27200 enable_debug!$enable_debug$ac_delim
27201 enable_profiling!$enable_profiling$ac_delim
27202 GCOV!$GCOV$ac_delim
27203 LCOV!$LCOV$ac_delim
27204 GENHTML!$GENHTML$ac_delim
27205 enable_coverage!$enable_coverage$ac_delim
27206 DTRACE!$DTRACE$ac_delim
27207 DTRACEFLAGS!$DTRACEFLAGS$ac_delim
27208 enable_dtrace!$enable_dtrace$ac_delim
27209 CC!$CC$ac_delim
27210 CFLAGS!$CFLAGS$ac_delim
27211 LDFLAGS!$LDFLAGS$ac_delim
27212 CPPFLAGS!$CPPFLAGS$ac_delim
27213 ac_ct_CC!$ac_ct_CC$ac_delim
27214 EXEEXT!$EXEEXT$ac_delim
27215 OBJEXT!$OBJEXT$ac_delim
27216 SUN_STUDIO_CC!$SUN_STUDIO_CC$ac_delim
27217 CPP!$CPP$ac_delim
27218 GCC!$GCC$ac_delim
27219 TAS!$TAS$ac_delim
27220 autodepend!$autodepend$ac_delim
27221 INCLUDES!$INCLUDES$ac_delim
27222 enable_thread_safety!$enable_thread_safety$ac_delim
27223 with_tcl!$with_tcl$ac_delim
27224 with_perl!$with_perl$ac_delim
27225 with_python!$with_python$ac_delim
27226 with_gssapi!$with_gssapi$ac_delim
27227 with_krb5!$with_krb5$ac_delim
27228 krb_srvtab!$krb_srvtab$ac_delim
27229 with_pam!$with_pam$ac_delim
27230 with_ldap!$with_ldap$ac_delim
27231 with_bonjour!$with_bonjour$ac_delim
27232 with_openssl!$with_openssl$ac_delim
27233 with_ossp_uuid!$with_ossp_uuid$ac_delim
27234 XML2_CONFIG!$XML2_CONFIG$ac_delim
27235 with_libxml!$with_libxml$ac_delim
27236 with_libxslt!$with_libxslt$ac_delim
27237 with_system_tzdata!$with_system_tzdata$ac_delim
27238 with_zlib!$with_zlib$ac_delim
27239 GREP!$GREP$ac_delim
27240 EGREP!$EGREP$ac_delim
27241 ELF_SYS!$ELF_SYS$ac_delim
27242 LDFLAGS_SL!$LDFLAGS_SL$ac_delim
27243 LD!$LD$ac_delim
27244 with_gnu_ld!$with_gnu_ld$ac_delim
27245 _ACEOF
27247 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27248 break
27249 elif $ac_last_try; then
27250 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27251 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27252 { (exit 1); exit 1; }; }
27253 else
27254 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27256 done
27258 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27259 if test -n "$ac_eof"; then
27260 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27261 ac_eof=`expr $ac_eof + 1`
27264 cat >>$CONFIG_STATUS <<_ACEOF
27265 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27266 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27267 _ACEOF
27268 sed '
27269 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27270 s/^/s,@/; s/!/@,|#_!!_#|/
27273 s/'"$ac_delim"'$/,g/; t
27274 s/$/\\/; p
27275 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27276 ' >>$CONFIG_STATUS <conf$$subs.sed
27277 rm -f conf$$subs.sed
27278 cat >>$CONFIG_STATUS <<_ACEOF
27279 CEOF$ac_eof
27280 _ACEOF
27283 ac_delim='%!_!# '
27284 for ac_last_try in false false false false false :; do
27285 cat >conf$$subs.sed <<_ACEOF
27286 ld_R_works!$ld_R_works$ac_delim
27287 RANLIB!$RANLIB$ac_delim
27288 STRIP!$STRIP$ac_delim
27289 STRIP_STATIC_LIB!$STRIP_STATIC_LIB$ac_delim
27290 STRIP_SHARED_LIB!$STRIP_SHARED_LIB$ac_delim
27291 AR!$AR$ac_delim
27292 DLLTOOL!$DLLTOOL$ac_delim
27293 DLLWRAP!$DLLWRAP$ac_delim
27294 WINDRES!$WINDRES$ac_delim
27295 TAR!$TAR$ac_delim
27296 LN_S!$LN_S$ac_delim
27297 AWK!$AWK$ac_delim
27298 BISON!$BISON$ac_delim
27299 BISONFLAGS!$BISONFLAGS$ac_delim
27300 FLEX!$FLEX$ac_delim
27301 FLEXFLAGS!$FLEXFLAGS$ac_delim
27302 PERL!$PERL$ac_delim
27303 perl_archlibexp!$perl_archlibexp$ac_delim
27304 perl_privlibexp!$perl_privlibexp$ac_delim
27305 perl_useshrplib!$perl_useshrplib$ac_delim
27306 perl_embed_ldflags!$perl_embed_ldflags$ac_delim
27307 PYTHON!$PYTHON$ac_delim
27308 python_version!$python_version$ac_delim
27309 python_configdir!$python_configdir$ac_delim
27310 python_includespec!$python_includespec$ac_delim
27311 python_libdir!$python_libdir$ac_delim
27312 python_libspec!$python_libspec$ac_delim
27313 python_additional_libs!$python_additional_libs$ac_delim
27314 OSSP_UUID_LIBS!$OSSP_UUID_LIBS$ac_delim
27315 HAVE_IPV6!$HAVE_IPV6$ac_delim
27316 LIBOBJS!$LIBOBJS$ac_delim
27317 acx_pthread_config!$acx_pthread_config$ac_delim
27318 PTHREAD_CC!$PTHREAD_CC$ac_delim
27319 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
27320 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
27321 LDAP_LIBS_FE!$LDAP_LIBS_FE$ac_delim
27322 LDAP_LIBS_BE!$LDAP_LIBS_BE$ac_delim
27323 HAVE_POSIX_SIGNALS!$HAVE_POSIX_SIGNALS$ac_delim
27324 MSGFMT!$MSGFMT$ac_delim
27325 MSGMERGE!$MSGMERGE$ac_delim
27326 XGETTEXT!$XGETTEXT$ac_delim
27327 TCLSH!$TCLSH$ac_delim
27328 TCL_CONFIG_SH!$TCL_CONFIG_SH$ac_delim
27329 TCL_INCLUDE_SPEC!$TCL_INCLUDE_SPEC$ac_delim
27330 TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim
27331 TCL_LIBS!$TCL_LIBS$ac_delim
27332 TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim
27333 TCL_SHARED_BUILD!$TCL_SHARED_BUILD$ac_delim
27334 TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim
27335 NSGMLS!$NSGMLS$ac_delim
27336 JADE!$JADE$ac_delim
27337 have_docbook!$have_docbook$ac_delim
27338 DOCBOOKSTYLE!$DOCBOOKSTYLE$ac_delim
27339 COLLATEINDEX!$COLLATEINDEX$ac_delim
27340 SGMLSPL!$SGMLSPL$ac_delim
27341 DOCBOOK2MAN!$DOCBOOK2MAN$ac_delim
27342 vpath_build!$vpath_build$ac_delim
27343 LTLIBOBJS!$LTLIBOBJS$ac_delim
27344 _ACEOF
27346 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 58; then
27347 break
27348 elif $ac_last_try; then
27349 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27350 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27351 { (exit 1); exit 1; }; }
27352 else
27353 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27355 done
27357 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27358 if test -n "$ac_eof"; then
27359 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27360 ac_eof=`expr $ac_eof + 1`
27363 cat >>$CONFIG_STATUS <<_ACEOF
27364 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27365 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27366 _ACEOF
27367 sed '
27368 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27369 s/^/s,@/; s/!/@,|#_!!_#|/
27372 s/'"$ac_delim"'$/,g/; t
27373 s/$/\\/; p
27374 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27375 ' >>$CONFIG_STATUS <conf$$subs.sed
27376 rm -f conf$$subs.sed
27377 cat >>$CONFIG_STATUS <<_ACEOF
27378 :end
27379 s/|#_!!_#|//g
27380 CEOF$ac_eof
27381 _ACEOF
27384 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27385 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27386 # trailing colons and then remove the whole line if VPATH becomes empty
27387 # (actually we leave an empty line to preserve line numbers).
27388 if test "x$srcdir" = x.; then
27389 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27390 s/:*\$(srcdir):*/:/
27391 s/:*\${srcdir}:*/:/
27392 s/:*@srcdir@:*/:/
27393 s/^\([^=]*=[ ]*\):*/\1/
27394 s/:*$//
27395 s/^[^=]*=[ ]*$//
27399 cat >>$CONFIG_STATUS <<\_ACEOF
27400 fi # test -n "$CONFIG_FILES"
27403 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS
27405 case $ac_tag in
27406 :[FHLC]) ac_mode=$ac_tag; continue;;
27407 esac
27408 case $ac_mode$ac_tag in
27409 :[FHL]*:*);;
27410 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27411 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27412 { (exit 1); exit 1; }; };;
27413 :[FH]-) ac_tag=-:-;;
27414 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27415 esac
27416 ac_save_IFS=$IFS
27417 IFS=:
27418 set x $ac_tag
27419 IFS=$ac_save_IFS
27420 shift
27421 ac_file=$1
27422 shift
27424 case $ac_mode in
27425 :L) ac_source=$1;;
27426 :[FH])
27427 ac_file_inputs=
27428 for ac_f
27430 case $ac_f in
27431 -) ac_f="$tmp/stdin";;
27432 *) # Look for the file first in the build tree, then in the source tree
27433 # (if the path is not absolute). The absolute path cannot be DOS-style,
27434 # because $ac_f cannot contain `:'.
27435 test -f "$ac_f" ||
27436 case $ac_f in
27437 [\\/$]*) false;;
27438 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27439 esac ||
27440 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27441 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27442 { (exit 1); exit 1; }; };;
27443 esac
27444 ac_file_inputs="$ac_file_inputs $ac_f"
27445 done
27447 # Let's still pretend it is `configure' which instantiates (i.e., don't
27448 # use $as_me), people would be surprised to read:
27449 # /* config.h. Generated by config.status. */
27450 configure_input="Generated from "`IFS=:
27451 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27452 if test x"$ac_file" != x-; then
27453 configure_input="$ac_file. $configure_input"
27454 { echo "$as_me:$LINENO: creating $ac_file" >&5
27455 echo "$as_me: creating $ac_file" >&6;}
27458 case $ac_tag in
27459 *:-:* | *:-) cat >"$tmp/stdin";;
27460 esac
27462 esac
27464 ac_dir=`$as_dirname -- "$ac_file" ||
27465 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27466 X"$ac_file" : 'X\(//\)[^/]' \| \
27467 X"$ac_file" : 'X\(//\)$' \| \
27468 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27469 echo X"$ac_file" |
27470 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27471 s//\1/
27474 /^X\(\/\/\)[^/].*/{
27475 s//\1/
27478 /^X\(\/\/\)$/{
27479 s//\1/
27482 /^X\(\/\).*/{
27483 s//\1/
27486 s/.*/./; q'`
27487 { as_dir="$ac_dir"
27488 case $as_dir in #(
27489 -*) as_dir=./$as_dir;;
27490 esac
27491 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27492 as_dirs=
27493 while :; do
27494 case $as_dir in #(
27495 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27496 *) as_qdir=$as_dir;;
27497 esac
27498 as_dirs="'$as_qdir' $as_dirs"
27499 as_dir=`$as_dirname -- "$as_dir" ||
27500 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27501 X"$as_dir" : 'X\(//\)[^/]' \| \
27502 X"$as_dir" : 'X\(//\)$' \| \
27503 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27504 echo X"$as_dir" |
27505 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27506 s//\1/
27509 /^X\(\/\/\)[^/].*/{
27510 s//\1/
27513 /^X\(\/\/\)$/{
27514 s//\1/
27517 /^X\(\/\).*/{
27518 s//\1/
27521 s/.*/./; q'`
27522 test -d "$as_dir" && break
27523 done
27524 test -z "$as_dirs" || eval "mkdir $as_dirs"
27525 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27526 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27527 { (exit 1); exit 1; }; }; }
27528 ac_builddir=.
27530 case "$ac_dir" in
27531 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27533 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27534 # A ".." for each directory in $ac_dir_suffix.
27535 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27536 case $ac_top_builddir_sub in
27537 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27538 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27539 esac ;;
27540 esac
27541 ac_abs_top_builddir=$ac_pwd
27542 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27543 # for backward compatibility:
27544 ac_top_builddir=$ac_top_build_prefix
27546 case $srcdir in
27547 .) # We are building in place.
27548 ac_srcdir=.
27549 ac_top_srcdir=$ac_top_builddir_sub
27550 ac_abs_top_srcdir=$ac_pwd ;;
27551 [\\/]* | ?:[\\/]* ) # Absolute name.
27552 ac_srcdir=$srcdir$ac_dir_suffix;
27553 ac_top_srcdir=$srcdir
27554 ac_abs_top_srcdir=$srcdir ;;
27555 *) # Relative name.
27556 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27557 ac_top_srcdir=$ac_top_build_prefix$srcdir
27558 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27559 esac
27560 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27563 case $ac_mode in
27566 # CONFIG_FILE
27569 _ACEOF
27571 cat >>$CONFIG_STATUS <<\_ACEOF
27572 # If the template does not know about datarootdir, expand it.
27573 # FIXME: This hack should be removed a few years after 2.60.
27574 ac_datarootdir_hack=; ac_datarootdir_seen=
27576 case `sed -n '/datarootdir/ {
27580 /@datadir@/p
27581 /@docdir@/p
27582 /@infodir@/p
27583 /@localedir@/p
27584 /@mandir@/p
27585 ' $ac_file_inputs` in
27586 *datarootdir*) ac_datarootdir_seen=yes;;
27587 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27588 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27589 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27590 _ACEOF
27591 cat >>$CONFIG_STATUS <<_ACEOF
27592 ac_datarootdir_hack='
27593 s&@datadir@&$datadir&g
27594 s&@docdir@&$docdir&g
27595 s&@infodir@&$infodir&g
27596 s&@localedir@&$localedir&g
27597 s&@mandir@&$mandir&g
27598 s&\\\${datarootdir}&$datarootdir&g' ;;
27599 esac
27600 _ACEOF
27602 # Neutralize VPATH when `$srcdir' = `.'.
27603 # Shell code in configure.ac might set extrasub.
27604 # FIXME: do we really want to maintain this feature?
27605 cat >>$CONFIG_STATUS <<_ACEOF
27606 sed "$ac_vpsub
27607 $extrasub
27608 _ACEOF
27609 cat >>$CONFIG_STATUS <<\_ACEOF
27611 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27612 s&@configure_input@&$configure_input&;t t
27613 s&@top_builddir@&$ac_top_builddir_sub&;t t
27614 s&@srcdir@&$ac_srcdir&;t t
27615 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27616 s&@top_srcdir@&$ac_top_srcdir&;t t
27617 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27618 s&@builddir@&$ac_builddir&;t t
27619 s&@abs_builddir@&$ac_abs_builddir&;t t
27620 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27621 $ac_datarootdir_hack
27622 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27624 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27625 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27626 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27627 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27628 which seems to be undefined. Please make sure it is defined." >&5
27629 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27630 which seems to be undefined. Please make sure it is defined." >&2;}
27632 rm -f "$tmp/stdin"
27633 case $ac_file in
27634 -) cat "$tmp/out"; rm -f "$tmp/out";;
27635 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27636 esac
27640 # CONFIG_HEADER
27642 _ACEOF
27644 # Transform confdefs.h into a sed script `conftest.defines', that
27645 # substitutes the proper values into config.h.in to produce config.h.
27646 rm -f conftest.defines conftest.tail
27647 # First, append a space to every undef/define line, to ease matching.
27648 echo 's/$/ /' >conftest.defines
27649 # Then, protect against being on the right side of a sed subst, or in
27650 # an unquoted here document, in config.status. If some macros were
27651 # called several times there might be several #defines for the same
27652 # symbol, which is useless. But do not sort them, since the last
27653 # AC_DEFINE must be honored.
27654 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27655 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27656 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27657 # PARAMS is the parameter list in the macro definition--in most cases, it's
27658 # just an empty string.
27659 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
27660 ac_dB='\\)[ (].*,\\1define\\2'
27661 ac_dC=' '
27662 ac_dD=' ,'
27664 uniq confdefs.h |
27665 sed -n '
27666 t rset
27667 :rset
27668 s/^[ ]*#[ ]*define[ ][ ]*//
27669 t ok
27672 s/[\\&,]/\\&/g
27673 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27674 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27675 ' >>conftest.defines
27677 # Remove the space that was appended to ease matching.
27678 # Then replace #undef with comments. This is necessary, for
27679 # example, in the case of _POSIX_SOURCE, which is predefined and required
27680 # on some systems where configure will not decide to define it.
27681 # (The regexp can be short, since the line contains either #define or #undef.)
27682 echo 's/ $//
27683 s,^[ #]*u.*,/* & */,' >>conftest.defines
27685 # Break up conftest.defines:
27686 ac_max_sed_lines=50
27688 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27689 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27690 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27691 # et cetera.
27692 ac_in='$ac_file_inputs'
27693 ac_out='"$tmp/out1"'
27694 ac_nxt='"$tmp/out2"'
27696 while :
27698 # Write a here document:
27699 cat >>$CONFIG_STATUS <<_ACEOF
27700 # First, check the format of the line:
27701 cat >"\$tmp/defines.sed" <<\\CEOF
27702 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27703 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27705 :def
27706 _ACEOF
27707 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27708 echo 'CEOF
27709 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27710 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27711 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27712 grep . conftest.tail >/dev/null || break
27713 rm -f conftest.defines
27714 mv conftest.tail conftest.defines
27715 done
27716 rm -f conftest.defines conftest.tail
27718 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27719 cat >>$CONFIG_STATUS <<\_ACEOF
27720 if test x"$ac_file" != x-; then
27721 echo "/* $configure_input */" >"$tmp/config.h"
27722 cat "$ac_result" >>"$tmp/config.h"
27723 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27724 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27725 echo "$as_me: $ac_file is unchanged" >&6;}
27726 else
27727 rm -f $ac_file
27728 mv "$tmp/config.h" $ac_file
27730 else
27731 echo "/* $configure_input */"
27732 cat "$ac_result"
27734 rm -f "$tmp/out12"
27738 # CONFIG_LINK
27741 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
27742 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
27744 if test ! -r "$srcdir/$ac_source"; then
27745 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
27746 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
27747 { (exit 1); exit 1; }; }
27749 rm -f "$ac_file"
27751 # Try a relative symlink, then a hard link, then a copy.
27752 case $srcdir in
27753 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
27754 *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;;
27755 esac
27756 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
27757 ln "$srcdir/$ac_source" "$ac_file" 2>/dev/null ||
27758 cp -p "$srcdir/$ac_source" "$ac_file" ||
27759 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
27760 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
27761 { (exit 1); exit 1; }; }
27763 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27764 echo "$as_me: executing $ac_file commands" >&6;}
27766 esac
27769 case $ac_file$ac_mode in
27770 "check_win32_symlinks":C)
27771 # Links sometimes fail undetected on Mingw -
27772 # so here we detect it and warn the user
27773 for FILE in $CONFIG_LINKS
27775 # test -e works for symlinks in the MinGW console
27776 test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
27777 echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
27778 done
27780 "src/include/pg_config.h":H)
27781 # Update timestamp for pg_config.h (see Makefile.global)
27782 echo >src/include/stamp-h
27785 esac
27786 done # for ac_tag
27789 { (exit 0); exit 0; }
27790 _ACEOF
27791 chmod +x $CONFIG_STATUS
27792 ac_clean_files=$ac_clean_files_save
27795 # configure is writing to config.log, and then calls config.status.
27796 # config.status does its own redirection, appending to config.log.
27797 # Unfortunately, on DOS this fails, as config.log is still kept open
27798 # by configure, so config.status won't be able to write to it; its
27799 # output is simply discarded. So we exec the FD to /dev/null,
27800 # effectively closing config.log, so it can be properly (re)opened and
27801 # appended to by config.status. When coming back to configure, we
27802 # need to make the FD available again.
27803 if test "$no_create" != yes; then
27804 ac_cs_success=:
27805 ac_config_status_args=
27806 test "$silent" = yes &&
27807 ac_config_status_args="$ac_config_status_args --quiet"
27808 exec 5>/dev/null
27809 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27810 exec 5>>config.log
27811 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27812 # would make configure fail if this is the last instruction.
27813 $ac_cs_success || { (exit 1); exit 1; }
27817 # Warn about unknown options
27818 for pgac_var in `set | sed 's/=.*//' | $EGREP 'with_|enable_'`; do
27819 for pgac_arg in $pgac_args with_gnu_ld; do
27820 if test "$pgac_var" = "$pgac_arg"; then
27821 continue 2
27823 done
27824 pgac_txt=`echo $pgac_var | sed 's/_/-/g'`
27825 { echo "$as_me:$LINENO: WARNING: option ignored: --$pgac_txt" >&5
27826 echo "$as_me: WARNING: option ignored: --$pgac_txt" >&2;}
27827 done