Remove broken Assertions that failed if a statement executed in PL/pgSQL is
[PostgreSQL.git] / configure
blob5d85213a8778bfcd5158dd519b56f906d07b9907
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-2009, PostgreSQL Global Development Group
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 emulate sh
21 NULLCMD=:
22 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in
28 *posix*) set -o posix ;;
29 esac
36 # PATH needs CR
37 # Avoid depending upon Character Ranges.
38 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41 as_cr_digits='0123456789'
42 as_cr_alnum=$as_cr_Letters$as_cr_digits
44 # The user is always right.
45 if test "${PATH_SEPARATOR+set}" != set; then
46 echo "#! /bin/sh" >conf$$.sh
47 echo "exit 0" >>conf$$.sh
48 chmod +x conf$$.sh
49 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50 PATH_SEPARATOR=';'
51 else
52 PATH_SEPARATOR=:
54 rm -f conf$$.sh
57 # Support unset when possible.
58 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
59 as_unset=unset
60 else
61 as_unset=false
65 # IFS
66 # We need space, tab and new line, in precisely that order. Quoting is
67 # there to prevent editors from complaining about space-tab.
68 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
69 # splitting by setting IFS to empty value.)
70 as_nl='
72 IFS=" "" $as_nl"
74 # Find who we are. Look in the path if we contain no directory separator.
75 case $0 in
76 *[\\/]* ) as_myself=$0 ;;
77 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
78 for as_dir in $PATH
80 IFS=$as_save_IFS
81 test -z "$as_dir" && as_dir=.
82 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
83 done
84 IFS=$as_save_IFS
87 esac
88 # We did not find ourselves, most probably we were run as `sh COMMAND'
89 # in which case we are not to be found in the path.
90 if test "x$as_myself" = x; then
91 as_myself=$0
93 if test ! -f "$as_myself"; then
94 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
95 { (exit 1); exit 1; }
98 # Work around bugs in pre-3.0 UWIN ksh.
99 for as_var in ENV MAIL MAILPATH
100 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
101 done
102 PS1='$ '
103 PS2='> '
104 PS4='+ '
106 # NLS nuisances.
107 for as_var in \
108 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
109 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 LC_TELEPHONE LC_TIME
112 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
113 eval $as_var=C; export $as_var
114 else
115 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117 done
119 # Required to use basename.
120 if expr a : '\(a\)' >/dev/null 2>&1 &&
121 test "X`expr 00001 : '.*\(...\)'`" = X001; then
122 as_expr=expr
123 else
124 as_expr=false
127 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
128 as_basename=basename
129 else
130 as_basename=false
134 # Name of the executable.
135 as_me=`$as_basename -- "$0" ||
136 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
137 X"$0" : 'X\(//\)$' \| \
138 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139 echo X/"$0" |
140 sed '/^.*\/\([^/][^/]*\)\/*$/{
141 s//\1/
144 /^X\/\(\/\/\)$/{
145 s//\1/
148 /^X\/\(\/\).*/{
149 s//\1/
152 s/.*/./; q'`
154 # CDPATH.
155 $as_unset CDPATH
158 if test "x$CONFIG_SHELL" = x; then
159 if (eval ":") 2>/dev/null; then
160 as_have_required=yes
161 else
162 as_have_required=no
165 if test $as_have_required = yes && (eval ":
166 (as_func_return () {
167 (exit \$1)
169 as_func_success () {
170 as_func_return 0
172 as_func_failure () {
173 as_func_return 1
175 as_func_ret_success () {
176 return 0
178 as_func_ret_failure () {
179 return 1
182 exitcode=0
183 if as_func_success; then
185 else
186 exitcode=1
187 echo as_func_success failed.
190 if as_func_failure; then
191 exitcode=1
192 echo as_func_failure succeeded.
195 if as_func_ret_success; then
197 else
198 exitcode=1
199 echo as_func_ret_success failed.
202 if as_func_ret_failure; then
203 exitcode=1
204 echo as_func_ret_failure succeeded.
207 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 else
210 exitcode=1
211 echo positional parameters were not saved.
214 test \$exitcode = 0) || { (exit 1); exit 1; }
217 as_lineno_1=\$LINENO
218 as_lineno_2=\$LINENO
219 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
220 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
221 ") 2> /dev/null; then
223 else
224 as_candidate_shells=
225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
226 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
228 IFS=$as_save_IFS
229 test -z "$as_dir" && as_dir=.
230 case $as_dir in
232 for as_base in sh bash ksh sh5; do
233 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
234 done;;
235 esac
236 done
237 IFS=$as_save_IFS
240 for as_shell in $as_candidate_shells $SHELL; do
241 # Try only shells that exist, to save several forks.
242 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
243 { ("$as_shell") 2> /dev/null <<\_ASEOF
244 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245 emulate sh
246 NULLCMD=:
247 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
248 # is contrary to our usage. Disable this feature.
249 alias -g '${1+"$@"}'='"$@"'
250 setopt NO_GLOB_SUBST
251 else
252 case `(set -o) 2>/dev/null` in
253 *posix*) set -o posix ;;
254 esac
260 _ASEOF
261 }; then
262 CONFIG_SHELL=$as_shell
263 as_have_required=yes
264 if { "$as_shell" 2> /dev/null <<\_ASEOF
265 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 emulate sh
267 NULLCMD=:
268 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
269 # is contrary to our usage. Disable this feature.
270 alias -g '${1+"$@"}'='"$@"'
271 setopt NO_GLOB_SUBST
272 else
273 case `(set -o) 2>/dev/null` in
274 *posix*) set -o posix ;;
275 esac
281 (as_func_return () {
282 (exit $1)
284 as_func_success () {
285 as_func_return 0
287 as_func_failure () {
288 as_func_return 1
290 as_func_ret_success () {
291 return 0
293 as_func_ret_failure () {
294 return 1
297 exitcode=0
298 if as_func_success; then
300 else
301 exitcode=1
302 echo as_func_success failed.
305 if as_func_failure; then
306 exitcode=1
307 echo as_func_failure succeeded.
310 if as_func_ret_success; then
312 else
313 exitcode=1
314 echo as_func_ret_success failed.
317 if as_func_ret_failure; then
318 exitcode=1
319 echo as_func_ret_failure succeeded.
322 if ( set x; as_func_ret_success y && test x = "$1" ); then
324 else
325 exitcode=1
326 echo positional parameters were not saved.
329 test $exitcode = 0) || { (exit 1); exit 1; }
332 as_lineno_1=$LINENO
333 as_lineno_2=$LINENO
334 test "x$as_lineno_1" != "x$as_lineno_2" &&
335 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
337 _ASEOF
338 }; then
339 break
344 done
346 if test "x$CONFIG_SHELL" != x; then
347 for as_var in BASH_ENV ENV
348 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349 done
350 export CONFIG_SHELL
351 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
355 if test $as_have_required = no; then
356 echo This script requires a shell more modern than all the
357 echo shells that I found on your system. Please install a
358 echo modern shell, or manually run the script under such a
359 echo shell if you do have one.
360 { (exit 1); exit 1; }
370 (eval "as_func_return () {
371 (exit \$1)
373 as_func_success () {
374 as_func_return 0
376 as_func_failure () {
377 as_func_return 1
379 as_func_ret_success () {
380 return 0
382 as_func_ret_failure () {
383 return 1
386 exitcode=0
387 if as_func_success; then
389 else
390 exitcode=1
391 echo as_func_success failed.
394 if as_func_failure; then
395 exitcode=1
396 echo as_func_failure succeeded.
399 if as_func_ret_success; then
401 else
402 exitcode=1
403 echo as_func_ret_success failed.
406 if as_func_ret_failure; then
407 exitcode=1
408 echo as_func_ret_failure succeeded.
411 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 else
414 exitcode=1
415 echo positional parameters were not saved.
418 test \$exitcode = 0") || {
419 echo No shell found that supports shell functions.
420 echo Please tell autoconf@gnu.org about your system,
421 echo including any error possibly output before this
422 echo message
427 as_lineno_1=$LINENO
428 as_lineno_2=$LINENO
429 test "x$as_lineno_1" != "x$as_lineno_2" &&
430 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
432 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
433 # uniformly replaced by the line number. The first 'sed' inserts a
434 # line-number line after each line using $LINENO; the second 'sed'
435 # does the real work. The second script uses 'N' to pair each
436 # line-number line with the line containing $LINENO, and appends
437 # trailing '-' during substitution so that $LINENO is not a special
438 # case at line end.
439 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
440 # scripts with optimization help from Paolo Bonzini. Blame Lee
441 # E. McMahon (1931-1989) for sed's syntax. :-)
442 sed -n '
444 /[$]LINENO/=
445 ' <$as_myself |
446 sed '
447 s/[$]LINENO.*/&-/
448 t lineno
450 :lineno
452 :loop
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454 t loop
455 s/-\n.*//
456 ' >$as_me.lineno &&
457 chmod +x "$as_me.lineno" ||
458 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
459 { (exit 1); exit 1; }; }
461 # Don't try to exec as it changes $[0], causing all sort of problems
462 # (the dirname of $[0] is not the place where we might find the
463 # original and so on. Autoconf is especially sensitive to this).
464 . "./$as_me.lineno"
465 # Exit status is that of the last command.
466 exit
470 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
471 as_dirname=dirname
472 else
473 as_dirname=false
476 ECHO_C= ECHO_N= ECHO_T=
477 case `echo -n x` in
478 -n*)
479 case `echo 'x\c'` in
480 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 *) ECHO_C='\c';;
482 esac;;
484 ECHO_N='-n';;
485 esac
487 if expr a : '\(a\)' >/dev/null 2>&1 &&
488 test "X`expr 00001 : '.*\(...\)'`" = X001; then
489 as_expr=expr
490 else
491 as_expr=false
494 rm -f conf$$ conf$$.exe conf$$.file
495 if test -d conf$$.dir; then
496 rm -f conf$$.dir/conf$$.file
497 else
498 rm -f conf$$.dir
499 mkdir conf$$.dir
501 echo >conf$$.file
502 if ln -s conf$$.file conf$$ 2>/dev/null; then
503 as_ln_s='ln -s'
504 # ... but there are two gotchas:
505 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
506 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
507 # In both cases, we have to default to `cp -p'.
508 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
509 as_ln_s='cp -p'
510 elif ln conf$$.file conf$$ 2>/dev/null; then
511 as_ln_s=ln
512 else
513 as_ln_s='cp -p'
515 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
516 rmdir conf$$.dir 2>/dev/null
518 if mkdir -p . 2>/dev/null; then
519 as_mkdir_p=:
520 else
521 test -d ./-p && rmdir ./-p
522 as_mkdir_p=false
525 if test -x / >/dev/null 2>&1; then
526 as_test_x='test -x'
527 else
528 if ls -dL / >/dev/null 2>&1; then
529 as_ls_L_option=L
530 else
531 as_ls_L_option=
533 as_test_x='
534 eval sh -c '\''
535 if test -d "$1"; then
536 test -d "$1/.";
537 else
538 case $1 in
539 -*)set "./$1";;
540 esac;
541 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
542 ???[sx]*):;;*)false;;esac;fi
543 '\'' sh
546 as_executable_p=$as_test_x
548 # Sed expression to map a string onto a valid CPP name.
549 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
551 # Sed expression to map a string onto a valid variable name.
552 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
556 exec 7<&0 </dev/null 6>&1
558 # Name of the host.
559 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
560 # so uname gets run too.
561 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564 # Initializations.
566 ac_default_prefix=/usr/local
567 ac_clean_files=
568 ac_config_libobj_dir=.
569 LIBOBJS=
570 cross_compiling=no
571 subdirs=
572 MFLAGS=
573 MAKEFLAGS=
574 SHELL=${CONFIG_SHELL-/bin/sh}
576 # Identity of this package.
577 PACKAGE_NAME='PostgreSQL'
578 PACKAGE_TARNAME='postgresql'
579 PACKAGE_VERSION='8.4devel'
580 PACKAGE_STRING='PostgreSQL 8.4devel'
581 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
583 ac_unique_file="src/backend/access/common/heaptuple.c"
584 ac_default_prefix=/usr/local/pgsql
585 # Factoring default headers for most tests.
586 ac_includes_default="\
587 #include <stdio.h>
588 #ifdef HAVE_SYS_TYPES_H
589 # include <sys/types.h>
590 #endif
591 #ifdef HAVE_SYS_STAT_H
592 # include <sys/stat.h>
593 #endif
594 #ifdef STDC_HEADERS
595 # include <stdlib.h>
596 # include <stddef.h>
597 #else
598 # ifdef HAVE_STDLIB_H
599 # include <stdlib.h>
600 # endif
601 #endif
602 #ifdef HAVE_STRING_H
603 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 # include <memory.h>
605 # endif
606 # include <string.h>
607 #endif
608 #ifdef HAVE_STRINGS_H
609 # include <strings.h>
610 #endif
611 #ifdef HAVE_INTTYPES_H
612 # include <inttypes.h>
613 #endif
614 #ifdef HAVE_STDINT_H
615 # include <stdint.h>
616 #endif
617 #ifdef HAVE_UNISTD_H
618 # include <unistd.h>
619 #endif"
621 ac_subst_vars='SHELL
622 PATH_SEPARATOR
623 PACKAGE_NAME
624 PACKAGE_TARNAME
625 PACKAGE_VERSION
626 PACKAGE_STRING
627 PACKAGE_BUGREPORT
628 exec_prefix
629 prefix
630 program_transform_name
631 bindir
632 sbindir
633 libexecdir
634 datarootdir
635 datadir
636 sysconfdir
637 sharedstatedir
638 localstatedir
639 includedir
640 oldincludedir
641 docdir
642 infodir
643 htmldir
644 dvidir
645 pdfdir
646 psdir
647 libdir
648 localedir
649 mandir
650 DEFS
651 ECHO_C
652 ECHO_N
653 ECHO_T
654 LIBS
655 build_alias
656 host_alias
657 target_alias
658 configure_args
659 PG_MAJORVERSION
660 build
661 build_cpu
662 build_vendor
663 build_os
664 host
665 host_cpu
666 host_vendor
667 host_os
668 PORTNAME
669 enable_nls
670 WANTED_LANGUAGES
671 default_port
672 enable_shared
673 enable_rpath
674 enable_debug
675 enable_profiling
676 GCOV
677 LCOV
678 GENHTML
679 enable_coverage
680 DTRACE
681 DTRACEFLAGS
682 enable_dtrace
684 CFLAGS
685 LDFLAGS
686 CPPFLAGS
687 ac_ct_CC
688 EXEEXT
689 OBJEXT
690 SUN_STUDIO_CC
694 autodepend
695 INCLUDES
696 enable_thread_safety
697 with_tcl
698 with_perl
699 with_python
700 with_gssapi
701 with_krb5
702 krb_srvtab
703 with_pam
704 with_ldap
705 with_bonjour
706 with_openssl
707 with_ossp_uuid
708 XML2_CONFIG
709 with_libxml
710 with_libxslt
711 with_system_tzdata
712 with_zlib
713 GREP
714 EGREP
715 ELF_SYS
716 LDFLAGS_SL
718 with_gnu_ld
719 ld_R_works
720 RANLIB
721 STRIP
722 STRIP_STATIC_LIB
723 STRIP_SHARED_LIB
725 DLLTOOL
726 DLLWRAP
727 WINDRES
729 LN_S
731 BISON
732 BISONFLAGS
733 FLEX
734 FLEXFLAGS
735 PERL
736 perl_archlibexp
737 perl_privlibexp
738 perl_useshrplib
739 perl_embed_ldflags
740 PYTHON
741 python_version
742 python_configdir
743 python_includespec
744 python_libdir
745 python_libspec
746 python_additional_libs
748 OSSP_UUID_LIBS
749 HAVE_IPV6
750 LIBOBJS
751 acx_pthread_config
752 PTHREAD_CC
753 PTHREAD_LIBS
754 PTHREAD_CFLAGS
755 LDAP_LIBS_FE
756 LDAP_LIBS_BE
757 HAVE_POSIX_SIGNALS
758 MSGFMT
759 MSGMERGE
760 XGETTEXT
761 TCLSH
762 TCL_CONFIG_SH
763 TCL_INCLUDE_SPEC
764 TCL_LIB_FILE
765 TCL_LIBS
766 TCL_LIB_SPEC
767 TCL_SHARED_BUILD
768 TCL_SHLIB_LD_LIBS
769 NSGMLS
770 JADE
771 have_docbook
772 DOCBOOKSTYLE
773 COLLATEINDEX
774 SGMLSPL
775 DOCBOOK2MAN
776 vpath_build
777 LTLIBOBJS'
778 ac_subst_files=''
779 ac_precious_vars='build_alias
780 host_alias
781 target_alias
783 CFLAGS
784 LDFLAGS
785 LIBS
786 CPPFLAGS
788 LDFLAGS_SL
789 DOCBOOKSTYLE'
792 # Initialize some variables set by options.
793 ac_init_help=
794 ac_init_version=false
795 # The variables have the same names as the options, with
796 # dashes changed to underlines.
797 cache_file=/dev/null
798 exec_prefix=NONE
799 no_create=
800 no_recursion=
801 prefix=NONE
802 program_prefix=NONE
803 program_suffix=NONE
804 program_transform_name=s,x,x,
805 silent=
806 site=
807 srcdir=
808 verbose=
809 x_includes=NONE
810 x_libraries=NONE
812 # Installation directory options.
813 # These are left unexpanded so users can "make install exec_prefix=/foo"
814 # and all the variables that are supposed to be based on exec_prefix
815 # by default will actually change.
816 # Use braces instead of parens because sh, perl, etc. also accept them.
817 # (The list follows the same order as the GNU Coding Standards.)
818 bindir='${exec_prefix}/bin'
819 sbindir='${exec_prefix}/sbin'
820 libexecdir='${exec_prefix}/libexec'
821 datarootdir='${prefix}/share'
822 datadir='${datarootdir}'
823 sysconfdir='${prefix}/etc'
824 sharedstatedir='${prefix}/com'
825 localstatedir='${prefix}/var'
826 includedir='${prefix}/include'
827 oldincludedir='/usr/include'
828 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
829 infodir='${datarootdir}/info'
830 htmldir='${docdir}'
831 dvidir='${docdir}'
832 pdfdir='${docdir}'
833 psdir='${docdir}'
834 libdir='${exec_prefix}/lib'
835 localedir='${datarootdir}/locale'
836 mandir='${datarootdir}/man'
838 ac_prev=
839 ac_dashdash=
840 for ac_option
842 # If the previous option needs an argument, assign it.
843 if test -n "$ac_prev"; then
844 eval $ac_prev=\$ac_option
845 ac_prev=
846 continue
849 case $ac_option in
850 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
851 *) ac_optarg=yes ;;
852 esac
854 # Accept the important Cygnus configure options, so we can diagnose typos.
856 case $ac_dashdash$ac_option in
858 ac_dashdash=yes ;;
860 -bindir | --bindir | --bindi | --bind | --bin | --bi)
861 ac_prev=bindir ;;
862 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
863 bindir=$ac_optarg ;;
865 -build | --build | --buil | --bui | --bu)
866 ac_prev=build_alias ;;
867 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
868 build_alias=$ac_optarg ;;
870 -cache-file | --cache-file | --cache-fil | --cache-fi \
871 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
872 ac_prev=cache_file ;;
873 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
874 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
875 cache_file=$ac_optarg ;;
877 --config-cache | -C)
878 cache_file=config.cache ;;
880 -datadir | --datadir | --datadi | --datad)
881 ac_prev=datadir ;;
882 -datadir=* | --datadir=* | --datadi=* | --datad=*)
883 datadir=$ac_optarg ;;
885 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
886 | --dataroo | --dataro | --datar)
887 ac_prev=datarootdir ;;
888 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
889 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
890 datarootdir=$ac_optarg ;;
892 -disable-* | --disable-*)
893 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
894 # Reject names that are not valid shell variable names.
895 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
896 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
897 { (exit 1); exit 1; }; }
898 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
899 eval enable_$ac_feature=no ;;
901 -docdir | --docdir | --docdi | --doc | --do)
902 ac_prev=docdir ;;
903 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
904 docdir=$ac_optarg ;;
906 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
907 ac_prev=dvidir ;;
908 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
909 dvidir=$ac_optarg ;;
911 -enable-* | --enable-*)
912 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
913 # Reject names that are not valid shell variable names.
914 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
915 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
916 { (exit 1); exit 1; }; }
917 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
918 eval enable_$ac_feature=\$ac_optarg ;;
920 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
921 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
922 | --exec | --exe | --ex)
923 ac_prev=exec_prefix ;;
924 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
925 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
926 | --exec=* | --exe=* | --ex=*)
927 exec_prefix=$ac_optarg ;;
929 -gas | --gas | --ga | --g)
930 # Obsolete; use --with-gas.
931 with_gas=yes ;;
933 -help | --help | --hel | --he | -h)
934 ac_init_help=long ;;
935 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
936 ac_init_help=recursive ;;
937 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
938 ac_init_help=short ;;
940 -host | --host | --hos | --ho)
941 ac_prev=host_alias ;;
942 -host=* | --host=* | --hos=* | --ho=*)
943 host_alias=$ac_optarg ;;
945 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
946 ac_prev=htmldir ;;
947 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
948 | --ht=*)
949 htmldir=$ac_optarg ;;
951 -includedir | --includedir | --includedi | --included | --include \
952 | --includ | --inclu | --incl | --inc)
953 ac_prev=includedir ;;
954 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
955 | --includ=* | --inclu=* | --incl=* | --inc=*)
956 includedir=$ac_optarg ;;
958 -infodir | --infodir | --infodi | --infod | --info | --inf)
959 ac_prev=infodir ;;
960 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
961 infodir=$ac_optarg ;;
963 -libdir | --libdir | --libdi | --libd)
964 ac_prev=libdir ;;
965 -libdir=* | --libdir=* | --libdi=* | --libd=*)
966 libdir=$ac_optarg ;;
968 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
969 | --libexe | --libex | --libe)
970 ac_prev=libexecdir ;;
971 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
972 | --libexe=* | --libex=* | --libe=*)
973 libexecdir=$ac_optarg ;;
975 -localedir | --localedir | --localedi | --localed | --locale)
976 ac_prev=localedir ;;
977 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
978 localedir=$ac_optarg ;;
980 -localstatedir | --localstatedir | --localstatedi | --localstated \
981 | --localstate | --localstat | --localsta | --localst | --locals)
982 ac_prev=localstatedir ;;
983 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
984 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
985 localstatedir=$ac_optarg ;;
987 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
988 ac_prev=mandir ;;
989 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
990 mandir=$ac_optarg ;;
992 -nfp | --nfp | --nf)
993 # Obsolete; use --without-fp.
994 with_fp=no ;;
996 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
997 | --no-cr | --no-c | -n)
998 no_create=yes ;;
1000 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1001 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1002 no_recursion=yes ;;
1004 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1005 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1006 | --oldin | --oldi | --old | --ol | --o)
1007 ac_prev=oldincludedir ;;
1008 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1009 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1010 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1011 oldincludedir=$ac_optarg ;;
1013 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1014 ac_prev=prefix ;;
1015 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1016 prefix=$ac_optarg ;;
1018 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1019 | --program-pre | --program-pr | --program-p)
1020 ac_prev=program_prefix ;;
1021 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1022 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1023 program_prefix=$ac_optarg ;;
1025 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1026 | --program-suf | --program-su | --program-s)
1027 ac_prev=program_suffix ;;
1028 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1029 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1030 program_suffix=$ac_optarg ;;
1032 -program-transform-name | --program-transform-name \
1033 | --program-transform-nam | --program-transform-na \
1034 | --program-transform-n | --program-transform- \
1035 | --program-transform | --program-transfor \
1036 | --program-transfo | --program-transf \
1037 | --program-trans | --program-tran \
1038 | --progr-tra | --program-tr | --program-t)
1039 ac_prev=program_transform_name ;;
1040 -program-transform-name=* | --program-transform-name=* \
1041 | --program-transform-nam=* | --program-transform-na=* \
1042 | --program-transform-n=* | --program-transform-=* \
1043 | --program-transform=* | --program-transfor=* \
1044 | --program-transfo=* | --program-transf=* \
1045 | --program-trans=* | --program-tran=* \
1046 | --progr-tra=* | --program-tr=* | --program-t=*)
1047 program_transform_name=$ac_optarg ;;
1049 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1050 ac_prev=pdfdir ;;
1051 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1052 pdfdir=$ac_optarg ;;
1054 -psdir | --psdir | --psdi | --psd | --ps)
1055 ac_prev=psdir ;;
1056 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1057 psdir=$ac_optarg ;;
1059 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1060 | -silent | --silent | --silen | --sile | --sil)
1061 silent=yes ;;
1063 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1064 ac_prev=sbindir ;;
1065 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1066 | --sbi=* | --sb=*)
1067 sbindir=$ac_optarg ;;
1069 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1070 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1071 | --sharedst | --shareds | --shared | --share | --shar \
1072 | --sha | --sh)
1073 ac_prev=sharedstatedir ;;
1074 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1075 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1076 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1077 | --sha=* | --sh=*)
1078 sharedstatedir=$ac_optarg ;;
1080 -site | --site | --sit)
1081 ac_prev=site ;;
1082 -site=* | --site=* | --sit=*)
1083 site=$ac_optarg ;;
1085 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1086 ac_prev=srcdir ;;
1087 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1088 srcdir=$ac_optarg ;;
1090 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1091 | --syscon | --sysco | --sysc | --sys | --sy)
1092 ac_prev=sysconfdir ;;
1093 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1094 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1095 sysconfdir=$ac_optarg ;;
1097 -target | --target | --targe | --targ | --tar | --ta | --t)
1098 ac_prev=target_alias ;;
1099 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1100 target_alias=$ac_optarg ;;
1102 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1103 verbose=yes ;;
1105 -version | --version | --versio | --versi | --vers | -V)
1106 ac_init_version=: ;;
1108 -with-* | --with-*)
1109 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1112 { echo "$as_me: error: invalid package name: $ac_package" >&2
1113 { (exit 1); exit 1; }; }
1114 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1115 eval with_$ac_package=\$ac_optarg ;;
1117 -without-* | --without-*)
1118 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1119 # Reject names that are not valid shell variable names.
1120 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1121 { echo "$as_me: error: invalid package name: $ac_package" >&2
1122 { (exit 1); exit 1; }; }
1123 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1124 eval with_$ac_package=no ;;
1126 --x)
1127 # Obsolete; use --with-x.
1128 with_x=yes ;;
1130 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1131 | --x-incl | --x-inc | --x-in | --x-i)
1132 ac_prev=x_includes ;;
1133 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1134 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1135 x_includes=$ac_optarg ;;
1137 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1138 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1139 ac_prev=x_libraries ;;
1140 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1141 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1142 x_libraries=$ac_optarg ;;
1144 -*) { echo "$as_me: error: unrecognized option: $ac_option
1145 Try \`$0 --help' for more information." >&2
1146 { (exit 1); exit 1; }; }
1149 *=*)
1150 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1153 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1154 { (exit 1); exit 1; }; }
1155 eval $ac_envvar=\$ac_optarg
1156 export $ac_envvar ;;
1159 # FIXME: should be removed in autoconf 3.0.
1160 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1161 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1162 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1163 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1166 esac
1167 done
1169 if test -n "$ac_prev"; then
1170 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1171 { echo "$as_me: error: missing argument to $ac_option" >&2
1172 { (exit 1); exit 1; }; }
1175 # Be sure to have absolute directory names.
1176 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1177 datadir sysconfdir sharedstatedir localstatedir includedir \
1178 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1179 libdir localedir mandir
1181 eval ac_val=\$$ac_var
1182 case $ac_val in
1183 [\\/$]* | ?:[\\/]* ) continue;;
1184 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1185 esac
1186 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1187 { (exit 1); exit 1; }; }
1188 done
1190 # There might be people who depend on the old broken behavior: `$host'
1191 # used to hold the argument of --host etc.
1192 # FIXME: To remove some day.
1193 build=$build_alias
1194 host=$host_alias
1195 target=$target_alias
1197 # FIXME: To remove some day.
1198 if test "x$host_alias" != x; then
1199 if test "x$build_alias" = x; then
1200 cross_compiling=maybe
1201 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1202 If a cross compiler is detected then cross compile mode will be used." >&2
1203 elif test "x$build_alias" != "x$host_alias"; then
1204 cross_compiling=yes
1208 ac_tool_prefix=
1209 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1211 test "$silent" = yes && exec 6>/dev/null
1214 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1215 ac_ls_di=`ls -di .` &&
1216 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1217 { echo "$as_me: error: Working directory cannot be determined" >&2
1218 { (exit 1); exit 1; }; }
1219 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1220 { echo "$as_me: error: pwd does not report name of working directory" >&2
1221 { (exit 1); exit 1; }; }
1224 # Find the source files, if location was not specified.
1225 if test -z "$srcdir"; then
1226 ac_srcdir_defaulted=yes
1227 # Try the directory containing this script, then the parent directory.
1228 ac_confdir=`$as_dirname -- "$0" ||
1229 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1230 X"$0" : 'X\(//\)[^/]' \| \
1231 X"$0" : 'X\(//\)$' \| \
1232 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1233 echo X"$0" |
1234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1235 s//\1/
1238 /^X\(\/\/\)[^/].*/{
1239 s//\1/
1242 /^X\(\/\/\)$/{
1243 s//\1/
1246 /^X\(\/\).*/{
1247 s//\1/
1250 s/.*/./; q'`
1251 srcdir=$ac_confdir
1252 if test ! -r "$srcdir/$ac_unique_file"; then
1253 srcdir=..
1255 else
1256 ac_srcdir_defaulted=no
1258 if test ! -r "$srcdir/$ac_unique_file"; then
1259 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1260 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1261 { (exit 1); exit 1; }; }
1263 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1264 ac_abs_confdir=`(
1265 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1266 { (exit 1); exit 1; }; }
1267 pwd)`
1268 # When building in place, set srcdir=.
1269 if test "$ac_abs_confdir" = "$ac_pwd"; then
1270 srcdir=.
1272 # Remove unnecessary trailing slashes from srcdir.
1273 # Double slashes in file names in object file debugging info
1274 # mess up M-x gdb in Emacs.
1275 case $srcdir in
1276 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1277 esac
1278 for ac_var in $ac_precious_vars; do
1279 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1280 eval ac_env_${ac_var}_value=\$${ac_var}
1281 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1282 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1283 done
1286 # Report the --help message.
1288 if test "$ac_init_help" = "long"; then
1289 # Omit some internal or obsolete options to make the list less imposing.
1290 # This message is too long to be a string in the A/UX 3.1 sh.
1291 cat <<_ACEOF
1292 \`configure' configures PostgreSQL 8.4devel to adapt to many kinds of systems.
1294 Usage: $0 [OPTION]... [VAR=VALUE]...
1296 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1297 VAR=VALUE. See below for descriptions of some of the useful variables.
1299 Defaults for the options are specified in brackets.
1301 Configuration:
1302 -h, --help display this help and exit
1303 --help=short display options specific to this package
1304 --help=recursive display the short help of all the included packages
1305 -V, --version display version information and exit
1306 -q, --quiet, --silent do not print \`checking...' messages
1307 --cache-file=FILE cache test results in FILE [disabled]
1308 -C, --config-cache alias for \`--cache-file=config.cache'
1309 -n, --no-create do not create output files
1310 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1312 Installation directories:
1313 --prefix=PREFIX install architecture-independent files in PREFIX
1314 [$ac_default_prefix]
1315 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1316 [PREFIX]
1318 By default, \`make install' will install all the files in
1319 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1320 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1321 for instance \`--prefix=\$HOME'.
1323 For better control, use the options below.
1325 Fine tuning of the installation directories:
1326 --bindir=DIR user executables [EPREFIX/bin]
1327 --sbindir=DIR system admin executables [EPREFIX/sbin]
1328 --libexecdir=DIR program executables [EPREFIX/libexec]
1329 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1330 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1331 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1332 --libdir=DIR object code libraries [EPREFIX/lib]
1333 --includedir=DIR C header files [PREFIX/include]
1334 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1335 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1336 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1337 --infodir=DIR info documentation [DATAROOTDIR/info]
1338 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1339 --mandir=DIR man documentation [DATAROOTDIR/man]
1340 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1341 --htmldir=DIR html documentation [DOCDIR]
1342 --dvidir=DIR dvi documentation [DOCDIR]
1343 --pdfdir=DIR pdf documentation [DOCDIR]
1344 --psdir=DIR ps documentation [DOCDIR]
1345 _ACEOF
1347 cat <<\_ACEOF
1349 System types:
1350 --build=BUILD configure for building on BUILD [guessed]
1351 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1352 _ACEOF
1355 if test -n "$ac_init_help"; then
1356 case $ac_init_help in
1357 short | recursive ) echo "Configuration of PostgreSQL 8.4devel:";;
1358 esac
1359 cat <<\_ACEOF
1361 Optional Features:
1362 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1363 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1364 --disable-integer-datetimes
1365 disable 64-bit integer date/time support
1366 --enable-nls[=LANGUAGES]
1367 enable Native Language Support
1368 --disable-shared do not build shared libraries
1369 --disable-rpath do not embed shared library search path in
1370 executables
1371 --disable-spinlocks do not use spinlocks
1372 --enable-debug build with debugging symbols (-g)
1373 --enable-profiling build with profiling enabled
1374 --enable-coverage build with coverage testing instrumentation
1375 --enable-dtrace build with DTrace support
1376 --enable-depend turn on automatic dependency tracking
1377 --enable-cassert enable assertion checks (for debugging)
1378 --enable-thread-safety make client libraries thread-safe
1379 --enable-thread-safety-force
1380 force thread-safety despite thread test failure
1381 --disable-float4-byval disable float4 passed by value
1382 --disable-float8-byval disable float8 passed by value
1383 --disable-largefile omit support for large files
1385 Optional Packages:
1386 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1387 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1388 --with-template=NAME override operating system template
1389 --with-includes=DIRS look for additional header files in DIRS
1390 --with-libraries=DIRS look for additional libraries in DIRS
1391 --with-libs=DIRS alternative spelling of --with-libraries
1392 --with-pgport=PORTNUM set default port number [5432]
1393 --with-blocksize=BLOCKSIZE
1394 set table block size in kB [8]
1395 --with-segsize=SEGSIZE set table segment size in GB [1]
1396 --with-wal-blocksize=BLOCKSIZE
1397 set WAL block size in kB [8]
1398 --with-wal-segsize=SEGSIZE
1399 set WAL segment size in MB [16]
1400 --with-CC=CMD set compiler (deprecated)
1401 --with-tcl build Tcl modules (PL/Tcl)
1402 --with-tclconfig=DIR tclConfig.sh is in DIR
1403 --with-perl build Perl modules (PL/Perl)
1404 --with-python build Python modules (PL/Python)
1405 --with-gssapi build with GSSAPI support
1406 --with-krb5 build with Kerberos 5 support
1407 --with-krb-srvnam=NAME default service principal name in Kerberos
1408 [postgres]
1409 --with-pam build with PAM support
1410 --with-ldap build with LDAP support
1411 --with-bonjour build with Bonjour support
1412 --with-openssl build with OpenSSL support
1413 --without-readline do not use GNU Readline nor BSD Libedit for editing
1414 --with-libedit-preferred
1415 prefer BSD Libedit over GNU Readline
1416 --with-ossp-uuid use OSSP UUID library when building
1417 contrib/uuid-ossp
1418 --with-libxml build with XML support
1419 --with-libxslt use XSLT support when building contrib/xml2
1420 --with-system-tzdata=DIR
1421 use system time zone data in DIR
1422 --without-zlib do not use Zlib
1423 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1425 Some influential environment variables:
1426 CC C compiler command
1427 CFLAGS C compiler flags
1428 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1429 nonstandard directory <lib dir>
1430 LIBS libraries to pass to the linker, e.g. -l<library>
1431 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1432 you have headers in a nonstandard directory <include dir>
1433 CPP C preprocessor
1434 LDFLAGS_SL
1435 DOCBOOKSTYLE
1436 location of DocBook stylesheets
1438 Use these variables to override the choices made by `configure' or to help
1439 it to find libraries and programs with nonstandard names/locations.
1441 Report bugs to <pgsql-bugs@postgresql.org>.
1442 _ACEOF
1443 ac_status=$?
1446 if test "$ac_init_help" = "recursive"; then
1447 # If there are subdirs, report their specific --help.
1448 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1449 test -d "$ac_dir" || continue
1450 ac_builddir=.
1452 case "$ac_dir" in
1453 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1455 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1456 # A ".." for each directory in $ac_dir_suffix.
1457 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1458 case $ac_top_builddir_sub in
1459 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1460 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1461 esac ;;
1462 esac
1463 ac_abs_top_builddir=$ac_pwd
1464 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1465 # for backward compatibility:
1466 ac_top_builddir=$ac_top_build_prefix
1468 case $srcdir in
1469 .) # We are building in place.
1470 ac_srcdir=.
1471 ac_top_srcdir=$ac_top_builddir_sub
1472 ac_abs_top_srcdir=$ac_pwd ;;
1473 [\\/]* | ?:[\\/]* ) # Absolute name.
1474 ac_srcdir=$srcdir$ac_dir_suffix;
1475 ac_top_srcdir=$srcdir
1476 ac_abs_top_srcdir=$srcdir ;;
1477 *) # Relative name.
1478 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1479 ac_top_srcdir=$ac_top_build_prefix$srcdir
1480 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1481 esac
1482 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1484 cd "$ac_dir" || { ac_status=$?; continue; }
1485 # Check for guested configure.
1486 if test -f "$ac_srcdir/configure.gnu"; then
1487 echo &&
1488 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1489 elif test -f "$ac_srcdir/configure"; then
1490 echo &&
1491 $SHELL "$ac_srcdir/configure" --help=recursive
1492 else
1493 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1494 fi || ac_status=$?
1495 cd "$ac_pwd" || { ac_status=$?; break; }
1496 done
1499 test -n "$ac_init_help" && exit $ac_status
1500 if $ac_init_version; then
1501 cat <<\_ACEOF
1502 PostgreSQL configure 8.4devel
1503 generated by GNU Autoconf 2.61
1505 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1506 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1507 This configure script is free software; the Free Software Foundation
1508 gives unlimited permission to copy, distribute and modify it.
1510 Copyright (c) 1996-2009, PostgreSQL Global Development Group
1511 _ACEOF
1512 exit
1514 cat >config.log <<_ACEOF
1515 This file contains any messages produced by compilers while
1516 running configure, to aid debugging if configure makes a mistake.
1518 It was created by PostgreSQL $as_me 8.4devel, which was
1519 generated by GNU Autoconf 2.61. Invocation command line was
1521 $ $0 $@
1523 _ACEOF
1524 exec 5>>config.log
1526 cat <<_ASUNAME
1527 ## --------- ##
1528 ## Platform. ##
1529 ## --------- ##
1531 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1532 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1533 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1534 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1535 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1537 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1538 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1540 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1541 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1542 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1543 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1544 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1545 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1546 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1548 _ASUNAME
1550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1551 for as_dir in $PATH
1553 IFS=$as_save_IFS
1554 test -z "$as_dir" && as_dir=.
1555 echo "PATH: $as_dir"
1556 done
1557 IFS=$as_save_IFS
1559 } >&5
1561 cat >&5 <<_ACEOF
1564 ## ----------- ##
1565 ## Core tests. ##
1566 ## ----------- ##
1568 _ACEOF
1571 # Keep a trace of the command line.
1572 # Strip out --no-create and --no-recursion so they do not pile up.
1573 # Strip out --silent because we don't want to record it for future runs.
1574 # Also quote any args containing shell meta-characters.
1575 # Make two passes to allow for proper duplicate-argument suppression.
1576 ac_configure_args=
1577 ac_configure_args0=
1578 ac_configure_args1=
1579 ac_must_keep_next=false
1580 for ac_pass in 1 2
1582 for ac_arg
1584 case $ac_arg in
1585 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1586 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1587 | -silent | --silent | --silen | --sile | --sil)
1588 continue ;;
1589 *\'*)
1590 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1591 esac
1592 case $ac_pass in
1593 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1595 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1596 if test $ac_must_keep_next = true; then
1597 ac_must_keep_next=false # Got value, back to normal.
1598 else
1599 case $ac_arg in
1600 *=* | --config-cache | -C | -disable-* | --disable-* \
1601 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1602 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1603 | -with-* | --with-* | -without-* | --without-* | --x)
1604 case "$ac_configure_args0 " in
1605 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1606 esac
1608 -* ) ac_must_keep_next=true ;;
1609 esac
1611 ac_configure_args="$ac_configure_args '$ac_arg'"
1613 esac
1614 done
1615 done
1616 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1617 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1619 # When interrupted or exit'd, cleanup temporary files, and complete
1620 # config.log. We remove comments because anyway the quotes in there
1621 # would cause problems or look ugly.
1622 # WARNING: Use '\'' to represent an apostrophe within the trap.
1623 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1624 trap 'exit_status=$?
1625 # Save into config.log some information that might help in debugging.
1627 echo
1629 cat <<\_ASBOX
1630 ## ---------------- ##
1631 ## Cache variables. ##
1632 ## ---------------- ##
1633 _ASBOX
1634 echo
1635 # The following way of writing the cache mishandles newlines in values,
1637 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1638 eval ac_val=\$$ac_var
1639 case $ac_val in #(
1640 *${as_nl}*)
1641 case $ac_var in #(
1642 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1643 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1644 esac
1645 case $ac_var in #(
1646 _ | IFS | as_nl) ;; #(
1647 *) $as_unset $ac_var ;;
1648 esac ;;
1649 esac
1650 done
1651 (set) 2>&1 |
1652 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1653 *${as_nl}ac_space=\ *)
1654 sed -n \
1655 "s/'\''/'\''\\\\'\'''\''/g;
1656 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1657 ;; #(
1659 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1661 esac |
1662 sort
1664 echo
1666 cat <<\_ASBOX
1667 ## ----------------- ##
1668 ## Output variables. ##
1669 ## ----------------- ##
1670 _ASBOX
1671 echo
1672 for ac_var in $ac_subst_vars
1674 eval ac_val=\$$ac_var
1675 case $ac_val in
1676 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1677 esac
1678 echo "$ac_var='\''$ac_val'\''"
1679 done | sort
1680 echo
1682 if test -n "$ac_subst_files"; then
1683 cat <<\_ASBOX
1684 ## ------------------- ##
1685 ## File substitutions. ##
1686 ## ------------------- ##
1687 _ASBOX
1688 echo
1689 for ac_var in $ac_subst_files
1691 eval ac_val=\$$ac_var
1692 case $ac_val in
1693 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1694 esac
1695 echo "$ac_var='\''$ac_val'\''"
1696 done | sort
1697 echo
1700 if test -s confdefs.h; then
1701 cat <<\_ASBOX
1702 ## ----------- ##
1703 ## confdefs.h. ##
1704 ## ----------- ##
1705 _ASBOX
1706 echo
1707 cat confdefs.h
1708 echo
1710 test "$ac_signal" != 0 &&
1711 echo "$as_me: caught signal $ac_signal"
1712 echo "$as_me: exit $exit_status"
1713 } >&5
1714 rm -f core *.core core.conftest.* &&
1715 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1716 exit $exit_status
1718 for ac_signal in 1 2 13 15; do
1719 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1720 done
1721 ac_signal=0
1723 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1724 rm -f -r conftest* confdefs.h
1726 # Predefined preprocessor variables.
1728 cat >>confdefs.h <<_ACEOF
1729 #define PACKAGE_NAME "$PACKAGE_NAME"
1730 _ACEOF
1733 cat >>confdefs.h <<_ACEOF
1734 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1735 _ACEOF
1738 cat >>confdefs.h <<_ACEOF
1739 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1740 _ACEOF
1743 cat >>confdefs.h <<_ACEOF
1744 #define PACKAGE_STRING "$PACKAGE_STRING"
1745 _ACEOF
1748 cat >>confdefs.h <<_ACEOF
1749 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1750 _ACEOF
1753 # Let the site file select an alternate cache file if it wants to.
1754 # Prefer explicitly selected file to automatically selected ones.
1755 if test -n "$CONFIG_SITE"; then
1756 set x "$CONFIG_SITE"
1757 elif test "x$prefix" != xNONE; then
1758 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1759 else
1760 set x "$ac_default_prefix/share/config.site" \
1761 "$ac_default_prefix/etc/config.site"
1763 shift
1764 for ac_site_file
1766 if test -r "$ac_site_file"; then
1767 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1768 echo "$as_me: loading site script $ac_site_file" >&6;}
1769 sed 's/^/| /' "$ac_site_file" >&5
1770 . "$ac_site_file"
1772 done
1774 if test -r "$cache_file"; then
1775 # Some versions of bash will fail to source /dev/null (special
1776 # files actually), so we avoid doing that.
1777 if test -f "$cache_file"; then
1778 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1779 echo "$as_me: loading cache $cache_file" >&6;}
1780 case $cache_file in
1781 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1782 *) . "./$cache_file";;
1783 esac
1785 else
1786 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1787 echo "$as_me: creating cache $cache_file" >&6;}
1788 >$cache_file
1791 # Check that the precious variables saved in the cache have kept the same
1792 # value.
1793 ac_cache_corrupted=false
1794 for ac_var in $ac_precious_vars; do
1795 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1796 eval ac_new_set=\$ac_env_${ac_var}_set
1797 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1798 eval ac_new_val=\$ac_env_${ac_var}_value
1799 case $ac_old_set,$ac_new_set in
1800 set,)
1801 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1802 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1803 ac_cache_corrupted=: ;;
1804 ,set)
1805 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1806 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1807 ac_cache_corrupted=: ;;
1808 ,);;
1810 if test "x$ac_old_val" != "x$ac_new_val"; then
1811 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1812 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1813 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1814 echo "$as_me: former value: $ac_old_val" >&2;}
1815 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1816 echo "$as_me: current value: $ac_new_val" >&2;}
1817 ac_cache_corrupted=:
1818 fi;;
1819 esac
1820 # Pass precious variables to config.status.
1821 if test "$ac_new_set" = set; then
1822 case $ac_new_val in
1823 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1824 *) ac_arg=$ac_var=$ac_new_val ;;
1825 esac
1826 case " $ac_configure_args " in
1827 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1828 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1829 esac
1831 done
1832 if $ac_cache_corrupted; then
1833 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1834 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1835 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1836 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1837 { (exit 1); exit 1; }; }
1864 ac_ext=c
1865 ac_cpp='$CPP $CPPFLAGS'
1866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1875 ac_aux_dir=
1876 for ac_dir in config "$srcdir"/config; do
1877 if test -f "$ac_dir/install-sh"; then
1878 ac_aux_dir=$ac_dir
1879 ac_install_sh="$ac_aux_dir/install-sh -c"
1880 break
1881 elif test -f "$ac_dir/install.sh"; then
1882 ac_aux_dir=$ac_dir
1883 ac_install_sh="$ac_aux_dir/install.sh -c"
1884 break
1885 elif test -f "$ac_dir/shtool"; then
1886 ac_aux_dir=$ac_dir
1887 ac_install_sh="$ac_aux_dir/shtool install -c"
1888 break
1890 done
1891 if test -z "$ac_aux_dir"; then
1892 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1893 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1894 { (exit 1); exit 1; }; }
1897 # These three variables are undocumented and unsupported,
1898 # and are intended to be withdrawn in a future Autoconf release.
1899 # They can cause serious problems if a builder's source tree is in a directory
1900 # whose full name contains unusual characters.
1901 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1902 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1903 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1907 configure_args=$ac_configure_args
1911 cat >>confdefs.h <<_ACEOF
1912 #define PG_VERSION "$PACKAGE_VERSION"
1913 _ACEOF
1915 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
1918 cat >>confdefs.h <<_ACEOF
1919 #define PG_MAJORVERSION "$PG_MAJORVERSION"
1920 _ACEOF
1923 # Make sure we can run config.sub.
1924 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1925 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1926 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1927 { (exit 1); exit 1; }; }
1929 { echo "$as_me:$LINENO: checking build system type" >&5
1930 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1931 if test "${ac_cv_build+set}" = set; then
1932 echo $ECHO_N "(cached) $ECHO_C" >&6
1933 else
1934 ac_build_alias=$build_alias
1935 test "x$ac_build_alias" = x &&
1936 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1937 test "x$ac_build_alias" = x &&
1938 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1939 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1940 { (exit 1); exit 1; }; }
1941 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1942 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1943 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1944 { (exit 1); exit 1; }; }
1947 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1948 echo "${ECHO_T}$ac_cv_build" >&6; }
1949 case $ac_cv_build in
1950 *-*-*) ;;
1951 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1952 echo "$as_me: error: invalid value of canonical build" >&2;}
1953 { (exit 1); exit 1; }; };;
1954 esac
1955 build=$ac_cv_build
1956 ac_save_IFS=$IFS; IFS='-'
1957 set x $ac_cv_build
1958 shift
1959 build_cpu=$1
1960 build_vendor=$2
1961 shift; shift
1962 # Remember, the first character of IFS is used to create $*,
1963 # except with old shells:
1964 build_os=$*
1965 IFS=$ac_save_IFS
1966 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1969 { echo "$as_me:$LINENO: checking host system type" >&5
1970 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1971 if test "${ac_cv_host+set}" = set; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
1973 else
1974 if test "x$host_alias" = x; then
1975 ac_cv_host=$ac_cv_build
1976 else
1977 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1978 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1979 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1980 { (exit 1); exit 1; }; }
1984 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1985 echo "${ECHO_T}$ac_cv_host" >&6; }
1986 case $ac_cv_host in
1987 *-*-*) ;;
1988 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1989 echo "$as_me: error: invalid value of canonical host" >&2;}
1990 { (exit 1); exit 1; }; };;
1991 esac
1992 host=$ac_cv_host
1993 ac_save_IFS=$IFS; IFS='-'
1994 set x $ac_cv_host
1995 shift
1996 host_cpu=$1
1997 host_vendor=$2
1998 shift; shift
1999 # Remember, the first character of IFS is used to create $*,
2000 # except with old shells:
2001 host_os=$*
2002 IFS=$ac_save_IFS
2003 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2007 template=
2008 { echo "$as_me:$LINENO: checking which template to use" >&5
2009 echo $ECHO_N "checking which template to use... $ECHO_C" >&6; }
2012 pgac_args="$pgac_args with_template"
2015 # Check whether --with-template was given.
2016 if test "${with_template+set}" = set; then
2017 withval=$with_template;
2018 case $withval in
2019 yes)
2020 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2021 echo "$as_me: error: argument required for --with-template option" >&2;}
2022 { (exit 1); exit 1; }; }
2025 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2026 echo "$as_me: error: argument required for --with-template option" >&2;}
2027 { (exit 1); exit 1; }; }
2031 case $withval in
2032 list) echo; ls "$srcdir/src/template"; exit;;
2033 *) if test -f "$srcdir/src/template/$with_template" ; then
2034 template=$withval
2035 else
2036 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2037 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2038 { (exit 1); exit 1; }; }
2039 fi;;
2040 esac
2043 esac
2045 else
2047 # --with-template not given
2049 case $host_os in
2050 aix*) template=aix ;;
2051 bsdi*) template=bsdi ;;
2052 cygwin*) template=cygwin ;;
2053 darwin*) template=darwin ;;
2054 dgux*) template=dgux ;;
2055 freebsd*) template=freebsd ;;
2056 hpux*) template=hpux ;;
2057 irix*) template=irix ;;
2058 linux*|gnu*|k*bsd*-gnu)
2059 template=linux ;;
2060 mingw*) template=win32 ;;
2061 netbsd*) template=netbsd ;;
2062 nextstep*) template=nextstep ;;
2063 openbsd*) template=openbsd ;;
2064 osf*) template=osf ;;
2065 sco*) template=sco ;;
2066 solaris*) template=solaris ;;
2067 sunos*) template=sunos4 ;;
2068 sysv4.2*)
2069 case $host_vendor in
2070 univel) template=univel ;;
2071 esac ;;
2072 sysv4*) template=svr4 ;;
2073 sysv5*) template=unixware ;;
2074 ultrix*) template=ultrix4 ;;
2075 esac
2077 if test x"$template" = x"" ; then
2078 { { echo "$as_me:$LINENO: error:
2079 *******************************************************************
2080 PostgreSQL has apparently not been ported to your platform yet.
2081 To try a manual configuration, look into the src/template directory
2082 for a similar platform and use the '--with-template=' option.
2084 Please also contact <pgsql-bugs@postgresql.org> to see about
2085 rectifying this. Include the above 'checking host system type...'
2086 line.
2087 *******************************************************************
2088 " >&5
2089 echo "$as_me: error:
2090 *******************************************************************
2091 PostgreSQL has apparently not been ported to your platform yet.
2092 To try a manual configuration, look into the src/template directory
2093 for a similar platform and use the '--with-template=' option.
2095 Please also contact <pgsql-bugs@postgresql.org> to see about
2096 rectifying this. Include the above 'checking host system type...'
2097 line.
2098 *******************************************************************
2099 " >&2;}
2100 { (exit 1); exit 1; }; }
2108 { echo "$as_me:$LINENO: result: $template" >&5
2109 echo "${ECHO_T}$template" >&6; }
2111 PORTNAME=$template
2114 # Initialize default assumption that we do not need separate assembly code
2115 # for TAS (test-and-set). This can be overridden by the template file
2116 # when it's executed.
2117 need_tas=no
2118 tas_file=dummy.s
2123 ## Command line options
2127 # Add non-standard directories to the include path
2130 pgac_args="$pgac_args with_includes"
2133 # Check whether --with-includes was given.
2134 if test "${with_includes+set}" = set; then
2135 withval=$with_includes;
2136 case $withval in
2137 yes)
2138 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2139 echo "$as_me: error: argument required for --with-includes option" >&2;}
2140 { (exit 1); exit 1; }; }
2143 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2144 echo "$as_me: error: argument required for --with-includes option" >&2;}
2145 { (exit 1); exit 1; }; }
2150 esac
2158 # Add non-standard directories to the library search path
2161 pgac_args="$pgac_args with_libraries"
2164 # Check whether --with-libraries was given.
2165 if test "${with_libraries+set}" = set; then
2166 withval=$with_libraries;
2167 case $withval in
2168 yes)
2169 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2170 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2171 { (exit 1); exit 1; }; }
2174 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2175 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2176 { (exit 1); exit 1; }; }
2179 LIBRARY_DIRS=$withval
2181 esac
2188 pgac_args="$pgac_args with_libs"
2191 # Check whether --with-libs was given.
2192 if test "${with_libs+set}" = set; then
2193 withval=$with_libs;
2194 case $withval in
2195 yes)
2196 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2197 echo "$as_me: error: argument required for --with-libs option" >&2;}
2198 { (exit 1); exit 1; }; }
2201 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2202 echo "$as_me: error: argument required for --with-libs option" >&2;}
2203 { (exit 1); exit 1; }; }
2206 LIBRARY_DIRS=$withval
2208 esac
2216 # 64-bit integer date/time storage: enabled by default.
2218 { echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2219 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6; }
2221 pgac_args="$pgac_args enable_integer_datetimes"
2223 # Check whether --enable-integer-datetimes was given.
2224 if test "${enable_integer_datetimes+set}" = set; then
2225 enableval=$enable_integer_datetimes;
2226 case $enableval in
2227 yes)
2229 cat >>confdefs.h <<\_ACEOF
2230 #define USE_INTEGER_DATETIMES 1
2231 _ACEOF
2238 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2239 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2240 { (exit 1); exit 1; }; }
2242 esac
2244 else
2245 enable_integer_datetimes=yes
2247 cat >>confdefs.h <<\_ACEOF
2248 #define USE_INTEGER_DATETIMES 1
2249 _ACEOF
2254 { echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2255 echo "${ECHO_T}$enable_integer_datetimes" >&6; }
2259 # NLS
2261 { echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2262 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6; }
2264 pgac_args="$pgac_args enable_nls"
2266 # Check whether --enable-nls was given.
2267 if test "${enable_nls+set}" = set; then
2268 enableval=$enable_nls;
2269 case $enableval in
2270 yes)
2277 enable_nls=yes
2278 WANTED_LANGUAGES=$enableval
2280 esac
2282 else
2283 enable_nls=no
2288 if test "$enable_nls" = yes; then
2290 cat >>confdefs.h <<\_ACEOF
2291 #define ENABLE_NLS 1
2292 _ACEOF
2296 { echo "$as_me:$LINENO: result: $enable_nls" >&5
2297 echo "${ECHO_T}$enable_nls" >&6; }
2302 # Default port number (--with-pgport), default 5432
2304 { echo "$as_me:$LINENO: checking for default port number" >&5
2305 echo $ECHO_N "checking for default port number... $ECHO_C" >&6; }
2307 pgac_args="$pgac_args with_pgport"
2310 # Check whether --with-pgport was given.
2311 if test "${with_pgport+set}" = set; then
2312 withval=$with_pgport;
2313 case $withval in
2314 yes)
2315 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2316 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2317 { (exit 1); exit 1; }; }
2320 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2321 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2322 { (exit 1); exit 1; }; }
2325 default_port=$withval
2327 esac
2329 else
2330 default_port=5432
2334 { echo "$as_me:$LINENO: result: $default_port" >&5
2335 echo "${ECHO_T}$default_port" >&6; }
2336 # Need both of these because some places want an integer and some a string
2338 cat >>confdefs.h <<_ACEOF
2339 #define DEF_PGPORT ${default_port}
2340 _ACEOF
2343 cat >>confdefs.h <<_ACEOF
2344 #define DEF_PGPORT_STR "${default_port}"
2345 _ACEOF
2350 # Option to disable shared libraries
2353 pgac_args="$pgac_args enable_shared"
2355 # Check whether --enable-shared was given.
2356 if test "${enable_shared+set}" = set; then
2357 enableval=$enable_shared;
2358 case $enableval in
2359 yes)
2366 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2367 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2368 { (exit 1); exit 1; }; }
2370 esac
2372 else
2373 enable_shared=yes
2381 # '-rpath'-like feature can be disabled
2384 pgac_args="$pgac_args enable_rpath"
2386 # Check whether --enable-rpath was given.
2387 if test "${enable_rpath+set}" = set; then
2388 enableval=$enable_rpath;
2389 case $enableval in
2390 yes)
2397 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2398 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2399 { (exit 1); exit 1; }; }
2401 esac
2403 else
2404 enable_rpath=yes
2412 # Spinlocks
2415 pgac_args="$pgac_args enable_spinlocks"
2417 # Check whether --enable-spinlocks was given.
2418 if test "${enable_spinlocks+set}" = set; then
2419 enableval=$enable_spinlocks;
2420 case $enableval in
2421 yes)
2428 { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2429 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2430 { (exit 1); exit 1; }; }
2432 esac
2434 else
2435 enable_spinlocks=yes
2442 # --enable-debug adds -g to compiler flags
2445 pgac_args="$pgac_args enable_debug"
2447 # Check whether --enable-debug was given.
2448 if test "${enable_debug+set}" = set; then
2449 enableval=$enable_debug;
2450 case $enableval in
2451 yes)
2458 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2459 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2460 { (exit 1); exit 1; }; }
2462 esac
2464 else
2465 enable_debug=no
2473 # --enable-profiling enables gcc profiling
2476 pgac_args="$pgac_args enable_profiling"
2478 # Check whether --enable-profiling was given.
2479 if test "${enable_profiling+set}" = set; then
2480 enableval=$enable_profiling;
2481 case $enableval in
2482 yes)
2489 { { echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2490 echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2491 { (exit 1); exit 1; }; }
2493 esac
2495 else
2496 enable_profiling=no
2504 # --enable-coverage enables generation of code coverage metrics with gcov
2507 pgac_args="$pgac_args enable_coverage"
2509 # Check whether --enable-coverage was given.
2510 if test "${enable_coverage+set}" = set; then
2511 enableval=$enable_coverage;
2512 case $enableval in
2513 yes)
2514 for ac_prog in gcov
2516 # Extract the first word of "$ac_prog", so it can be a program name with args.
2517 set dummy $ac_prog; ac_word=$2
2518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2520 if test "${ac_cv_prog_GCOV+set}" = set; then
2521 echo $ECHO_N "(cached) $ECHO_C" >&6
2522 else
2523 if test -n "$GCOV"; then
2524 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2525 else
2526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527 for as_dir in $PATH
2529 IFS=$as_save_IFS
2530 test -z "$as_dir" && as_dir=.
2531 for ac_exec_ext in '' $ac_executable_extensions; do
2532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2533 ac_cv_prog_GCOV="$ac_prog"
2534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2535 break 2
2537 done
2538 done
2539 IFS=$as_save_IFS
2543 GCOV=$ac_cv_prog_GCOV
2544 if test -n "$GCOV"; then
2545 { echo "$as_me:$LINENO: result: $GCOV" >&5
2546 echo "${ECHO_T}$GCOV" >&6; }
2547 else
2548 { echo "$as_me:$LINENO: result: no" >&5
2549 echo "${ECHO_T}no" >&6; }
2553 test -n "$GCOV" && break
2554 done
2556 if test -z "$GCOV"; then
2557 { { echo "$as_me:$LINENO: error: gcov not found" >&5
2558 echo "$as_me: error: gcov not found" >&2;}
2559 { (exit 1); exit 1; }; }
2561 for ac_prog in lcov
2563 # Extract the first word of "$ac_prog", so it can be a program name with args.
2564 set dummy $ac_prog; ac_word=$2
2565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2567 if test "${ac_cv_prog_LCOV+set}" = set; then
2568 echo $ECHO_N "(cached) $ECHO_C" >&6
2569 else
2570 if test -n "$LCOV"; then
2571 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2572 else
2573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574 for as_dir in $PATH
2576 IFS=$as_save_IFS
2577 test -z "$as_dir" && as_dir=.
2578 for ac_exec_ext in '' $ac_executable_extensions; do
2579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2580 ac_cv_prog_LCOV="$ac_prog"
2581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2582 break 2
2584 done
2585 done
2586 IFS=$as_save_IFS
2590 LCOV=$ac_cv_prog_LCOV
2591 if test -n "$LCOV"; then
2592 { echo "$as_me:$LINENO: result: $LCOV" >&5
2593 echo "${ECHO_T}$LCOV" >&6; }
2594 else
2595 { echo "$as_me:$LINENO: result: no" >&5
2596 echo "${ECHO_T}no" >&6; }
2600 test -n "$LCOV" && break
2601 done
2603 if test -z "$LCOV"; then
2604 { { echo "$as_me:$LINENO: error: lcov not found" >&5
2605 echo "$as_me: error: lcov not found" >&2;}
2606 { (exit 1); exit 1; }; }
2608 for ac_prog in genhtml
2610 # Extract the first word of "$ac_prog", so it can be a program name with args.
2611 set dummy $ac_prog; ac_word=$2
2612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2614 if test "${ac_cv_prog_GENHTML+set}" = set; then
2615 echo $ECHO_N "(cached) $ECHO_C" >&6
2616 else
2617 if test -n "$GENHTML"; then
2618 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2619 else
2620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621 for as_dir in $PATH
2623 IFS=$as_save_IFS
2624 test -z "$as_dir" && as_dir=.
2625 for ac_exec_ext in '' $ac_executable_extensions; do
2626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2627 ac_cv_prog_GENHTML="$ac_prog"
2628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2629 break 2
2631 done
2632 done
2633 IFS=$as_save_IFS
2637 GENHTML=$ac_cv_prog_GENHTML
2638 if test -n "$GENHTML"; then
2639 { echo "$as_me:$LINENO: result: $GENHTML" >&5
2640 echo "${ECHO_T}$GENHTML" >&6; }
2641 else
2642 { echo "$as_me:$LINENO: result: no" >&5
2643 echo "${ECHO_T}no" >&6; }
2647 test -n "$GENHTML" && break
2648 done
2650 if test -z "$GENHTML"; then
2651 { { echo "$as_me:$LINENO: error: genhtml not found" >&5
2652 echo "$as_me: error: genhtml not found" >&2;}
2653 { (exit 1); exit 1; }; }
2660 { { echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2661 echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2662 { (exit 1); exit 1; }; }
2664 esac
2666 else
2667 enable_coverage=no
2675 # DTrace
2678 pgac_args="$pgac_args enable_dtrace"
2680 # Check whether --enable-dtrace was given.
2681 if test "${enable_dtrace+set}" = set; then
2682 enableval=$enable_dtrace;
2683 case $enableval in
2684 yes)
2686 cat >>confdefs.h <<\_ACEOF
2687 #define ENABLE_DTRACE 1
2688 _ACEOF
2690 for ac_prog in dtrace
2692 # Extract the first word of "$ac_prog", so it can be a program name with args.
2693 set dummy $ac_prog; ac_word=$2
2694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2696 if test "${ac_cv_prog_DTRACE+set}" = set; then
2697 echo $ECHO_N "(cached) $ECHO_C" >&6
2698 else
2699 if test -n "$DTRACE"; then
2700 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2701 else
2702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703 for as_dir in $PATH
2705 IFS=$as_save_IFS
2706 test -z "$as_dir" && as_dir=.
2707 for ac_exec_ext in '' $ac_executable_extensions; do
2708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2709 ac_cv_prog_DTRACE="$ac_prog"
2710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2711 break 2
2713 done
2714 done
2715 IFS=$as_save_IFS
2719 DTRACE=$ac_cv_prog_DTRACE
2720 if test -n "$DTRACE"; then
2721 { echo "$as_me:$LINENO: result: $DTRACE" >&5
2722 echo "${ECHO_T}$DTRACE" >&6; }
2723 else
2724 { echo "$as_me:$LINENO: result: no" >&5
2725 echo "${ECHO_T}no" >&6; }
2729 test -n "$DTRACE" && break
2730 done
2732 if test -z "$DTRACE"; then
2733 { { echo "$as_me:$LINENO: error: dtrace not found" >&5
2734 echo "$as_me: error: dtrace not found" >&2;}
2735 { (exit 1); exit 1; }; }
2743 { { echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2744 echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2745 { (exit 1); exit 1; }; }
2747 esac
2749 else
2750 enable_dtrace=no
2758 # Block size
2760 { echo "$as_me:$LINENO: checking for block size" >&5
2761 echo $ECHO_N "checking for block size... $ECHO_C" >&6; }
2763 pgac_args="$pgac_args with_blocksize"
2766 # Check whether --with-blocksize was given.
2767 if test "${with_blocksize+set}" = set; then
2768 withval=$with_blocksize;
2769 case $withval in
2770 yes)
2771 { { echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2772 echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2773 { (exit 1); exit 1; }; }
2776 { { echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2777 echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2778 { (exit 1); exit 1; }; }
2781 blocksize=$withval
2783 esac
2785 else
2786 blocksize=8
2790 case ${blocksize} in
2791 1) BLCKSZ=1024;;
2792 2) BLCKSZ=2048;;
2793 4) BLCKSZ=4096;;
2794 8) BLCKSZ=8192;;
2795 16) BLCKSZ=16384;;
2796 32) BLCKSZ=32768;;
2797 *) { { echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2798 echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2799 { (exit 1); exit 1; }; }
2800 esac
2801 { echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2802 echo "${ECHO_T}${blocksize}kB" >&6; }
2805 cat >>confdefs.h <<_ACEOF
2806 #define BLCKSZ ${BLCKSZ}
2807 _ACEOF
2811 # Relation segment size
2813 { echo "$as_me:$LINENO: checking for segment size" >&5
2814 echo $ECHO_N "checking for segment size... $ECHO_C" >&6; }
2816 pgac_args="$pgac_args with_segsize"
2819 # Check whether --with-segsize was given.
2820 if test "${with_segsize+set}" = set; then
2821 withval=$with_segsize;
2822 case $withval in
2823 yes)
2824 { { echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2825 echo "$as_me: error: argument required for --with-segsize option" >&2;}
2826 { (exit 1); exit 1; }; }
2829 { { echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2830 echo "$as_me: error: argument required for --with-segsize option" >&2;}
2831 { (exit 1); exit 1; }; }
2834 segsize=$withval
2836 esac
2838 else
2839 segsize=1
2843 # this expression is set up to avoid unnecessary integer overflow
2844 # blocksize is already guaranteed to be a factor of 1024
2845 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2846 test $? -eq 0 || exit 1
2847 { echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2848 echo "${ECHO_T}${segsize}GB" >&6; }
2851 cat >>confdefs.h <<_ACEOF
2852 #define RELSEG_SIZE ${RELSEG_SIZE}
2853 _ACEOF
2857 # WAL block size
2859 { echo "$as_me:$LINENO: checking for WAL block size" >&5
2860 echo $ECHO_N "checking for WAL block size... $ECHO_C" >&6; }
2862 pgac_args="$pgac_args with_wal_blocksize"
2865 # Check whether --with-wal-blocksize was given.
2866 if test "${with_wal_blocksize+set}" = set; then
2867 withval=$with_wal_blocksize;
2868 case $withval in
2869 yes)
2870 { { echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2871 echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2872 { (exit 1); exit 1; }; }
2875 { { echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2876 echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2877 { (exit 1); exit 1; }; }
2880 wal_blocksize=$withval
2882 esac
2884 else
2885 wal_blocksize=8
2889 case ${wal_blocksize} in
2890 1) XLOG_BLCKSZ=1024;;
2891 2) XLOG_BLCKSZ=2048;;
2892 4) XLOG_BLCKSZ=4096;;
2893 8) XLOG_BLCKSZ=8192;;
2894 16) XLOG_BLCKSZ=16384;;
2895 32) XLOG_BLCKSZ=32768;;
2896 64) XLOG_BLCKSZ=65536;;
2897 *) { { echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
2898 echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2899 { (exit 1); exit 1; }; }
2900 esac
2901 { echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
2902 echo "${ECHO_T}${wal_blocksize}kB" >&6; }
2905 cat >>confdefs.h <<_ACEOF
2906 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
2907 _ACEOF
2911 # WAL segment size
2913 { echo "$as_me:$LINENO: checking for WAL segment size" >&5
2914 echo $ECHO_N "checking for WAL segment size... $ECHO_C" >&6; }
2916 pgac_args="$pgac_args with_wal_segsize"
2919 # Check whether --with-wal-segsize was given.
2920 if test "${with_wal_segsize+set}" = set; then
2921 withval=$with_wal_segsize;
2922 case $withval in
2923 yes)
2924 { { echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
2925 echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
2926 { (exit 1); exit 1; }; }
2929 { { echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
2930 echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
2931 { (exit 1); exit 1; }; }
2934 wal_segsize=$withval
2936 esac
2938 else
2939 wal_segsize=16
2943 case ${wal_segsize} in
2944 1) ;;
2945 2) ;;
2946 4) ;;
2947 8) ;;
2948 16) ;;
2949 32) ;;
2950 64) ;;
2951 *) { { echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
2952 echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2953 { (exit 1); exit 1; }; }
2954 esac
2955 { echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
2956 echo "${ECHO_T}${wal_segsize}MB" >&6; }
2959 cat >>confdefs.h <<_ACEOF
2960 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
2961 _ACEOF
2965 # C compiler
2968 # For historical reasons you can also use --with-CC to specify the C compiler
2969 # to use, although the standard way to do this is to set the CC environment
2970 # variable.
2972 pgac_args="$pgac_args with_CC"
2975 # Check whether --with-CC was given.
2976 if test "${with_CC+set}" = set; then
2977 withval=$with_CC;
2978 case $withval in
2979 yes)
2980 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2981 echo "$as_me: error: argument required for --with-CC option" >&2;}
2982 { (exit 1); exit 1; }; }
2985 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2986 echo "$as_me: error: argument required for --with-CC option" >&2;}
2987 { (exit 1); exit 1; }; }
2990 CC=$with_CC
2992 esac
2998 case $template in
2999 aix) pgac_cc_list="gcc xlc";;
3000 irix) pgac_cc_list="cc";; # no gcc
3001 *) pgac_cc_list="gcc cc";;
3002 esac
3004 ac_ext=c
3005 ac_cpp='$CPP $CPPFLAGS'
3006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3009 if test -n "$ac_tool_prefix"; then
3010 for ac_prog in $pgac_cc_list
3012 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3013 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3016 if test "${ac_cv_prog_CC+set}" = set; then
3017 echo $ECHO_N "(cached) $ECHO_C" >&6
3018 else
3019 if test -n "$CC"; then
3020 ac_cv_prog_CC="$CC" # Let the user override the test.
3021 else
3022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023 for as_dir in $PATH
3025 IFS=$as_save_IFS
3026 test -z "$as_dir" && as_dir=.
3027 for ac_exec_ext in '' $ac_executable_extensions; do
3028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3029 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3031 break 2
3033 done
3034 done
3035 IFS=$as_save_IFS
3039 CC=$ac_cv_prog_CC
3040 if test -n "$CC"; then
3041 { echo "$as_me:$LINENO: result: $CC" >&5
3042 echo "${ECHO_T}$CC" >&6; }
3043 else
3044 { echo "$as_me:$LINENO: result: no" >&5
3045 echo "${ECHO_T}no" >&6; }
3049 test -n "$CC" && break
3050 done
3052 if test -z "$CC"; then
3053 ac_ct_CC=$CC
3054 for ac_prog in $pgac_cc_list
3056 # Extract the first word of "$ac_prog", so it can be a program name with args.
3057 set dummy $ac_prog; ac_word=$2
3058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3060 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3061 echo $ECHO_N "(cached) $ECHO_C" >&6
3062 else
3063 if test -n "$ac_ct_CC"; then
3064 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3065 else
3066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067 for as_dir in $PATH
3069 IFS=$as_save_IFS
3070 test -z "$as_dir" && as_dir=.
3071 for ac_exec_ext in '' $ac_executable_extensions; do
3072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3073 ac_cv_prog_ac_ct_CC="$ac_prog"
3074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3075 break 2
3077 done
3078 done
3079 IFS=$as_save_IFS
3083 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3084 if test -n "$ac_ct_CC"; then
3085 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3086 echo "${ECHO_T}$ac_ct_CC" >&6; }
3087 else
3088 { echo "$as_me:$LINENO: result: no" >&5
3089 echo "${ECHO_T}no" >&6; }
3093 test -n "$ac_ct_CC" && break
3094 done
3096 if test "x$ac_ct_CC" = x; then
3097 CC=""
3098 else
3099 case $cross_compiling:$ac_tool_warned in
3100 yes:)
3101 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3102 whose name does not start with the host triplet. If you think this
3103 configuration is useful to you, please write to autoconf@gnu.org." >&5
3104 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3105 whose name does not start with the host triplet. If you think this
3106 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3107 ac_tool_warned=yes ;;
3108 esac
3109 CC=$ac_ct_CC
3114 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3115 See \`config.log' for more details." >&5
3116 echo "$as_me: error: no acceptable C compiler found in \$PATH
3117 See \`config.log' for more details." >&2;}
3118 { (exit 1); exit 1; }; }
3120 # Provide some information about the compiler.
3121 echo "$as_me:$LINENO: checking for C compiler version" >&5
3122 ac_compiler=`set X $ac_compile; echo $2`
3123 { (ac_try="$ac_compiler --version >&5"
3124 case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3127 esac
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129 (eval "$ac_compiler --version >&5") 2>&5
3130 ac_status=$?
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); }
3133 { (ac_try="$ac_compiler -v >&5"
3134 case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3137 esac
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_compiler -v >&5") 2>&5
3140 ac_status=$?
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); }
3143 { (ac_try="$ac_compiler -V >&5"
3144 case "(($ac_try" in
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3147 esac
3148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3149 (eval "$ac_compiler -V >&5") 2>&5
3150 ac_status=$?
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); }
3154 cat >conftest.$ac_ext <<_ACEOF
3155 /* confdefs.h. */
3156 _ACEOF
3157 cat confdefs.h >>conftest.$ac_ext
3158 cat >>conftest.$ac_ext <<_ACEOF
3159 /* end confdefs.h. */
3162 main ()
3166 return 0;
3168 _ACEOF
3169 ac_clean_files_save=$ac_clean_files
3170 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3171 # Try to create an executable without -o first, disregard a.out.
3172 # It will help us diagnose broken compilers, and finding out an intuition
3173 # of exeext.
3174 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3175 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3176 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3178 # List of possible output files, starting from the most likely.
3179 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3180 # only as a last resort. b.out is created by i960 compilers.
3181 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3183 # The IRIX 6 linker writes into existing files which may not be
3184 # executable, retaining their permissions. Remove them first so a
3185 # subsequent execution test works.
3186 ac_rmfiles=
3187 for ac_file in $ac_files
3189 case $ac_file in
3190 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3191 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3192 esac
3193 done
3194 rm -f $ac_rmfiles
3196 if { (ac_try="$ac_link_default"
3197 case "(($ac_try" in
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3200 esac
3201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3202 (eval "$ac_link_default") 2>&5
3203 ac_status=$?
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); }; then
3206 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3207 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3208 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3209 # so that the user can short-circuit this test for compilers unknown to
3210 # Autoconf.
3211 for ac_file in $ac_files ''
3213 test -f "$ac_file" || continue
3214 case $ac_file in
3215 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3217 [ab].out )
3218 # We found the default executable, but exeext='' is most
3219 # certainly right.
3220 break;;
3221 *.* )
3222 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3223 then :; else
3224 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3226 # We set ac_cv_exeext here because the later test for it is not
3227 # safe: cross compilers may not add the suffix if given an `-o'
3228 # argument, so we may need to know it at that point already.
3229 # Even if this section looks crufty: it has the advantage of
3230 # actually working.
3231 break;;
3233 break;;
3234 esac
3235 done
3236 test "$ac_cv_exeext" = no && ac_cv_exeext=
3238 else
3239 ac_file=''
3242 { echo "$as_me:$LINENO: result: $ac_file" >&5
3243 echo "${ECHO_T}$ac_file" >&6; }
3244 if test -z "$ac_file"; then
3245 echo "$as_me: failed program was:" >&5
3246 sed 's/^/| /' conftest.$ac_ext >&5
3248 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3249 See \`config.log' for more details." >&5
3250 echo "$as_me: error: C compiler cannot create executables
3251 See \`config.log' for more details." >&2;}
3252 { (exit 77); exit 77; }; }
3255 ac_exeext=$ac_cv_exeext
3257 # Check that the compiler produces executables we can run. If not, either
3258 # the compiler is broken, or we cross compile.
3259 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3260 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3261 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3262 # If not cross compiling, check that we can run a simple program.
3263 if test "$cross_compiling" != yes; then
3264 if { ac_try='./$ac_file'
3265 { (case "(($ac_try" in
3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267 *) ac_try_echo=$ac_try;;
3268 esac
3269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3270 (eval "$ac_try") 2>&5
3271 ac_status=$?
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); }; }; then
3274 cross_compiling=no
3275 else
3276 if test "$cross_compiling" = maybe; then
3277 cross_compiling=yes
3278 else
3279 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3280 If you meant to cross compile, use \`--host'.
3281 See \`config.log' for more details." >&5
3282 echo "$as_me: error: cannot run C compiled programs.
3283 If you meant to cross compile, use \`--host'.
3284 See \`config.log' for more details." >&2;}
3285 { (exit 1); exit 1; }; }
3289 { echo "$as_me:$LINENO: result: yes" >&5
3290 echo "${ECHO_T}yes" >&6; }
3292 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3293 ac_clean_files=$ac_clean_files_save
3294 # Check that the compiler produces executables we can run. If not, either
3295 # the compiler is broken, or we cross compile.
3296 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3297 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3298 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3299 echo "${ECHO_T}$cross_compiling" >&6; }
3301 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3302 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3303 if { (ac_try="$ac_link"
3304 case "(($ac_try" in
3305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306 *) ac_try_echo=$ac_try;;
3307 esac
3308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3309 (eval "$ac_link") 2>&5
3310 ac_status=$?
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); }; then
3313 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3314 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3315 # work properly (i.e., refer to `conftest.exe'), while it won't with
3316 # `rm'.
3317 for ac_file in conftest.exe conftest conftest.*; do
3318 test -f "$ac_file" || continue
3319 case $ac_file in
3320 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3321 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3322 break;;
3323 * ) break;;
3324 esac
3325 done
3326 else
3327 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3328 See \`config.log' for more details." >&5
3329 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3330 See \`config.log' for more details." >&2;}
3331 { (exit 1); exit 1; }; }
3334 rm -f conftest$ac_cv_exeext
3335 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3336 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3338 rm -f conftest.$ac_ext
3339 EXEEXT=$ac_cv_exeext
3340 ac_exeext=$EXEEXT
3341 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3342 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3343 if test "${ac_cv_objext+set}" = set; then
3344 echo $ECHO_N "(cached) $ECHO_C" >&6
3345 else
3346 cat >conftest.$ac_ext <<_ACEOF
3347 /* confdefs.h. */
3348 _ACEOF
3349 cat confdefs.h >>conftest.$ac_ext
3350 cat >>conftest.$ac_ext <<_ACEOF
3351 /* end confdefs.h. */
3354 main ()
3358 return 0;
3360 _ACEOF
3361 rm -f conftest.o conftest.obj
3362 if { (ac_try="$ac_compile"
3363 case "(($ac_try" in
3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3366 esac
3367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3368 (eval "$ac_compile") 2>&5
3369 ac_status=$?
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); }; then
3372 for ac_file in conftest.o conftest.obj conftest.*; do
3373 test -f "$ac_file" || continue;
3374 case $ac_file in
3375 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3376 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3377 break;;
3378 esac
3379 done
3380 else
3381 echo "$as_me: failed program was:" >&5
3382 sed 's/^/| /' conftest.$ac_ext >&5
3384 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3385 See \`config.log' for more details." >&5
3386 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3387 See \`config.log' for more details." >&2;}
3388 { (exit 1); exit 1; }; }
3391 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3393 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3394 echo "${ECHO_T}$ac_cv_objext" >&6; }
3395 OBJEXT=$ac_cv_objext
3396 ac_objext=$OBJEXT
3397 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3398 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3399 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
3401 else
3402 cat >conftest.$ac_ext <<_ACEOF
3403 /* confdefs.h. */
3404 _ACEOF
3405 cat confdefs.h >>conftest.$ac_ext
3406 cat >>conftest.$ac_ext <<_ACEOF
3407 /* end confdefs.h. */
3410 main ()
3412 #ifndef __GNUC__
3413 choke me
3414 #endif
3417 return 0;
3419 _ACEOF
3420 rm -f conftest.$ac_objext
3421 if { (ac_try="$ac_compile"
3422 case "(($ac_try" in
3423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424 *) ac_try_echo=$ac_try;;
3425 esac
3426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3427 (eval "$ac_compile") 2>conftest.er1
3428 ac_status=$?
3429 grep -v '^ *+' conftest.er1 >conftest.err
3430 rm -f conftest.er1
3431 cat conftest.err >&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); } && {
3434 test -z "$ac_c_werror_flag" ||
3435 test ! -s conftest.err
3436 } && test -s conftest.$ac_objext; then
3437 ac_compiler_gnu=yes
3438 else
3439 echo "$as_me: failed program was:" >&5
3440 sed 's/^/| /' conftest.$ac_ext >&5
3442 ac_compiler_gnu=no
3445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3446 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3449 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3450 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3451 GCC=`test $ac_compiler_gnu = yes && echo yes`
3452 ac_test_CFLAGS=${CFLAGS+set}
3453 ac_save_CFLAGS=$CFLAGS
3454 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3455 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3456 if test "${ac_cv_prog_cc_g+set}" = set; then
3457 echo $ECHO_N "(cached) $ECHO_C" >&6
3458 else
3459 ac_save_c_werror_flag=$ac_c_werror_flag
3460 ac_c_werror_flag=yes
3461 ac_cv_prog_cc_g=no
3462 CFLAGS="-g"
3463 cat >conftest.$ac_ext <<_ACEOF
3464 /* confdefs.h. */
3465 _ACEOF
3466 cat confdefs.h >>conftest.$ac_ext
3467 cat >>conftest.$ac_ext <<_ACEOF
3468 /* end confdefs.h. */
3471 main ()
3475 return 0;
3477 _ACEOF
3478 rm -f conftest.$ac_objext
3479 if { (ac_try="$ac_compile"
3480 case "(($ac_try" in
3481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482 *) ac_try_echo=$ac_try;;
3483 esac
3484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3485 (eval "$ac_compile") 2>conftest.er1
3486 ac_status=$?
3487 grep -v '^ *+' conftest.er1 >conftest.err
3488 rm -f conftest.er1
3489 cat conftest.err >&5
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); } && {
3492 test -z "$ac_c_werror_flag" ||
3493 test ! -s conftest.err
3494 } && test -s conftest.$ac_objext; then
3495 ac_cv_prog_cc_g=yes
3496 else
3497 echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3500 CFLAGS=""
3501 cat >conftest.$ac_ext <<_ACEOF
3502 /* confdefs.h. */
3503 _ACEOF
3504 cat confdefs.h >>conftest.$ac_ext
3505 cat >>conftest.$ac_ext <<_ACEOF
3506 /* end confdefs.h. */
3509 main ()
3513 return 0;
3515 _ACEOF
3516 rm -f conftest.$ac_objext
3517 if { (ac_try="$ac_compile"
3518 case "(($ac_try" in
3519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3520 *) ac_try_echo=$ac_try;;
3521 esac
3522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3523 (eval "$ac_compile") 2>conftest.er1
3524 ac_status=$?
3525 grep -v '^ *+' conftest.er1 >conftest.err
3526 rm -f conftest.er1
3527 cat conftest.err >&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); } && {
3530 test -z "$ac_c_werror_flag" ||
3531 test ! -s conftest.err
3532 } && test -s conftest.$ac_objext; then
3534 else
3535 echo "$as_me: failed program was:" >&5
3536 sed 's/^/| /' conftest.$ac_ext >&5
3538 ac_c_werror_flag=$ac_save_c_werror_flag
3539 CFLAGS="-g"
3540 cat >conftest.$ac_ext <<_ACEOF
3541 /* confdefs.h. */
3542 _ACEOF
3543 cat confdefs.h >>conftest.$ac_ext
3544 cat >>conftest.$ac_ext <<_ACEOF
3545 /* end confdefs.h. */
3548 main ()
3552 return 0;
3554 _ACEOF
3555 rm -f conftest.$ac_objext
3556 if { (ac_try="$ac_compile"
3557 case "(($ac_try" in
3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3560 esac
3561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3562 (eval "$ac_compile") 2>conftest.er1
3563 ac_status=$?
3564 grep -v '^ *+' conftest.er1 >conftest.err
3565 rm -f conftest.er1
3566 cat conftest.err >&5
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); } && {
3569 test -z "$ac_c_werror_flag" ||
3570 test ! -s conftest.err
3571 } && test -s conftest.$ac_objext; then
3572 ac_cv_prog_cc_g=yes
3573 else
3574 echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.$ac_ext >&5
3580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3587 ac_c_werror_flag=$ac_save_c_werror_flag
3589 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3590 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3591 if test "$ac_test_CFLAGS" = set; then
3592 CFLAGS=$ac_save_CFLAGS
3593 elif test $ac_cv_prog_cc_g = yes; then
3594 if test "$GCC" = yes; then
3595 CFLAGS="-g -O2"
3596 else
3597 CFLAGS="-g"
3599 else
3600 if test "$GCC" = yes; then
3601 CFLAGS="-O2"
3602 else
3603 CFLAGS=
3606 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3607 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3608 if test "${ac_cv_prog_cc_c89+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3610 else
3611 ac_cv_prog_cc_c89=no
3612 ac_save_CC=$CC
3613 cat >conftest.$ac_ext <<_ACEOF
3614 /* confdefs.h. */
3615 _ACEOF
3616 cat confdefs.h >>conftest.$ac_ext
3617 cat >>conftest.$ac_ext <<_ACEOF
3618 /* end confdefs.h. */
3619 #include <stdarg.h>
3620 #include <stdio.h>
3621 #include <sys/types.h>
3622 #include <sys/stat.h>
3623 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3624 struct buf { int x; };
3625 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3626 static char *e (p, i)
3627 char **p;
3628 int i;
3630 return p[i];
3632 static char *f (char * (*g) (char **, int), char **p, ...)
3634 char *s;
3635 va_list v;
3636 va_start (v,p);
3637 s = g (p, va_arg (v,int));
3638 va_end (v);
3639 return s;
3642 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3643 function prototypes and stuff, but not '\xHH' hex character constants.
3644 These don't provoke an error unfortunately, instead are silently treated
3645 as 'x'. The following induces an error, until -std is added to get
3646 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3647 array size at least. It's necessary to write '\x00'==0 to get something
3648 that's true only with -std. */
3649 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3651 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3652 inside strings and character constants. */
3653 #define FOO(x) 'x'
3654 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3656 int test (int i, double x);
3657 struct s1 {int (*f) (int a);};
3658 struct s2 {int (*f) (double a);};
3659 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3660 int argc;
3661 char **argv;
3663 main ()
3665 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3667 return 0;
3669 _ACEOF
3670 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3671 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3673 CC="$ac_save_CC $ac_arg"
3674 rm -f conftest.$ac_objext
3675 if { (ac_try="$ac_compile"
3676 case "(($ac_try" in
3677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678 *) ac_try_echo=$ac_try;;
3679 esac
3680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3681 (eval "$ac_compile") 2>conftest.er1
3682 ac_status=$?
3683 grep -v '^ *+' conftest.er1 >conftest.err
3684 rm -f conftest.er1
3685 cat conftest.err >&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); } && {
3688 test -z "$ac_c_werror_flag" ||
3689 test ! -s conftest.err
3690 } && test -s conftest.$ac_objext; then
3691 ac_cv_prog_cc_c89=$ac_arg
3692 else
3693 echo "$as_me: failed program was:" >&5
3694 sed 's/^/| /' conftest.$ac_ext >&5
3699 rm -f core conftest.err conftest.$ac_objext
3700 test "x$ac_cv_prog_cc_c89" != "xno" && break
3701 done
3702 rm -f conftest.$ac_ext
3703 CC=$ac_save_CC
3706 # AC_CACHE_VAL
3707 case "x$ac_cv_prog_cc_c89" in
3709 { echo "$as_me:$LINENO: result: none needed" >&5
3710 echo "${ECHO_T}none needed" >&6; } ;;
3711 xno)
3712 { echo "$as_me:$LINENO: result: unsupported" >&5
3713 echo "${ECHO_T}unsupported" >&6; } ;;
3715 CC="$CC $ac_cv_prog_cc_c89"
3716 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3717 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3718 esac
3721 ac_ext=c
3722 ac_cpp='$CPP $CPPFLAGS'
3723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3728 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3729 # but has idiosyncrasies of its own. We assume icc will define
3730 # __INTEL_COMPILER regardless of CFLAGS.
3732 cat >conftest.$ac_ext <<_ACEOF
3733 /* confdefs.h. */
3734 _ACEOF
3735 cat confdefs.h >>conftest.$ac_ext
3736 cat >>conftest.$ac_ext <<_ACEOF
3737 /* end confdefs.h. */
3740 main ()
3742 #ifndef __INTEL_COMPILER
3743 choke me
3744 #endif
3746 return 0;
3748 _ACEOF
3749 rm -f conftest.$ac_objext
3750 if { (ac_try="$ac_compile"
3751 case "(($ac_try" in
3752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3753 *) ac_try_echo=$ac_try;;
3754 esac
3755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3756 (eval "$ac_compile") 2>conftest.er1
3757 ac_status=$?
3758 grep -v '^ *+' conftest.er1 >conftest.err
3759 rm -f conftest.er1
3760 cat conftest.err >&5
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); } && {
3763 test -z "$ac_c_werror_flag" ||
3764 test ! -s conftest.err
3765 } && test -s conftest.$ac_objext; then
3766 ICC=yes
3767 else
3768 echo "$as_me: failed program was:" >&5
3769 sed 's/^/| /' conftest.$ac_ext >&5
3771 ICC=no
3774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3776 # Check if it's Sun Studio compiler. We assume that
3777 # __SUNPRO_C will be defined for Sun Studio compilers
3778 cat >conftest.$ac_ext <<_ACEOF
3779 /* confdefs.h. */
3780 _ACEOF
3781 cat confdefs.h >>conftest.$ac_ext
3782 cat >>conftest.$ac_ext <<_ACEOF
3783 /* end confdefs.h. */
3786 main ()
3788 #ifndef __SUNPRO_C
3789 choke me
3790 #endif
3792 return 0;
3794 _ACEOF
3795 rm -f conftest.$ac_objext
3796 if { (ac_try="$ac_compile"
3797 case "(($ac_try" in
3798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3799 *) ac_try_echo=$ac_try;;
3800 esac
3801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3802 (eval "$ac_compile") 2>conftest.er1
3803 ac_status=$?
3804 grep -v '^ *+' conftest.er1 >conftest.err
3805 rm -f conftest.er1
3806 cat conftest.err >&5
3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 (exit $ac_status); } && {
3809 test -z "$ac_c_werror_flag" ||
3810 test ! -s conftest.err
3811 } && test -s conftest.$ac_objext; then
3812 SUN_STUDIO_CC=yes
3813 else
3814 echo "$as_me: failed program was:" >&5
3815 sed 's/^/| /' conftest.$ac_ext >&5
3817 SUN_STUDIO_CC=no
3820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3824 unset CFLAGS
3827 # Read the template
3829 . "$srcdir/src/template/$template" || exit
3831 # CFLAGS are selected so:
3832 # If the user specifies something in the environment, that is used.
3833 # else: If the template file set something, that is used.
3834 # else: If coverage was enabled, don't set anything.
3835 # else: If the compiler is GCC, then we use -O2.
3836 # else: If the compiler is something else, then we use -O.
3838 if test "$ac_env_CFLAGS_set" = set; then
3839 CFLAGS=$ac_env_CFLAGS_value
3840 elif test "${CFLAGS+set}" = set; then
3841 : # (keep what template set)
3842 elif test "$enable_coverage" = yes; then
3843 : # no optimization by default
3844 elif test "$GCC" = yes; then
3845 CFLAGS="-O2"
3846 else
3847 # if the user selected debug mode, don't use -O
3848 if test "$enable_debug" != yes; then
3849 CFLAGS="-O"
3853 # Some versions of GCC support some additional useful warning flags.
3854 # Check whether they are supported, and add them to CFLAGS if so.
3855 # ICC pretends to be GCC but it's lying; it doesn't support these options.
3857 if test "$GCC" = yes -a "$ICC" = no; then
3858 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
3859 # These work in some but not all gcc versions
3860 { echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
3861 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6; }
3862 pgac_save_CFLAGS=$CFLAGS
3863 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
3864 cat >conftest.$ac_ext <<_ACEOF
3865 /* confdefs.h. */
3866 _ACEOF
3867 cat confdefs.h >>conftest.$ac_ext
3868 cat >>conftest.$ac_ext <<_ACEOF
3869 /* end confdefs.h. */
3872 main ()
3876 return 0;
3878 _ACEOF
3879 rm -f conftest.$ac_objext
3880 if { (ac_try="$ac_compile"
3881 case "(($ac_try" in
3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883 *) ac_try_echo=$ac_try;;
3884 esac
3885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3886 (eval "$ac_compile") 2>conftest.er1
3887 ac_status=$?
3888 grep -v '^ *+' conftest.er1 >conftest.err
3889 rm -f conftest.er1
3890 cat conftest.err >&5
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); } && {
3893 test -z "$ac_c_werror_flag" ||
3894 test ! -s conftest.err
3895 } && test -s conftest.$ac_objext; then
3896 { echo "$as_me:$LINENO: result: yes" >&5
3897 echo "${ECHO_T}yes" >&6; }
3898 else
3899 echo "$as_me: failed program was:" >&5
3900 sed 's/^/| /' conftest.$ac_ext >&5
3902 CFLAGS="$pgac_save_CFLAGS"
3903 { echo "$as_me:$LINENO: result: no" >&5
3904 echo "${ECHO_T}no" >&6; }
3907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3909 { echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
3910 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6; }
3911 pgac_save_CFLAGS=$CFLAGS
3912 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
3913 cat >conftest.$ac_ext <<_ACEOF
3914 /* confdefs.h. */
3915 _ACEOF
3916 cat confdefs.h >>conftest.$ac_ext
3917 cat >>conftest.$ac_ext <<_ACEOF
3918 /* end confdefs.h. */
3921 main ()
3925 return 0;
3927 _ACEOF
3928 rm -f conftest.$ac_objext
3929 if { (ac_try="$ac_compile"
3930 case "(($ac_try" in
3931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3932 *) ac_try_echo=$ac_try;;
3933 esac
3934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3935 (eval "$ac_compile") 2>conftest.er1
3936 ac_status=$?
3937 grep -v '^ *+' conftest.er1 >conftest.err
3938 rm -f conftest.er1
3939 cat conftest.err >&5
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); } && {
3942 test -z "$ac_c_werror_flag" ||
3943 test ! -s conftest.err
3944 } && test -s conftest.$ac_objext; then
3945 { echo "$as_me:$LINENO: result: yes" >&5
3946 echo "${ECHO_T}yes" >&6; }
3947 else
3948 echo "$as_me: failed program was:" >&5
3949 sed 's/^/| /' conftest.$ac_ext >&5
3951 CFLAGS="$pgac_save_CFLAGS"
3952 { echo "$as_me:$LINENO: result: no" >&5
3953 echo "${ECHO_T}no" >&6; }
3956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3958 # Disable strict-aliasing rules; needed for gcc 3.3+
3959 { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3960 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
3961 pgac_save_CFLAGS=$CFLAGS
3962 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
3963 cat >conftest.$ac_ext <<_ACEOF
3964 /* confdefs.h. */
3965 _ACEOF
3966 cat confdefs.h >>conftest.$ac_ext
3967 cat >>conftest.$ac_ext <<_ACEOF
3968 /* end confdefs.h. */
3971 main ()
3975 return 0;
3977 _ACEOF
3978 rm -f conftest.$ac_objext
3979 if { (ac_try="$ac_compile"
3980 case "(($ac_try" in
3981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3982 *) ac_try_echo=$ac_try;;
3983 esac
3984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3985 (eval "$ac_compile") 2>conftest.er1
3986 ac_status=$?
3987 grep -v '^ *+' conftest.er1 >conftest.err
3988 rm -f conftest.er1
3989 cat conftest.err >&5
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); } && {
3992 test -z "$ac_c_werror_flag" ||
3993 test ! -s conftest.err
3994 } && test -s conftest.$ac_objext; then
3995 { echo "$as_me:$LINENO: result: yes" >&5
3996 echo "${ECHO_T}yes" >&6; }
3997 else
3998 echo "$as_me: failed program was:" >&5
3999 sed 's/^/| /' conftest.$ac_ext >&5
4001 CFLAGS="$pgac_save_CFLAGS"
4002 { echo "$as_me:$LINENO: result: no" >&5
4003 echo "${ECHO_T}no" >&6; }
4006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4008 # Disable optimizations that assume no overflow; needed for gcc 4.3+
4009 { echo "$as_me:$LINENO: checking if $CC supports -fwrapv" >&5
4010 echo $ECHO_N "checking if $CC supports -fwrapv... $ECHO_C" >&6; }
4011 pgac_save_CFLAGS=$CFLAGS
4012 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4013 cat >conftest.$ac_ext <<_ACEOF
4014 /* confdefs.h. */
4015 _ACEOF
4016 cat confdefs.h >>conftest.$ac_ext
4017 cat >>conftest.$ac_ext <<_ACEOF
4018 /* end confdefs.h. */
4021 main ()
4025 return 0;
4027 _ACEOF
4028 rm -f conftest.$ac_objext
4029 if { (ac_try="$ac_compile"
4030 case "(($ac_try" in
4031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032 *) ac_try_echo=$ac_try;;
4033 esac
4034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4035 (eval "$ac_compile") 2>conftest.er1
4036 ac_status=$?
4037 grep -v '^ *+' conftest.er1 >conftest.err
4038 rm -f conftest.er1
4039 cat conftest.err >&5
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); } && {
4042 test -z "$ac_c_werror_flag" ||
4043 test ! -s conftest.err
4044 } && test -s conftest.$ac_objext; then
4045 { echo "$as_me:$LINENO: result: yes" >&5
4046 echo "${ECHO_T}yes" >&6; }
4047 else
4048 echo "$as_me: failed program was:" >&5
4049 sed 's/^/| /' conftest.$ac_ext >&5
4051 CFLAGS="$pgac_save_CFLAGS"
4052 { echo "$as_me:$LINENO: result: no" >&5
4053 echo "${ECHO_T}no" >&6; }
4056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4058 elif test "$ICC" = yes; then
4059 # Intel's compiler has a bug/misoptimization in checking for
4060 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4061 { echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
4062 echo $ECHO_N "checking if $CC supports -mp1... $ECHO_C" >&6; }
4063 pgac_save_CFLAGS=$CFLAGS
4064 CFLAGS="$pgac_save_CFLAGS -mp1"
4065 cat >conftest.$ac_ext <<_ACEOF
4066 /* confdefs.h. */
4067 _ACEOF
4068 cat confdefs.h >>conftest.$ac_ext
4069 cat >>conftest.$ac_ext <<_ACEOF
4070 /* end confdefs.h. */
4073 main ()
4077 return 0;
4079 _ACEOF
4080 rm -f conftest.$ac_objext
4081 if { (ac_try="$ac_compile"
4082 case "(($ac_try" in
4083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4084 *) ac_try_echo=$ac_try;;
4085 esac
4086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4087 (eval "$ac_compile") 2>conftest.er1
4088 ac_status=$?
4089 grep -v '^ *+' conftest.er1 >conftest.err
4090 rm -f conftest.er1
4091 cat conftest.err >&5
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); } && {
4094 test -z "$ac_c_werror_flag" ||
4095 test ! -s conftest.err
4096 } && test -s conftest.$ac_objext; then
4097 { echo "$as_me:$LINENO: result: yes" >&5
4098 echo "${ECHO_T}yes" >&6; }
4099 else
4100 echo "$as_me: failed program was:" >&5
4101 sed 's/^/| /' conftest.$ac_ext >&5
4103 CFLAGS="$pgac_save_CFLAGS"
4104 { echo "$as_me:$LINENO: result: no" >&5
4105 echo "${ECHO_T}no" >&6; }
4108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4110 # Make sure strict aliasing is off (though this is said to be the default)
4111 { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
4112 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
4113 pgac_save_CFLAGS=$CFLAGS
4114 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4115 cat >conftest.$ac_ext <<_ACEOF
4116 /* confdefs.h. */
4117 _ACEOF
4118 cat confdefs.h >>conftest.$ac_ext
4119 cat >>conftest.$ac_ext <<_ACEOF
4120 /* end confdefs.h. */
4123 main ()
4127 return 0;
4129 _ACEOF
4130 rm -f conftest.$ac_objext
4131 if { (ac_try="$ac_compile"
4132 case "(($ac_try" in
4133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134 *) ac_try_echo=$ac_try;;
4135 esac
4136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4137 (eval "$ac_compile") 2>conftest.er1
4138 ac_status=$?
4139 grep -v '^ *+' conftest.er1 >conftest.err
4140 rm -f conftest.er1
4141 cat conftest.err >&5
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); } && {
4144 test -z "$ac_c_werror_flag" ||
4145 test ! -s conftest.err
4146 } && test -s conftest.$ac_objext; then
4147 { echo "$as_me:$LINENO: result: yes" >&5
4148 echo "${ECHO_T}yes" >&6; }
4149 else
4150 echo "$as_me: failed program was:" >&5
4151 sed 's/^/| /' conftest.$ac_ext >&5
4153 CFLAGS="$pgac_save_CFLAGS"
4154 { echo "$as_me:$LINENO: result: no" >&5
4155 echo "${ECHO_T}no" >&6; }
4158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4160 elif test x"${CC}" = x"xlc"; then
4161 # AIX xlc has to have strict aliasing turned off too
4162 { echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
4163 echo $ECHO_N "checking if $CC supports -qnoansialias... $ECHO_C" >&6; }
4164 pgac_save_CFLAGS=$CFLAGS
4165 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4166 cat >conftest.$ac_ext <<_ACEOF
4167 /* confdefs.h. */
4168 _ACEOF
4169 cat confdefs.h >>conftest.$ac_ext
4170 cat >>conftest.$ac_ext <<_ACEOF
4171 /* end confdefs.h. */
4174 main ()
4178 return 0;
4180 _ACEOF
4181 rm -f conftest.$ac_objext
4182 if { (ac_try="$ac_compile"
4183 case "(($ac_try" in
4184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4185 *) ac_try_echo=$ac_try;;
4186 esac
4187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4188 (eval "$ac_compile") 2>conftest.er1
4189 ac_status=$?
4190 grep -v '^ *+' conftest.er1 >conftest.err
4191 rm -f conftest.er1
4192 cat conftest.err >&5
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); } && {
4195 test -z "$ac_c_werror_flag" ||
4196 test ! -s conftest.err
4197 } && test -s conftest.$ac_objext; then
4198 { echo "$as_me:$LINENO: result: yes" >&5
4199 echo "${ECHO_T}yes" >&6; }
4200 else
4201 echo "$as_me: failed program was:" >&5
4202 sed 's/^/| /' conftest.$ac_ext >&5
4204 CFLAGS="$pgac_save_CFLAGS"
4205 { echo "$as_me:$LINENO: result: no" >&5
4206 echo "${ECHO_T}no" >&6; }
4209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4213 # supply -g if --enable-debug
4214 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4215 CFLAGS="$CFLAGS -g"
4218 # enable code coverage if --enable-coverage
4219 if test "$enable_coverage" = yes; then
4220 if test "$GCC" = yes; then
4221 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4222 else
4223 { { echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4224 echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4225 { (exit 1); exit 1; }; }
4229 # enable profiling if --enable-profiling
4230 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4231 if test "$GCC" = yes; then
4233 cat >>confdefs.h <<\_ACEOF
4234 #define PROFILE_PID_DIR 1
4235 _ACEOF
4237 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4238 else
4239 { { echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4240 echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4241 { (exit 1); exit 1; }; }
4245 # We already have this in Makefile.win32, but configure needs it too
4246 if test "$PORTNAME" = "win32"; then
4247 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4250 # Check if the compiler still works with the template settings
4251 { echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4252 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6; }
4253 cat >conftest.$ac_ext <<_ACEOF
4254 /* confdefs.h. */
4255 _ACEOF
4256 cat confdefs.h >>conftest.$ac_ext
4257 cat >>conftest.$ac_ext <<_ACEOF
4258 /* end confdefs.h. */
4261 main ()
4263 return 0;
4265 return 0;
4267 _ACEOF
4268 rm -f conftest.$ac_objext conftest$ac_exeext
4269 if { (ac_try="$ac_link"
4270 case "(($ac_try" in
4271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272 *) ac_try_echo=$ac_try;;
4273 esac
4274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4275 (eval "$ac_link") 2>conftest.er1
4276 ac_status=$?
4277 grep -v '^ *+' conftest.er1 >conftest.err
4278 rm -f conftest.er1
4279 cat conftest.err >&5
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); } && {
4282 test -z "$ac_c_werror_flag" ||
4283 test ! -s conftest.err
4284 } && test -s conftest$ac_exeext &&
4285 $as_test_x conftest$ac_exeext; then
4286 { echo "$as_me:$LINENO: result: yes" >&5
4287 echo "${ECHO_T}yes" >&6; }
4288 else
4289 echo "$as_me: failed program was:" >&5
4290 sed 's/^/| /' conftest.$ac_ext >&5
4292 { echo "$as_me:$LINENO: result: no" >&5
4293 echo "${ECHO_T}no" >&6; }
4294 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
4295 echo "$as_me: error: cannot proceed" >&2;}
4296 { (exit 1); exit 1; }; }
4299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4300 conftest$ac_exeext conftest.$ac_ext
4302 # Defend against gcc -ffast-math
4303 if test "$GCC" = yes; then
4304 cat >conftest.$ac_ext <<_ACEOF
4305 /* confdefs.h. */
4306 _ACEOF
4307 cat confdefs.h >>conftest.$ac_ext
4308 cat >>conftest.$ac_ext <<_ACEOF
4309 /* end confdefs.h. */
4312 main ()
4314 #ifdef __FAST_MATH__
4315 choke me
4316 #endif
4318 return 0;
4320 _ACEOF
4321 rm -f conftest.$ac_objext
4322 if { (ac_try="$ac_compile"
4323 case "(($ac_try" in
4324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4325 *) ac_try_echo=$ac_try;;
4326 esac
4327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4328 (eval "$ac_compile") 2>conftest.er1
4329 ac_status=$?
4330 grep -v '^ *+' conftest.er1 >conftest.err
4331 rm -f conftest.er1
4332 cat conftest.err >&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); } && {
4335 test -z "$ac_c_werror_flag" ||
4336 test ! -s conftest.err
4337 } && test -s conftest.$ac_objext; then
4339 else
4340 echo "$as_me: failed program was:" >&5
4341 sed 's/^/| /' conftest.$ac_ext >&5
4343 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4344 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4345 { (exit 1); exit 1; }; }
4348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4351 ac_ext=c
4352 ac_cpp='$CPP $CPPFLAGS'
4353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4356 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4357 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4358 # On Suns, sometimes $CPP names a directory.
4359 if test -n "$CPP" && test -d "$CPP"; then
4360 CPP=
4362 if test -z "$CPP"; then
4363 if test "${ac_cv_prog_CPP+set}" = set; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4365 else
4366 # Double quotes because CPP needs to be expanded
4367 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4369 ac_preproc_ok=false
4370 for ac_c_preproc_warn_flag in '' yes
4372 # Use a header file that comes with gcc, so configuring glibc
4373 # with a fresh cross-compiler works.
4374 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4375 # <limits.h> exists even on freestanding compilers.
4376 # On the NeXT, cc -E runs the code through the compiler's parser,
4377 # not just through cpp. "Syntax error" is here to catch this case.
4378 cat >conftest.$ac_ext <<_ACEOF
4379 /* confdefs.h. */
4380 _ACEOF
4381 cat confdefs.h >>conftest.$ac_ext
4382 cat >>conftest.$ac_ext <<_ACEOF
4383 /* end confdefs.h. */
4384 #ifdef __STDC__
4385 # include <limits.h>
4386 #else
4387 # include <assert.h>
4388 #endif
4389 Syntax error
4390 _ACEOF
4391 if { (ac_try="$ac_cpp conftest.$ac_ext"
4392 case "(($ac_try" in
4393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4394 *) ac_try_echo=$ac_try;;
4395 esac
4396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4397 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4398 ac_status=$?
4399 grep -v '^ *+' conftest.er1 >conftest.err
4400 rm -f conftest.er1
4401 cat conftest.err >&5
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); } >/dev/null && {
4404 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4405 test ! -s conftest.err
4406 }; then
4408 else
4409 echo "$as_me: failed program was:" >&5
4410 sed 's/^/| /' conftest.$ac_ext >&5
4412 # Broken: fails on valid input.
4413 continue
4416 rm -f conftest.err conftest.$ac_ext
4418 # OK, works on sane cases. Now check whether nonexistent headers
4419 # can be detected and how.
4420 cat >conftest.$ac_ext <<_ACEOF
4421 /* confdefs.h. */
4422 _ACEOF
4423 cat confdefs.h >>conftest.$ac_ext
4424 cat >>conftest.$ac_ext <<_ACEOF
4425 /* end confdefs.h. */
4426 #include <ac_nonexistent.h>
4427 _ACEOF
4428 if { (ac_try="$ac_cpp conftest.$ac_ext"
4429 case "(($ac_try" in
4430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4431 *) ac_try_echo=$ac_try;;
4432 esac
4433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4435 ac_status=$?
4436 grep -v '^ *+' conftest.er1 >conftest.err
4437 rm -f conftest.er1
4438 cat conftest.err >&5
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); } >/dev/null && {
4441 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4442 test ! -s conftest.err
4443 }; then
4444 # Broken: success on invalid input.
4445 continue
4446 else
4447 echo "$as_me: failed program was:" >&5
4448 sed 's/^/| /' conftest.$ac_ext >&5
4450 # Passes both tests.
4451 ac_preproc_ok=:
4452 break
4455 rm -f conftest.err conftest.$ac_ext
4457 done
4458 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4459 rm -f conftest.err conftest.$ac_ext
4460 if $ac_preproc_ok; then
4461 break
4464 done
4465 ac_cv_prog_CPP=$CPP
4468 CPP=$ac_cv_prog_CPP
4469 else
4470 ac_cv_prog_CPP=$CPP
4472 { echo "$as_me:$LINENO: result: $CPP" >&5
4473 echo "${ECHO_T}$CPP" >&6; }
4474 ac_preproc_ok=false
4475 for ac_c_preproc_warn_flag in '' yes
4477 # Use a header file that comes with gcc, so configuring glibc
4478 # with a fresh cross-compiler works.
4479 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4480 # <limits.h> exists even on freestanding compilers.
4481 # On the NeXT, cc -E runs the code through the compiler's parser,
4482 # not just through cpp. "Syntax error" is here to catch this case.
4483 cat >conftest.$ac_ext <<_ACEOF
4484 /* confdefs.h. */
4485 _ACEOF
4486 cat confdefs.h >>conftest.$ac_ext
4487 cat >>conftest.$ac_ext <<_ACEOF
4488 /* end confdefs.h. */
4489 #ifdef __STDC__
4490 # include <limits.h>
4491 #else
4492 # include <assert.h>
4493 #endif
4494 Syntax error
4495 _ACEOF
4496 if { (ac_try="$ac_cpp conftest.$ac_ext"
4497 case "(($ac_try" in
4498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4499 *) ac_try_echo=$ac_try;;
4500 esac
4501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4503 ac_status=$?
4504 grep -v '^ *+' conftest.er1 >conftest.err
4505 rm -f conftest.er1
4506 cat conftest.err >&5
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); } >/dev/null && {
4509 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4510 test ! -s conftest.err
4511 }; then
4513 else
4514 echo "$as_me: failed program was:" >&5
4515 sed 's/^/| /' conftest.$ac_ext >&5
4517 # Broken: fails on valid input.
4518 continue
4521 rm -f conftest.err conftest.$ac_ext
4523 # OK, works on sane cases. Now check whether nonexistent headers
4524 # can be detected and how.
4525 cat >conftest.$ac_ext <<_ACEOF
4526 /* confdefs.h. */
4527 _ACEOF
4528 cat confdefs.h >>conftest.$ac_ext
4529 cat >>conftest.$ac_ext <<_ACEOF
4530 /* end confdefs.h. */
4531 #include <ac_nonexistent.h>
4532 _ACEOF
4533 if { (ac_try="$ac_cpp conftest.$ac_ext"
4534 case "(($ac_try" in
4535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4536 *) ac_try_echo=$ac_try;;
4537 esac
4538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4540 ac_status=$?
4541 grep -v '^ *+' conftest.er1 >conftest.err
4542 rm -f conftest.er1
4543 cat conftest.err >&5
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); } >/dev/null && {
4546 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4547 test ! -s conftest.err
4548 }; then
4549 # Broken: success on invalid input.
4550 continue
4551 else
4552 echo "$as_me: failed program was:" >&5
4553 sed 's/^/| /' conftest.$ac_ext >&5
4555 # Passes both tests.
4556 ac_preproc_ok=:
4557 break
4560 rm -f conftest.err conftest.$ac_ext
4562 done
4563 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4564 rm -f conftest.err conftest.$ac_ext
4565 if $ac_preproc_ok; then
4567 else
4568 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4569 See \`config.log' for more details." >&5
4570 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4571 See \`config.log' for more details." >&2;}
4572 { (exit 1); exit 1; }; }
4575 ac_ext=c
4576 ac_cpp='$CPP $CPPFLAGS'
4577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4585 # Set up TAS assembly code if needed; the template file has now had its
4586 # chance to request this.
4588 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
4591 if test "$need_tas" = yes ; then
4592 TAS=tas.o
4593 else
4594 TAS=""
4600 # Automatic dependency tracking
4603 pgac_args="$pgac_args enable_depend"
4605 # Check whether --enable-depend was given.
4606 if test "${enable_depend+set}" = set; then
4607 enableval=$enable_depend;
4608 case $enableval in
4609 yes)
4610 autodepend=yes
4616 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
4617 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
4618 { (exit 1); exit 1; }; }
4620 esac
4622 else
4623 enable_depend=no
4632 # Enable assert checks
4635 pgac_args="$pgac_args enable_cassert"
4637 # Check whether --enable-cassert was given.
4638 if test "${enable_cassert+set}" = set; then
4639 enableval=$enable_cassert;
4640 case $enableval in
4641 yes)
4643 cat >>confdefs.h <<\_ACEOF
4644 #define USE_ASSERT_CHECKING 1
4645 _ACEOF
4652 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
4653 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
4654 { (exit 1); exit 1; }; }
4656 esac
4658 else
4659 enable_cassert=no
4667 # Include directories
4669 ac_save_IFS=$IFS
4670 IFS="${IFS}${PATH_SEPARATOR}"
4671 # SRCH_INC comes from the template file
4672 for dir in $with_includes $SRCH_INC; do
4673 if test -d "$dir"; then
4674 INCLUDES="$INCLUDES -I$dir"
4675 else
4676 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
4677 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
4679 done
4680 IFS=$ac_save_IFS
4685 # Library directories
4687 ac_save_IFS=$IFS
4688 IFS="${IFS}${PATH_SEPARATOR}"
4689 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
4690 for dir in $LIBRARY_DIRS $SRCH_LIB; do
4691 if test -d "$dir"; then
4692 LIBDIRS="$LIBDIRS -L$dir"
4693 else
4694 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
4695 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
4697 done
4698 IFS=$ac_save_IFS
4701 # Enable thread-safe client libraries
4703 { echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
4704 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6; }
4705 if test "$PORTNAME" != "win32"; then
4707 pgac_args="$pgac_args enable_thread_safety"
4709 # Check whether --enable-thread-safety was given.
4710 if test "${enable_thread_safety+set}" = set; then
4711 enableval=$enable_thread_safety;
4712 case $enableval in
4713 yes)
4720 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4721 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4722 { (exit 1); exit 1; }; }
4724 esac
4726 else
4727 enable_thread_safety=no
4732 else
4733 # Win32 should always use threads
4735 pgac_args="$pgac_args enable_thread_safety"
4737 # Check whether --enable-thread-safety was given.
4738 if test "${enable_thread_safety+set}" = set; then
4739 enableval=$enable_thread_safety;
4740 case $enableval in
4741 yes)
4748 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4749 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4750 { (exit 1); exit 1; }; }
4752 esac
4754 else
4755 enable_thread_safety=yes
4763 pgac_args="$pgac_args enable_thread_safety_force"
4765 # Check whether --enable-thread-safety-force was given.
4766 if test "${enable_thread_safety_force+set}" = set; then
4767 enableval=$enable_thread_safety_force;
4768 case $enableval in
4769 yes)
4776 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
4777 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
4778 { (exit 1); exit 1; }; }
4780 esac
4782 else
4783 enable_thread_safety_force=no
4788 if test "$enable_thread_safety" = yes -o \
4789 "$enable_thread_safety_force" = yes; then
4790 enable_thread_safety="yes" # for 'force'
4792 cat >>confdefs.h <<\_ACEOF
4793 #define ENABLE_THREAD_SAFETY 1
4794 _ACEOF
4797 { echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
4798 echo "${ECHO_T}$enable_thread_safety" >&6; }
4802 # Optionally build Tcl modules (PL/Tcl)
4804 { echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
4805 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6; }
4807 pgac_args="$pgac_args with_tcl"
4810 # Check whether --with-tcl was given.
4811 if test "${with_tcl+set}" = set; then
4812 withval=$with_tcl;
4813 case $withval in
4814 yes)
4821 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
4822 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
4823 { (exit 1); exit 1; }; }
4825 esac
4827 else
4828 with_tcl=no
4833 { echo "$as_me:$LINENO: result: $with_tcl" >&5
4834 echo "${ECHO_T}$with_tcl" >&6; }
4837 # We see if the path to the Tcl/Tk configuration scripts is specified.
4838 # This will override the use of tclsh to find the paths to search.
4841 pgac_args="$pgac_args with_tclconfig"
4844 # Check whether --with-tclconfig was given.
4845 if test "${with_tclconfig+set}" = set; then
4846 withval=$with_tclconfig;
4847 case $withval in
4848 yes)
4849 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4850 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4851 { (exit 1); exit 1; }; }
4854 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4855 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4856 { (exit 1); exit 1; }; }
4861 esac
4868 # Optionally build Perl modules (PL/Perl)
4870 { echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
4871 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6; }
4873 pgac_args="$pgac_args with_perl"
4876 # Check whether --with-perl was given.
4877 if test "${with_perl+set}" = set; then
4878 withval=$with_perl;
4879 case $withval in
4880 yes)
4887 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
4888 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
4889 { (exit 1); exit 1; }; }
4891 esac
4893 else
4894 with_perl=no
4899 { echo "$as_me:$LINENO: result: $with_perl" >&5
4900 echo "${ECHO_T}$with_perl" >&6; }
4904 # Optionally build Python modules (PL/Python)
4906 { echo "$as_me:$LINENO: checking whether to build Python modules" >&5
4907 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6; }
4909 pgac_args="$pgac_args with_python"
4912 # Check whether --with-python was given.
4913 if test "${with_python+set}" = set; then
4914 withval=$with_python;
4915 case $withval in
4916 yes)
4923 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
4924 echo "$as_me: error: no argument expected for --with-python option" >&2;}
4925 { (exit 1); exit 1; }; }
4927 esac
4929 else
4930 with_python=no
4935 { echo "$as_me:$LINENO: result: $with_python" >&5
4936 echo "${ECHO_T}$with_python" >&6; }
4940 # GSSAPI
4942 { echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
4943 echo $ECHO_N "checking whether to build with GSSAPI support... $ECHO_C" >&6; }
4945 pgac_args="$pgac_args with_gssapi"
4948 # Check whether --with-gssapi was given.
4949 if test "${with_gssapi+set}" = set; then
4950 withval=$with_gssapi;
4951 case $withval in
4952 yes)
4955 cat >>confdefs.h <<\_ACEOF
4956 #define ENABLE_GSS 1
4957 _ACEOF
4959 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
4966 { { echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
4967 echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
4968 { (exit 1); exit 1; }; }
4970 esac
4972 else
4973 with_gssapi=no
4978 { echo "$as_me:$LINENO: result: $with_gssapi" >&5
4979 echo "${ECHO_T}$with_gssapi" >&6; }
4983 # Kerberos 5
4985 { echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
4986 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6; }
4988 pgac_args="$pgac_args with_krb5"
4991 # Check whether --with-krb5 was given.
4992 if test "${with_krb5+set}" = set; then
4993 withval=$with_krb5;
4994 case $withval in
4995 yes)
4998 cat >>confdefs.h <<\_ACEOF
4999 #define KRB5 1
5000 _ACEOF
5002 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5009 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5010 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5011 { (exit 1); exit 1; }; }
5013 esac
5015 else
5016 with_krb5=no
5021 { echo "$as_me:$LINENO: result: $with_krb5" >&5
5022 echo "${ECHO_T}$with_krb5" >&6; }
5030 # Kerberos configuration parameters
5033 pgac_args="$pgac_args with_krb_srvnam"
5036 # Check whether --with-krb-srvnam was given.
5037 if test "${with_krb_srvnam+set}" = set; then
5038 withval=$with_krb_srvnam;
5039 case $withval in
5040 yes)
5041 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5042 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5043 { (exit 1); exit 1; }; }
5046 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5047 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5048 { (exit 1); exit 1; }; }
5053 esac
5055 else
5056 with_krb_srvnam="postgres"
5061 cat >>confdefs.h <<_ACEOF
5062 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5063 _ACEOF
5068 # PAM
5070 { echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5071 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6; }
5073 pgac_args="$pgac_args with_pam"
5076 # Check whether --with-pam was given.
5077 if test "${with_pam+set}" = set; then
5078 withval=$with_pam;
5079 case $withval in
5080 yes)
5082 cat >>confdefs.h <<\_ACEOF
5083 #define USE_PAM 1
5084 _ACEOF
5091 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5092 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5093 { (exit 1); exit 1; }; }
5095 esac
5097 else
5098 with_pam=no
5103 { echo "$as_me:$LINENO: result: $with_pam" >&5
5104 echo "${ECHO_T}$with_pam" >&6; }
5109 # LDAP
5111 { echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5112 echo $ECHO_N "checking whether to build with LDAP support... $ECHO_C" >&6; }
5114 pgac_args="$pgac_args with_ldap"
5117 # Check whether --with-ldap was given.
5118 if test "${with_ldap+set}" = set; then
5119 withval=$with_ldap;
5120 case $withval in
5121 yes)
5123 cat >>confdefs.h <<\_ACEOF
5124 #define USE_LDAP 1
5125 _ACEOF
5132 { { echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5133 echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5134 { (exit 1); exit 1; }; }
5136 esac
5138 else
5139 with_ldap=no
5144 { echo "$as_me:$LINENO: result: $with_ldap" >&5
5145 echo "${ECHO_T}$with_ldap" >&6; }
5150 # Bonjour
5152 { echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5153 echo $ECHO_N "checking whether to build with Bonjour support... $ECHO_C" >&6; }
5155 pgac_args="$pgac_args with_bonjour"
5158 # Check whether --with-bonjour was given.
5159 if test "${with_bonjour+set}" = set; then
5160 withval=$with_bonjour;
5161 case $withval in
5162 yes)
5164 cat >>confdefs.h <<\_ACEOF
5165 #define USE_BONJOUR 1
5166 _ACEOF
5173 { { echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5174 echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5175 { (exit 1); exit 1; }; }
5177 esac
5179 else
5180 with_bonjour=no
5185 { echo "$as_me:$LINENO: result: $with_bonjour" >&5
5186 echo "${ECHO_T}$with_bonjour" >&6; }
5191 # OpenSSL
5193 { echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5194 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6; }
5196 pgac_args="$pgac_args with_openssl"
5199 # Check whether --with-openssl was given.
5200 if test "${with_openssl+set}" = set; then
5201 withval=$with_openssl;
5202 case $withval in
5203 yes)
5205 cat >>confdefs.h <<\_ACEOF
5206 #define USE_SSL 1
5207 _ACEOF
5214 { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5215 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5216 { (exit 1); exit 1; }; }
5218 esac
5220 else
5221 with_openssl=no
5226 { echo "$as_me:$LINENO: result: $with_openssl" >&5
5227 echo "${ECHO_T}$with_openssl" >&6; }
5232 # Readline
5235 pgac_args="$pgac_args with_readline"
5238 # Check whether --with-readline was given.
5239 if test "${with_readline+set}" = set; then
5240 withval=$with_readline;
5241 case $withval in
5242 yes)
5249 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5250 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5251 { (exit 1); exit 1; }; }
5253 esac
5255 else
5256 with_readline=yes
5261 # readline on MinGW has problems with backslashes in psql and other bugs.
5262 # This is particularly a problem with non-US code pages.
5263 # Therefore disable its use until we understand the cause. 2004-07-20
5264 if test "$PORTNAME" = "win32"; then
5265 if test "$with_readline" = yes; then
5266 { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5267 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5268 with_readline=no
5274 # Prefer libedit
5277 pgac_args="$pgac_args with_libedit_preferred"
5280 # Check whether --with-libedit-preferred was given.
5281 if test "${with_libedit_preferred+set}" = set; then
5282 withval=$with_libedit_preferred;
5283 case $withval in
5284 yes)
5291 { { echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5292 echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5293 { (exit 1); exit 1; }; }
5295 esac
5297 else
5298 with_libedit_preferred=no
5306 # OSSP UUID library
5309 pgac_args="$pgac_args with_ossp_uuid"
5312 # Check whether --with-ossp-uuid was given.
5313 if test "${with_ossp_uuid+set}" = set; then
5314 withval=$with_ossp_uuid;
5315 case $withval in
5316 yes)
5323 { { echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5324 echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5325 { (exit 1); exit 1; }; }
5327 esac
5329 else
5330 with_ossp_uuid=no
5339 # XML
5342 pgac_args="$pgac_args with_libxml"
5345 # Check whether --with-libxml was given.
5346 if test "${with_libxml+set}" = set; then
5347 withval=$with_libxml;
5348 case $withval in
5349 yes)
5351 cat >>confdefs.h <<\_ACEOF
5352 #define USE_LIBXML 1
5353 _ACEOF
5360 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5361 echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5362 { (exit 1); exit 1; }; }
5364 esac
5366 else
5367 with_libxml=no
5373 if test "$with_libxml" = yes ; then
5374 for ac_prog in xml2-config
5376 # Extract the first word of "$ac_prog", so it can be a program name with args.
5377 set dummy $ac_prog; ac_word=$2
5378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5380 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5381 echo $ECHO_N "(cached) $ECHO_C" >&6
5382 else
5383 if test -n "$XML2_CONFIG"; then
5384 ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5385 else
5386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387 for as_dir in $PATH
5389 IFS=$as_save_IFS
5390 test -z "$as_dir" && as_dir=.
5391 for ac_exec_ext in '' $ac_executable_extensions; do
5392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5393 ac_cv_prog_XML2_CONFIG="$ac_prog"
5394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5395 break 2
5397 done
5398 done
5399 IFS=$as_save_IFS
5403 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5404 if test -n "$XML2_CONFIG"; then
5405 { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5406 echo "${ECHO_T}$XML2_CONFIG" >&6; }
5407 else
5408 { echo "$as_me:$LINENO: result: no" >&5
5409 echo "${ECHO_T}no" >&6; }
5413 test -n "$XML2_CONFIG" && break
5414 done
5416 if test -n "$XML2_CONFIG"; then
5417 for pgac_option in `$XML2_CONFIG --cflags`; do
5418 case $pgac_option in
5419 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5420 esac
5421 done
5422 for pgac_option in `$XML2_CONFIG --libs`; do
5423 case $pgac_option in
5424 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5425 esac
5426 done
5433 # XSLT
5436 pgac_args="$pgac_args with_libxslt"
5439 # Check whether --with-libxslt was given.
5440 if test "${with_libxslt+set}" = set; then
5441 withval=$with_libxslt;
5442 case $withval in
5443 yes)
5445 cat >>confdefs.h <<\_ACEOF
5446 #define USE_LIBXSLT 1
5447 _ACEOF
5454 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5455 echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5456 { (exit 1); exit 1; }; }
5458 esac
5460 else
5461 with_libxslt=no
5471 # tzdata
5474 pgac_args="$pgac_args with_system_tzdata"
5477 # Check whether --with-system-tzdata was given.
5478 if test "${with_system_tzdata+set}" = set; then
5479 withval=$with_system_tzdata;
5480 case $withval in
5481 yes)
5482 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5483 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5484 { (exit 1); exit 1; }; }
5487 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5488 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5489 { (exit 1); exit 1; }; }
5494 esac
5502 # Zlib
5505 pgac_args="$pgac_args with_zlib"
5508 # Check whether --with-zlib was given.
5509 if test "${with_zlib+set}" = set; then
5510 withval=$with_zlib;
5511 case $withval in
5512 yes)
5519 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5520 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5521 { (exit 1); exit 1; }; }
5523 esac
5525 else
5526 with_zlib=yes
5534 # Elf
5537 # Assume system is ELF if it predefines __ELF__ as 1,
5538 # otherwise believe host_os based default.
5539 case $host_os in
5540 freebsd1*|freebsd2*) elf=no;;
5541 freebsd3*|freebsd4*) elf=yes;;
5542 esac
5545 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5546 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5547 if test "${ac_cv_path_GREP+set}" = set; then
5548 echo $ECHO_N "(cached) $ECHO_C" >&6
5549 else
5550 # Extract the first word of "grep ggrep" to use in msg output
5551 if test -z "$GREP"; then
5552 set dummy grep ggrep; ac_prog_name=$2
5553 if test "${ac_cv_path_GREP+set}" = set; then
5554 echo $ECHO_N "(cached) $ECHO_C" >&6
5555 else
5556 ac_path_GREP_found=false
5557 # Loop through the user's path and test for each of PROGNAME-LIST
5558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5559 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5561 IFS=$as_save_IFS
5562 test -z "$as_dir" && as_dir=.
5563 for ac_prog in grep ggrep; do
5564 for ac_exec_ext in '' $ac_executable_extensions; do
5565 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5566 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5567 # Check for GNU ac_path_GREP and select it if it is found.
5568 # Check for GNU $ac_path_GREP
5569 case `"$ac_path_GREP" --version 2>&1` in
5570 *GNU*)
5571 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5573 ac_count=0
5574 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5575 while :
5577 cat "conftest.in" "conftest.in" >"conftest.tmp"
5578 mv "conftest.tmp" "conftest.in"
5579 cp "conftest.in" "conftest.nl"
5580 echo 'GREP' >> "conftest.nl"
5581 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5582 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5583 ac_count=`expr $ac_count + 1`
5584 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5585 # Best one so far, save it but keep looking for a better one
5586 ac_cv_path_GREP="$ac_path_GREP"
5587 ac_path_GREP_max=$ac_count
5589 # 10*(2^10) chars as input seems more than enough
5590 test $ac_count -gt 10 && break
5591 done
5592 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5593 esac
5596 $ac_path_GREP_found && break 3
5597 done
5598 done
5600 done
5601 IFS=$as_save_IFS
5606 GREP="$ac_cv_path_GREP"
5607 if test -z "$GREP"; then
5608 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5609 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5610 { (exit 1); exit 1; }; }
5613 else
5614 ac_cv_path_GREP=$GREP
5619 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5620 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5621 GREP="$ac_cv_path_GREP"
5624 { echo "$as_me:$LINENO: checking for egrep" >&5
5625 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5626 if test "${ac_cv_path_EGREP+set}" = set; then
5627 echo $ECHO_N "(cached) $ECHO_C" >&6
5628 else
5629 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5630 then ac_cv_path_EGREP="$GREP -E"
5631 else
5632 # Extract the first word of "egrep" to use in msg output
5633 if test -z "$EGREP"; then
5634 set dummy egrep; ac_prog_name=$2
5635 if test "${ac_cv_path_EGREP+set}" = set; then
5636 echo $ECHO_N "(cached) $ECHO_C" >&6
5637 else
5638 ac_path_EGREP_found=false
5639 # Loop through the user's path and test for each of PROGNAME-LIST
5640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5641 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5643 IFS=$as_save_IFS
5644 test -z "$as_dir" && as_dir=.
5645 for ac_prog in egrep; do
5646 for ac_exec_ext in '' $ac_executable_extensions; do
5647 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5648 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5649 # Check for GNU ac_path_EGREP and select it if it is found.
5650 # Check for GNU $ac_path_EGREP
5651 case `"$ac_path_EGREP" --version 2>&1` in
5652 *GNU*)
5653 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5655 ac_count=0
5656 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5657 while :
5659 cat "conftest.in" "conftest.in" >"conftest.tmp"
5660 mv "conftest.tmp" "conftest.in"
5661 cp "conftest.in" "conftest.nl"
5662 echo 'EGREP' >> "conftest.nl"
5663 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5664 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5665 ac_count=`expr $ac_count + 1`
5666 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5667 # Best one so far, save it but keep looking for a better one
5668 ac_cv_path_EGREP="$ac_path_EGREP"
5669 ac_path_EGREP_max=$ac_count
5671 # 10*(2^10) chars as input seems more than enough
5672 test $ac_count -gt 10 && break
5673 done
5674 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5675 esac
5678 $ac_path_EGREP_found && break 3
5679 done
5680 done
5682 done
5683 IFS=$as_save_IFS
5688 EGREP="$ac_cv_path_EGREP"
5689 if test -z "$EGREP"; then
5690 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5691 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5692 { (exit 1); exit 1; }; }
5695 else
5696 ac_cv_path_EGREP=$EGREP
5702 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5703 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5704 EGREP="$ac_cv_path_EGREP"
5707 cat >conftest.$ac_ext <<_ACEOF
5708 /* confdefs.h. */
5709 _ACEOF
5710 cat confdefs.h >>conftest.$ac_ext
5711 cat >>conftest.$ac_ext <<_ACEOF
5712 /* end confdefs.h. */
5713 #if __ELF__
5715 #endif
5717 _ACEOF
5718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5719 $EGREP "yes" >/dev/null 2>&1; then
5720 ELF_SYS=true
5721 else
5722 if test "X$elf" = "Xyes" ; then
5723 ELF_SYS=true
5724 else
5725 ELF_SYS=
5728 rm -f conftest*
5733 # Assignments
5736 CPPFLAGS="$CPPFLAGS $INCLUDES"
5737 LDFLAGS="$LDFLAGS $LIBDIRS"
5742 # Check whether --with-gnu-ld was given.
5743 if test "${with_gnu_ld+set}" = set; then
5744 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5745 else
5746 with_gnu_ld=no
5749 ac_prog=ld
5750 if test "$GCC" = yes; then
5751 # Check if gcc -print-prog-name=ld gives a path.
5752 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5753 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
5754 case $host in
5755 *-*-mingw*)
5756 # gcc leaves a trailing carriage return which upsets mingw
5757 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5759 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5760 esac
5761 case "$ac_prog" in
5762 # Accept absolute paths.
5763 [\\/]* | [A-Za-z]:[\\/]*)
5764 re_direlt='/[^/][^/]*/\.\./'
5765 # Canonicalize the path of ld
5766 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5767 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5768 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5769 done
5770 test -z "$LD" && LD="$ac_prog"
5773 # If it fails, then pretend we aren't using GCC.
5774 ac_prog=ld
5777 # If it is relative, then search for the first ld in PATH.
5778 with_gnu_ld=unknown
5780 esac
5781 elif test "$with_gnu_ld" = yes; then
5782 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5783 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5784 else
5785 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5786 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5788 if test "${ac_cv_path_LD+set}" = set; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
5790 else
5791 if test -z "$LD"; then
5792 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5793 for ac_dir in $PATH; do
5794 test -z "$ac_dir" && ac_dir=.
5795 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5796 ac_cv_path_LD="$ac_dir/$ac_prog"
5797 # Check to see if the program is GNU ld. I'd rather use --version,
5798 # but apparently some GNU ld's only accept -v.
5799 # Break only if it was the GNU/non-GNU ld that we prefer.
5800 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5801 test "$with_gnu_ld" != no && break
5802 else
5803 test "$with_gnu_ld" != yes && break
5806 done
5807 IFS="$ac_save_ifs"
5808 else
5809 ac_cv_path_LD="$LD" # Let the user override the test with a path.
5813 LD="$ac_cv_path_LD"
5814 if test -n "$LD"; then
5815 { echo "$as_me:$LINENO: result: $LD" >&5
5816 echo "${ECHO_T}$LD" >&6; }
5817 else
5818 { echo "$as_me:$LINENO: result: no" >&5
5819 echo "${ECHO_T}no" >&6; }
5821 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5822 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5823 { (exit 1); exit 1; }; }
5824 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5825 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5826 if test "${ac_cv_prog_gnu_ld+set}" = set; then
5827 echo $ECHO_N "(cached) $ECHO_C" >&6
5828 else
5829 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5830 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5831 ac_cv_prog_gnu_ld=yes
5832 else
5833 ac_cv_prog_gnu_ld=no
5836 { echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
5837 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6; }
5838 with_gnu_ld=$ac_cv_prog_gnu_ld
5843 case $host_os in sysv5*)
5844 { echo "$as_me:$LINENO: checking whether ld -R works" >&5
5845 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6; }
5846 if test "${pgac_cv_prog_ld_R+set}" = set; then
5847 echo $ECHO_N "(cached) $ECHO_C" >&6
5848 else
5850 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
5851 cat >conftest.$ac_ext <<_ACEOF
5852 /* confdefs.h. */
5853 _ACEOF
5854 cat confdefs.h >>conftest.$ac_ext
5855 cat >>conftest.$ac_ext <<_ACEOF
5856 /* end confdefs.h. */
5859 main ()
5863 return 0;
5865 _ACEOF
5866 rm -f conftest.$ac_objext conftest$ac_exeext
5867 if { (ac_try="$ac_link"
5868 case "(($ac_try" in
5869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5870 *) ac_try_echo=$ac_try;;
5871 esac
5872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5873 (eval "$ac_link") 2>conftest.er1
5874 ac_status=$?
5875 grep -v '^ *+' conftest.er1 >conftest.err
5876 rm -f conftest.er1
5877 cat conftest.err >&5
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); } && {
5880 test -z "$ac_c_werror_flag" ||
5881 test ! -s conftest.err
5882 } && test -s conftest$ac_exeext &&
5883 $as_test_x conftest$ac_exeext; then
5884 pgac_cv_prog_ld_R=yes
5885 else
5886 echo "$as_me: failed program was:" >&5
5887 sed 's/^/| /' conftest.$ac_ext >&5
5889 pgac_cv_prog_ld_R=no
5892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5893 conftest$ac_exeext conftest.$ac_ext
5894 LDFLAGS=$pgac_save_LDFLAGS
5897 { echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
5898 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6; }
5899 ld_R_works=$pgac_cv_prog_ld_R
5901 esac
5902 if test -n "$ac_tool_prefix"; then
5903 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5904 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5905 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5907 if test "${ac_cv_prog_RANLIB+set}" = set; then
5908 echo $ECHO_N "(cached) $ECHO_C" >&6
5909 else
5910 if test -n "$RANLIB"; then
5911 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5912 else
5913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5914 for as_dir in $PATH
5916 IFS=$as_save_IFS
5917 test -z "$as_dir" && as_dir=.
5918 for ac_exec_ext in '' $ac_executable_extensions; do
5919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5920 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5922 break 2
5924 done
5925 done
5926 IFS=$as_save_IFS
5930 RANLIB=$ac_cv_prog_RANLIB
5931 if test -n "$RANLIB"; then
5932 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5933 echo "${ECHO_T}$RANLIB" >&6; }
5934 else
5935 { echo "$as_me:$LINENO: result: no" >&5
5936 echo "${ECHO_T}no" >&6; }
5941 if test -z "$ac_cv_prog_RANLIB"; then
5942 ac_ct_RANLIB=$RANLIB
5943 # Extract the first word of "ranlib", so it can be a program name with args.
5944 set dummy ranlib; ac_word=$2
5945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5947 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5948 echo $ECHO_N "(cached) $ECHO_C" >&6
5949 else
5950 if test -n "$ac_ct_RANLIB"; then
5951 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5952 else
5953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5954 for as_dir in $PATH
5956 IFS=$as_save_IFS
5957 test -z "$as_dir" && as_dir=.
5958 for ac_exec_ext in '' $ac_executable_extensions; do
5959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5960 ac_cv_prog_ac_ct_RANLIB="ranlib"
5961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5962 break 2
5964 done
5965 done
5966 IFS=$as_save_IFS
5970 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5971 if test -n "$ac_ct_RANLIB"; then
5972 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5973 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5974 else
5975 { echo "$as_me:$LINENO: result: no" >&5
5976 echo "${ECHO_T}no" >&6; }
5979 if test "x$ac_ct_RANLIB" = x; then
5980 RANLIB=":"
5981 else
5982 case $cross_compiling:$ac_tool_warned in
5983 yes:)
5984 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5985 whose name does not start with the host triplet. If you think this
5986 configuration is useful to you, please write to autoconf@gnu.org." >&5
5987 echo "$as_me: 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." >&2;}
5990 ac_tool_warned=yes ;;
5991 esac
5992 RANLIB=$ac_ct_RANLIB
5994 else
5995 RANLIB="$ac_cv_prog_RANLIB"
5999 if test -n "$ac_tool_prefix"; then
6000 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6001 set dummy ${ac_tool_prefix}strip; ac_word=$2
6002 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6004 if test "${ac_cv_prog_STRIP+set}" = set; then
6005 echo $ECHO_N "(cached) $ECHO_C" >&6
6006 else
6007 if test -n "$STRIP"; then
6008 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6009 else
6010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011 for as_dir in $PATH
6013 IFS=$as_save_IFS
6014 test -z "$as_dir" && as_dir=.
6015 for ac_exec_ext in '' $ac_executable_extensions; do
6016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6017 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6019 break 2
6021 done
6022 done
6023 IFS=$as_save_IFS
6027 STRIP=$ac_cv_prog_STRIP
6028 if test -n "$STRIP"; then
6029 { echo "$as_me:$LINENO: result: $STRIP" >&5
6030 echo "${ECHO_T}$STRIP" >&6; }
6031 else
6032 { echo "$as_me:$LINENO: result: no" >&5
6033 echo "${ECHO_T}no" >&6; }
6038 if test -z "$ac_cv_prog_STRIP"; then
6039 ac_ct_STRIP=$STRIP
6040 # Extract the first word of "strip", so it can be a program name with args.
6041 set dummy strip; ac_word=$2
6042 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6044 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6045 echo $ECHO_N "(cached) $ECHO_C" >&6
6046 else
6047 if test -n "$ac_ct_STRIP"; then
6048 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6049 else
6050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6051 for as_dir in $PATH
6053 IFS=$as_save_IFS
6054 test -z "$as_dir" && as_dir=.
6055 for ac_exec_ext in '' $ac_executable_extensions; do
6056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6057 ac_cv_prog_ac_ct_STRIP="strip"
6058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6059 break 2
6061 done
6062 done
6063 IFS=$as_save_IFS
6067 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6068 if test -n "$ac_ct_STRIP"; then
6069 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6070 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6071 else
6072 { echo "$as_me:$LINENO: result: no" >&5
6073 echo "${ECHO_T}no" >&6; }
6076 if test "x$ac_ct_STRIP" = x; then
6077 STRIP=":"
6078 else
6079 case $cross_compiling:$ac_tool_warned in
6080 yes:)
6081 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6082 whose name does not start with the host triplet. If you think this
6083 configuration is useful to you, please write to autoconf@gnu.org." >&5
6084 echo "$as_me: 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." >&2;}
6087 ac_tool_warned=yes ;;
6088 esac
6089 STRIP=$ac_ct_STRIP
6091 else
6092 STRIP="$ac_cv_prog_STRIP"
6096 { echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6097 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6; }
6098 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6099 STRIP_STATIC_LIB="$STRIP -x"
6100 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6101 { echo "$as_me:$LINENO: result: yes" >&5
6102 echo "${ECHO_T}yes" >&6; }
6103 else
6104 STRIP_STATIC_LIB=:
6105 STRIP_SHARED_LIB=:
6106 { echo "$as_me:$LINENO: result: no" >&5
6107 echo "${ECHO_T}no" >&6; }
6112 if test -n "$ac_tool_prefix"; then
6113 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6114 set dummy ${ac_tool_prefix}ar; ac_word=$2
6115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6117 if test "${ac_cv_prog_AR+set}" = set; then
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
6119 else
6120 if test -n "$AR"; then
6121 ac_cv_prog_AR="$AR" # Let the user override the test.
6122 else
6123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124 for as_dir in $PATH
6126 IFS=$as_save_IFS
6127 test -z "$as_dir" && as_dir=.
6128 for ac_exec_ext in '' $ac_executable_extensions; do
6129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6130 ac_cv_prog_AR="${ac_tool_prefix}ar"
6131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6132 break 2
6134 done
6135 done
6136 IFS=$as_save_IFS
6140 AR=$ac_cv_prog_AR
6141 if test -n "$AR"; then
6142 { echo "$as_me:$LINENO: result: $AR" >&5
6143 echo "${ECHO_T}$AR" >&6; }
6144 else
6145 { echo "$as_me:$LINENO: result: no" >&5
6146 echo "${ECHO_T}no" >&6; }
6151 if test -z "$ac_cv_prog_AR"; then
6152 ac_ct_AR=$AR
6153 # Extract the first word of "ar", so it can be a program name with args.
6154 set dummy ar; ac_word=$2
6155 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6157 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6158 echo $ECHO_N "(cached) $ECHO_C" >&6
6159 else
6160 if test -n "$ac_ct_AR"; then
6161 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6162 else
6163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6164 for as_dir in $PATH
6166 IFS=$as_save_IFS
6167 test -z "$as_dir" && as_dir=.
6168 for ac_exec_ext in '' $ac_executable_extensions; do
6169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6170 ac_cv_prog_ac_ct_AR="ar"
6171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6172 break 2
6174 done
6175 done
6176 IFS=$as_save_IFS
6180 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6181 if test -n "$ac_ct_AR"; then
6182 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6183 echo "${ECHO_T}$ac_ct_AR" >&6; }
6184 else
6185 { echo "$as_me:$LINENO: result: no" >&5
6186 echo "${ECHO_T}no" >&6; }
6189 if test "x$ac_ct_AR" = x; then
6190 AR="ar"
6191 else
6192 case $cross_compiling:$ac_tool_warned in
6193 yes:)
6194 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6195 whose name does not start with the host triplet. If you think this
6196 configuration is useful to you, please write to autoconf@gnu.org." >&5
6197 echo "$as_me: 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." >&2;}
6200 ac_tool_warned=yes ;;
6201 esac
6202 AR=$ac_ct_AR
6204 else
6205 AR="$ac_cv_prog_AR"
6208 if test "$PORTNAME" = "win32"; then
6209 if test -n "$ac_tool_prefix"; then
6210 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6211 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6214 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6215 echo $ECHO_N "(cached) $ECHO_C" >&6
6216 else
6217 if test -n "$DLLTOOL"; then
6218 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6219 else
6220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221 for as_dir in $PATH
6223 IFS=$as_save_IFS
6224 test -z "$as_dir" && as_dir=.
6225 for ac_exec_ext in '' $ac_executable_extensions; do
6226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6227 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6229 break 2
6231 done
6232 done
6233 IFS=$as_save_IFS
6237 DLLTOOL=$ac_cv_prog_DLLTOOL
6238 if test -n "$DLLTOOL"; then
6239 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6240 echo "${ECHO_T}$DLLTOOL" >&6; }
6241 else
6242 { echo "$as_me:$LINENO: result: no" >&5
6243 echo "${ECHO_T}no" >&6; }
6248 if test -z "$ac_cv_prog_DLLTOOL"; then
6249 ac_ct_DLLTOOL=$DLLTOOL
6250 # Extract the first word of "dlltool", so it can be a program name with args.
6251 set dummy dlltool; ac_word=$2
6252 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6254 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6255 echo $ECHO_N "(cached) $ECHO_C" >&6
6256 else
6257 if test -n "$ac_ct_DLLTOOL"; then
6258 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6259 else
6260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6261 for as_dir in $PATH
6263 IFS=$as_save_IFS
6264 test -z "$as_dir" && as_dir=.
6265 for ac_exec_ext in '' $ac_executable_extensions; do
6266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6267 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6269 break 2
6271 done
6272 done
6273 IFS=$as_save_IFS
6277 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6278 if test -n "$ac_ct_DLLTOOL"; then
6279 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6280 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
6281 else
6282 { echo "$as_me:$LINENO: result: no" >&5
6283 echo "${ECHO_T}no" >&6; }
6286 if test "x$ac_ct_DLLTOOL" = x; then
6287 DLLTOOL="dlltool"
6288 else
6289 case $cross_compiling:$ac_tool_warned in
6290 yes:)
6291 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6292 whose name does not start with the host triplet. If you think this
6293 configuration is useful to you, please write to autoconf@gnu.org." >&5
6294 echo "$as_me: 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." >&2;}
6297 ac_tool_warned=yes ;;
6298 esac
6299 DLLTOOL=$ac_ct_DLLTOOL
6301 else
6302 DLLTOOL="$ac_cv_prog_DLLTOOL"
6305 if test -n "$ac_tool_prefix"; then
6306 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6307 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6310 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6311 echo $ECHO_N "(cached) $ECHO_C" >&6
6312 else
6313 if test -n "$DLLWRAP"; then
6314 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6315 else
6316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6317 for as_dir in $PATH
6319 IFS=$as_save_IFS
6320 test -z "$as_dir" && as_dir=.
6321 for ac_exec_ext in '' $ac_executable_extensions; do
6322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6323 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6325 break 2
6327 done
6328 done
6329 IFS=$as_save_IFS
6333 DLLWRAP=$ac_cv_prog_DLLWRAP
6334 if test -n "$DLLWRAP"; then
6335 { echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6336 echo "${ECHO_T}$DLLWRAP" >&6; }
6337 else
6338 { echo "$as_me:$LINENO: result: no" >&5
6339 echo "${ECHO_T}no" >&6; }
6344 if test -z "$ac_cv_prog_DLLWRAP"; then
6345 ac_ct_DLLWRAP=$DLLWRAP
6346 # Extract the first word of "dllwrap", so it can be a program name with args.
6347 set dummy dllwrap; ac_word=$2
6348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6350 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6351 echo $ECHO_N "(cached) $ECHO_C" >&6
6352 else
6353 if test -n "$ac_ct_DLLWRAP"; then
6354 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6355 else
6356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6357 for as_dir in $PATH
6359 IFS=$as_save_IFS
6360 test -z "$as_dir" && as_dir=.
6361 for ac_exec_ext in '' $ac_executable_extensions; do
6362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6363 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6365 break 2
6367 done
6368 done
6369 IFS=$as_save_IFS
6373 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6374 if test -n "$ac_ct_DLLWRAP"; then
6375 { echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6376 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6; }
6377 else
6378 { echo "$as_me:$LINENO: result: no" >&5
6379 echo "${ECHO_T}no" >&6; }
6382 if test "x$ac_ct_DLLWRAP" = x; then
6383 DLLWRAP="dllwrap"
6384 else
6385 case $cross_compiling:$ac_tool_warned in
6386 yes:)
6387 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6388 whose name does not start with the host triplet. If you think this
6389 configuration is useful to you, please write to autoconf@gnu.org." >&5
6390 echo "$as_me: 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." >&2;}
6393 ac_tool_warned=yes ;;
6394 esac
6395 DLLWRAP=$ac_ct_DLLWRAP
6397 else
6398 DLLWRAP="$ac_cv_prog_DLLWRAP"
6401 if test -n "$ac_tool_prefix"; then
6402 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6403 set dummy ${ac_tool_prefix}windres; ac_word=$2
6404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6406 if test "${ac_cv_prog_WINDRES+set}" = set; then
6407 echo $ECHO_N "(cached) $ECHO_C" >&6
6408 else
6409 if test -n "$WINDRES"; then
6410 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6411 else
6412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6413 for as_dir in $PATH
6415 IFS=$as_save_IFS
6416 test -z "$as_dir" && as_dir=.
6417 for ac_exec_ext in '' $ac_executable_extensions; do
6418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6419 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6421 break 2
6423 done
6424 done
6425 IFS=$as_save_IFS
6429 WINDRES=$ac_cv_prog_WINDRES
6430 if test -n "$WINDRES"; then
6431 { echo "$as_me:$LINENO: result: $WINDRES" >&5
6432 echo "${ECHO_T}$WINDRES" >&6; }
6433 else
6434 { echo "$as_me:$LINENO: result: no" >&5
6435 echo "${ECHO_T}no" >&6; }
6440 if test -z "$ac_cv_prog_WINDRES"; then
6441 ac_ct_WINDRES=$WINDRES
6442 # Extract the first word of "windres", so it can be a program name with args.
6443 set dummy windres; ac_word=$2
6444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6446 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6447 echo $ECHO_N "(cached) $ECHO_C" >&6
6448 else
6449 if test -n "$ac_ct_WINDRES"; then
6450 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6451 else
6452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453 for as_dir in $PATH
6455 IFS=$as_save_IFS
6456 test -z "$as_dir" && as_dir=.
6457 for ac_exec_ext in '' $ac_executable_extensions; do
6458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6459 ac_cv_prog_ac_ct_WINDRES="windres"
6460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6461 break 2
6463 done
6464 done
6465 IFS=$as_save_IFS
6469 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6470 if test -n "$ac_ct_WINDRES"; then
6471 { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6472 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
6473 else
6474 { echo "$as_me:$LINENO: result: no" >&5
6475 echo "${ECHO_T}no" >&6; }
6478 if test "x$ac_ct_WINDRES" = x; then
6479 WINDRES="windres"
6480 else
6481 case $cross_compiling:$ac_tool_warned in
6482 yes:)
6483 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6484 whose name does not start with the host triplet. If you think this
6485 configuration is useful to you, please write to autoconf@gnu.org." >&5
6486 echo "$as_me: 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." >&2;}
6489 ac_tool_warned=yes ;;
6490 esac
6491 WINDRES=$ac_ct_WINDRES
6493 else
6494 WINDRES="$ac_cv_prog_WINDRES"
6499 # Extract the first word of "tar", so it can be a program name with args.
6500 set dummy tar; ac_word=$2
6501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6503 if test "${ac_cv_path_TAR+set}" = set; then
6504 echo $ECHO_N "(cached) $ECHO_C" >&6
6505 else
6506 case $TAR in
6507 [\\/]* | ?:[\\/]*)
6508 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6512 for as_dir in $PATH
6514 IFS=$as_save_IFS
6515 test -z "$as_dir" && as_dir=.
6516 for ac_exec_ext in '' $ac_executable_extensions; do
6517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6518 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6520 break 2
6522 done
6523 done
6524 IFS=$as_save_IFS
6527 esac
6529 TAR=$ac_cv_path_TAR
6530 if test -n "$TAR"; then
6531 { echo "$as_me:$LINENO: result: $TAR" >&5
6532 echo "${ECHO_T}$TAR" >&6; }
6533 else
6534 { echo "$as_me:$LINENO: result: no" >&5
6535 echo "${ECHO_T}no" >&6; }
6539 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6540 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6541 LN_S=$as_ln_s
6542 if test "$LN_S" = "ln -s"; then
6543 { echo "$as_me:$LINENO: result: yes" >&5
6544 echo "${ECHO_T}yes" >&6; }
6545 else
6546 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6547 echo "${ECHO_T}no, using $LN_S" >&6; }
6550 for ac_prog in gawk mawk nawk awk
6552 # Extract the first word of "$ac_prog", so it can be a program name with args.
6553 set dummy $ac_prog; ac_word=$2
6554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6556 if test "${ac_cv_prog_AWK+set}" = set; then
6557 echo $ECHO_N "(cached) $ECHO_C" >&6
6558 else
6559 if test -n "$AWK"; then
6560 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6561 else
6562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6563 for as_dir in $PATH
6565 IFS=$as_save_IFS
6566 test -z "$as_dir" && as_dir=.
6567 for ac_exec_ext in '' $ac_executable_extensions; do
6568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6569 ac_cv_prog_AWK="$ac_prog"
6570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6571 break 2
6573 done
6574 done
6575 IFS=$as_save_IFS
6579 AWK=$ac_cv_prog_AWK
6580 if test -n "$AWK"; then
6581 { echo "$as_me:$LINENO: result: $AWK" >&5
6582 echo "${ECHO_T}$AWK" >&6; }
6583 else
6584 { echo "$as_me:$LINENO: result: no" >&5
6585 echo "${ECHO_T}no" >&6; }
6589 test -n "$AWK" && break
6590 done
6593 # Let the user override the search
6594 if test -z "$BISON"; then
6595 for ac_prog in bison
6597 # Extract the first word of "$ac_prog", so it can be a program name with args.
6598 set dummy $ac_prog; ac_word=$2
6599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6601 if test "${ac_cv_prog_BISON+set}" = set; then
6602 echo $ECHO_N "(cached) $ECHO_C" >&6
6603 else
6604 if test -n "$BISON"; then
6605 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6606 else
6607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608 for as_dir in $PATH
6610 IFS=$as_save_IFS
6611 test -z "$as_dir" && as_dir=.
6612 for ac_exec_ext in '' $ac_executable_extensions; do
6613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6614 ac_cv_prog_BISON="$ac_prog"
6615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6616 break 2
6618 done
6619 done
6620 IFS=$as_save_IFS
6624 BISON=$ac_cv_prog_BISON
6625 if test -n "$BISON"; then
6626 { echo "$as_me:$LINENO: result: $BISON" >&5
6627 echo "${ECHO_T}$BISON" >&6; }
6628 else
6629 { echo "$as_me:$LINENO: result: no" >&5
6630 echo "${ECHO_T}no" >&6; }
6634 test -n "$BISON" && break
6635 done
6639 if test "$BISON"; then
6640 pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
6641 { echo "$as_me:$LINENO: using $pgac_bison_version" >&5
6642 echo "$as_me: using $pgac_bison_version" >&6;}
6643 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
6644 then
6645 { echo "$as_me:$LINENO: WARNING:
6646 *** The installed version of Bison is too old to use with PostgreSQL.
6647 *** Bison version 1.875 or later is required." >&5
6648 echo "$as_me: WARNING:
6649 *** The installed version of Bison is too old to use with PostgreSQL.
6650 *** Bison version 1.875 or later is required." >&2;}
6651 BISON=""
6655 if test -z "$BISON"; then
6656 { echo "$as_me:$LINENO: WARNING:
6657 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6658 *** change any of the parser definition files. You can obtain Bison from
6659 *** a GNU mirror site. (If you are using the official distribution of
6660 *** PostgreSQL then you do not need to worry about this, because the Bison
6661 *** output is pre-generated.)" >&5
6662 echo "$as_me: WARNING:
6663 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6664 *** change any of the parser definition files. You can obtain Bison from
6665 *** a GNU mirror site. (If you are using the official distribution of
6666 *** PostgreSQL then you do not need to worry about this, because the Bison
6667 *** output is pre-generated.)" >&2;}
6669 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
6672 { echo "$as_me:$LINENO: checking for flex" >&5
6673 echo $ECHO_N "checking for flex... $ECHO_C" >&6; }
6674 if test "${pgac_cv_path_flex+set}" = set; then
6675 echo $ECHO_N "(cached) $ECHO_C" >&6
6676 else
6677 # Let the user override the test
6678 if test -n "$FLEX"; then
6679 pgac_cv_path_flex=$FLEX
6680 else
6681 pgac_save_IFS=$IFS
6682 IFS=$PATH_SEPARATOR
6683 for pgac_dir in $PATH; do
6684 IFS=$pgac_save_IFS
6685 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
6686 pgac_dir=`pwd`
6688 for pgac_prog in flex lex; do
6689 pgac_candidate="$pgac_dir/$pgac_prog"
6690 if test -f "$pgac_candidate" \
6691 && $pgac_candidate --version </dev/null >/dev/null 2>&1
6692 then
6693 echo '%%' > conftest.l
6694 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
6695 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
6696 pgac_broken_flex=$pgac_candidate
6697 continue
6700 pgac_cv_path_flex=$pgac_candidate
6701 break 2
6704 done
6705 done
6706 rm -f conftest.l lex.yy.c
6707 : ${pgac_cv_path_flex=no}
6711 { echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
6712 echo "${ECHO_T}$pgac_cv_path_flex" >&6; }
6713 if test x"$pgac_cv_path_flex" = x"no"; then
6714 if test -n "$pgac_broken_flex"; then
6715 { echo "$as_me:$LINENO: WARNING:
6716 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
6717 *** should get version 2.5.4 or later." >&5
6718 echo "$as_me: 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." >&2;}
6723 { echo "$as_me:$LINENO: WARNING:
6724 *** Without Flex you will not be able to build PostgreSQL from CVS or
6725 *** change any of the scanner definition files. You can obtain Flex from
6726 *** a GNU mirror site. (If you are using the official distribution of
6727 *** PostgreSQL then you do not need to worry about this because the Flex
6728 *** output is pre-generated.)" >&5
6729 echo "$as_me: WARNING:
6730 *** Without Flex you will not be able to build PostgreSQL from CVS or
6731 *** change any of the scanner definition files. You can obtain Flex from
6732 *** a GNU mirror site. (If you are using the official distribution of
6733 *** PostgreSQL then you do not need to worry about this because the Flex
6734 *** output is pre-generated.)" >&2;}
6736 FLEX=
6737 else
6738 FLEX=$pgac_cv_path_flex
6739 pgac_flex_version=`$FLEX -V 2>/dev/null`
6740 { echo "$as_me:$LINENO: using $pgac_flex_version" >&5
6741 echo "$as_me: using $pgac_flex_version" >&6;}
6748 # Extract the first word of "perl", so it can be a program name with args.
6749 set dummy perl; ac_word=$2
6750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6752 if test "${ac_cv_path_PERL+set}" = set; then
6753 echo $ECHO_N "(cached) $ECHO_C" >&6
6754 else
6755 case $PERL in
6756 [\\/]* | ?:[\\/]*)
6757 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761 for as_dir in $PATH
6763 IFS=$as_save_IFS
6764 test -z "$as_dir" && as_dir=.
6765 for ac_exec_ext in '' $ac_executable_extensions; do
6766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6767 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6769 break 2
6771 done
6772 done
6773 IFS=$as_save_IFS
6776 esac
6778 PERL=$ac_cv_path_PERL
6779 if test -n "$PERL"; then
6780 { echo "$as_me:$LINENO: result: $PERL" >&5
6781 echo "${ECHO_T}$PERL" >&6; }
6782 else
6783 { echo "$as_me:$LINENO: result: no" >&5
6784 echo "${ECHO_T}no" >&6; }
6788 if test "$with_perl" = yes; then
6790 { echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
6791 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6; }
6792 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
6793 { echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
6794 echo "${ECHO_T}$perl_archlibexp" >&6; }
6795 { echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
6796 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6; }
6797 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
6798 { echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
6799 echo "${ECHO_T}$perl_privlibexp" >&6; }
6800 { echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
6801 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6; }
6802 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
6803 { echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
6804 echo "${ECHO_T}$perl_useshrplib" >&6; }
6806 { echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
6807 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6; }
6808 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
6809 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
6810 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
6811 if test -z "$perl_embed_ldflags" ; then
6812 { echo "$as_me:$LINENO: result: no" >&5
6813 echo "${ECHO_T}no" >&6; }
6814 { { echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
6815 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6816 installed." >&5
6817 echo "$as_me: error: could not determine flags for linking embedded Perl.
6818 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6819 installed." >&2;}
6820 { (exit 1); exit 1; }; }
6821 else
6822 { echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
6823 echo "${ECHO_T}$perl_embed_ldflags" >&6; }
6828 if test "$with_python" = yes; then
6829 # Extract the first word of "python", so it can be a program name with args.
6830 set dummy python; ac_word=$2
6831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6833 if test "${ac_cv_path_PYTHON+set}" = set; then
6834 echo $ECHO_N "(cached) $ECHO_C" >&6
6835 else
6836 case $PYTHON in
6837 [\\/]* | ?:[\\/]*)
6838 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
6841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842 for as_dir in $PATH
6844 IFS=$as_save_IFS
6845 test -z "$as_dir" && as_dir=.
6846 for ac_exec_ext in '' $ac_executable_extensions; do
6847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6848 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
6849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6850 break 2
6852 done
6853 done
6854 IFS=$as_save_IFS
6857 esac
6859 PYTHON=$ac_cv_path_PYTHON
6860 if test -n "$PYTHON"; then
6861 { echo "$as_me:$LINENO: result: $PYTHON" >&5
6862 echo "${ECHO_T}$PYTHON" >&6; }
6863 else
6864 { echo "$as_me:$LINENO: result: no" >&5
6865 echo "${ECHO_T}no" >&6; }
6869 if test x"$PYTHON" = x""; then
6870 { { echo "$as_me:$LINENO: error: Python not found" >&5
6871 echo "$as_me: error: Python not found" >&2;}
6872 { (exit 1); exit 1; }; }
6876 { echo "$as_me:$LINENO: checking for Python distutils module" >&5
6877 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6; }
6878 if "${PYTHON}" 2>&- -c 'import distutils'
6879 then
6880 { echo "$as_me:$LINENO: result: yes" >&5
6881 echo "${ECHO_T}yes" >&6; }
6882 else
6883 { echo "$as_me:$LINENO: result: no" >&5
6884 echo "${ECHO_T}no" >&6; }
6885 { { echo "$as_me:$LINENO: error: distutils module not found" >&5
6886 echo "$as_me: error: distutils module not found" >&2;}
6887 { (exit 1); exit 1; }; }
6889 { echo "$as_me:$LINENO: checking Python configuration directory" >&5
6890 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6; }
6891 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
6892 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'))"`
6893 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print('-I'+distutils.sysconfig.get_python_inc())"`
6895 # This should be enough of a message.
6896 { echo "$as_me:$LINENO: result: $python_configdir" >&5
6897 echo "${ECHO_T}$python_configdir" >&6; }
6900 { echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
6901 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6; }
6903 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
6904 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
6905 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
6906 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
6908 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
6909 then
6910 # New way: use the official shared library
6911 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
6912 python_libspec="-L${python_libdir} -l${ldlibrary}"
6913 else
6914 # Old way: use libpython from python_configdir
6915 python_libdir="${python_configdir}"
6916 python_libspec="-L${python_libdir} -lpython${python_version}"
6919 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS'))))"`
6921 { echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
6922 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6; }
6925 # threaded python is not supported on bsd's
6926 { echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
6927 echo $ECHO_N "checking whether Python is compiled with thread support... $ECHO_C" >&6; }
6928 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
6929 if test "$pythreads" = "1"; then
6930 { echo "$as_me:$LINENO: result: yes" >&5
6931 echo "${ECHO_T}yes" >&6; }
6932 case $host_os in
6933 openbsd*|freebsd*)
6934 { { echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
6935 echo "$as_me: error: threaded Python not supported on this platform" >&2;}
6936 { (exit 1); exit 1; }; }
6938 esac
6939 else
6940 { echo "$as_me:$LINENO: result: no" >&5
6941 echo "${ECHO_T}no" >&6; }
6947 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
6948 # Extract the first word of "zic", so it can be a program name with args.
6949 set dummy zic; ac_word=$2
6950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6952 if test "${ac_cv_path_ZIC+set}" = set; then
6953 echo $ECHO_N "(cached) $ECHO_C" >&6
6954 else
6955 case $ZIC in
6956 [\\/]* | ?:[\\/]*)
6957 ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
6960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961 for as_dir in $PATH
6963 IFS=$as_save_IFS
6964 test -z "$as_dir" && as_dir=.
6965 for ac_exec_ext in '' $ac_executable_extensions; do
6966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6967 ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
6968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6969 break 2
6971 done
6972 done
6973 IFS=$as_save_IFS
6976 esac
6978 ZIC=$ac_cv_path_ZIC
6979 if test -n "$ZIC"; then
6980 { echo "$as_me:$LINENO: result: $ZIC" >&5
6981 echo "${ECHO_T}$ZIC" >&6; }
6982 else
6983 { echo "$as_me:$LINENO: result: no" >&5
6984 echo "${ECHO_T}no" >&6; }
6988 if test -z "$ZIC"; then
6989 { { echo "$as_me:$LINENO: error:
6990 When cross-compiling, either use the option --with-system-tzdata to use
6991 existing time-zone data, or set the environment variable ZIC to a zic
6992 program to use during the build." >&5
6993 echo "$as_me: error:
6994 When cross-compiling, either use the option --with-system-tzdata to use
6995 existing time-zone data, or set the environment variable ZIC to a zic
6996 program to use during the build." >&2;}
6997 { (exit 1); exit 1; }; }
7003 ## Libraries
7005 ## Most libraries are included only if they demonstrably provide a function
7006 ## we need, but libm is an exception: always include it, because there are
7007 ## too many compilers that play cute optimization games that will break
7008 ## probes for standard functions such as pow().
7012 { echo "$as_me:$LINENO: checking for main in -lm" >&5
7013 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
7014 if test "${ac_cv_lib_m_main+set}" = set; then
7015 echo $ECHO_N "(cached) $ECHO_C" >&6
7016 else
7017 ac_check_lib_save_LIBS=$LIBS
7018 LIBS="-lm $LIBS"
7019 cat >conftest.$ac_ext <<_ACEOF
7020 /* confdefs.h. */
7021 _ACEOF
7022 cat confdefs.h >>conftest.$ac_ext
7023 cat >>conftest.$ac_ext <<_ACEOF
7024 /* end confdefs.h. */
7028 main ()
7030 return main ();
7032 return 0;
7034 _ACEOF
7035 rm -f conftest.$ac_objext conftest$ac_exeext
7036 if { (ac_try="$ac_link"
7037 case "(($ac_try" in
7038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7039 *) ac_try_echo=$ac_try;;
7040 esac
7041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7042 (eval "$ac_link") 2>conftest.er1
7043 ac_status=$?
7044 grep -v '^ *+' conftest.er1 >conftest.err
7045 rm -f conftest.er1
7046 cat conftest.err >&5
7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); } && {
7049 test -z "$ac_c_werror_flag" ||
7050 test ! -s conftest.err
7051 } && test -s conftest$ac_exeext &&
7052 $as_test_x conftest$ac_exeext; then
7053 ac_cv_lib_m_main=yes
7054 else
7055 echo "$as_me: failed program was:" >&5
7056 sed 's/^/| /' conftest.$ac_ext >&5
7058 ac_cv_lib_m_main=no
7061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7062 conftest$ac_exeext conftest.$ac_ext
7063 LIBS=$ac_check_lib_save_LIBS
7065 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7066 echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
7067 if test $ac_cv_lib_m_main = yes; then
7068 cat >>confdefs.h <<_ACEOF
7069 #define HAVE_LIBM 1
7070 _ACEOF
7072 LIBS="-lm $LIBS"
7076 { echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7077 echo $ECHO_N "checking for library containing setproctitle... $ECHO_C" >&6; }
7078 if test "${ac_cv_search_setproctitle+set}" = set; then
7079 echo $ECHO_N "(cached) $ECHO_C" >&6
7080 else
7081 ac_func_search_save_LIBS=$LIBS
7082 cat >conftest.$ac_ext <<_ACEOF
7083 /* confdefs.h. */
7084 _ACEOF
7085 cat confdefs.h >>conftest.$ac_ext
7086 cat >>conftest.$ac_ext <<_ACEOF
7087 /* end confdefs.h. */
7089 /* Override any GCC internal prototype to avoid an error.
7090 Use char because int might match the return type of a GCC
7091 builtin and then its argument prototype would still apply. */
7092 #ifdef __cplusplus
7093 extern "C"
7094 #endif
7095 char setproctitle ();
7097 main ()
7099 return setproctitle ();
7101 return 0;
7103 _ACEOF
7104 for ac_lib in '' util; do
7105 if test -z "$ac_lib"; then
7106 ac_res="none required"
7107 else
7108 ac_res=-l$ac_lib
7109 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7111 rm -f conftest.$ac_objext conftest$ac_exeext
7112 if { (ac_try="$ac_link"
7113 case "(($ac_try" in
7114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7115 *) ac_try_echo=$ac_try;;
7116 esac
7117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7118 (eval "$ac_link") 2>conftest.er1
7119 ac_status=$?
7120 grep -v '^ *+' conftest.er1 >conftest.err
7121 rm -f conftest.er1
7122 cat conftest.err >&5
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); } && {
7125 test -z "$ac_c_werror_flag" ||
7126 test ! -s conftest.err
7127 } && test -s conftest$ac_exeext &&
7128 $as_test_x conftest$ac_exeext; then
7129 ac_cv_search_setproctitle=$ac_res
7130 else
7131 echo "$as_me: failed program was:" >&5
7132 sed 's/^/| /' conftest.$ac_ext >&5
7137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7138 conftest$ac_exeext
7139 if test "${ac_cv_search_setproctitle+set}" = set; then
7140 break
7142 done
7143 if test "${ac_cv_search_setproctitle+set}" = set; then
7145 else
7146 ac_cv_search_setproctitle=no
7148 rm conftest.$ac_ext
7149 LIBS=$ac_func_search_save_LIBS
7151 { echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7152 echo "${ECHO_T}$ac_cv_search_setproctitle" >&6; }
7153 ac_res=$ac_cv_search_setproctitle
7154 if test "$ac_res" != no; then
7155 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7159 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7160 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
7161 if test "${ac_cv_search_dlopen+set}" = set; then
7162 echo $ECHO_N "(cached) $ECHO_C" >&6
7163 else
7164 ac_func_search_save_LIBS=$LIBS
7165 cat >conftest.$ac_ext <<_ACEOF
7166 /* confdefs.h. */
7167 _ACEOF
7168 cat confdefs.h >>conftest.$ac_ext
7169 cat >>conftest.$ac_ext <<_ACEOF
7170 /* end confdefs.h. */
7172 /* Override any GCC internal prototype to avoid an error.
7173 Use char because int might match the return type of a GCC
7174 builtin and then its argument prototype would still apply. */
7175 #ifdef __cplusplus
7176 extern "C"
7177 #endif
7178 char dlopen ();
7180 main ()
7182 return dlopen ();
7184 return 0;
7186 _ACEOF
7187 for ac_lib in '' dl; do
7188 if test -z "$ac_lib"; then
7189 ac_res="none required"
7190 else
7191 ac_res=-l$ac_lib
7192 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7194 rm -f conftest.$ac_objext conftest$ac_exeext
7195 if { (ac_try="$ac_link"
7196 case "(($ac_try" in
7197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7198 *) ac_try_echo=$ac_try;;
7199 esac
7200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7201 (eval "$ac_link") 2>conftest.er1
7202 ac_status=$?
7203 grep -v '^ *+' conftest.er1 >conftest.err
7204 rm -f conftest.er1
7205 cat conftest.err >&5
7206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207 (exit $ac_status); } && {
7208 test -z "$ac_c_werror_flag" ||
7209 test ! -s conftest.err
7210 } && test -s conftest$ac_exeext &&
7211 $as_test_x conftest$ac_exeext; then
7212 ac_cv_search_dlopen=$ac_res
7213 else
7214 echo "$as_me: failed program was:" >&5
7215 sed 's/^/| /' conftest.$ac_ext >&5
7220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7221 conftest$ac_exeext
7222 if test "${ac_cv_search_dlopen+set}" = set; then
7223 break
7225 done
7226 if test "${ac_cv_search_dlopen+set}" = set; then
7228 else
7229 ac_cv_search_dlopen=no
7231 rm conftest.$ac_ext
7232 LIBS=$ac_func_search_save_LIBS
7234 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7235 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
7236 ac_res=$ac_cv_search_dlopen
7237 if test "$ac_res" != no; then
7238 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7242 { echo "$as_me:$LINENO: checking for library containing socket" >&5
7243 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
7244 if test "${ac_cv_search_socket+set}" = set; then
7245 echo $ECHO_N "(cached) $ECHO_C" >&6
7246 else
7247 ac_func_search_save_LIBS=$LIBS
7248 cat >conftest.$ac_ext <<_ACEOF
7249 /* confdefs.h. */
7250 _ACEOF
7251 cat confdefs.h >>conftest.$ac_ext
7252 cat >>conftest.$ac_ext <<_ACEOF
7253 /* end confdefs.h. */
7255 /* Override any GCC internal prototype to avoid an error.
7256 Use char because int might match the return type of a GCC
7257 builtin and then its argument prototype would still apply. */
7258 #ifdef __cplusplus
7259 extern "C"
7260 #endif
7261 char socket ();
7263 main ()
7265 return socket ();
7267 return 0;
7269 _ACEOF
7270 for ac_lib in '' socket wsock32; do
7271 if test -z "$ac_lib"; then
7272 ac_res="none required"
7273 else
7274 ac_res=-l$ac_lib
7275 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7277 rm -f conftest.$ac_objext conftest$ac_exeext
7278 if { (ac_try="$ac_link"
7279 case "(($ac_try" in
7280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7281 *) ac_try_echo=$ac_try;;
7282 esac
7283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7284 (eval "$ac_link") 2>conftest.er1
7285 ac_status=$?
7286 grep -v '^ *+' conftest.er1 >conftest.err
7287 rm -f conftest.er1
7288 cat conftest.err >&5
7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); } && {
7291 test -z "$ac_c_werror_flag" ||
7292 test ! -s conftest.err
7293 } && test -s conftest$ac_exeext &&
7294 $as_test_x conftest$ac_exeext; then
7295 ac_cv_search_socket=$ac_res
7296 else
7297 echo "$as_me: failed program was:" >&5
7298 sed 's/^/| /' conftest.$ac_ext >&5
7303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7304 conftest$ac_exeext
7305 if test "${ac_cv_search_socket+set}" = set; then
7306 break
7308 done
7309 if test "${ac_cv_search_socket+set}" = set; then
7311 else
7312 ac_cv_search_socket=no
7314 rm conftest.$ac_ext
7315 LIBS=$ac_func_search_save_LIBS
7317 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7318 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
7319 ac_res=$ac_cv_search_socket
7320 if test "$ac_res" != no; then
7321 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7325 { echo "$as_me:$LINENO: checking for library containing shl_load" >&5
7326 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; }
7327 if test "${ac_cv_search_shl_load+set}" = set; then
7328 echo $ECHO_N "(cached) $ECHO_C" >&6
7329 else
7330 ac_func_search_save_LIBS=$LIBS
7331 cat >conftest.$ac_ext <<_ACEOF
7332 /* confdefs.h. */
7333 _ACEOF
7334 cat confdefs.h >>conftest.$ac_ext
7335 cat >>conftest.$ac_ext <<_ACEOF
7336 /* end confdefs.h. */
7338 /* Override any GCC internal prototype to avoid an error.
7339 Use char because int might match the return type of a GCC
7340 builtin and then its argument prototype would still apply. */
7341 #ifdef __cplusplus
7342 extern "C"
7343 #endif
7344 char shl_load ();
7346 main ()
7348 return shl_load ();
7350 return 0;
7352 _ACEOF
7353 for ac_lib in '' dld; do
7354 if test -z "$ac_lib"; then
7355 ac_res="none required"
7356 else
7357 ac_res=-l$ac_lib
7358 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7360 rm -f conftest.$ac_objext conftest$ac_exeext
7361 if { (ac_try="$ac_link"
7362 case "(($ac_try" in
7363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7364 *) ac_try_echo=$ac_try;;
7365 esac
7366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7367 (eval "$ac_link") 2>conftest.er1
7368 ac_status=$?
7369 grep -v '^ *+' conftest.er1 >conftest.err
7370 rm -f conftest.er1
7371 cat conftest.err >&5
7372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7373 (exit $ac_status); } && {
7374 test -z "$ac_c_werror_flag" ||
7375 test ! -s conftest.err
7376 } && test -s conftest$ac_exeext &&
7377 $as_test_x conftest$ac_exeext; then
7378 ac_cv_search_shl_load=$ac_res
7379 else
7380 echo "$as_me: failed program was:" >&5
7381 sed 's/^/| /' conftest.$ac_ext >&5
7386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7387 conftest$ac_exeext
7388 if test "${ac_cv_search_shl_load+set}" = set; then
7389 break
7391 done
7392 if test "${ac_cv_search_shl_load+set}" = set; then
7394 else
7395 ac_cv_search_shl_load=no
7397 rm conftest.$ac_ext
7398 LIBS=$ac_func_search_save_LIBS
7400 { echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
7401 echo "${ECHO_T}$ac_cv_search_shl_load" >&6; }
7402 ac_res=$ac_cv_search_shl_load
7403 if test "$ac_res" != no; then
7404 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7408 # We only use libld in port/dynloader/aix.c
7409 case $host_os in
7410 aix*)
7411 { echo "$as_me:$LINENO: checking for library containing ldopen" >&5
7412 echo $ECHO_N "checking for library containing ldopen... $ECHO_C" >&6; }
7413 if test "${ac_cv_search_ldopen+set}" = set; then
7414 echo $ECHO_N "(cached) $ECHO_C" >&6
7415 else
7416 ac_func_search_save_LIBS=$LIBS
7417 cat >conftest.$ac_ext <<_ACEOF
7418 /* confdefs.h. */
7419 _ACEOF
7420 cat confdefs.h >>conftest.$ac_ext
7421 cat >>conftest.$ac_ext <<_ACEOF
7422 /* end confdefs.h. */
7424 /* Override any GCC internal prototype to avoid an error.
7425 Use char because int might match the return type of a GCC
7426 builtin and then its argument prototype would still apply. */
7427 #ifdef __cplusplus
7428 extern "C"
7429 #endif
7430 char ldopen ();
7432 main ()
7434 return ldopen ();
7436 return 0;
7438 _ACEOF
7439 for ac_lib in '' ld; do
7440 if test -z "$ac_lib"; then
7441 ac_res="none required"
7442 else
7443 ac_res=-l$ac_lib
7444 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7446 rm -f conftest.$ac_objext conftest$ac_exeext
7447 if { (ac_try="$ac_link"
7448 case "(($ac_try" in
7449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7450 *) ac_try_echo=$ac_try;;
7451 esac
7452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7453 (eval "$ac_link") 2>conftest.er1
7454 ac_status=$?
7455 grep -v '^ *+' conftest.er1 >conftest.err
7456 rm -f conftest.er1
7457 cat conftest.err >&5
7458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459 (exit $ac_status); } && {
7460 test -z "$ac_c_werror_flag" ||
7461 test ! -s conftest.err
7462 } && test -s conftest$ac_exeext &&
7463 $as_test_x conftest$ac_exeext; then
7464 ac_cv_search_ldopen=$ac_res
7465 else
7466 echo "$as_me: failed program was:" >&5
7467 sed 's/^/| /' conftest.$ac_ext >&5
7472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7473 conftest$ac_exeext
7474 if test "${ac_cv_search_ldopen+set}" = set; then
7475 break
7477 done
7478 if test "${ac_cv_search_ldopen+set}" = set; then
7480 else
7481 ac_cv_search_ldopen=no
7483 rm conftest.$ac_ext
7484 LIBS=$ac_func_search_save_LIBS
7486 { echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
7487 echo "${ECHO_T}$ac_cv_search_ldopen" >&6; }
7488 ac_res=$ac_cv_search_ldopen
7489 if test "$ac_res" != no; then
7490 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7495 esac
7496 { echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
7497 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6; }
7498 if test "${ac_cv_search_getopt_long+set}" = set; then
7499 echo $ECHO_N "(cached) $ECHO_C" >&6
7500 else
7501 ac_func_search_save_LIBS=$LIBS
7502 cat >conftest.$ac_ext <<_ACEOF
7503 /* confdefs.h. */
7504 _ACEOF
7505 cat confdefs.h >>conftest.$ac_ext
7506 cat >>conftest.$ac_ext <<_ACEOF
7507 /* end confdefs.h. */
7509 /* Override any GCC internal prototype to avoid an error.
7510 Use char because int might match the return type of a GCC
7511 builtin and then its argument prototype would still apply. */
7512 #ifdef __cplusplus
7513 extern "C"
7514 #endif
7515 char getopt_long ();
7517 main ()
7519 return getopt_long ();
7521 return 0;
7523 _ACEOF
7524 for ac_lib in '' getopt gnugetopt; do
7525 if test -z "$ac_lib"; then
7526 ac_res="none required"
7527 else
7528 ac_res=-l$ac_lib
7529 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7531 rm -f conftest.$ac_objext conftest$ac_exeext
7532 if { (ac_try="$ac_link"
7533 case "(($ac_try" in
7534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7535 *) ac_try_echo=$ac_try;;
7536 esac
7537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7538 (eval "$ac_link") 2>conftest.er1
7539 ac_status=$?
7540 grep -v '^ *+' conftest.er1 >conftest.err
7541 rm -f conftest.er1
7542 cat conftest.err >&5
7543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544 (exit $ac_status); } && {
7545 test -z "$ac_c_werror_flag" ||
7546 test ! -s conftest.err
7547 } && test -s conftest$ac_exeext &&
7548 $as_test_x conftest$ac_exeext; then
7549 ac_cv_search_getopt_long=$ac_res
7550 else
7551 echo "$as_me: failed program was:" >&5
7552 sed 's/^/| /' conftest.$ac_ext >&5
7557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7558 conftest$ac_exeext
7559 if test "${ac_cv_search_getopt_long+set}" = set; then
7560 break
7562 done
7563 if test "${ac_cv_search_getopt_long+set}" = set; then
7565 else
7566 ac_cv_search_getopt_long=no
7568 rm conftest.$ac_ext
7569 LIBS=$ac_func_search_save_LIBS
7571 { echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
7572 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6; }
7573 ac_res=$ac_cv_search_getopt_long
7574 if test "$ac_res" != no; then
7575 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7579 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
7580 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
7581 if test "${ac_cv_search_crypt+set}" = set; then
7582 echo $ECHO_N "(cached) $ECHO_C" >&6
7583 else
7584 ac_func_search_save_LIBS=$LIBS
7585 cat >conftest.$ac_ext <<_ACEOF
7586 /* confdefs.h. */
7587 _ACEOF
7588 cat confdefs.h >>conftest.$ac_ext
7589 cat >>conftest.$ac_ext <<_ACEOF
7590 /* end confdefs.h. */
7592 /* Override any GCC internal prototype to avoid an error.
7593 Use char because int might match the return type of a GCC
7594 builtin and then its argument prototype would still apply. */
7595 #ifdef __cplusplus
7596 extern "C"
7597 #endif
7598 char crypt ();
7600 main ()
7602 return crypt ();
7604 return 0;
7606 _ACEOF
7607 for ac_lib in '' crypt; do
7608 if test -z "$ac_lib"; then
7609 ac_res="none required"
7610 else
7611 ac_res=-l$ac_lib
7612 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7614 rm -f conftest.$ac_objext conftest$ac_exeext
7615 if { (ac_try="$ac_link"
7616 case "(($ac_try" in
7617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7618 *) ac_try_echo=$ac_try;;
7619 esac
7620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7621 (eval "$ac_link") 2>conftest.er1
7622 ac_status=$?
7623 grep -v '^ *+' conftest.er1 >conftest.err
7624 rm -f conftest.er1
7625 cat conftest.err >&5
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); } && {
7628 test -z "$ac_c_werror_flag" ||
7629 test ! -s conftest.err
7630 } && test -s conftest$ac_exeext &&
7631 $as_test_x conftest$ac_exeext; then
7632 ac_cv_search_crypt=$ac_res
7633 else
7634 echo "$as_me: failed program was:" >&5
7635 sed 's/^/| /' conftest.$ac_ext >&5
7640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7641 conftest$ac_exeext
7642 if test "${ac_cv_search_crypt+set}" = set; then
7643 break
7645 done
7646 if test "${ac_cv_search_crypt+set}" = set; then
7648 else
7649 ac_cv_search_crypt=no
7651 rm conftest.$ac_ext
7652 LIBS=$ac_func_search_save_LIBS
7654 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
7655 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
7656 ac_res=$ac_cv_search_crypt
7657 if test "$ac_res" != no; then
7658 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7662 # Solaris:
7663 { echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
7664 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6; }
7665 if test "${ac_cv_search_fdatasync+set}" = set; then
7666 echo $ECHO_N "(cached) $ECHO_C" >&6
7667 else
7668 ac_func_search_save_LIBS=$LIBS
7669 cat >conftest.$ac_ext <<_ACEOF
7670 /* confdefs.h. */
7671 _ACEOF
7672 cat confdefs.h >>conftest.$ac_ext
7673 cat >>conftest.$ac_ext <<_ACEOF
7674 /* end confdefs.h. */
7676 /* Override any GCC internal prototype to avoid an error.
7677 Use char because int might match the return type of a GCC
7678 builtin and then its argument prototype would still apply. */
7679 #ifdef __cplusplus
7680 extern "C"
7681 #endif
7682 char fdatasync ();
7684 main ()
7686 return fdatasync ();
7688 return 0;
7690 _ACEOF
7691 for ac_lib in '' rt posix4; do
7692 if test -z "$ac_lib"; then
7693 ac_res="none required"
7694 else
7695 ac_res=-l$ac_lib
7696 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7698 rm -f conftest.$ac_objext conftest$ac_exeext
7699 if { (ac_try="$ac_link"
7700 case "(($ac_try" in
7701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7702 *) ac_try_echo=$ac_try;;
7703 esac
7704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7705 (eval "$ac_link") 2>conftest.er1
7706 ac_status=$?
7707 grep -v '^ *+' conftest.er1 >conftest.err
7708 rm -f conftest.er1
7709 cat conftest.err >&5
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); } && {
7712 test -z "$ac_c_werror_flag" ||
7713 test ! -s conftest.err
7714 } && test -s conftest$ac_exeext &&
7715 $as_test_x conftest$ac_exeext; then
7716 ac_cv_search_fdatasync=$ac_res
7717 else
7718 echo "$as_me: failed program was:" >&5
7719 sed 's/^/| /' conftest.$ac_ext >&5
7724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7725 conftest$ac_exeext
7726 if test "${ac_cv_search_fdatasync+set}" = set; then
7727 break
7729 done
7730 if test "${ac_cv_search_fdatasync+set}" = set; then
7732 else
7733 ac_cv_search_fdatasync=no
7735 rm conftest.$ac_ext
7736 LIBS=$ac_func_search_save_LIBS
7738 { echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
7739 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6; }
7740 ac_res=$ac_cv_search_fdatasync
7741 if test "$ac_res" != no; then
7742 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7746 # Cygwin:
7747 { echo "$as_me:$LINENO: checking for library containing shmget" >&5
7748 echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6; }
7749 if test "${ac_cv_search_shmget+set}" = set; then
7750 echo $ECHO_N "(cached) $ECHO_C" >&6
7751 else
7752 ac_func_search_save_LIBS=$LIBS
7753 cat >conftest.$ac_ext <<_ACEOF
7754 /* confdefs.h. */
7755 _ACEOF
7756 cat confdefs.h >>conftest.$ac_ext
7757 cat >>conftest.$ac_ext <<_ACEOF
7758 /* end confdefs.h. */
7760 /* Override any GCC internal prototype to avoid an error.
7761 Use char because int might match the return type of a GCC
7762 builtin and then its argument prototype would still apply. */
7763 #ifdef __cplusplus
7764 extern "C"
7765 #endif
7766 char shmget ();
7768 main ()
7770 return shmget ();
7772 return 0;
7774 _ACEOF
7775 for ac_lib in '' cygipc; do
7776 if test -z "$ac_lib"; then
7777 ac_res="none required"
7778 else
7779 ac_res=-l$ac_lib
7780 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7782 rm -f conftest.$ac_objext conftest$ac_exeext
7783 if { (ac_try="$ac_link"
7784 case "(($ac_try" in
7785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7786 *) ac_try_echo=$ac_try;;
7787 esac
7788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7789 (eval "$ac_link") 2>conftest.er1
7790 ac_status=$?
7791 grep -v '^ *+' conftest.er1 >conftest.err
7792 rm -f conftest.er1
7793 cat conftest.err >&5
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); } && {
7796 test -z "$ac_c_werror_flag" ||
7797 test ! -s conftest.err
7798 } && test -s conftest$ac_exeext &&
7799 $as_test_x conftest$ac_exeext; then
7800 ac_cv_search_shmget=$ac_res
7801 else
7802 echo "$as_me: failed program was:" >&5
7803 sed 's/^/| /' conftest.$ac_ext >&5
7808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7809 conftest$ac_exeext
7810 if test "${ac_cv_search_shmget+set}" = set; then
7811 break
7813 done
7814 if test "${ac_cv_search_shmget+set}" = set; then
7816 else
7817 ac_cv_search_shmget=no
7819 rm conftest.$ac_ext
7820 LIBS=$ac_func_search_save_LIBS
7822 { echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
7823 echo "${ECHO_T}$ac_cv_search_shmget" >&6; }
7824 ac_res=$ac_cv_search_shmget
7825 if test "$ac_res" != no; then
7826 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7831 if test "$with_readline" = yes; then
7834 if test "${pgac_cv_check_readline+set}" = set; then
7835 echo $ECHO_N "(cached) $ECHO_C" >&6
7836 else
7837 pgac_cv_check_readline=no
7838 pgac_save_LIBS=$LIBS
7839 if test x"$with_libedit_preferred" != x"yes"
7840 then READLINE_ORDER="-lreadline -ledit"
7841 else READLINE_ORDER="-ledit -lreadline"
7843 for pgac_rllib in $READLINE_ORDER ; do
7844 { echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
7845 echo $ECHO_N "checking for ${pgac_rllib}... $ECHO_C" >&6; }
7846 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
7847 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
7848 cat >conftest.$ac_ext <<_ACEOF
7849 /* confdefs.h. */
7850 _ACEOF
7851 cat confdefs.h >>conftest.$ac_ext
7852 cat >>conftest.$ac_ext <<_ACEOF
7853 /* end confdefs.h. */
7855 /* Override any GCC internal prototype to avoid an error.
7856 Use char because int might match the return type of a GCC
7857 builtin and then its argument prototype would still apply. */
7858 #ifdef __cplusplus
7859 extern "C"
7860 #endif
7861 char readline ();
7863 main ()
7865 return readline ();
7867 return 0;
7869 _ACEOF
7870 rm -f conftest.$ac_objext conftest$ac_exeext
7871 if { (ac_try="$ac_link"
7872 case "(($ac_try" in
7873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7874 *) ac_try_echo=$ac_try;;
7875 esac
7876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7877 (eval "$ac_link") 2>conftest.er1
7878 ac_status=$?
7879 grep -v '^ *+' conftest.er1 >conftest.err
7880 rm -f conftest.er1
7881 cat conftest.err >&5
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); } && {
7884 test -z "$ac_c_werror_flag" ||
7885 test ! -s conftest.err
7886 } && test -s conftest$ac_exeext &&
7887 $as_test_x conftest$ac_exeext; then
7889 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
7890 # recognize dependent libraries; assume curses is needed if we didn't
7891 # find any dependency.
7892 case $host_os in
7893 netbsd* | openbsd* | irix*)
7894 if test x"$pgac_lib" = x"" ; then
7895 pgac_lib=" -lcurses"
7896 fi ;;
7897 esac
7899 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
7900 break
7902 else
7903 echo "$as_me: failed program was:" >&5
7904 sed 's/^/| /' conftest.$ac_ext >&5
7909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7910 conftest$ac_exeext conftest.$ac_ext
7911 done
7912 if test "$pgac_cv_check_readline" != no ; then
7913 { echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
7914 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6; }
7915 break
7916 else
7917 { echo "$as_me:$LINENO: result: no" >&5
7918 echo "${ECHO_T}no" >&6; }
7920 done
7921 LIBS=$pgac_save_LIBS
7925 if test "$pgac_cv_check_readline" != no ; then
7926 LIBS="$pgac_cv_check_readline $LIBS"
7928 cat >>confdefs.h <<\_ACEOF
7929 #define HAVE_LIBREADLINE 1
7930 _ACEOF
7935 if test x"$pgac_cv_check_readline" = x"no"; then
7936 { { echo "$as_me:$LINENO: error: readline library not found
7937 If you have readline already installed, see config.log for details on the
7938 failure. It is possible the compiler isn't looking in the proper directory.
7939 Use --without-readline to disable readline support." >&5
7940 echo "$as_me: error: readline library not found
7941 If you have readline already installed, see config.log for details on the
7942 failure. It is possible the compiler isn't looking in the proper directory.
7943 Use --without-readline to disable readline support." >&2;}
7944 { (exit 1); exit 1; }; }
7948 if test "$with_zlib" = yes; then
7950 { echo "$as_me:$LINENO: checking for inflate in -lz" >&5
7951 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6; }
7952 if test "${ac_cv_lib_z_inflate+set}" = set; then
7953 echo $ECHO_N "(cached) $ECHO_C" >&6
7954 else
7955 ac_check_lib_save_LIBS=$LIBS
7956 LIBS="-lz $LIBS"
7957 cat >conftest.$ac_ext <<_ACEOF
7958 /* confdefs.h. */
7959 _ACEOF
7960 cat confdefs.h >>conftest.$ac_ext
7961 cat >>conftest.$ac_ext <<_ACEOF
7962 /* end confdefs.h. */
7964 /* Override any GCC internal prototype to avoid an error.
7965 Use char because int might match the return type of a GCC
7966 builtin and then its argument prototype would still apply. */
7967 #ifdef __cplusplus
7968 extern "C"
7969 #endif
7970 char inflate ();
7972 main ()
7974 return inflate ();
7976 return 0;
7978 _ACEOF
7979 rm -f conftest.$ac_objext conftest$ac_exeext
7980 if { (ac_try="$ac_link"
7981 case "(($ac_try" in
7982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7983 *) ac_try_echo=$ac_try;;
7984 esac
7985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7986 (eval "$ac_link") 2>conftest.er1
7987 ac_status=$?
7988 grep -v '^ *+' conftest.er1 >conftest.err
7989 rm -f conftest.er1
7990 cat conftest.err >&5
7991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992 (exit $ac_status); } && {
7993 test -z "$ac_c_werror_flag" ||
7994 test ! -s conftest.err
7995 } && test -s conftest$ac_exeext &&
7996 $as_test_x conftest$ac_exeext; then
7997 ac_cv_lib_z_inflate=yes
7998 else
7999 echo "$as_me: failed program was:" >&5
8000 sed 's/^/| /' conftest.$ac_ext >&5
8002 ac_cv_lib_z_inflate=no
8005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8006 conftest$ac_exeext conftest.$ac_ext
8007 LIBS=$ac_check_lib_save_LIBS
8009 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
8010 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6; }
8011 if test $ac_cv_lib_z_inflate = yes; then
8012 cat >>confdefs.h <<_ACEOF
8013 #define HAVE_LIBZ 1
8014 _ACEOF
8016 LIBS="-lz $LIBS"
8018 else
8019 { { echo "$as_me:$LINENO: error: zlib library not found
8020 If you have zlib already installed, see config.log for details on the
8021 failure. It is possible the compiler isn't looking in the proper directory.
8022 Use --without-zlib to disable zlib support." >&5
8023 echo "$as_me: error: zlib library not found
8024 If you have zlib already installed, see config.log for details on the
8025 failure. It is possible the compiler isn't looking in the proper directory.
8026 Use --without-zlib to disable zlib support." >&2;}
8027 { (exit 1); exit 1; }; }
8032 if test "$enable_spinlocks" = yes; then
8034 cat >>confdefs.h <<\_ACEOF
8035 #define HAVE_SPINLOCKS 1
8036 _ACEOF
8038 else
8039 { echo "$as_me:$LINENO: WARNING:
8040 *** Not using spinlocks will cause poor performance." >&5
8041 echo "$as_me: WARNING:
8042 *** Not using spinlocks will cause poor performance." >&2;}
8045 if test "$with_gssapi" = yes ; then
8046 if test "$PORTNAME" != "win32"; then
8047 { echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
8048 echo $ECHO_N "checking for library containing gss_init_sec_context... $ECHO_C" >&6; }
8049 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8050 echo $ECHO_N "(cached) $ECHO_C" >&6
8051 else
8052 ac_func_search_save_LIBS=$LIBS
8053 cat >conftest.$ac_ext <<_ACEOF
8054 /* confdefs.h. */
8055 _ACEOF
8056 cat confdefs.h >>conftest.$ac_ext
8057 cat >>conftest.$ac_ext <<_ACEOF
8058 /* end confdefs.h. */
8060 /* Override any GCC internal prototype to avoid an error.
8061 Use char because int might match the return type of a GCC
8062 builtin and then its argument prototype would still apply. */
8063 #ifdef __cplusplus
8064 extern "C"
8065 #endif
8066 char gss_init_sec_context ();
8068 main ()
8070 return gss_init_sec_context ();
8072 return 0;
8074 _ACEOF
8075 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
8076 if test -z "$ac_lib"; then
8077 ac_res="none required"
8078 else
8079 ac_res=-l$ac_lib
8080 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8082 rm -f conftest.$ac_objext conftest$ac_exeext
8083 if { (ac_try="$ac_link"
8084 case "(($ac_try" in
8085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8086 *) ac_try_echo=$ac_try;;
8087 esac
8088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8089 (eval "$ac_link") 2>conftest.er1
8090 ac_status=$?
8091 grep -v '^ *+' conftest.er1 >conftest.err
8092 rm -f conftest.er1
8093 cat conftest.err >&5
8094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095 (exit $ac_status); } && {
8096 test -z "$ac_c_werror_flag" ||
8097 test ! -s conftest.err
8098 } && test -s conftest$ac_exeext &&
8099 $as_test_x conftest$ac_exeext; then
8100 ac_cv_search_gss_init_sec_context=$ac_res
8101 else
8102 echo "$as_me: failed program was:" >&5
8103 sed 's/^/| /' conftest.$ac_ext >&5
8108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8109 conftest$ac_exeext
8110 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8111 break
8113 done
8114 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8116 else
8117 ac_cv_search_gss_init_sec_context=no
8119 rm conftest.$ac_ext
8120 LIBS=$ac_func_search_save_LIBS
8122 { echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
8123 echo "${ECHO_T}$ac_cv_search_gss_init_sec_context" >&6; }
8124 ac_res=$ac_cv_search_gss_init_sec_context
8125 if test "$ac_res" != no; then
8126 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8128 else
8129 { { echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
8130 echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
8131 { (exit 1); exit 1; }; }
8134 else
8135 LIBS="$LIBS -lgssapi32"
8139 if test "$with_krb5" = yes ; then
8140 if test "$PORTNAME" != "win32"; then
8141 { echo "$as_me:$LINENO: checking for library containing com_err" >&5
8142 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
8143 if test "${ac_cv_search_com_err+set}" = set; then
8144 echo $ECHO_N "(cached) $ECHO_C" >&6
8145 else
8146 ac_func_search_save_LIBS=$LIBS
8147 cat >conftest.$ac_ext <<_ACEOF
8148 /* confdefs.h. */
8149 _ACEOF
8150 cat confdefs.h >>conftest.$ac_ext
8151 cat >>conftest.$ac_ext <<_ACEOF
8152 /* end confdefs.h. */
8154 /* Override any GCC internal prototype to avoid an error.
8155 Use char because int might match the return type of a GCC
8156 builtin and then its argument prototype would still apply. */
8157 #ifdef __cplusplus
8158 extern "C"
8159 #endif
8160 char com_err ();
8162 main ()
8164 return com_err ();
8166 return 0;
8168 _ACEOF
8169 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err; do
8170 if test -z "$ac_lib"; then
8171 ac_res="none required"
8172 else
8173 ac_res=-l$ac_lib
8174 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8176 rm -f conftest.$ac_objext conftest$ac_exeext
8177 if { (ac_try="$ac_link"
8178 case "(($ac_try" in
8179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8180 *) ac_try_echo=$ac_try;;
8181 esac
8182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8183 (eval "$ac_link") 2>conftest.er1
8184 ac_status=$?
8185 grep -v '^ *+' conftest.er1 >conftest.err
8186 rm -f conftest.er1
8187 cat conftest.err >&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); } && {
8190 test -z "$ac_c_werror_flag" ||
8191 test ! -s conftest.err
8192 } && test -s conftest$ac_exeext &&
8193 $as_test_x conftest$ac_exeext; then
8194 ac_cv_search_com_err=$ac_res
8195 else
8196 echo "$as_me: failed program was:" >&5
8197 sed 's/^/| /' conftest.$ac_ext >&5
8202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8203 conftest$ac_exeext
8204 if test "${ac_cv_search_com_err+set}" = set; then
8205 break
8207 done
8208 if test "${ac_cv_search_com_err+set}" = set; then
8210 else
8211 ac_cv_search_com_err=no
8213 rm conftest.$ac_ext
8214 LIBS=$ac_func_search_save_LIBS
8216 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8217 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
8218 ac_res=$ac_cv_search_com_err
8219 if test "$ac_res" != no; then
8220 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8222 else
8223 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8224 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8225 { (exit 1); exit 1; }; }
8228 { echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
8229 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6; }
8230 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8231 echo $ECHO_N "(cached) $ECHO_C" >&6
8232 else
8233 ac_func_search_save_LIBS=$LIBS
8234 cat >conftest.$ac_ext <<_ACEOF
8235 /* confdefs.h. */
8236 _ACEOF
8237 cat confdefs.h >>conftest.$ac_ext
8238 cat >>conftest.$ac_ext <<_ACEOF
8239 /* end confdefs.h. */
8241 /* Override any GCC internal prototype to avoid an error.
8242 Use char because int might match the return type of a GCC
8243 builtin and then its argument prototype would still apply. */
8244 #ifdef __cplusplus
8245 extern "C"
8246 #endif
8247 char krb5_sendauth ();
8249 main ()
8251 return krb5_sendauth ();
8253 return 0;
8255 _ACEOF
8256 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
8257 if test -z "$ac_lib"; then
8258 ac_res="none required"
8259 else
8260 ac_res=-l$ac_lib
8261 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8263 rm -f conftest.$ac_objext conftest$ac_exeext
8264 if { (ac_try="$ac_link"
8265 case "(($ac_try" in
8266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8267 *) ac_try_echo=$ac_try;;
8268 esac
8269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8270 (eval "$ac_link") 2>conftest.er1
8271 ac_status=$?
8272 grep -v '^ *+' conftest.er1 >conftest.err
8273 rm -f conftest.er1
8274 cat conftest.err >&5
8275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276 (exit $ac_status); } && {
8277 test -z "$ac_c_werror_flag" ||
8278 test ! -s conftest.err
8279 } && test -s conftest$ac_exeext &&
8280 $as_test_x conftest$ac_exeext; then
8281 ac_cv_search_krb5_sendauth=$ac_res
8282 else
8283 echo "$as_me: failed program was:" >&5
8284 sed 's/^/| /' conftest.$ac_ext >&5
8289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8290 conftest$ac_exeext
8291 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8292 break
8294 done
8295 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8297 else
8298 ac_cv_search_krb5_sendauth=no
8300 rm conftest.$ac_ext
8301 LIBS=$ac_func_search_save_LIBS
8303 { echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
8304 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6; }
8305 ac_res=$ac_cv_search_krb5_sendauth
8306 if test "$ac_res" != no; then
8307 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8309 else
8310 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
8311 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
8312 { (exit 1); exit 1; }; }
8315 else
8316 { echo "$as_me:$LINENO: checking for library containing com_err" >&5
8317 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
8318 if test "${ac_cv_search_com_err+set}" = set; then
8319 echo $ECHO_N "(cached) $ECHO_C" >&6
8320 else
8321 ac_func_search_save_LIBS=$LIBS
8322 cat >conftest.$ac_ext <<_ACEOF
8323 /* confdefs.h. */
8324 _ACEOF
8325 cat confdefs.h >>conftest.$ac_ext
8326 cat >>conftest.$ac_ext <<_ACEOF
8327 /* end confdefs.h. */
8329 /* Override any GCC internal prototype to avoid an error.
8330 Use char because int might match the return type of a GCC
8331 builtin and then its argument prototype would still apply. */
8332 #ifdef __cplusplus
8333 extern "C"
8334 #endif
8335 char com_err ();
8337 main ()
8339 return com_err ();
8341 return 0;
8343 _ACEOF
8344 for ac_lib in '' 'comerr32 -lkrb5_32'; do
8345 if test -z "$ac_lib"; then
8346 ac_res="none required"
8347 else
8348 ac_res=-l$ac_lib
8349 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8351 rm -f conftest.$ac_objext conftest$ac_exeext
8352 if { (ac_try="$ac_link"
8353 case "(($ac_try" in
8354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8355 *) ac_try_echo=$ac_try;;
8356 esac
8357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8358 (eval "$ac_link") 2>conftest.er1
8359 ac_status=$?
8360 grep -v '^ *+' conftest.er1 >conftest.err
8361 rm -f conftest.er1
8362 cat conftest.err >&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); } && {
8365 test -z "$ac_c_werror_flag" ||
8366 test ! -s conftest.err
8367 } && test -s conftest$ac_exeext &&
8368 $as_test_x conftest$ac_exeext; then
8369 ac_cv_search_com_err=$ac_res
8370 else
8371 echo "$as_me: failed program was:" >&5
8372 sed 's/^/| /' conftest.$ac_ext >&5
8377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8378 conftest$ac_exeext
8379 if test "${ac_cv_search_com_err+set}" = set; then
8380 break
8382 done
8383 if test "${ac_cv_search_com_err+set}" = set; then
8385 else
8386 ac_cv_search_com_err=no
8388 rm conftest.$ac_ext
8389 LIBS=$ac_func_search_save_LIBS
8391 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8392 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
8393 ac_res=$ac_cv_search_com_err
8394 if test "$ac_res" != no; then
8395 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8397 else
8398 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8399 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8400 { (exit 1); exit 1; }; }
8406 if test "$with_openssl" = yes ; then
8407 if test "$PORTNAME" != "win32"; then
8409 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
8410 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6; }
8411 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
8412 echo $ECHO_N "(cached) $ECHO_C" >&6
8413 else
8414 ac_check_lib_save_LIBS=$LIBS
8415 LIBS="-lcrypto $LIBS"
8416 cat >conftest.$ac_ext <<_ACEOF
8417 /* confdefs.h. */
8418 _ACEOF
8419 cat confdefs.h >>conftest.$ac_ext
8420 cat >>conftest.$ac_ext <<_ACEOF
8421 /* end confdefs.h. */
8423 /* Override any GCC internal prototype to avoid an error.
8424 Use char because int might match the return type of a GCC
8425 builtin and then its argument prototype would still apply. */
8426 #ifdef __cplusplus
8427 extern "C"
8428 #endif
8429 char CRYPTO_new_ex_data ();
8431 main ()
8433 return CRYPTO_new_ex_data ();
8435 return 0;
8437 _ACEOF
8438 rm -f conftest.$ac_objext conftest$ac_exeext
8439 if { (ac_try="$ac_link"
8440 case "(($ac_try" in
8441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8442 *) ac_try_echo=$ac_try;;
8443 esac
8444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8445 (eval "$ac_link") 2>conftest.er1
8446 ac_status=$?
8447 grep -v '^ *+' conftest.er1 >conftest.err
8448 rm -f conftest.er1
8449 cat conftest.err >&5
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); } && {
8452 test -z "$ac_c_werror_flag" ||
8453 test ! -s conftest.err
8454 } && test -s conftest$ac_exeext &&
8455 $as_test_x conftest$ac_exeext; then
8456 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
8457 else
8458 echo "$as_me: failed program was:" >&5
8459 sed 's/^/| /' conftest.$ac_ext >&5
8461 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
8464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8465 conftest$ac_exeext conftest.$ac_ext
8466 LIBS=$ac_check_lib_save_LIBS
8468 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
8469 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
8470 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
8471 cat >>confdefs.h <<_ACEOF
8472 #define HAVE_LIBCRYPTO 1
8473 _ACEOF
8475 LIBS="-lcrypto $LIBS"
8477 else
8478 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
8479 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
8480 { (exit 1); exit 1; }; }
8484 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
8485 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
8486 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
8487 echo $ECHO_N "(cached) $ECHO_C" >&6
8488 else
8489 ac_check_lib_save_LIBS=$LIBS
8490 LIBS="-lssl $LIBS"
8491 cat >conftest.$ac_ext <<_ACEOF
8492 /* confdefs.h. */
8493 _ACEOF
8494 cat confdefs.h >>conftest.$ac_ext
8495 cat >>conftest.$ac_ext <<_ACEOF
8496 /* end confdefs.h. */
8498 /* Override any GCC internal prototype to avoid an error.
8499 Use char because int might match the return type of a GCC
8500 builtin and then its argument prototype would still apply. */
8501 #ifdef __cplusplus
8502 extern "C"
8503 #endif
8504 char SSL_library_init ();
8506 main ()
8508 return SSL_library_init ();
8510 return 0;
8512 _ACEOF
8513 rm -f conftest.$ac_objext conftest$ac_exeext
8514 if { (ac_try="$ac_link"
8515 case "(($ac_try" in
8516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8517 *) ac_try_echo=$ac_try;;
8518 esac
8519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8520 (eval "$ac_link") 2>conftest.er1
8521 ac_status=$?
8522 grep -v '^ *+' conftest.er1 >conftest.err
8523 rm -f conftest.er1
8524 cat conftest.err >&5
8525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526 (exit $ac_status); } && {
8527 test -z "$ac_c_werror_flag" ||
8528 test ! -s conftest.err
8529 } && test -s conftest$ac_exeext &&
8530 $as_test_x conftest$ac_exeext; then
8531 ac_cv_lib_ssl_SSL_library_init=yes
8532 else
8533 echo "$as_me: failed program was:" >&5
8534 sed 's/^/| /' conftest.$ac_ext >&5
8536 ac_cv_lib_ssl_SSL_library_init=no
8539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8540 conftest$ac_exeext conftest.$ac_ext
8541 LIBS=$ac_check_lib_save_LIBS
8543 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
8544 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
8545 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
8546 cat >>confdefs.h <<_ACEOF
8547 #define HAVE_LIBSSL 1
8548 _ACEOF
8550 LIBS="-lssl $LIBS"
8552 else
8553 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
8554 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
8555 { (exit 1); exit 1; }; }
8558 else
8560 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
8561 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6; }
8562 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
8563 echo $ECHO_N "(cached) $ECHO_C" >&6
8564 else
8565 ac_check_lib_save_LIBS=$LIBS
8566 LIBS="-leay32 $LIBS"
8567 cat >conftest.$ac_ext <<_ACEOF
8568 /* confdefs.h. */
8569 _ACEOF
8570 cat confdefs.h >>conftest.$ac_ext
8571 cat >>conftest.$ac_ext <<_ACEOF
8572 /* end confdefs.h. */
8574 /* Override any GCC internal prototype to avoid an error.
8575 Use char because int might match the return type of a GCC
8576 builtin and then its argument prototype would still apply. */
8577 #ifdef __cplusplus
8578 extern "C"
8579 #endif
8580 char CRYPTO_new_ex_data ();
8582 main ()
8584 return CRYPTO_new_ex_data ();
8586 return 0;
8588 _ACEOF
8589 rm -f conftest.$ac_objext conftest$ac_exeext
8590 if { (ac_try="$ac_link"
8591 case "(($ac_try" in
8592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8593 *) ac_try_echo=$ac_try;;
8594 esac
8595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8596 (eval "$ac_link") 2>conftest.er1
8597 ac_status=$?
8598 grep -v '^ *+' conftest.er1 >conftest.err
8599 rm -f conftest.er1
8600 cat conftest.err >&5
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); } && {
8603 test -z "$ac_c_werror_flag" ||
8604 test ! -s conftest.err
8605 } && test -s conftest$ac_exeext &&
8606 $as_test_x conftest$ac_exeext; then
8607 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
8608 else
8609 echo "$as_me: failed program was:" >&5
8610 sed 's/^/| /' conftest.$ac_ext >&5
8612 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
8615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8616 conftest$ac_exeext conftest.$ac_ext
8617 LIBS=$ac_check_lib_save_LIBS
8619 { echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
8620 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
8621 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
8622 cat >>confdefs.h <<_ACEOF
8623 #define HAVE_LIBEAY32 1
8624 _ACEOF
8626 LIBS="-leay32 $LIBS"
8628 else
8629 { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
8630 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
8631 { (exit 1); exit 1; }; }
8635 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
8636 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6; }
8637 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
8638 echo $ECHO_N "(cached) $ECHO_C" >&6
8639 else
8640 ac_check_lib_save_LIBS=$LIBS
8641 LIBS="-lssleay32 $LIBS"
8642 cat >conftest.$ac_ext <<_ACEOF
8643 /* confdefs.h. */
8644 _ACEOF
8645 cat confdefs.h >>conftest.$ac_ext
8646 cat >>conftest.$ac_ext <<_ACEOF
8647 /* end confdefs.h. */
8649 /* Override any GCC internal prototype to avoid an error.
8650 Use char because int might match the return type of a GCC
8651 builtin and then its argument prototype would still apply. */
8652 #ifdef __cplusplus
8653 extern "C"
8654 #endif
8655 char SSL_library_init ();
8657 main ()
8659 return SSL_library_init ();
8661 return 0;
8663 _ACEOF
8664 rm -f conftest.$ac_objext conftest$ac_exeext
8665 if { (ac_try="$ac_link"
8666 case "(($ac_try" in
8667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8668 *) ac_try_echo=$ac_try;;
8669 esac
8670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8671 (eval "$ac_link") 2>conftest.er1
8672 ac_status=$?
8673 grep -v '^ *+' conftest.er1 >conftest.err
8674 rm -f conftest.er1
8675 cat conftest.err >&5
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); } && {
8678 test -z "$ac_c_werror_flag" ||
8679 test ! -s conftest.err
8680 } && test -s conftest$ac_exeext &&
8681 $as_test_x conftest$ac_exeext; then
8682 ac_cv_lib_ssleay32_SSL_library_init=yes
8683 else
8684 echo "$as_me: failed program was:" >&5
8685 sed 's/^/| /' conftest.$ac_ext >&5
8687 ac_cv_lib_ssleay32_SSL_library_init=no
8690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8691 conftest$ac_exeext conftest.$ac_ext
8692 LIBS=$ac_check_lib_save_LIBS
8694 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
8695 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
8696 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
8697 cat >>confdefs.h <<_ACEOF
8698 #define HAVE_LIBSSLEAY32 1
8699 _ACEOF
8701 LIBS="-lssleay32 $LIBS"
8703 else
8704 { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
8705 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
8706 { (exit 1); exit 1; }; }
8712 if test "$with_pam" = yes ; then
8714 { echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
8715 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6; }
8716 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
8717 echo $ECHO_N "(cached) $ECHO_C" >&6
8718 else
8719 ac_check_lib_save_LIBS=$LIBS
8720 LIBS="-lpam $LIBS"
8721 cat >conftest.$ac_ext <<_ACEOF
8722 /* confdefs.h. */
8723 _ACEOF
8724 cat confdefs.h >>conftest.$ac_ext
8725 cat >>conftest.$ac_ext <<_ACEOF
8726 /* end confdefs.h. */
8728 /* Override any GCC internal prototype to avoid an error.
8729 Use char because int might match the return type of a GCC
8730 builtin and then its argument prototype would still apply. */
8731 #ifdef __cplusplus
8732 extern "C"
8733 #endif
8734 char pam_start ();
8736 main ()
8738 return pam_start ();
8740 return 0;
8742 _ACEOF
8743 rm -f conftest.$ac_objext conftest$ac_exeext
8744 if { (ac_try="$ac_link"
8745 case "(($ac_try" in
8746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8747 *) ac_try_echo=$ac_try;;
8748 esac
8749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8750 (eval "$ac_link") 2>conftest.er1
8751 ac_status=$?
8752 grep -v '^ *+' conftest.er1 >conftest.err
8753 rm -f conftest.er1
8754 cat conftest.err >&5
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); } && {
8757 test -z "$ac_c_werror_flag" ||
8758 test ! -s conftest.err
8759 } && test -s conftest$ac_exeext &&
8760 $as_test_x conftest$ac_exeext; then
8761 ac_cv_lib_pam_pam_start=yes
8762 else
8763 echo "$as_me: failed program was:" >&5
8764 sed 's/^/| /' conftest.$ac_ext >&5
8766 ac_cv_lib_pam_pam_start=no
8769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8770 conftest$ac_exeext conftest.$ac_ext
8771 LIBS=$ac_check_lib_save_LIBS
8773 { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
8774 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6; }
8775 if test $ac_cv_lib_pam_pam_start = yes; then
8776 cat >>confdefs.h <<_ACEOF
8777 #define HAVE_LIBPAM 1
8778 _ACEOF
8780 LIBS="-lpam $LIBS"
8782 else
8783 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
8784 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
8785 { (exit 1); exit 1; }; }
8790 if test "$with_libxml" = yes ; then
8792 { echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
8793 echo $ECHO_N "checking for xmlSaveToBuffer in -lxml2... $ECHO_C" >&6; }
8794 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
8795 echo $ECHO_N "(cached) $ECHO_C" >&6
8796 else
8797 ac_check_lib_save_LIBS=$LIBS
8798 LIBS="-lxml2 $LIBS"
8799 cat >conftest.$ac_ext <<_ACEOF
8800 /* confdefs.h. */
8801 _ACEOF
8802 cat confdefs.h >>conftest.$ac_ext
8803 cat >>conftest.$ac_ext <<_ACEOF
8804 /* end confdefs.h. */
8806 /* Override any GCC internal prototype to avoid an error.
8807 Use char because int might match the return type of a GCC
8808 builtin and then its argument prototype would still apply. */
8809 #ifdef __cplusplus
8810 extern "C"
8811 #endif
8812 char xmlSaveToBuffer ();
8814 main ()
8816 return xmlSaveToBuffer ();
8818 return 0;
8820 _ACEOF
8821 rm -f conftest.$ac_objext conftest$ac_exeext
8822 if { (ac_try="$ac_link"
8823 case "(($ac_try" in
8824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8825 *) ac_try_echo=$ac_try;;
8826 esac
8827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8828 (eval "$ac_link") 2>conftest.er1
8829 ac_status=$?
8830 grep -v '^ *+' conftest.er1 >conftest.err
8831 rm -f conftest.er1
8832 cat conftest.err >&5
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); } && {
8835 test -z "$ac_c_werror_flag" ||
8836 test ! -s conftest.err
8837 } && test -s conftest$ac_exeext &&
8838 $as_test_x conftest$ac_exeext; then
8839 ac_cv_lib_xml2_xmlSaveToBuffer=yes
8840 else
8841 echo "$as_me: failed program was:" >&5
8842 sed 's/^/| /' conftest.$ac_ext >&5
8844 ac_cv_lib_xml2_xmlSaveToBuffer=no
8847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8848 conftest$ac_exeext conftest.$ac_ext
8849 LIBS=$ac_check_lib_save_LIBS
8851 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
8852 echo "${ECHO_T}$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
8853 if test $ac_cv_lib_xml2_xmlSaveToBuffer = yes; then
8854 cat >>confdefs.h <<_ACEOF
8855 #define HAVE_LIBXML2 1
8856 _ACEOF
8858 LIBS="-lxml2 $LIBS"
8860 else
8861 { { echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
8862 echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
8863 { (exit 1); exit 1; }; }
8868 if test "$with_libxslt" = yes ; then
8870 { echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
8871 echo $ECHO_N "checking for xsltCleanupGlobals in -lxslt... $ECHO_C" >&6; }
8872 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
8873 echo $ECHO_N "(cached) $ECHO_C" >&6
8874 else
8875 ac_check_lib_save_LIBS=$LIBS
8876 LIBS="-lxslt $LIBS"
8877 cat >conftest.$ac_ext <<_ACEOF
8878 /* confdefs.h. */
8879 _ACEOF
8880 cat confdefs.h >>conftest.$ac_ext
8881 cat >>conftest.$ac_ext <<_ACEOF
8882 /* end confdefs.h. */
8884 /* Override any GCC internal prototype to avoid an error.
8885 Use char because int might match the return type of a GCC
8886 builtin and then its argument prototype would still apply. */
8887 #ifdef __cplusplus
8888 extern "C"
8889 #endif
8890 char xsltCleanupGlobals ();
8892 main ()
8894 return xsltCleanupGlobals ();
8896 return 0;
8898 _ACEOF
8899 rm -f conftest.$ac_objext conftest$ac_exeext
8900 if { (ac_try="$ac_link"
8901 case "(($ac_try" in
8902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8903 *) ac_try_echo=$ac_try;;
8904 esac
8905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8906 (eval "$ac_link") 2>conftest.er1
8907 ac_status=$?
8908 grep -v '^ *+' conftest.er1 >conftest.err
8909 rm -f conftest.er1
8910 cat conftest.err >&5
8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912 (exit $ac_status); } && {
8913 test -z "$ac_c_werror_flag" ||
8914 test ! -s conftest.err
8915 } && test -s conftest$ac_exeext &&
8916 $as_test_x conftest$ac_exeext; then
8917 ac_cv_lib_xslt_xsltCleanupGlobals=yes
8918 else
8919 echo "$as_me: failed program was:" >&5
8920 sed 's/^/| /' conftest.$ac_ext >&5
8922 ac_cv_lib_xslt_xsltCleanupGlobals=no
8925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8926 conftest$ac_exeext conftest.$ac_ext
8927 LIBS=$ac_check_lib_save_LIBS
8929 { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
8930 echo "${ECHO_T}$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
8931 if test $ac_cv_lib_xslt_xsltCleanupGlobals = yes; then
8932 cat >>confdefs.h <<_ACEOF
8933 #define HAVE_LIBXSLT 1
8934 _ACEOF
8936 LIBS="-lxslt $LIBS"
8938 else
8939 { { echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
8940 echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
8941 { (exit 1); exit 1; }; }
8946 # for contrib/uuid-ossp
8947 if test "$with_ossp_uuid" = yes ; then
8948 { echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
8949 echo $ECHO_N "checking for uuid_export in -lossp-uuid... $ECHO_C" >&6; }
8950 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
8951 echo $ECHO_N "(cached) $ECHO_C" >&6
8952 else
8953 ac_check_lib_save_LIBS=$LIBS
8954 LIBS="-lossp-uuid $LIBS"
8955 cat >conftest.$ac_ext <<_ACEOF
8956 /* confdefs.h. */
8957 _ACEOF
8958 cat confdefs.h >>conftest.$ac_ext
8959 cat >>conftest.$ac_ext <<_ACEOF
8960 /* end confdefs.h. */
8962 /* Override any GCC internal prototype to avoid an error.
8963 Use char because int might match the return type of a GCC
8964 builtin and then its argument prototype would still apply. */
8965 #ifdef __cplusplus
8966 extern "C"
8967 #endif
8968 char uuid_export ();
8970 main ()
8972 return uuid_export ();
8974 return 0;
8976 _ACEOF
8977 rm -f conftest.$ac_objext conftest$ac_exeext
8978 if { (ac_try="$ac_link"
8979 case "(($ac_try" in
8980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8981 *) ac_try_echo=$ac_try;;
8982 esac
8983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8984 (eval "$ac_link") 2>conftest.er1
8985 ac_status=$?
8986 grep -v '^ *+' conftest.er1 >conftest.err
8987 rm -f conftest.er1
8988 cat conftest.err >&5
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); } && {
8991 test -z "$ac_c_werror_flag" ||
8992 test ! -s conftest.err
8993 } && test -s conftest$ac_exeext &&
8994 $as_test_x conftest$ac_exeext; then
8995 ac_cv_lib_ossp_uuid_uuid_export=yes
8996 else
8997 echo "$as_me: failed program was:" >&5
8998 sed 's/^/| /' conftest.$ac_ext >&5
9000 ac_cv_lib_ossp_uuid_uuid_export=no
9003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9004 conftest$ac_exeext conftest.$ac_ext
9005 LIBS=$ac_check_lib_save_LIBS
9007 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
9008 echo "${ECHO_T}$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
9009 if test $ac_cv_lib_ossp_uuid_uuid_export = yes; then
9010 OSSP_UUID_LIBS="-lossp-uuid"
9011 else
9012 { echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
9013 echo $ECHO_N "checking for uuid_export in -luuid... $ECHO_C" >&6; }
9014 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
9015 echo $ECHO_N "(cached) $ECHO_C" >&6
9016 else
9017 ac_check_lib_save_LIBS=$LIBS
9018 LIBS="-luuid $LIBS"
9019 cat >conftest.$ac_ext <<_ACEOF
9020 /* confdefs.h. */
9021 _ACEOF
9022 cat confdefs.h >>conftest.$ac_ext
9023 cat >>conftest.$ac_ext <<_ACEOF
9024 /* end confdefs.h. */
9026 /* Override any GCC internal prototype to avoid an error.
9027 Use char because int might match the return type of a GCC
9028 builtin and then its argument prototype would still apply. */
9029 #ifdef __cplusplus
9030 extern "C"
9031 #endif
9032 char uuid_export ();
9034 main ()
9036 return uuid_export ();
9038 return 0;
9040 _ACEOF
9041 rm -f conftest.$ac_objext conftest$ac_exeext
9042 if { (ac_try="$ac_link"
9043 case "(($ac_try" in
9044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9045 *) ac_try_echo=$ac_try;;
9046 esac
9047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9048 (eval "$ac_link") 2>conftest.er1
9049 ac_status=$?
9050 grep -v '^ *+' conftest.er1 >conftest.err
9051 rm -f conftest.er1
9052 cat conftest.err >&5
9053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054 (exit $ac_status); } && {
9055 test -z "$ac_c_werror_flag" ||
9056 test ! -s conftest.err
9057 } && test -s conftest$ac_exeext &&
9058 $as_test_x conftest$ac_exeext; then
9059 ac_cv_lib_uuid_uuid_export=yes
9060 else
9061 echo "$as_me: failed program was:" >&5
9062 sed 's/^/| /' conftest.$ac_ext >&5
9064 ac_cv_lib_uuid_uuid_export=no
9067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9068 conftest$ac_exeext conftest.$ac_ext
9069 LIBS=$ac_check_lib_save_LIBS
9071 { echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
9072 echo "${ECHO_T}$ac_cv_lib_uuid_uuid_export" >&6; }
9073 if test $ac_cv_lib_uuid_uuid_export = yes; then
9074 OSSP_UUID_LIBS="-luuid"
9075 else
9076 { { echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
9077 echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
9078 { (exit 1); exit 1; }; }
9088 ## Header files
9091 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9092 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
9093 if test "${ac_cv_header_stdc+set}" = set; then
9094 echo $ECHO_N "(cached) $ECHO_C" >&6
9095 else
9096 cat >conftest.$ac_ext <<_ACEOF
9097 /* confdefs.h. */
9098 _ACEOF
9099 cat confdefs.h >>conftest.$ac_ext
9100 cat >>conftest.$ac_ext <<_ACEOF
9101 /* end confdefs.h. */
9102 #include <stdlib.h>
9103 #include <stdarg.h>
9104 #include <string.h>
9105 #include <float.h>
9108 main ()
9112 return 0;
9114 _ACEOF
9115 rm -f conftest.$ac_objext
9116 if { (ac_try="$ac_compile"
9117 case "(($ac_try" in
9118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9119 *) ac_try_echo=$ac_try;;
9120 esac
9121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9122 (eval "$ac_compile") 2>conftest.er1
9123 ac_status=$?
9124 grep -v '^ *+' conftest.er1 >conftest.err
9125 rm -f conftest.er1
9126 cat conftest.err >&5
9127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128 (exit $ac_status); } && {
9129 test -z "$ac_c_werror_flag" ||
9130 test ! -s conftest.err
9131 } && test -s conftest.$ac_objext; then
9132 ac_cv_header_stdc=yes
9133 else
9134 echo "$as_me: failed program was:" >&5
9135 sed 's/^/| /' conftest.$ac_ext >&5
9137 ac_cv_header_stdc=no
9140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9142 if test $ac_cv_header_stdc = yes; then
9143 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9144 cat >conftest.$ac_ext <<_ACEOF
9145 /* confdefs.h. */
9146 _ACEOF
9147 cat confdefs.h >>conftest.$ac_ext
9148 cat >>conftest.$ac_ext <<_ACEOF
9149 /* end confdefs.h. */
9150 #include <string.h>
9152 _ACEOF
9153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9154 $EGREP "memchr" >/dev/null 2>&1; then
9156 else
9157 ac_cv_header_stdc=no
9159 rm -f conftest*
9163 if test $ac_cv_header_stdc = yes; then
9164 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9165 cat >conftest.$ac_ext <<_ACEOF
9166 /* confdefs.h. */
9167 _ACEOF
9168 cat confdefs.h >>conftest.$ac_ext
9169 cat >>conftest.$ac_ext <<_ACEOF
9170 /* end confdefs.h. */
9171 #include <stdlib.h>
9173 _ACEOF
9174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9175 $EGREP "free" >/dev/null 2>&1; then
9177 else
9178 ac_cv_header_stdc=no
9180 rm -f conftest*
9184 if test $ac_cv_header_stdc = yes; then
9185 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9186 if test "$cross_compiling" = yes; then
9188 else
9189 cat >conftest.$ac_ext <<_ACEOF
9190 /* confdefs.h. */
9191 _ACEOF
9192 cat confdefs.h >>conftest.$ac_ext
9193 cat >>conftest.$ac_ext <<_ACEOF
9194 /* end confdefs.h. */
9195 #include <ctype.h>
9196 #include <stdlib.h>
9197 #if ((' ' & 0x0FF) == 0x020)
9198 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9199 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9200 #else
9201 # define ISLOWER(c) \
9202 (('a' <= (c) && (c) <= 'i') \
9203 || ('j' <= (c) && (c) <= 'r') \
9204 || ('s' <= (c) && (c) <= 'z'))
9205 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9206 #endif
9208 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9210 main ()
9212 int i;
9213 for (i = 0; i < 256; i++)
9214 if (XOR (islower (i), ISLOWER (i))
9215 || toupper (i) != TOUPPER (i))
9216 return 2;
9217 return 0;
9219 _ACEOF
9220 rm -f conftest$ac_exeext
9221 if { (ac_try="$ac_link"
9222 case "(($ac_try" in
9223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9224 *) ac_try_echo=$ac_try;;
9225 esac
9226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9227 (eval "$ac_link") 2>&5
9228 ac_status=$?
9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9231 { (case "(($ac_try" in
9232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9233 *) ac_try_echo=$ac_try;;
9234 esac
9235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9236 (eval "$ac_try") 2>&5
9237 ac_status=$?
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); }; }; then
9241 else
9242 echo "$as_me: program exited with status $ac_status" >&5
9243 echo "$as_me: failed program was:" >&5
9244 sed 's/^/| /' conftest.$ac_ext >&5
9246 ( exit $ac_status )
9247 ac_cv_header_stdc=no
9249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9255 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9256 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
9257 if test $ac_cv_header_stdc = yes; then
9259 cat >>confdefs.h <<\_ACEOF
9260 #define STDC_HEADERS 1
9261 _ACEOF
9265 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9275 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9276 inttypes.h stdint.h unistd.h
9278 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9279 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9282 echo $ECHO_N "(cached) $ECHO_C" >&6
9283 else
9284 cat >conftest.$ac_ext <<_ACEOF
9285 /* confdefs.h. */
9286 _ACEOF
9287 cat confdefs.h >>conftest.$ac_ext
9288 cat >>conftest.$ac_ext <<_ACEOF
9289 /* end confdefs.h. */
9290 $ac_includes_default
9292 #include <$ac_header>
9293 _ACEOF
9294 rm -f conftest.$ac_objext
9295 if { (ac_try="$ac_compile"
9296 case "(($ac_try" in
9297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9298 *) ac_try_echo=$ac_try;;
9299 esac
9300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9301 (eval "$ac_compile") 2>conftest.er1
9302 ac_status=$?
9303 grep -v '^ *+' conftest.er1 >conftest.err
9304 rm -f conftest.er1
9305 cat conftest.err >&5
9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307 (exit $ac_status); } && {
9308 test -z "$ac_c_werror_flag" ||
9309 test ! -s conftest.err
9310 } && test -s conftest.$ac_objext; then
9311 eval "$as_ac_Header=yes"
9312 else
9313 echo "$as_me: failed program was:" >&5
9314 sed 's/^/| /' conftest.$ac_ext >&5
9316 eval "$as_ac_Header=no"
9319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9321 ac_res=`eval echo '${'$as_ac_Header'}'`
9322 { echo "$as_me:$LINENO: result: $ac_res" >&5
9323 echo "${ECHO_T}$ac_res" >&6; }
9324 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9325 cat >>confdefs.h <<_ACEOF
9326 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9327 _ACEOF
9331 done
9361 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
9363 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9365 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9368 echo $ECHO_N "(cached) $ECHO_C" >&6
9370 ac_res=`eval echo '${'$as_ac_Header'}'`
9371 { echo "$as_me:$LINENO: result: $ac_res" >&5
9372 echo "${ECHO_T}$ac_res" >&6; }
9373 else
9374 # Is the header compilable?
9375 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9376 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
9384 #include <$ac_header>
9385 _ACEOF
9386 rm -f conftest.$ac_objext
9387 if { (ac_try="$ac_compile"
9388 case "(($ac_try" in
9389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9390 *) ac_try_echo=$ac_try;;
9391 esac
9392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9393 (eval "$ac_compile") 2>conftest.er1
9394 ac_status=$?
9395 grep -v '^ *+' conftest.er1 >conftest.err
9396 rm -f conftest.er1
9397 cat conftest.err >&5
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); } && {
9400 test -z "$ac_c_werror_flag" ||
9401 test ! -s conftest.err
9402 } && test -s conftest.$ac_objext; then
9403 ac_header_compiler=yes
9404 else
9405 echo "$as_me: failed program was:" >&5
9406 sed 's/^/| /' conftest.$ac_ext >&5
9408 ac_header_compiler=no
9411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9412 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9413 echo "${ECHO_T}$ac_header_compiler" >&6; }
9415 # Is the header present?
9416 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9417 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9418 cat >conftest.$ac_ext <<_ACEOF
9419 /* confdefs.h. */
9420 _ACEOF
9421 cat confdefs.h >>conftest.$ac_ext
9422 cat >>conftest.$ac_ext <<_ACEOF
9423 /* end confdefs.h. */
9424 #include <$ac_header>
9425 _ACEOF
9426 if { (ac_try="$ac_cpp conftest.$ac_ext"
9427 case "(($ac_try" in
9428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9429 *) ac_try_echo=$ac_try;;
9430 esac
9431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9432 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9433 ac_status=$?
9434 grep -v '^ *+' conftest.er1 >conftest.err
9435 rm -f conftest.er1
9436 cat conftest.err >&5
9437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438 (exit $ac_status); } >/dev/null && {
9439 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9440 test ! -s conftest.err
9441 }; then
9442 ac_header_preproc=yes
9443 else
9444 echo "$as_me: failed program was:" >&5
9445 sed 's/^/| /' conftest.$ac_ext >&5
9447 ac_header_preproc=no
9450 rm -f conftest.err conftest.$ac_ext
9451 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9452 echo "${ECHO_T}$ac_header_preproc" >&6; }
9454 # So? What about this header?
9455 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9456 yes:no: )
9457 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9458 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9460 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9461 ac_header_preproc=yes
9463 no:yes:* )
9464 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9465 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9466 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9467 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9468 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9469 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9470 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9471 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9473 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9474 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9475 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9476 ( cat <<\_ASBOX
9477 ## ---------------------------------------- ##
9478 ## Report this to pgsql-bugs@postgresql.org ##
9479 ## ---------------------------------------- ##
9480 _ASBOX
9481 ) | sed "s/^/$as_me: WARNING: /" >&2
9483 esac
9484 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9487 echo $ECHO_N "(cached) $ECHO_C" >&6
9488 else
9489 eval "$as_ac_Header=\$ac_header_preproc"
9491 ac_res=`eval echo '${'$as_ac_Header'}'`
9492 { echo "$as_me:$LINENO: result: $ac_res" >&5
9493 echo "${ECHO_T}$ac_res" >&6; }
9496 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9497 cat >>confdefs.h <<_ACEOF
9498 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9499 _ACEOF
9503 done
9506 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
9507 # netinet/in.h is included first.
9509 for ac_header in netinet/in.h
9511 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9513 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9516 echo $ECHO_N "(cached) $ECHO_C" >&6
9518 ac_res=`eval echo '${'$as_ac_Header'}'`
9519 { echo "$as_me:$LINENO: result: $ac_res" >&5
9520 echo "${ECHO_T}$ac_res" >&6; }
9521 else
9522 # Is the header compilable?
9523 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9524 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
9532 #include <$ac_header>
9533 _ACEOF
9534 rm -f conftest.$ac_objext
9535 if { (ac_try="$ac_compile"
9536 case "(($ac_try" in
9537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9538 *) ac_try_echo=$ac_try;;
9539 esac
9540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9541 (eval "$ac_compile") 2>conftest.er1
9542 ac_status=$?
9543 grep -v '^ *+' conftest.er1 >conftest.err
9544 rm -f conftest.er1
9545 cat conftest.err >&5
9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); } && {
9548 test -z "$ac_c_werror_flag" ||
9549 test ! -s conftest.err
9550 } && test -s conftest.$ac_objext; then
9551 ac_header_compiler=yes
9552 else
9553 echo "$as_me: failed program was:" >&5
9554 sed 's/^/| /' conftest.$ac_ext >&5
9556 ac_header_compiler=no
9559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9560 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9561 echo "${ECHO_T}$ac_header_compiler" >&6; }
9563 # Is the header present?
9564 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9565 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9566 cat >conftest.$ac_ext <<_ACEOF
9567 /* confdefs.h. */
9568 _ACEOF
9569 cat confdefs.h >>conftest.$ac_ext
9570 cat >>conftest.$ac_ext <<_ACEOF
9571 /* end confdefs.h. */
9572 #include <$ac_header>
9573 _ACEOF
9574 if { (ac_try="$ac_cpp conftest.$ac_ext"
9575 case "(($ac_try" in
9576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9577 *) ac_try_echo=$ac_try;;
9578 esac
9579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9581 ac_status=$?
9582 grep -v '^ *+' conftest.er1 >conftest.err
9583 rm -f conftest.er1
9584 cat conftest.err >&5
9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); } >/dev/null && {
9587 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9588 test ! -s conftest.err
9589 }; then
9590 ac_header_preproc=yes
9591 else
9592 echo "$as_me: failed program was:" >&5
9593 sed 's/^/| /' conftest.$ac_ext >&5
9595 ac_header_preproc=no
9598 rm -f conftest.err conftest.$ac_ext
9599 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9600 echo "${ECHO_T}$ac_header_preproc" >&6; }
9602 # So? What about this header?
9603 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9604 yes:no: )
9605 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9606 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9608 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9609 ac_header_preproc=yes
9611 no:yes:* )
9612 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9613 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9614 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9615 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9616 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9617 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9618 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9619 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9621 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9622 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9623 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9624 ( cat <<\_ASBOX
9625 ## ---------------------------------------- ##
9626 ## Report this to pgsql-bugs@postgresql.org ##
9627 ## ---------------------------------------- ##
9628 _ASBOX
9629 ) | sed "s/^/$as_me: WARNING: /" >&2
9631 esac
9632 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9635 echo $ECHO_N "(cached) $ECHO_C" >&6
9636 else
9637 eval "$as_ac_Header=\$ac_header_preproc"
9639 ac_res=`eval echo '${'$as_ac_Header'}'`
9640 { echo "$as_me:$LINENO: result: $ac_res" >&5
9641 echo "${ECHO_T}$ac_res" >&6; }
9644 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9645 cat >>confdefs.h <<_ACEOF
9646 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9647 _ACEOF
9651 done
9654 for ac_header in netinet/tcp.h
9656 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9657 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9659 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9660 echo $ECHO_N "(cached) $ECHO_C" >&6
9661 else
9662 cat >conftest.$ac_ext <<_ACEOF
9663 /* confdefs.h. */
9664 _ACEOF
9665 cat confdefs.h >>conftest.$ac_ext
9666 cat >>conftest.$ac_ext <<_ACEOF
9667 /* end confdefs.h. */
9668 $ac_includes_default
9669 #ifdef HAVE_NETINET_IN_H
9670 #include <netinet/in.h>
9671 #endif
9674 #include <$ac_header>
9675 _ACEOF
9676 rm -f conftest.$ac_objext
9677 if { (ac_try="$ac_compile"
9678 case "(($ac_try" in
9679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9680 *) ac_try_echo=$ac_try;;
9681 esac
9682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9683 (eval "$ac_compile") 2>conftest.er1
9684 ac_status=$?
9685 grep -v '^ *+' conftest.er1 >conftest.err
9686 rm -f conftest.er1
9687 cat conftest.err >&5
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); } && {
9690 test -z "$ac_c_werror_flag" ||
9691 test ! -s conftest.err
9692 } && test -s conftest.$ac_objext; then
9693 eval "$as_ac_Header=yes"
9694 else
9695 echo "$as_me: failed program was:" >&5
9696 sed 's/^/| /' conftest.$ac_ext >&5
9698 eval "$as_ac_Header=no"
9701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9703 ac_res=`eval echo '${'$as_ac_Header'}'`
9704 { echo "$as_me:$LINENO: result: $ac_res" >&5
9705 echo "${ECHO_T}$ac_res" >&6; }
9706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9707 cat >>confdefs.h <<_ACEOF
9708 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9709 _ACEOF
9713 done
9716 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
9718 for ac_header in readline/readline.h
9720 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9722 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9724 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9725 echo $ECHO_N "(cached) $ECHO_C" >&6
9727 ac_res=`eval echo '${'$as_ac_Header'}'`
9728 { echo "$as_me:$LINENO: result: $ac_res" >&5
9729 echo "${ECHO_T}$ac_res" >&6; }
9730 else
9731 # Is the header compilable?
9732 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9733 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
9741 #include <$ac_header>
9742 _ACEOF
9743 rm -f conftest.$ac_objext
9744 if { (ac_try="$ac_compile"
9745 case "(($ac_try" in
9746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9747 *) ac_try_echo=$ac_try;;
9748 esac
9749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9750 (eval "$ac_compile") 2>conftest.er1
9751 ac_status=$?
9752 grep -v '^ *+' conftest.er1 >conftest.err
9753 rm -f conftest.er1
9754 cat conftest.err >&5
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); } && {
9757 test -z "$ac_c_werror_flag" ||
9758 test ! -s conftest.err
9759 } && test -s conftest.$ac_objext; then
9760 ac_header_compiler=yes
9761 else
9762 echo "$as_me: failed program was:" >&5
9763 sed 's/^/| /' conftest.$ac_ext >&5
9765 ac_header_compiler=no
9768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9769 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9770 echo "${ECHO_T}$ac_header_compiler" >&6; }
9772 # Is the header present?
9773 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9774 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9775 cat >conftest.$ac_ext <<_ACEOF
9776 /* confdefs.h. */
9777 _ACEOF
9778 cat confdefs.h >>conftest.$ac_ext
9779 cat >>conftest.$ac_ext <<_ACEOF
9780 /* end confdefs.h. */
9781 #include <$ac_header>
9782 _ACEOF
9783 if { (ac_try="$ac_cpp conftest.$ac_ext"
9784 case "(($ac_try" in
9785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9786 *) ac_try_echo=$ac_try;;
9787 esac
9788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9789 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9790 ac_status=$?
9791 grep -v '^ *+' conftest.er1 >conftest.err
9792 rm -f conftest.er1
9793 cat conftest.err >&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); } >/dev/null && {
9796 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9797 test ! -s conftest.err
9798 }; then
9799 ac_header_preproc=yes
9800 else
9801 echo "$as_me: failed program was:" >&5
9802 sed 's/^/| /' conftest.$ac_ext >&5
9804 ac_header_preproc=no
9807 rm -f conftest.err conftest.$ac_ext
9808 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9809 echo "${ECHO_T}$ac_header_preproc" >&6; }
9811 # So? What about this header?
9812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9813 yes:no: )
9814 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9815 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9817 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9818 ac_header_preproc=yes
9820 no:yes:* )
9821 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9822 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9823 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9824 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9825 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9826 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9827 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9828 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9830 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9831 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9832 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9833 ( cat <<\_ASBOX
9834 ## ---------------------------------------- ##
9835 ## Report this to pgsql-bugs@postgresql.org ##
9836 ## ---------------------------------------- ##
9837 _ASBOX
9838 ) | sed "s/^/$as_me: WARNING: /" >&2
9840 esac
9841 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9844 echo $ECHO_N "(cached) $ECHO_C" >&6
9845 else
9846 eval "$as_ac_Header=\$ac_header_preproc"
9848 ac_res=`eval echo '${'$as_ac_Header'}'`
9849 { echo "$as_me:$LINENO: result: $ac_res" >&5
9850 echo "${ECHO_T}$ac_res" >&6; }
9853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9854 cat >>confdefs.h <<_ACEOF
9855 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9856 _ACEOF
9858 else
9860 for ac_header in readline.h
9862 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9864 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9867 echo $ECHO_N "(cached) $ECHO_C" >&6
9869 ac_res=`eval echo '${'$as_ac_Header'}'`
9870 { echo "$as_me:$LINENO: result: $ac_res" >&5
9871 echo "${ECHO_T}$ac_res" >&6; }
9872 else
9873 # Is the header compilable?
9874 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9875 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
9883 #include <$ac_header>
9884 _ACEOF
9885 rm -f conftest.$ac_objext
9886 if { (ac_try="$ac_compile"
9887 case "(($ac_try" in
9888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9889 *) ac_try_echo=$ac_try;;
9890 esac
9891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9892 (eval "$ac_compile") 2>conftest.er1
9893 ac_status=$?
9894 grep -v '^ *+' conftest.er1 >conftest.err
9895 rm -f conftest.er1
9896 cat conftest.err >&5
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); } && {
9899 test -z "$ac_c_werror_flag" ||
9900 test ! -s conftest.err
9901 } && test -s conftest.$ac_objext; then
9902 ac_header_compiler=yes
9903 else
9904 echo "$as_me: failed program was:" >&5
9905 sed 's/^/| /' conftest.$ac_ext >&5
9907 ac_header_compiler=no
9910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9911 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9912 echo "${ECHO_T}$ac_header_compiler" >&6; }
9914 # Is the header present?
9915 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9916 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9917 cat >conftest.$ac_ext <<_ACEOF
9918 /* confdefs.h. */
9919 _ACEOF
9920 cat confdefs.h >>conftest.$ac_ext
9921 cat >>conftest.$ac_ext <<_ACEOF
9922 /* end confdefs.h. */
9923 #include <$ac_header>
9924 _ACEOF
9925 if { (ac_try="$ac_cpp conftest.$ac_ext"
9926 case "(($ac_try" in
9927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9928 *) ac_try_echo=$ac_try;;
9929 esac
9930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9932 ac_status=$?
9933 grep -v '^ *+' conftest.er1 >conftest.err
9934 rm -f conftest.er1
9935 cat conftest.err >&5
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); } >/dev/null && {
9938 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9939 test ! -s conftest.err
9940 }; then
9941 ac_header_preproc=yes
9942 else
9943 echo "$as_me: failed program was:" >&5
9944 sed 's/^/| /' conftest.$ac_ext >&5
9946 ac_header_preproc=no
9949 rm -f conftest.err conftest.$ac_ext
9950 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9951 echo "${ECHO_T}$ac_header_preproc" >&6; }
9953 # So? What about this header?
9954 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9955 yes:no: )
9956 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9957 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9958 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9959 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9960 ac_header_preproc=yes
9962 no:yes:* )
9963 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9964 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9965 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9966 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9967 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9968 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9969 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9970 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9971 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9972 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9973 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9974 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9975 ( cat <<\_ASBOX
9976 ## ---------------------------------------- ##
9977 ## Report this to pgsql-bugs@postgresql.org ##
9978 ## ---------------------------------------- ##
9979 _ASBOX
9980 ) | sed "s/^/$as_me: WARNING: /" >&2
9982 esac
9983 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9986 echo $ECHO_N "(cached) $ECHO_C" >&6
9987 else
9988 eval "$as_ac_Header=\$ac_header_preproc"
9990 ac_res=`eval echo '${'$as_ac_Header'}'`
9991 { echo "$as_me:$LINENO: result: $ac_res" >&5
9992 echo "${ECHO_T}$ac_res" >&6; }
9995 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9996 cat >>confdefs.h <<_ACEOF
9997 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9998 _ACEOF
10000 else
10001 { { echo "$as_me:$LINENO: error: readline header not found
10002 If you have readline already installed, see config.log for details on the
10003 failure. It is possible the compiler isn't looking in the proper directory.
10004 Use --without-readline to disable readline support." >&5
10005 echo "$as_me: error: readline header not found
10006 If you have readline already installed, see config.log for details on the
10007 failure. It is possible the compiler isn't looking in the proper directory.
10008 Use --without-readline to disable readline support." >&2;}
10009 { (exit 1); exit 1; }; }
10012 done
10016 done
10019 for ac_header in readline/history.h
10021 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10023 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10026 echo $ECHO_N "(cached) $ECHO_C" >&6
10028 ac_res=`eval echo '${'$as_ac_Header'}'`
10029 { echo "$as_me:$LINENO: result: $ac_res" >&5
10030 echo "${ECHO_T}$ac_res" >&6; }
10031 else
10032 # Is the header compilable?
10033 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10034 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
10042 #include <$ac_header>
10043 _ACEOF
10044 rm -f conftest.$ac_objext
10045 if { (ac_try="$ac_compile"
10046 case "(($ac_try" in
10047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10048 *) ac_try_echo=$ac_try;;
10049 esac
10050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10051 (eval "$ac_compile") 2>conftest.er1
10052 ac_status=$?
10053 grep -v '^ *+' conftest.er1 >conftest.err
10054 rm -f conftest.er1
10055 cat conftest.err >&5
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); } && {
10058 test -z "$ac_c_werror_flag" ||
10059 test ! -s conftest.err
10060 } && test -s conftest.$ac_objext; then
10061 ac_header_compiler=yes
10062 else
10063 echo "$as_me: failed program was:" >&5
10064 sed 's/^/| /' conftest.$ac_ext >&5
10066 ac_header_compiler=no
10069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10070 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10071 echo "${ECHO_T}$ac_header_compiler" >&6; }
10073 # Is the header present?
10074 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10075 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10076 cat >conftest.$ac_ext <<_ACEOF
10077 /* confdefs.h. */
10078 _ACEOF
10079 cat confdefs.h >>conftest.$ac_ext
10080 cat >>conftest.$ac_ext <<_ACEOF
10081 /* end confdefs.h. */
10082 #include <$ac_header>
10083 _ACEOF
10084 if { (ac_try="$ac_cpp conftest.$ac_ext"
10085 case "(($ac_try" in
10086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10087 *) ac_try_echo=$ac_try;;
10088 esac
10089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10090 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10091 ac_status=$?
10092 grep -v '^ *+' conftest.er1 >conftest.err
10093 rm -f conftest.er1
10094 cat conftest.err >&5
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); } >/dev/null && {
10097 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10098 test ! -s conftest.err
10099 }; then
10100 ac_header_preproc=yes
10101 else
10102 echo "$as_me: failed program was:" >&5
10103 sed 's/^/| /' conftest.$ac_ext >&5
10105 ac_header_preproc=no
10108 rm -f conftest.err conftest.$ac_ext
10109 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10110 echo "${ECHO_T}$ac_header_preproc" >&6; }
10112 # So? What about this header?
10113 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10114 yes:no: )
10115 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10116 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10118 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10119 ac_header_preproc=yes
10121 no:yes:* )
10122 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10123 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10124 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10125 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10126 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10127 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10128 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10129 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10131 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10132 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10133 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10134 ( cat <<\_ASBOX
10135 ## ---------------------------------------- ##
10136 ## Report this to pgsql-bugs@postgresql.org ##
10137 ## ---------------------------------------- ##
10138 _ASBOX
10139 ) | sed "s/^/$as_me: WARNING: /" >&2
10141 esac
10142 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10145 echo $ECHO_N "(cached) $ECHO_C" >&6
10146 else
10147 eval "$as_ac_Header=\$ac_header_preproc"
10149 ac_res=`eval echo '${'$as_ac_Header'}'`
10150 { echo "$as_me:$LINENO: result: $ac_res" >&5
10151 echo "${ECHO_T}$ac_res" >&6; }
10154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10155 cat >>confdefs.h <<_ACEOF
10156 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10157 _ACEOF
10159 else
10161 for ac_header in history.h
10163 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10165 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10168 echo $ECHO_N "(cached) $ECHO_C" >&6
10170 ac_res=`eval echo '${'$as_ac_Header'}'`
10171 { echo "$as_me:$LINENO: result: $ac_res" >&5
10172 echo "${ECHO_T}$ac_res" >&6; }
10173 else
10174 # Is the header compilable?
10175 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10176 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
10184 #include <$ac_header>
10185 _ACEOF
10186 rm -f conftest.$ac_objext
10187 if { (ac_try="$ac_compile"
10188 case "(($ac_try" in
10189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10190 *) ac_try_echo=$ac_try;;
10191 esac
10192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10193 (eval "$ac_compile") 2>conftest.er1
10194 ac_status=$?
10195 grep -v '^ *+' conftest.er1 >conftest.err
10196 rm -f conftest.er1
10197 cat conftest.err >&5
10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); } && {
10200 test -z "$ac_c_werror_flag" ||
10201 test ! -s conftest.err
10202 } && test -s conftest.$ac_objext; then
10203 ac_header_compiler=yes
10204 else
10205 echo "$as_me: failed program was:" >&5
10206 sed 's/^/| /' conftest.$ac_ext >&5
10208 ac_header_compiler=no
10211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10212 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10213 echo "${ECHO_T}$ac_header_compiler" >&6; }
10215 # Is the header present?
10216 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10217 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10218 cat >conftest.$ac_ext <<_ACEOF
10219 /* confdefs.h. */
10220 _ACEOF
10221 cat confdefs.h >>conftest.$ac_ext
10222 cat >>conftest.$ac_ext <<_ACEOF
10223 /* end confdefs.h. */
10224 #include <$ac_header>
10225 _ACEOF
10226 if { (ac_try="$ac_cpp conftest.$ac_ext"
10227 case "(($ac_try" in
10228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10229 *) ac_try_echo=$ac_try;;
10230 esac
10231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10232 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10233 ac_status=$?
10234 grep -v '^ *+' conftest.er1 >conftest.err
10235 rm -f conftest.er1
10236 cat conftest.err >&5
10237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238 (exit $ac_status); } >/dev/null && {
10239 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10240 test ! -s conftest.err
10241 }; then
10242 ac_header_preproc=yes
10243 else
10244 echo "$as_me: failed program was:" >&5
10245 sed 's/^/| /' conftest.$ac_ext >&5
10247 ac_header_preproc=no
10250 rm -f conftest.err conftest.$ac_ext
10251 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10252 echo "${ECHO_T}$ac_header_preproc" >&6; }
10254 # So? What about this header?
10255 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10256 yes:no: )
10257 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10258 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10260 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10261 ac_header_preproc=yes
10263 no:yes:* )
10264 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10265 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10266 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10267 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10268 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10269 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10270 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10271 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10272 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10273 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10274 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10275 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10276 ( cat <<\_ASBOX
10277 ## ---------------------------------------- ##
10278 ## Report this to pgsql-bugs@postgresql.org ##
10279 ## ---------------------------------------- ##
10280 _ASBOX
10281 ) | sed "s/^/$as_me: WARNING: /" >&2
10283 esac
10284 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10286 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10287 echo $ECHO_N "(cached) $ECHO_C" >&6
10288 else
10289 eval "$as_ac_Header=\$ac_header_preproc"
10291 ac_res=`eval echo '${'$as_ac_Header'}'`
10292 { echo "$as_me:$LINENO: result: $ac_res" >&5
10293 echo "${ECHO_T}$ac_res" >&6; }
10296 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10297 cat >>confdefs.h <<_ACEOF
10298 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10299 _ACEOF
10301 else
10302 { { echo "$as_me:$LINENO: error: history header not found
10303 If you have readline already installed, see config.log for details on the
10304 failure. It is possible the compiler isn't looking in the proper directory.
10305 Use --without-readline to disable readline support." >&5
10306 echo "$as_me: error: history header not found
10307 If you have readline already installed, see config.log for details on the
10308 failure. It is possible the compiler isn't looking in the proper directory.
10309 Use --without-readline to disable readline support." >&2;}
10310 { (exit 1); exit 1; }; }
10313 done
10317 done
10321 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
10322 # Some installations of libedit usurp /usr/include/readline/, which seems
10323 # bad practice, since in combined installations readline will have its headers
10324 # there. We might have to resort to AC_EGREP checks to make sure we found
10325 # the proper header...
10327 for ac_header in editline/readline.h
10329 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10331 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10334 echo $ECHO_N "(cached) $ECHO_C" >&6
10336 ac_res=`eval echo '${'$as_ac_Header'}'`
10337 { echo "$as_me:$LINENO: result: $ac_res" >&5
10338 echo "${ECHO_T}$ac_res" >&6; }
10339 else
10340 # Is the header compilable?
10341 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10342 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
10350 #include <$ac_header>
10351 _ACEOF
10352 rm -f conftest.$ac_objext
10353 if { (ac_try="$ac_compile"
10354 case "(($ac_try" in
10355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10356 *) ac_try_echo=$ac_try;;
10357 esac
10358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10359 (eval "$ac_compile") 2>conftest.er1
10360 ac_status=$?
10361 grep -v '^ *+' conftest.er1 >conftest.err
10362 rm -f conftest.er1
10363 cat conftest.err >&5
10364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365 (exit $ac_status); } && {
10366 test -z "$ac_c_werror_flag" ||
10367 test ! -s conftest.err
10368 } && test -s conftest.$ac_objext; then
10369 ac_header_compiler=yes
10370 else
10371 echo "$as_me: failed program was:" >&5
10372 sed 's/^/| /' conftest.$ac_ext >&5
10374 ac_header_compiler=no
10377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10378 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10379 echo "${ECHO_T}$ac_header_compiler" >&6; }
10381 # Is the header present?
10382 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10384 cat >conftest.$ac_ext <<_ACEOF
10385 /* confdefs.h. */
10386 _ACEOF
10387 cat confdefs.h >>conftest.$ac_ext
10388 cat >>conftest.$ac_ext <<_ACEOF
10389 /* end confdefs.h. */
10390 #include <$ac_header>
10391 _ACEOF
10392 if { (ac_try="$ac_cpp conftest.$ac_ext"
10393 case "(($ac_try" in
10394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10395 *) ac_try_echo=$ac_try;;
10396 esac
10397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10399 ac_status=$?
10400 grep -v '^ *+' conftest.er1 >conftest.err
10401 rm -f conftest.er1
10402 cat conftest.err >&5
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); } >/dev/null && {
10405 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10406 test ! -s conftest.err
10407 }; then
10408 ac_header_preproc=yes
10409 else
10410 echo "$as_me: failed program was:" >&5
10411 sed 's/^/| /' conftest.$ac_ext >&5
10413 ac_header_preproc=no
10416 rm -f conftest.err conftest.$ac_ext
10417 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10418 echo "${ECHO_T}$ac_header_preproc" >&6; }
10420 # So? What about this header?
10421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10422 yes:no: )
10423 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10424 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10426 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10427 ac_header_preproc=yes
10429 no:yes:* )
10430 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10432 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10433 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10434 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10435 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10436 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10437 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10439 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10440 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10441 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10442 ( cat <<\_ASBOX
10443 ## ---------------------------------------- ##
10444 ## Report this to pgsql-bugs@postgresql.org ##
10445 ## ---------------------------------------- ##
10446 _ASBOX
10447 ) | sed "s/^/$as_me: WARNING: /" >&2
10449 esac
10450 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10453 echo $ECHO_N "(cached) $ECHO_C" >&6
10454 else
10455 eval "$as_ac_Header=\$ac_header_preproc"
10457 ac_res=`eval echo '${'$as_ac_Header'}'`
10458 { echo "$as_me:$LINENO: result: $ac_res" >&5
10459 echo "${ECHO_T}$ac_res" >&6; }
10462 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10463 cat >>confdefs.h <<_ACEOF
10464 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10465 _ACEOF
10467 else
10469 for ac_header in readline.h
10471 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10473 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10476 echo $ECHO_N "(cached) $ECHO_C" >&6
10478 ac_res=`eval echo '${'$as_ac_Header'}'`
10479 { echo "$as_me:$LINENO: result: $ac_res" >&5
10480 echo "${ECHO_T}$ac_res" >&6; }
10481 else
10482 # Is the header compilable?
10483 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10484 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
10492 #include <$ac_header>
10493 _ACEOF
10494 rm -f conftest.$ac_objext
10495 if { (ac_try="$ac_compile"
10496 case "(($ac_try" in
10497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10498 *) ac_try_echo=$ac_try;;
10499 esac
10500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10501 (eval "$ac_compile") 2>conftest.er1
10502 ac_status=$?
10503 grep -v '^ *+' conftest.er1 >conftest.err
10504 rm -f conftest.er1
10505 cat conftest.err >&5
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); } && {
10508 test -z "$ac_c_werror_flag" ||
10509 test ! -s conftest.err
10510 } && test -s conftest.$ac_objext; then
10511 ac_header_compiler=yes
10512 else
10513 echo "$as_me: failed program was:" >&5
10514 sed 's/^/| /' conftest.$ac_ext >&5
10516 ac_header_compiler=no
10519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10520 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10521 echo "${ECHO_T}$ac_header_compiler" >&6; }
10523 # Is the header present?
10524 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10525 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10526 cat >conftest.$ac_ext <<_ACEOF
10527 /* confdefs.h. */
10528 _ACEOF
10529 cat confdefs.h >>conftest.$ac_ext
10530 cat >>conftest.$ac_ext <<_ACEOF
10531 /* end confdefs.h. */
10532 #include <$ac_header>
10533 _ACEOF
10534 if { (ac_try="$ac_cpp conftest.$ac_ext"
10535 case "(($ac_try" in
10536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10537 *) ac_try_echo=$ac_try;;
10538 esac
10539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10541 ac_status=$?
10542 grep -v '^ *+' conftest.er1 >conftest.err
10543 rm -f conftest.er1
10544 cat conftest.err >&5
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); } >/dev/null && {
10547 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10548 test ! -s conftest.err
10549 }; then
10550 ac_header_preproc=yes
10551 else
10552 echo "$as_me: failed program was:" >&5
10553 sed 's/^/| /' conftest.$ac_ext >&5
10555 ac_header_preproc=no
10558 rm -f conftest.err conftest.$ac_ext
10559 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10560 echo "${ECHO_T}$ac_header_preproc" >&6; }
10562 # So? What about this header?
10563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10564 yes:no: )
10565 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10566 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10568 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10569 ac_header_preproc=yes
10571 no:yes:* )
10572 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10573 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10574 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10575 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10576 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10577 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10578 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10579 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10581 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10582 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10583 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10584 ( cat <<\_ASBOX
10585 ## ---------------------------------------- ##
10586 ## Report this to pgsql-bugs@postgresql.org ##
10587 ## ---------------------------------------- ##
10588 _ASBOX
10589 ) | sed "s/^/$as_me: WARNING: /" >&2
10591 esac
10592 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10595 echo $ECHO_N "(cached) $ECHO_C" >&6
10596 else
10597 eval "$as_ac_Header=\$ac_header_preproc"
10599 ac_res=`eval echo '${'$as_ac_Header'}'`
10600 { echo "$as_me:$LINENO: result: $ac_res" >&5
10601 echo "${ECHO_T}$ac_res" >&6; }
10604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10605 cat >>confdefs.h <<_ACEOF
10606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10607 _ACEOF
10609 else
10611 for ac_header in readline/readline.h
10613 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10615 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10618 echo $ECHO_N "(cached) $ECHO_C" >&6
10620 ac_res=`eval echo '${'$as_ac_Header'}'`
10621 { echo "$as_me:$LINENO: result: $ac_res" >&5
10622 echo "${ECHO_T}$ac_res" >&6; }
10623 else
10624 # Is the header compilable?
10625 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10626 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
10634 #include <$ac_header>
10635 _ACEOF
10636 rm -f conftest.$ac_objext
10637 if { (ac_try="$ac_compile"
10638 case "(($ac_try" in
10639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10640 *) ac_try_echo=$ac_try;;
10641 esac
10642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10643 (eval "$ac_compile") 2>conftest.er1
10644 ac_status=$?
10645 grep -v '^ *+' conftest.er1 >conftest.err
10646 rm -f conftest.er1
10647 cat conftest.err >&5
10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); } && {
10650 test -z "$ac_c_werror_flag" ||
10651 test ! -s conftest.err
10652 } && test -s conftest.$ac_objext; then
10653 ac_header_compiler=yes
10654 else
10655 echo "$as_me: failed program was:" >&5
10656 sed 's/^/| /' conftest.$ac_ext >&5
10658 ac_header_compiler=no
10661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10662 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10663 echo "${ECHO_T}$ac_header_compiler" >&6; }
10665 # Is the header present?
10666 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10667 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10668 cat >conftest.$ac_ext <<_ACEOF
10669 /* confdefs.h. */
10670 _ACEOF
10671 cat confdefs.h >>conftest.$ac_ext
10672 cat >>conftest.$ac_ext <<_ACEOF
10673 /* end confdefs.h. */
10674 #include <$ac_header>
10675 _ACEOF
10676 if { (ac_try="$ac_cpp conftest.$ac_ext"
10677 case "(($ac_try" in
10678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10679 *) ac_try_echo=$ac_try;;
10680 esac
10681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10683 ac_status=$?
10684 grep -v '^ *+' conftest.er1 >conftest.err
10685 rm -f conftest.er1
10686 cat conftest.err >&5
10687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688 (exit $ac_status); } >/dev/null && {
10689 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10690 test ! -s conftest.err
10691 }; then
10692 ac_header_preproc=yes
10693 else
10694 echo "$as_me: failed program was:" >&5
10695 sed 's/^/| /' conftest.$ac_ext >&5
10697 ac_header_preproc=no
10700 rm -f conftest.err conftest.$ac_ext
10701 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10702 echo "${ECHO_T}$ac_header_preproc" >&6; }
10704 # So? What about this header?
10705 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10706 yes:no: )
10707 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10708 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10710 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10711 ac_header_preproc=yes
10713 no:yes:* )
10714 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10715 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10716 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10717 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10718 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10719 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10720 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10721 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10723 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10724 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10725 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10726 ( cat <<\_ASBOX
10727 ## ---------------------------------------- ##
10728 ## Report this to pgsql-bugs@postgresql.org ##
10729 ## ---------------------------------------- ##
10730 _ASBOX
10731 ) | sed "s/^/$as_me: WARNING: /" >&2
10733 esac
10734 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10737 echo $ECHO_N "(cached) $ECHO_C" >&6
10738 else
10739 eval "$as_ac_Header=\$ac_header_preproc"
10741 ac_res=`eval echo '${'$as_ac_Header'}'`
10742 { echo "$as_me:$LINENO: result: $ac_res" >&5
10743 echo "${ECHO_T}$ac_res" >&6; }
10746 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10747 cat >>confdefs.h <<_ACEOF
10748 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10749 _ACEOF
10751 else
10752 { { echo "$as_me:$LINENO: error: readline header not found
10753 If you have libedit already installed, see config.log for details on the
10754 failure. It is possible the compiler isn't looking in the proper directory.
10755 Use --without-readline to disable libedit support." >&5
10756 echo "$as_me: error: readline header not found
10757 If you have libedit already installed, see config.log for details on the
10758 failure. It is possible the compiler isn't looking in the proper directory.
10759 Use --without-readline to disable libedit support." >&2;}
10760 { (exit 1); exit 1; }; }
10763 done
10767 done
10771 done
10773 # Note: in a libedit installation, history.h is sometimes a dummy, and may
10774 # not be there at all. Hence, don't complain if not found. We must check
10775 # though, since in yet other versions it is an independent header.
10777 for ac_header in editline/history.h
10779 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10781 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10784 echo $ECHO_N "(cached) $ECHO_C" >&6
10786 ac_res=`eval echo '${'$as_ac_Header'}'`
10787 { echo "$as_me:$LINENO: result: $ac_res" >&5
10788 echo "${ECHO_T}$ac_res" >&6; }
10789 else
10790 # Is the header compilable?
10791 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10792 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
10800 #include <$ac_header>
10801 _ACEOF
10802 rm -f conftest.$ac_objext
10803 if { (ac_try="$ac_compile"
10804 case "(($ac_try" in
10805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10806 *) ac_try_echo=$ac_try;;
10807 esac
10808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10809 (eval "$ac_compile") 2>conftest.er1
10810 ac_status=$?
10811 grep -v '^ *+' conftest.er1 >conftest.err
10812 rm -f conftest.er1
10813 cat conftest.err >&5
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); } && {
10816 test -z "$ac_c_werror_flag" ||
10817 test ! -s conftest.err
10818 } && test -s conftest.$ac_objext; then
10819 ac_header_compiler=yes
10820 else
10821 echo "$as_me: failed program was:" >&5
10822 sed 's/^/| /' conftest.$ac_ext >&5
10824 ac_header_compiler=no
10827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10828 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10829 echo "${ECHO_T}$ac_header_compiler" >&6; }
10831 # Is the header present?
10832 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10833 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10834 cat >conftest.$ac_ext <<_ACEOF
10835 /* confdefs.h. */
10836 _ACEOF
10837 cat confdefs.h >>conftest.$ac_ext
10838 cat >>conftest.$ac_ext <<_ACEOF
10839 /* end confdefs.h. */
10840 #include <$ac_header>
10841 _ACEOF
10842 if { (ac_try="$ac_cpp conftest.$ac_ext"
10843 case "(($ac_try" in
10844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10845 *) ac_try_echo=$ac_try;;
10846 esac
10847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10849 ac_status=$?
10850 grep -v '^ *+' conftest.er1 >conftest.err
10851 rm -f conftest.er1
10852 cat conftest.err >&5
10853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10854 (exit $ac_status); } >/dev/null && {
10855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10856 test ! -s conftest.err
10857 }; then
10858 ac_header_preproc=yes
10859 else
10860 echo "$as_me: failed program was:" >&5
10861 sed 's/^/| /' conftest.$ac_ext >&5
10863 ac_header_preproc=no
10866 rm -f conftest.err conftest.$ac_ext
10867 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10868 echo "${ECHO_T}$ac_header_preproc" >&6; }
10870 # So? What about this header?
10871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10872 yes:no: )
10873 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10874 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10876 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10877 ac_header_preproc=yes
10879 no:yes:* )
10880 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10881 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10882 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10883 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10884 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10885 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10886 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10887 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10889 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10890 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10891 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10892 ( cat <<\_ASBOX
10893 ## ---------------------------------------- ##
10894 ## Report this to pgsql-bugs@postgresql.org ##
10895 ## ---------------------------------------- ##
10896 _ASBOX
10897 ) | sed "s/^/$as_me: WARNING: /" >&2
10899 esac
10900 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10903 echo $ECHO_N "(cached) $ECHO_C" >&6
10904 else
10905 eval "$as_ac_Header=\$ac_header_preproc"
10907 ac_res=`eval echo '${'$as_ac_Header'}'`
10908 { echo "$as_me:$LINENO: result: $ac_res" >&5
10909 echo "${ECHO_T}$ac_res" >&6; }
10912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10913 cat >>confdefs.h <<_ACEOF
10914 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10915 _ACEOF
10917 else
10919 for ac_header in history.h
10921 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10923 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10926 echo $ECHO_N "(cached) $ECHO_C" >&6
10928 ac_res=`eval echo '${'$as_ac_Header'}'`
10929 { echo "$as_me:$LINENO: result: $ac_res" >&5
10930 echo "${ECHO_T}$ac_res" >&6; }
10931 else
10932 # Is the header compilable?
10933 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10934 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
10942 #include <$ac_header>
10943 _ACEOF
10944 rm -f conftest.$ac_objext
10945 if { (ac_try="$ac_compile"
10946 case "(($ac_try" in
10947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10948 *) ac_try_echo=$ac_try;;
10949 esac
10950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10951 (eval "$ac_compile") 2>conftest.er1
10952 ac_status=$?
10953 grep -v '^ *+' conftest.er1 >conftest.err
10954 rm -f conftest.er1
10955 cat conftest.err >&5
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); } && {
10958 test -z "$ac_c_werror_flag" ||
10959 test ! -s conftest.err
10960 } && test -s conftest.$ac_objext; then
10961 ac_header_compiler=yes
10962 else
10963 echo "$as_me: failed program was:" >&5
10964 sed 's/^/| /' conftest.$ac_ext >&5
10966 ac_header_compiler=no
10969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10970 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10971 echo "${ECHO_T}$ac_header_compiler" >&6; }
10973 # Is the header present?
10974 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10975 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10976 cat >conftest.$ac_ext <<_ACEOF
10977 /* confdefs.h. */
10978 _ACEOF
10979 cat confdefs.h >>conftest.$ac_ext
10980 cat >>conftest.$ac_ext <<_ACEOF
10981 /* end confdefs.h. */
10982 #include <$ac_header>
10983 _ACEOF
10984 if { (ac_try="$ac_cpp conftest.$ac_ext"
10985 case "(($ac_try" in
10986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10987 *) ac_try_echo=$ac_try;;
10988 esac
10989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10991 ac_status=$?
10992 grep -v '^ *+' conftest.er1 >conftest.err
10993 rm -f conftest.er1
10994 cat conftest.err >&5
10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); } >/dev/null && {
10997 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10998 test ! -s conftest.err
10999 }; then
11000 ac_header_preproc=yes
11001 else
11002 echo "$as_me: failed program was:" >&5
11003 sed 's/^/| /' conftest.$ac_ext >&5
11005 ac_header_preproc=no
11008 rm -f conftest.err conftest.$ac_ext
11009 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11010 echo "${ECHO_T}$ac_header_preproc" >&6; }
11012 # So? What about this header?
11013 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11014 yes:no: )
11015 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11016 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11018 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11019 ac_header_preproc=yes
11021 no:yes:* )
11022 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11023 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11024 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11025 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11026 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11027 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11028 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11029 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11031 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11032 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11033 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11034 ( cat <<\_ASBOX
11035 ## ---------------------------------------- ##
11036 ## Report this to pgsql-bugs@postgresql.org ##
11037 ## ---------------------------------------- ##
11038 _ASBOX
11039 ) | sed "s/^/$as_me: WARNING: /" >&2
11041 esac
11042 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11045 echo $ECHO_N "(cached) $ECHO_C" >&6
11046 else
11047 eval "$as_ac_Header=\$ac_header_preproc"
11049 ac_res=`eval echo '${'$as_ac_Header'}'`
11050 { echo "$as_me:$LINENO: result: $ac_res" >&5
11051 echo "${ECHO_T}$ac_res" >&6; }
11054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11055 cat >>confdefs.h <<_ACEOF
11056 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11057 _ACEOF
11059 else
11061 for ac_header in readline/history.h
11063 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11065 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11068 echo $ECHO_N "(cached) $ECHO_C" >&6
11070 ac_res=`eval echo '${'$as_ac_Header'}'`
11071 { echo "$as_me:$LINENO: result: $ac_res" >&5
11072 echo "${ECHO_T}$ac_res" >&6; }
11073 else
11074 # Is the header compilable?
11075 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11076 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
11084 #include <$ac_header>
11085 _ACEOF
11086 rm -f conftest.$ac_objext
11087 if { (ac_try="$ac_compile"
11088 case "(($ac_try" in
11089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11090 *) ac_try_echo=$ac_try;;
11091 esac
11092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11093 (eval "$ac_compile") 2>conftest.er1
11094 ac_status=$?
11095 grep -v '^ *+' conftest.er1 >conftest.err
11096 rm -f conftest.er1
11097 cat conftest.err >&5
11098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099 (exit $ac_status); } && {
11100 test -z "$ac_c_werror_flag" ||
11101 test ! -s conftest.err
11102 } && test -s conftest.$ac_objext; then
11103 ac_header_compiler=yes
11104 else
11105 echo "$as_me: failed program was:" >&5
11106 sed 's/^/| /' conftest.$ac_ext >&5
11108 ac_header_compiler=no
11111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11112 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11113 echo "${ECHO_T}$ac_header_compiler" >&6; }
11115 # Is the header present?
11116 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11117 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11118 cat >conftest.$ac_ext <<_ACEOF
11119 /* confdefs.h. */
11120 _ACEOF
11121 cat confdefs.h >>conftest.$ac_ext
11122 cat >>conftest.$ac_ext <<_ACEOF
11123 /* end confdefs.h. */
11124 #include <$ac_header>
11125 _ACEOF
11126 if { (ac_try="$ac_cpp conftest.$ac_ext"
11127 case "(($ac_try" in
11128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11129 *) ac_try_echo=$ac_try;;
11130 esac
11131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11133 ac_status=$?
11134 grep -v '^ *+' conftest.er1 >conftest.err
11135 rm -f conftest.er1
11136 cat conftest.err >&5
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); } >/dev/null && {
11139 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11140 test ! -s conftest.err
11141 }; then
11142 ac_header_preproc=yes
11143 else
11144 echo "$as_me: failed program was:" >&5
11145 sed 's/^/| /' conftest.$ac_ext >&5
11147 ac_header_preproc=no
11150 rm -f conftest.err conftest.$ac_ext
11151 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11152 echo "${ECHO_T}$ac_header_preproc" >&6; }
11154 # So? What about this header?
11155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11156 yes:no: )
11157 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11158 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11160 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11161 ac_header_preproc=yes
11163 no:yes:* )
11164 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11165 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11166 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11167 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11168 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11169 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11170 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11171 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11173 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11174 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11175 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11176 ( cat <<\_ASBOX
11177 ## ---------------------------------------- ##
11178 ## Report this to pgsql-bugs@postgresql.org ##
11179 ## ---------------------------------------- ##
11180 _ASBOX
11181 ) | sed "s/^/$as_me: WARNING: /" >&2
11183 esac
11184 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11187 echo $ECHO_N "(cached) $ECHO_C" >&6
11188 else
11189 eval "$as_ac_Header=\$ac_header_preproc"
11191 ac_res=`eval echo '${'$as_ac_Header'}'`
11192 { echo "$as_me:$LINENO: result: $ac_res" >&5
11193 echo "${ECHO_T}$ac_res" >&6; }
11196 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11197 cat >>confdefs.h <<_ACEOF
11198 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11199 _ACEOF
11203 done
11207 done
11211 done
11215 if test "$with_zlib" = yes; then
11216 if test "${ac_cv_header_zlib_h+set}" = set; then
11217 { echo "$as_me:$LINENO: checking for zlib.h" >&5
11218 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
11219 if test "${ac_cv_header_zlib_h+set}" = set; then
11220 echo $ECHO_N "(cached) $ECHO_C" >&6
11222 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11223 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
11224 else
11225 # Is the header compilable?
11226 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
11227 echo $ECHO_N "checking zlib.h usability... $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 $ac_includes_default
11235 #include <zlib.h>
11236 _ACEOF
11237 rm -f conftest.$ac_objext
11238 if { (ac_try="$ac_compile"
11239 case "(($ac_try" in
11240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11241 *) ac_try_echo=$ac_try;;
11242 esac
11243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11244 (eval "$ac_compile") 2>conftest.er1
11245 ac_status=$?
11246 grep -v '^ *+' conftest.er1 >conftest.err
11247 rm -f conftest.er1
11248 cat conftest.err >&5
11249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); } && {
11251 test -z "$ac_c_werror_flag" ||
11252 test ! -s conftest.err
11253 } && test -s conftest.$ac_objext; then
11254 ac_header_compiler=yes
11255 else
11256 echo "$as_me: failed program was:" >&5
11257 sed 's/^/| /' conftest.$ac_ext >&5
11259 ac_header_compiler=no
11262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11263 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11264 echo "${ECHO_T}$ac_header_compiler" >&6; }
11266 # Is the header present?
11267 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
11268 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
11269 cat >conftest.$ac_ext <<_ACEOF
11270 /* confdefs.h. */
11271 _ACEOF
11272 cat confdefs.h >>conftest.$ac_ext
11273 cat >>conftest.$ac_ext <<_ACEOF
11274 /* end confdefs.h. */
11275 #include <zlib.h>
11276 _ACEOF
11277 if { (ac_try="$ac_cpp conftest.$ac_ext"
11278 case "(($ac_try" in
11279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11280 *) ac_try_echo=$ac_try;;
11281 esac
11282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11283 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11284 ac_status=$?
11285 grep -v '^ *+' conftest.er1 >conftest.err
11286 rm -f conftest.er1
11287 cat conftest.err >&5
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); } >/dev/null && {
11290 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11291 test ! -s conftest.err
11292 }; then
11293 ac_header_preproc=yes
11294 else
11295 echo "$as_me: failed program was:" >&5
11296 sed 's/^/| /' conftest.$ac_ext >&5
11298 ac_header_preproc=no
11301 rm -f conftest.err conftest.$ac_ext
11302 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11303 echo "${ECHO_T}$ac_header_preproc" >&6; }
11305 # So? What about this header?
11306 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11307 yes:no: )
11308 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11309 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11310 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
11311 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
11312 ac_header_preproc=yes
11314 no:yes:* )
11315 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
11316 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
11317 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
11318 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
11319 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
11320 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
11321 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
11322 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
11323 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
11324 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
11325 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
11326 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
11327 ( cat <<\_ASBOX
11328 ## ---------------------------------------- ##
11329 ## Report this to pgsql-bugs@postgresql.org ##
11330 ## ---------------------------------------- ##
11331 _ASBOX
11332 ) | sed "s/^/$as_me: WARNING: /" >&2
11334 esac
11335 { echo "$as_me:$LINENO: checking for zlib.h" >&5
11336 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
11337 if test "${ac_cv_header_zlib_h+set}" = set; then
11338 echo $ECHO_N "(cached) $ECHO_C" >&6
11339 else
11340 ac_cv_header_zlib_h=$ac_header_preproc
11342 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11343 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
11346 if test $ac_cv_header_zlib_h = yes; then
11348 else
11349 { { echo "$as_me:$LINENO: error: zlib header not found
11350 If you have zlib already installed, see config.log for details on the
11351 failure. It is possible the compiler isn't looking in the proper directory.
11352 Use --without-zlib to disable zlib support." >&5
11353 echo "$as_me: error: zlib header not found
11354 If you have zlib already installed, see config.log for details on the
11355 failure. It is possible the compiler isn't looking in the proper directory.
11356 Use --without-zlib to disable zlib support." >&2;}
11357 { (exit 1); exit 1; }; }
11363 if test "$with_gssapi" = yes ; then
11365 for ac_header in gssapi/gssapi.h
11367 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11369 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11372 echo $ECHO_N "(cached) $ECHO_C" >&6
11374 ac_res=`eval echo '${'$as_ac_Header'}'`
11375 { echo "$as_me:$LINENO: result: $ac_res" >&5
11376 echo "${ECHO_T}$ac_res" >&6; }
11377 else
11378 # Is the header compilable?
11379 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11380 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
11388 #include <$ac_header>
11389 _ACEOF
11390 rm -f conftest.$ac_objext
11391 if { (ac_try="$ac_compile"
11392 case "(($ac_try" in
11393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11394 *) ac_try_echo=$ac_try;;
11395 esac
11396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11397 (eval "$ac_compile") 2>conftest.er1
11398 ac_status=$?
11399 grep -v '^ *+' conftest.er1 >conftest.err
11400 rm -f conftest.er1
11401 cat conftest.err >&5
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); } && {
11404 test -z "$ac_c_werror_flag" ||
11405 test ! -s conftest.err
11406 } && test -s conftest.$ac_objext; then
11407 ac_header_compiler=yes
11408 else
11409 echo "$as_me: failed program was:" >&5
11410 sed 's/^/| /' conftest.$ac_ext >&5
11412 ac_header_compiler=no
11415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11416 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11417 echo "${ECHO_T}$ac_header_compiler" >&6; }
11419 # Is the header present?
11420 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11421 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11422 cat >conftest.$ac_ext <<_ACEOF
11423 /* confdefs.h. */
11424 _ACEOF
11425 cat confdefs.h >>conftest.$ac_ext
11426 cat >>conftest.$ac_ext <<_ACEOF
11427 /* end confdefs.h. */
11428 #include <$ac_header>
11429 _ACEOF
11430 if { (ac_try="$ac_cpp conftest.$ac_ext"
11431 case "(($ac_try" in
11432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11433 *) ac_try_echo=$ac_try;;
11434 esac
11435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11437 ac_status=$?
11438 grep -v '^ *+' conftest.er1 >conftest.err
11439 rm -f conftest.er1
11440 cat conftest.err >&5
11441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442 (exit $ac_status); } >/dev/null && {
11443 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11444 test ! -s conftest.err
11445 }; then
11446 ac_header_preproc=yes
11447 else
11448 echo "$as_me: failed program was:" >&5
11449 sed 's/^/| /' conftest.$ac_ext >&5
11451 ac_header_preproc=no
11454 rm -f conftest.err conftest.$ac_ext
11455 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11456 echo "${ECHO_T}$ac_header_preproc" >&6; }
11458 # So? What about this header?
11459 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11460 yes:no: )
11461 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11462 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11464 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11465 ac_header_preproc=yes
11467 no:yes:* )
11468 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11469 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11470 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11471 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11472 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11473 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11474 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11475 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11477 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11478 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11479 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11480 ( cat <<\_ASBOX
11481 ## ---------------------------------------- ##
11482 ## Report this to pgsql-bugs@postgresql.org ##
11483 ## ---------------------------------------- ##
11484 _ASBOX
11485 ) | sed "s/^/$as_me: WARNING: /" >&2
11487 esac
11488 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11491 echo $ECHO_N "(cached) $ECHO_C" >&6
11492 else
11493 eval "$as_ac_Header=\$ac_header_preproc"
11495 ac_res=`eval echo '${'$as_ac_Header'}'`
11496 { echo "$as_me:$LINENO: result: $ac_res" >&5
11497 echo "${ECHO_T}$ac_res" >&6; }
11500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11501 cat >>confdefs.h <<_ACEOF
11502 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11503 _ACEOF
11505 else
11507 for ac_header in gssapi.h
11509 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11511 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11514 echo $ECHO_N "(cached) $ECHO_C" >&6
11516 ac_res=`eval echo '${'$as_ac_Header'}'`
11517 { echo "$as_me:$LINENO: result: $ac_res" >&5
11518 echo "${ECHO_T}$ac_res" >&6; }
11519 else
11520 # Is the header compilable?
11521 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11522 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
11530 #include <$ac_header>
11531 _ACEOF
11532 rm -f conftest.$ac_objext
11533 if { (ac_try="$ac_compile"
11534 case "(($ac_try" in
11535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11536 *) ac_try_echo=$ac_try;;
11537 esac
11538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11539 (eval "$ac_compile") 2>conftest.er1
11540 ac_status=$?
11541 grep -v '^ *+' conftest.er1 >conftest.err
11542 rm -f conftest.er1
11543 cat conftest.err >&5
11544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545 (exit $ac_status); } && {
11546 test -z "$ac_c_werror_flag" ||
11547 test ! -s conftest.err
11548 } && test -s conftest.$ac_objext; then
11549 ac_header_compiler=yes
11550 else
11551 echo "$as_me: failed program was:" >&5
11552 sed 's/^/| /' conftest.$ac_ext >&5
11554 ac_header_compiler=no
11557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11558 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11559 echo "${ECHO_T}$ac_header_compiler" >&6; }
11561 # Is the header present?
11562 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11563 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11564 cat >conftest.$ac_ext <<_ACEOF
11565 /* confdefs.h. */
11566 _ACEOF
11567 cat confdefs.h >>conftest.$ac_ext
11568 cat >>conftest.$ac_ext <<_ACEOF
11569 /* end confdefs.h. */
11570 #include <$ac_header>
11571 _ACEOF
11572 if { (ac_try="$ac_cpp conftest.$ac_ext"
11573 case "(($ac_try" in
11574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11575 *) ac_try_echo=$ac_try;;
11576 esac
11577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11579 ac_status=$?
11580 grep -v '^ *+' conftest.er1 >conftest.err
11581 rm -f conftest.er1
11582 cat conftest.err >&5
11583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584 (exit $ac_status); } >/dev/null && {
11585 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11586 test ! -s conftest.err
11587 }; then
11588 ac_header_preproc=yes
11589 else
11590 echo "$as_me: failed program was:" >&5
11591 sed 's/^/| /' conftest.$ac_ext >&5
11593 ac_header_preproc=no
11596 rm -f conftest.err conftest.$ac_ext
11597 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11598 echo "${ECHO_T}$ac_header_preproc" >&6; }
11600 # So? What about this header?
11601 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11602 yes:no: )
11603 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11604 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11606 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11607 ac_header_preproc=yes
11609 no:yes:* )
11610 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11611 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11612 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11613 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11614 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11615 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11616 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11617 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11619 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11620 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11621 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11622 ( cat <<\_ASBOX
11623 ## ---------------------------------------- ##
11624 ## Report this to pgsql-bugs@postgresql.org ##
11625 ## ---------------------------------------- ##
11626 _ASBOX
11627 ) | sed "s/^/$as_me: WARNING: /" >&2
11629 esac
11630 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11632 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11633 echo $ECHO_N "(cached) $ECHO_C" >&6
11634 else
11635 eval "$as_ac_Header=\$ac_header_preproc"
11637 ac_res=`eval echo '${'$as_ac_Header'}'`
11638 { echo "$as_me:$LINENO: result: $ac_res" >&5
11639 echo "${ECHO_T}$ac_res" >&6; }
11642 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11643 cat >>confdefs.h <<_ACEOF
11644 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11645 _ACEOF
11647 else
11648 { { echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
11649 echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
11650 { (exit 1); exit 1; }; }
11653 done
11657 done
11661 if test "$with_krb5" = yes ; then
11662 if test "${ac_cv_header_krb5_h+set}" = set; then
11663 { echo "$as_me:$LINENO: checking for krb5.h" >&5
11664 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
11665 if test "${ac_cv_header_krb5_h+set}" = set; then
11666 echo $ECHO_N "(cached) $ECHO_C" >&6
11668 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
11669 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
11670 else
11671 # Is the header compilable?
11672 { echo "$as_me:$LINENO: checking krb5.h usability" >&5
11673 echo $ECHO_N "checking krb5.h usability... $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 $ac_includes_default
11681 #include <krb5.h>
11682 _ACEOF
11683 rm -f conftest.$ac_objext
11684 if { (ac_try="$ac_compile"
11685 case "(($ac_try" in
11686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11687 *) ac_try_echo=$ac_try;;
11688 esac
11689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11690 (eval "$ac_compile") 2>conftest.er1
11691 ac_status=$?
11692 grep -v '^ *+' conftest.er1 >conftest.err
11693 rm -f conftest.er1
11694 cat conftest.err >&5
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); } && {
11697 test -z "$ac_c_werror_flag" ||
11698 test ! -s conftest.err
11699 } && test -s conftest.$ac_objext; then
11700 ac_header_compiler=yes
11701 else
11702 echo "$as_me: failed program was:" >&5
11703 sed 's/^/| /' conftest.$ac_ext >&5
11705 ac_header_compiler=no
11708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11709 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11710 echo "${ECHO_T}$ac_header_compiler" >&6; }
11712 # Is the header present?
11713 { echo "$as_me:$LINENO: checking krb5.h presence" >&5
11714 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6; }
11715 cat >conftest.$ac_ext <<_ACEOF
11716 /* confdefs.h. */
11717 _ACEOF
11718 cat confdefs.h >>conftest.$ac_ext
11719 cat >>conftest.$ac_ext <<_ACEOF
11720 /* end confdefs.h. */
11721 #include <krb5.h>
11722 _ACEOF
11723 if { (ac_try="$ac_cpp conftest.$ac_ext"
11724 case "(($ac_try" in
11725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11726 *) ac_try_echo=$ac_try;;
11727 esac
11728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11730 ac_status=$?
11731 grep -v '^ *+' conftest.er1 >conftest.err
11732 rm -f conftest.er1
11733 cat conftest.err >&5
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); } >/dev/null && {
11736 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11737 test ! -s conftest.err
11738 }; then
11739 ac_header_preproc=yes
11740 else
11741 echo "$as_me: failed program was:" >&5
11742 sed 's/^/| /' conftest.$ac_ext >&5
11744 ac_header_preproc=no
11747 rm -f conftest.err conftest.$ac_ext
11748 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11749 echo "${ECHO_T}$ac_header_preproc" >&6; }
11751 # So? What about this header?
11752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11753 yes:no: )
11754 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
11755 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11756 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
11757 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
11758 ac_header_preproc=yes
11760 no:yes:* )
11761 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
11762 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
11763 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
11764 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
11765 { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
11766 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
11767 { echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
11768 echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
11769 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
11770 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
11771 { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
11772 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
11773 ( cat <<\_ASBOX
11774 ## ---------------------------------------- ##
11775 ## Report this to pgsql-bugs@postgresql.org ##
11776 ## ---------------------------------------- ##
11777 _ASBOX
11778 ) | sed "s/^/$as_me: WARNING: /" >&2
11780 esac
11781 { echo "$as_me:$LINENO: checking for krb5.h" >&5
11782 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
11783 if test "${ac_cv_header_krb5_h+set}" = set; then
11784 echo $ECHO_N "(cached) $ECHO_C" >&6
11785 else
11786 ac_cv_header_krb5_h=$ac_header_preproc
11788 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
11789 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
11792 if test $ac_cv_header_krb5_h = yes; then
11794 else
11795 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
11796 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
11797 { (exit 1); exit 1; }; }
11803 if test "$with_openssl" = yes ; then
11804 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11805 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
11806 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
11807 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11808 echo $ECHO_N "(cached) $ECHO_C" >&6
11810 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
11811 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
11812 else
11813 # Is the header compilable?
11814 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
11815 echo $ECHO_N "checking openssl/ssl.h usability... $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 $ac_includes_default
11823 #include <openssl/ssl.h>
11824 _ACEOF
11825 rm -f conftest.$ac_objext
11826 if { (ac_try="$ac_compile"
11827 case "(($ac_try" in
11828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11829 *) ac_try_echo=$ac_try;;
11830 esac
11831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11832 (eval "$ac_compile") 2>conftest.er1
11833 ac_status=$?
11834 grep -v '^ *+' conftest.er1 >conftest.err
11835 rm -f conftest.er1
11836 cat conftest.err >&5
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); } && {
11839 test -z "$ac_c_werror_flag" ||
11840 test ! -s conftest.err
11841 } && test -s conftest.$ac_objext; then
11842 ac_header_compiler=yes
11843 else
11844 echo "$as_me: failed program was:" >&5
11845 sed 's/^/| /' conftest.$ac_ext >&5
11847 ac_header_compiler=no
11850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11851 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11852 echo "${ECHO_T}$ac_header_compiler" >&6; }
11854 # Is the header present?
11855 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
11856 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
11857 cat >conftest.$ac_ext <<_ACEOF
11858 /* confdefs.h. */
11859 _ACEOF
11860 cat confdefs.h >>conftest.$ac_ext
11861 cat >>conftest.$ac_ext <<_ACEOF
11862 /* end confdefs.h. */
11863 #include <openssl/ssl.h>
11864 _ACEOF
11865 if { (ac_try="$ac_cpp conftest.$ac_ext"
11866 case "(($ac_try" in
11867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11868 *) ac_try_echo=$ac_try;;
11869 esac
11870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11872 ac_status=$?
11873 grep -v '^ *+' conftest.er1 >conftest.err
11874 rm -f conftest.er1
11875 cat conftest.err >&5
11876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877 (exit $ac_status); } >/dev/null && {
11878 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11879 test ! -s conftest.err
11880 }; then
11881 ac_header_preproc=yes
11882 else
11883 echo "$as_me: failed program was:" >&5
11884 sed 's/^/| /' conftest.$ac_ext >&5
11886 ac_header_preproc=no
11889 rm -f conftest.err conftest.$ac_ext
11890 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11891 echo "${ECHO_T}$ac_header_preproc" >&6; }
11893 # So? What about this header?
11894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11895 yes:no: )
11896 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
11897 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11898 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
11899 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
11900 ac_header_preproc=yes
11902 no:yes:* )
11903 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
11904 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
11905 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
11906 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
11907 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
11908 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
11909 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
11910 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
11911 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
11912 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
11913 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
11914 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
11915 ( cat <<\_ASBOX
11916 ## ---------------------------------------- ##
11917 ## Report this to pgsql-bugs@postgresql.org ##
11918 ## ---------------------------------------- ##
11919 _ASBOX
11920 ) | sed "s/^/$as_me: WARNING: /" >&2
11922 esac
11923 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
11924 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
11925 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11926 echo $ECHO_N "(cached) $ECHO_C" >&6
11927 else
11928 ac_cv_header_openssl_ssl_h=$ac_header_preproc
11930 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
11931 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
11934 if test $ac_cv_header_openssl_ssl_h = yes; then
11936 else
11937 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
11938 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
11939 { (exit 1); exit 1; }; }
11943 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11944 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
11945 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
11946 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11947 echo $ECHO_N "(cached) $ECHO_C" >&6
11949 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
11950 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
11951 else
11952 # Is the header compilable?
11953 { echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
11954 echo $ECHO_N "checking openssl/err.h usability... $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 $ac_includes_default
11962 #include <openssl/err.h>
11963 _ACEOF
11964 rm -f conftest.$ac_objext
11965 if { (ac_try="$ac_compile"
11966 case "(($ac_try" in
11967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11968 *) ac_try_echo=$ac_try;;
11969 esac
11970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11971 (eval "$ac_compile") 2>conftest.er1
11972 ac_status=$?
11973 grep -v '^ *+' conftest.er1 >conftest.err
11974 rm -f conftest.er1
11975 cat conftest.err >&5
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); } && {
11978 test -z "$ac_c_werror_flag" ||
11979 test ! -s conftest.err
11980 } && test -s conftest.$ac_objext; then
11981 ac_header_compiler=yes
11982 else
11983 echo "$as_me: failed program was:" >&5
11984 sed 's/^/| /' conftest.$ac_ext >&5
11986 ac_header_compiler=no
11989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11990 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11991 echo "${ECHO_T}$ac_header_compiler" >&6; }
11993 # Is the header present?
11994 { echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
11995 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6; }
11996 cat >conftest.$ac_ext <<_ACEOF
11997 /* confdefs.h. */
11998 _ACEOF
11999 cat confdefs.h >>conftest.$ac_ext
12000 cat >>conftest.$ac_ext <<_ACEOF
12001 /* end confdefs.h. */
12002 #include <openssl/err.h>
12003 _ACEOF
12004 if { (ac_try="$ac_cpp conftest.$ac_ext"
12005 case "(($ac_try" in
12006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12007 *) ac_try_echo=$ac_try;;
12008 esac
12009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12011 ac_status=$?
12012 grep -v '^ *+' conftest.er1 >conftest.err
12013 rm -f conftest.er1
12014 cat conftest.err >&5
12015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); } >/dev/null && {
12017 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12018 test ! -s conftest.err
12019 }; then
12020 ac_header_preproc=yes
12021 else
12022 echo "$as_me: failed program was:" >&5
12023 sed 's/^/| /' conftest.$ac_ext >&5
12025 ac_header_preproc=no
12028 rm -f conftest.err conftest.$ac_ext
12029 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12030 echo "${ECHO_T}$ac_header_preproc" >&6; }
12032 # So? What about this header?
12033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12034 yes:no: )
12035 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
12036 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12037 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
12038 echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
12039 ac_header_preproc=yes
12041 no:yes:* )
12042 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
12043 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
12044 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
12045 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
12046 { echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
12047 echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
12048 { echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
12049 echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
12050 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
12051 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
12052 { echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
12053 echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
12054 ( cat <<\_ASBOX
12055 ## ---------------------------------------- ##
12056 ## Report this to pgsql-bugs@postgresql.org ##
12057 ## ---------------------------------------- ##
12058 _ASBOX
12059 ) | sed "s/^/$as_me: WARNING: /" >&2
12061 esac
12062 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12063 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
12064 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12065 echo $ECHO_N "(cached) $ECHO_C" >&6
12066 else
12067 ac_cv_header_openssl_err_h=$ac_header_preproc
12069 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12070 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
12073 if test $ac_cv_header_openssl_err_h = yes; then
12075 else
12076 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
12077 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
12078 { (exit 1); exit 1; }; }
12083 for ac_func in ERR_set_mark
12085 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12086 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12088 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12089 echo $ECHO_N "(cached) $ECHO_C" >&6
12090 else
12091 cat >conftest.$ac_ext <<_ACEOF
12092 /* confdefs.h. */
12093 _ACEOF
12094 cat confdefs.h >>conftest.$ac_ext
12095 cat >>conftest.$ac_ext <<_ACEOF
12096 /* end confdefs.h. */
12097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12099 #define $ac_func innocuous_$ac_func
12101 /* System header to define __stub macros and hopefully few prototypes,
12102 which can conflict with char $ac_func (); below.
12103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12104 <limits.h> exists even on freestanding compilers. */
12106 #ifdef __STDC__
12107 # include <limits.h>
12108 #else
12109 # include <assert.h>
12110 #endif
12112 #undef $ac_func
12114 /* Override any GCC internal prototype to avoid an error.
12115 Use char because int might match the return type of a GCC
12116 builtin and then its argument prototype would still apply. */
12117 #ifdef __cplusplus
12118 extern "C"
12119 #endif
12120 char $ac_func ();
12121 /* The GNU C library defines this for functions which it implements
12122 to always fail with ENOSYS. Some functions are actually named
12123 something starting with __ and the normal name is an alias. */
12124 #if defined __stub_$ac_func || defined __stub___$ac_func
12125 choke me
12126 #endif
12129 main ()
12131 return $ac_func ();
12133 return 0;
12135 _ACEOF
12136 rm -f conftest.$ac_objext conftest$ac_exeext
12137 if { (ac_try="$ac_link"
12138 case "(($ac_try" in
12139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12140 *) ac_try_echo=$ac_try;;
12141 esac
12142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12143 (eval "$ac_link") 2>conftest.er1
12144 ac_status=$?
12145 grep -v '^ *+' conftest.er1 >conftest.err
12146 rm -f conftest.er1
12147 cat conftest.err >&5
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); } && {
12150 test -z "$ac_c_werror_flag" ||
12151 test ! -s conftest.err
12152 } && test -s conftest$ac_exeext &&
12153 $as_test_x conftest$ac_exeext; then
12154 eval "$as_ac_var=yes"
12155 else
12156 echo "$as_me: failed program was:" >&5
12157 sed 's/^/| /' conftest.$ac_ext >&5
12159 eval "$as_ac_var=no"
12162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12163 conftest$ac_exeext conftest.$ac_ext
12165 ac_res=`eval echo '${'$as_ac_var'}'`
12166 { echo "$as_me:$LINENO: result: $ac_res" >&5
12167 echo "${ECHO_T}$ac_res" >&6; }
12168 if test `eval echo '${'$as_ac_var'}'` = yes; then
12169 cat >>confdefs.h <<_ACEOF
12170 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12171 _ACEOF
12174 done
12178 if test "$with_pam" = yes ; then
12180 for ac_header in security/pam_appl.h
12182 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12184 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12187 echo $ECHO_N "(cached) $ECHO_C" >&6
12189 ac_res=`eval echo '${'$as_ac_Header'}'`
12190 { echo "$as_me:$LINENO: result: $ac_res" >&5
12191 echo "${ECHO_T}$ac_res" >&6; }
12192 else
12193 # Is the header compilable?
12194 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12195 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
12203 #include <$ac_header>
12204 _ACEOF
12205 rm -f conftest.$ac_objext
12206 if { (ac_try="$ac_compile"
12207 case "(($ac_try" in
12208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12209 *) ac_try_echo=$ac_try;;
12210 esac
12211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12212 (eval "$ac_compile") 2>conftest.er1
12213 ac_status=$?
12214 grep -v '^ *+' conftest.er1 >conftest.err
12215 rm -f conftest.er1
12216 cat conftest.err >&5
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); } && {
12219 test -z "$ac_c_werror_flag" ||
12220 test ! -s conftest.err
12221 } && test -s conftest.$ac_objext; then
12222 ac_header_compiler=yes
12223 else
12224 echo "$as_me: failed program was:" >&5
12225 sed 's/^/| /' conftest.$ac_ext >&5
12227 ac_header_compiler=no
12230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12231 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12232 echo "${ECHO_T}$ac_header_compiler" >&6; }
12234 # Is the header present?
12235 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12236 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12237 cat >conftest.$ac_ext <<_ACEOF
12238 /* confdefs.h. */
12239 _ACEOF
12240 cat confdefs.h >>conftest.$ac_ext
12241 cat >>conftest.$ac_ext <<_ACEOF
12242 /* end confdefs.h. */
12243 #include <$ac_header>
12244 _ACEOF
12245 if { (ac_try="$ac_cpp conftest.$ac_ext"
12246 case "(($ac_try" in
12247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12248 *) ac_try_echo=$ac_try;;
12249 esac
12250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12251 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12252 ac_status=$?
12253 grep -v '^ *+' conftest.er1 >conftest.err
12254 rm -f conftest.er1
12255 cat conftest.err >&5
12256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257 (exit $ac_status); } >/dev/null && {
12258 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12259 test ! -s conftest.err
12260 }; then
12261 ac_header_preproc=yes
12262 else
12263 echo "$as_me: failed program was:" >&5
12264 sed 's/^/| /' conftest.$ac_ext >&5
12266 ac_header_preproc=no
12269 rm -f conftest.err conftest.$ac_ext
12270 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12271 echo "${ECHO_T}$ac_header_preproc" >&6; }
12273 # So? What about this header?
12274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12275 yes:no: )
12276 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12277 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12279 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12280 ac_header_preproc=yes
12282 no:yes:* )
12283 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12284 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12285 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12286 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12287 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12288 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12289 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12290 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12293 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12294 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12295 ( cat <<\_ASBOX
12296 ## ---------------------------------------- ##
12297 ## Report this to pgsql-bugs@postgresql.org ##
12298 ## ---------------------------------------- ##
12299 _ASBOX
12300 ) | sed "s/^/$as_me: WARNING: /" >&2
12302 esac
12303 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12306 echo $ECHO_N "(cached) $ECHO_C" >&6
12307 else
12308 eval "$as_ac_Header=\$ac_header_preproc"
12310 ac_res=`eval echo '${'$as_ac_Header'}'`
12311 { echo "$as_me:$LINENO: result: $ac_res" >&5
12312 echo "${ECHO_T}$ac_res" >&6; }
12315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12316 cat >>confdefs.h <<_ACEOF
12317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12318 _ACEOF
12320 else
12322 for ac_header in pam/pam_appl.h
12324 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12326 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12329 echo $ECHO_N "(cached) $ECHO_C" >&6
12331 ac_res=`eval echo '${'$as_ac_Header'}'`
12332 { echo "$as_me:$LINENO: result: $ac_res" >&5
12333 echo "${ECHO_T}$ac_res" >&6; }
12334 else
12335 # Is the header compilable?
12336 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12337 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
12345 #include <$ac_header>
12346 _ACEOF
12347 rm -f conftest.$ac_objext
12348 if { (ac_try="$ac_compile"
12349 case "(($ac_try" in
12350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12351 *) ac_try_echo=$ac_try;;
12352 esac
12353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12354 (eval "$ac_compile") 2>conftest.er1
12355 ac_status=$?
12356 grep -v '^ *+' conftest.er1 >conftest.err
12357 rm -f conftest.er1
12358 cat conftest.err >&5
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); } && {
12361 test -z "$ac_c_werror_flag" ||
12362 test ! -s conftest.err
12363 } && test -s conftest.$ac_objext; then
12364 ac_header_compiler=yes
12365 else
12366 echo "$as_me: failed program was:" >&5
12367 sed 's/^/| /' conftest.$ac_ext >&5
12369 ac_header_compiler=no
12372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12373 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12374 echo "${ECHO_T}$ac_header_compiler" >&6; }
12376 # Is the header present?
12377 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12378 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12379 cat >conftest.$ac_ext <<_ACEOF
12380 /* confdefs.h. */
12381 _ACEOF
12382 cat confdefs.h >>conftest.$ac_ext
12383 cat >>conftest.$ac_ext <<_ACEOF
12384 /* end confdefs.h. */
12385 #include <$ac_header>
12386 _ACEOF
12387 if { (ac_try="$ac_cpp conftest.$ac_ext"
12388 case "(($ac_try" in
12389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12390 *) ac_try_echo=$ac_try;;
12391 esac
12392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12393 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12394 ac_status=$?
12395 grep -v '^ *+' conftest.er1 >conftest.err
12396 rm -f conftest.er1
12397 cat conftest.err >&5
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); } >/dev/null && {
12400 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12401 test ! -s conftest.err
12402 }; then
12403 ac_header_preproc=yes
12404 else
12405 echo "$as_me: failed program was:" >&5
12406 sed 's/^/| /' conftest.$ac_ext >&5
12408 ac_header_preproc=no
12411 rm -f conftest.err conftest.$ac_ext
12412 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12413 echo "${ECHO_T}$ac_header_preproc" >&6; }
12415 # So? What about this header?
12416 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12417 yes:no: )
12418 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12419 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12421 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12422 ac_header_preproc=yes
12424 no:yes:* )
12425 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12426 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12427 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12428 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12429 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12430 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12431 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12432 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12434 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12435 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12436 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12437 ( cat <<\_ASBOX
12438 ## ---------------------------------------- ##
12439 ## Report this to pgsql-bugs@postgresql.org ##
12440 ## ---------------------------------------- ##
12441 _ASBOX
12442 ) | sed "s/^/$as_me: WARNING: /" >&2
12444 esac
12445 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12448 echo $ECHO_N "(cached) $ECHO_C" >&6
12449 else
12450 eval "$as_ac_Header=\$ac_header_preproc"
12452 ac_res=`eval echo '${'$as_ac_Header'}'`
12453 { echo "$as_me:$LINENO: result: $ac_res" >&5
12454 echo "${ECHO_T}$ac_res" >&6; }
12457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12458 cat >>confdefs.h <<_ACEOF
12459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12460 _ACEOF
12462 else
12463 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
12464 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
12465 { (exit 1); exit 1; }; }
12468 done
12472 done
12476 if test "$with_libxml" = yes ; then
12477 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12478 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12479 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
12480 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12481 echo $ECHO_N "(cached) $ECHO_C" >&6
12483 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12484 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
12485 else
12486 # Is the header compilable?
12487 { echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
12488 echo $ECHO_N "checking libxml/parser.h usability... $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 $ac_includes_default
12496 #include <libxml/parser.h>
12497 _ACEOF
12498 rm -f conftest.$ac_objext
12499 if { (ac_try="$ac_compile"
12500 case "(($ac_try" in
12501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12502 *) ac_try_echo=$ac_try;;
12503 esac
12504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12505 (eval "$ac_compile") 2>conftest.er1
12506 ac_status=$?
12507 grep -v '^ *+' conftest.er1 >conftest.err
12508 rm -f conftest.er1
12509 cat conftest.err >&5
12510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511 (exit $ac_status); } && {
12512 test -z "$ac_c_werror_flag" ||
12513 test ! -s conftest.err
12514 } && test -s conftest.$ac_objext; then
12515 ac_header_compiler=yes
12516 else
12517 echo "$as_me: failed program was:" >&5
12518 sed 's/^/| /' conftest.$ac_ext >&5
12520 ac_header_compiler=no
12523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12524 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12525 echo "${ECHO_T}$ac_header_compiler" >&6; }
12527 # Is the header present?
12528 { echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
12529 echo $ECHO_N "checking libxml/parser.h presence... $ECHO_C" >&6; }
12530 cat >conftest.$ac_ext <<_ACEOF
12531 /* confdefs.h. */
12532 _ACEOF
12533 cat confdefs.h >>conftest.$ac_ext
12534 cat >>conftest.$ac_ext <<_ACEOF
12535 /* end confdefs.h. */
12536 #include <libxml/parser.h>
12537 _ACEOF
12538 if { (ac_try="$ac_cpp conftest.$ac_ext"
12539 case "(($ac_try" in
12540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12541 *) ac_try_echo=$ac_try;;
12542 esac
12543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12544 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12545 ac_status=$?
12546 grep -v '^ *+' conftest.er1 >conftest.err
12547 rm -f conftest.er1
12548 cat conftest.err >&5
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); } >/dev/null && {
12551 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12552 test ! -s conftest.err
12553 }; then
12554 ac_header_preproc=yes
12555 else
12556 echo "$as_me: failed program was:" >&5
12557 sed 's/^/| /' conftest.$ac_ext >&5
12559 ac_header_preproc=no
12562 rm -f conftest.err conftest.$ac_ext
12563 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12564 echo "${ECHO_T}$ac_header_preproc" >&6; }
12566 # So? What about this header?
12567 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12568 yes:no: )
12569 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
12570 echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12571 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
12572 echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
12573 ac_header_preproc=yes
12575 no:yes:* )
12576 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
12577 echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
12578 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
12579 echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
12580 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
12581 echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
12582 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
12583 echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
12584 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
12585 echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
12586 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
12587 echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
12588 ( cat <<\_ASBOX
12589 ## ---------------------------------------- ##
12590 ## Report this to pgsql-bugs@postgresql.org ##
12591 ## ---------------------------------------- ##
12592 _ASBOX
12593 ) | sed "s/^/$as_me: WARNING: /" >&2
12595 esac
12596 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12597 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
12598 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12599 echo $ECHO_N "(cached) $ECHO_C" >&6
12600 else
12601 ac_cv_header_libxml_parser_h=$ac_header_preproc
12603 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12604 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
12607 if test $ac_cv_header_libxml_parser_h = yes; then
12609 else
12610 { { echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
12611 echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
12612 { (exit 1); exit 1; }; }
12618 if test "$with_libxslt" = yes ; then
12619 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12620 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
12621 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
12622 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12623 echo $ECHO_N "(cached) $ECHO_C" >&6
12625 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
12626 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
12627 else
12628 # Is the header compilable?
12629 { echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
12630 echo $ECHO_N "checking libxslt/xslt.h usability... $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 $ac_includes_default
12638 #include <libxslt/xslt.h>
12639 _ACEOF
12640 rm -f conftest.$ac_objext
12641 if { (ac_try="$ac_compile"
12642 case "(($ac_try" in
12643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12644 *) ac_try_echo=$ac_try;;
12645 esac
12646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12647 (eval "$ac_compile") 2>conftest.er1
12648 ac_status=$?
12649 grep -v '^ *+' conftest.er1 >conftest.err
12650 rm -f conftest.er1
12651 cat conftest.err >&5
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); } && {
12654 test -z "$ac_c_werror_flag" ||
12655 test ! -s conftest.err
12656 } && test -s conftest.$ac_objext; then
12657 ac_header_compiler=yes
12658 else
12659 echo "$as_me: failed program was:" >&5
12660 sed 's/^/| /' conftest.$ac_ext >&5
12662 ac_header_compiler=no
12665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12666 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12667 echo "${ECHO_T}$ac_header_compiler" >&6; }
12669 # Is the header present?
12670 { echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
12671 echo $ECHO_N "checking libxslt/xslt.h presence... $ECHO_C" >&6; }
12672 cat >conftest.$ac_ext <<_ACEOF
12673 /* confdefs.h. */
12674 _ACEOF
12675 cat confdefs.h >>conftest.$ac_ext
12676 cat >>conftest.$ac_ext <<_ACEOF
12677 /* end confdefs.h. */
12678 #include <libxslt/xslt.h>
12679 _ACEOF
12680 if { (ac_try="$ac_cpp conftest.$ac_ext"
12681 case "(($ac_try" in
12682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12683 *) ac_try_echo=$ac_try;;
12684 esac
12685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12687 ac_status=$?
12688 grep -v '^ *+' conftest.er1 >conftest.err
12689 rm -f conftest.er1
12690 cat conftest.err >&5
12691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692 (exit $ac_status); } >/dev/null && {
12693 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12694 test ! -s conftest.err
12695 }; then
12696 ac_header_preproc=yes
12697 else
12698 echo "$as_me: failed program was:" >&5
12699 sed 's/^/| /' conftest.$ac_ext >&5
12701 ac_header_preproc=no
12704 rm -f conftest.err conftest.$ac_ext
12705 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12706 echo "${ECHO_T}$ac_header_preproc" >&6; }
12708 # So? What about this header?
12709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12710 yes:no: )
12711 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
12712 echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12713 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
12714 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
12715 ac_header_preproc=yes
12717 no:yes:* )
12718 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
12719 echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
12720 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
12721 echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
12722 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
12723 echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
12724 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
12725 echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
12726 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
12727 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
12728 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
12729 echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
12730 ( cat <<\_ASBOX
12731 ## ---------------------------------------- ##
12732 ## Report this to pgsql-bugs@postgresql.org ##
12733 ## ---------------------------------------- ##
12734 _ASBOX
12735 ) | sed "s/^/$as_me: WARNING: /" >&2
12737 esac
12738 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
12739 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
12740 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12741 echo $ECHO_N "(cached) $ECHO_C" >&6
12742 else
12743 ac_cv_header_libxslt_xslt_h=$ac_header_preproc
12745 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
12746 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
12749 if test $ac_cv_header_libxslt_xslt_h = yes; then
12751 else
12752 { { echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
12753 echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
12754 { (exit 1); exit 1; }; }
12760 if test "$with_ldap" = yes ; then
12761 if test "$PORTNAME" != "win32"; then
12763 for ac_header in ldap.h
12765 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12767 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12770 echo $ECHO_N "(cached) $ECHO_C" >&6
12772 ac_res=`eval echo '${'$as_ac_Header'}'`
12773 { echo "$as_me:$LINENO: result: $ac_res" >&5
12774 echo "${ECHO_T}$ac_res" >&6; }
12775 else
12776 # Is the header compilable?
12777 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12778 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
12786 #include <$ac_header>
12787 _ACEOF
12788 rm -f conftest.$ac_objext
12789 if { (ac_try="$ac_compile"
12790 case "(($ac_try" in
12791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12792 *) ac_try_echo=$ac_try;;
12793 esac
12794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12795 (eval "$ac_compile") 2>conftest.er1
12796 ac_status=$?
12797 grep -v '^ *+' conftest.er1 >conftest.err
12798 rm -f conftest.er1
12799 cat conftest.err >&5
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); } && {
12802 test -z "$ac_c_werror_flag" ||
12803 test ! -s conftest.err
12804 } && test -s conftest.$ac_objext; then
12805 ac_header_compiler=yes
12806 else
12807 echo "$as_me: failed program was:" >&5
12808 sed 's/^/| /' conftest.$ac_ext >&5
12810 ac_header_compiler=no
12813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12814 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12815 echo "${ECHO_T}$ac_header_compiler" >&6; }
12817 # Is the header present?
12818 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12819 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12820 cat >conftest.$ac_ext <<_ACEOF
12821 /* confdefs.h. */
12822 _ACEOF
12823 cat confdefs.h >>conftest.$ac_ext
12824 cat >>conftest.$ac_ext <<_ACEOF
12825 /* end confdefs.h. */
12826 #include <$ac_header>
12827 _ACEOF
12828 if { (ac_try="$ac_cpp conftest.$ac_ext"
12829 case "(($ac_try" in
12830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12831 *) ac_try_echo=$ac_try;;
12832 esac
12833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12835 ac_status=$?
12836 grep -v '^ *+' conftest.er1 >conftest.err
12837 rm -f conftest.er1
12838 cat conftest.err >&5
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840 (exit $ac_status); } >/dev/null && {
12841 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12842 test ! -s conftest.err
12843 }; then
12844 ac_header_preproc=yes
12845 else
12846 echo "$as_me: failed program was:" >&5
12847 sed 's/^/| /' conftest.$ac_ext >&5
12849 ac_header_preproc=no
12852 rm -f conftest.err conftest.$ac_ext
12853 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12854 echo "${ECHO_T}$ac_header_preproc" >&6; }
12856 # So? What about this header?
12857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12858 yes:no: )
12859 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12860 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12862 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12863 ac_header_preproc=yes
12865 no:yes:* )
12866 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12867 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12868 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12869 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12870 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12871 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12872 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12873 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12875 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12876 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12877 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12878 ( cat <<\_ASBOX
12879 ## ---------------------------------------- ##
12880 ## Report this to pgsql-bugs@postgresql.org ##
12881 ## ---------------------------------------- ##
12882 _ASBOX
12883 ) | sed "s/^/$as_me: WARNING: /" >&2
12885 esac
12886 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12889 echo $ECHO_N "(cached) $ECHO_C" >&6
12890 else
12891 eval "$as_ac_Header=\$ac_header_preproc"
12893 ac_res=`eval echo '${'$as_ac_Header'}'`
12894 { echo "$as_me:$LINENO: result: $ac_res" >&5
12895 echo "${ECHO_T}$ac_res" >&6; }
12898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12899 cat >>confdefs.h <<_ACEOF
12900 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12901 _ACEOF
12903 else
12904 { { echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
12905 echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
12906 { (exit 1); exit 1; }; }
12909 done
12911 else
12913 for ac_header in winldap.h
12915 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12916 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12919 echo $ECHO_N "(cached) $ECHO_C" >&6
12920 else
12921 cat >conftest.$ac_ext <<_ACEOF
12922 /* confdefs.h. */
12923 _ACEOF
12924 cat confdefs.h >>conftest.$ac_ext
12925 cat >>conftest.$ac_ext <<_ACEOF
12926 /* end confdefs.h. */
12927 $ac_includes_default
12928 #include <windows.h>
12931 #include <$ac_header>
12932 _ACEOF
12933 rm -f conftest.$ac_objext
12934 if { (ac_try="$ac_compile"
12935 case "(($ac_try" in
12936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12937 *) ac_try_echo=$ac_try;;
12938 esac
12939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12940 (eval "$ac_compile") 2>conftest.er1
12941 ac_status=$?
12942 grep -v '^ *+' conftest.er1 >conftest.err
12943 rm -f conftest.er1
12944 cat conftest.err >&5
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); } && {
12947 test -z "$ac_c_werror_flag" ||
12948 test ! -s conftest.err
12949 } && test -s conftest.$ac_objext; then
12950 eval "$as_ac_Header=yes"
12951 else
12952 echo "$as_me: failed program was:" >&5
12953 sed 's/^/| /' conftest.$ac_ext >&5
12955 eval "$as_ac_Header=no"
12958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12960 ac_res=`eval echo '${'$as_ac_Header'}'`
12961 { echo "$as_me:$LINENO: result: $ac_res" >&5
12962 echo "${ECHO_T}$ac_res" >&6; }
12963 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12964 cat >>confdefs.h <<_ACEOF
12965 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12966 _ACEOF
12968 else
12969 { { echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
12970 echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
12971 { (exit 1); exit 1; }; }
12974 done
12979 if test "$with_bonjour" = yes ; then
12980 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12981 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
12982 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
12983 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12984 echo $ECHO_N "(cached) $ECHO_C" >&6
12986 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
12987 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
12988 else
12989 # Is the header compilable?
12990 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
12991 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $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 $ac_includes_default
12999 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
13000 _ACEOF
13001 rm -f conftest.$ac_objext
13002 if { (ac_try="$ac_compile"
13003 case "(($ac_try" in
13004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13005 *) ac_try_echo=$ac_try;;
13006 esac
13007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13008 (eval "$ac_compile") 2>conftest.er1
13009 ac_status=$?
13010 grep -v '^ *+' conftest.er1 >conftest.err
13011 rm -f conftest.er1
13012 cat conftest.err >&5
13013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014 (exit $ac_status); } && {
13015 test -z "$ac_c_werror_flag" ||
13016 test ! -s conftest.err
13017 } && test -s conftest.$ac_objext; then
13018 ac_header_compiler=yes
13019 else
13020 echo "$as_me: failed program was:" >&5
13021 sed 's/^/| /' conftest.$ac_ext >&5
13023 ac_header_compiler=no
13026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13027 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13028 echo "${ECHO_T}$ac_header_compiler" >&6; }
13030 # Is the header present?
13031 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
13032 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6; }
13033 cat >conftest.$ac_ext <<_ACEOF
13034 /* confdefs.h. */
13035 _ACEOF
13036 cat confdefs.h >>conftest.$ac_ext
13037 cat >>conftest.$ac_ext <<_ACEOF
13038 /* end confdefs.h. */
13039 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
13040 _ACEOF
13041 if { (ac_try="$ac_cpp conftest.$ac_ext"
13042 case "(($ac_try" in
13043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13044 *) ac_try_echo=$ac_try;;
13045 esac
13046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13047 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13048 ac_status=$?
13049 grep -v '^ *+' conftest.er1 >conftest.err
13050 rm -f conftest.er1
13051 cat conftest.err >&5
13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053 (exit $ac_status); } >/dev/null && {
13054 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13055 test ! -s conftest.err
13056 }; then
13057 ac_header_preproc=yes
13058 else
13059 echo "$as_me: failed program was:" >&5
13060 sed 's/^/| /' conftest.$ac_ext >&5
13062 ac_header_preproc=no
13065 rm -f conftest.err conftest.$ac_ext
13066 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13067 echo "${ECHO_T}$ac_header_preproc" >&6; }
13069 # So? What about this header?
13070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13071 yes:no: )
13072 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
13073 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13074 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
13075 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
13076 ac_header_preproc=yes
13078 no:yes:* )
13079 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
13080 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
13081 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
13082 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
13083 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
13084 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
13085 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&5
13086 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&2;}
13087 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
13088 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
13089 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
13090 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
13091 ( cat <<\_ASBOX
13092 ## ---------------------------------------- ##
13093 ## Report this to pgsql-bugs@postgresql.org ##
13094 ## ---------------------------------------- ##
13095 _ASBOX
13096 ) | sed "s/^/$as_me: WARNING: /" >&2
13098 esac
13099 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
13100 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
13101 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
13102 echo $ECHO_N "(cached) $ECHO_C" >&6
13103 else
13104 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
13106 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
13107 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
13110 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
13112 else
13113 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
13114 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
13115 { (exit 1); exit 1; }; }
13121 # for contrib/uuid-ossp
13122 if test "$with_ossp_uuid" = yes ; then
13124 for ac_header in ossp/uuid.h
13126 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13128 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13131 echo $ECHO_N "(cached) $ECHO_C" >&6
13133 ac_res=`eval echo '${'$as_ac_Header'}'`
13134 { echo "$as_me:$LINENO: result: $ac_res" >&5
13135 echo "${ECHO_T}$ac_res" >&6; }
13136 else
13137 # Is the header compilable?
13138 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13139 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
13147 #include <$ac_header>
13148 _ACEOF
13149 rm -f conftest.$ac_objext
13150 if { (ac_try="$ac_compile"
13151 case "(($ac_try" in
13152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13153 *) ac_try_echo=$ac_try;;
13154 esac
13155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13156 (eval "$ac_compile") 2>conftest.er1
13157 ac_status=$?
13158 grep -v '^ *+' conftest.er1 >conftest.err
13159 rm -f conftest.er1
13160 cat conftest.err >&5
13161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13162 (exit $ac_status); } && {
13163 test -z "$ac_c_werror_flag" ||
13164 test ! -s conftest.err
13165 } && test -s conftest.$ac_objext; then
13166 ac_header_compiler=yes
13167 else
13168 echo "$as_me: failed program was:" >&5
13169 sed 's/^/| /' conftest.$ac_ext >&5
13171 ac_header_compiler=no
13174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13175 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13176 echo "${ECHO_T}$ac_header_compiler" >&6; }
13178 # Is the header present?
13179 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13180 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13181 cat >conftest.$ac_ext <<_ACEOF
13182 /* confdefs.h. */
13183 _ACEOF
13184 cat confdefs.h >>conftest.$ac_ext
13185 cat >>conftest.$ac_ext <<_ACEOF
13186 /* end confdefs.h. */
13187 #include <$ac_header>
13188 _ACEOF
13189 if { (ac_try="$ac_cpp conftest.$ac_ext"
13190 case "(($ac_try" in
13191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13192 *) ac_try_echo=$ac_try;;
13193 esac
13194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13195 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13196 ac_status=$?
13197 grep -v '^ *+' conftest.er1 >conftest.err
13198 rm -f conftest.er1
13199 cat conftest.err >&5
13200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); } >/dev/null && {
13202 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13203 test ! -s conftest.err
13204 }; then
13205 ac_header_preproc=yes
13206 else
13207 echo "$as_me: failed program was:" >&5
13208 sed 's/^/| /' conftest.$ac_ext >&5
13210 ac_header_preproc=no
13213 rm -f conftest.err conftest.$ac_ext
13214 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13215 echo "${ECHO_T}$ac_header_preproc" >&6; }
13217 # So? What about this header?
13218 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13219 yes:no: )
13220 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13221 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13222 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13223 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13224 ac_header_preproc=yes
13226 no:yes:* )
13227 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13228 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13229 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13230 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13231 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13232 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13233 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13234 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13235 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13236 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13237 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13238 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13239 ( cat <<\_ASBOX
13240 ## ---------------------------------------- ##
13241 ## Report this to pgsql-bugs@postgresql.org ##
13242 ## ---------------------------------------- ##
13243 _ASBOX
13244 ) | sed "s/^/$as_me: WARNING: /" >&2
13246 esac
13247 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13250 echo $ECHO_N "(cached) $ECHO_C" >&6
13251 else
13252 eval "$as_ac_Header=\$ac_header_preproc"
13254 ac_res=`eval echo '${'$as_ac_Header'}'`
13255 { echo "$as_me:$LINENO: result: $ac_res" >&5
13256 echo "${ECHO_T}$ac_res" >&6; }
13259 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13260 cat >>confdefs.h <<_ACEOF
13261 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13262 _ACEOF
13264 else
13267 for ac_header in uuid.h
13269 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13271 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13274 echo $ECHO_N "(cached) $ECHO_C" >&6
13276 ac_res=`eval echo '${'$as_ac_Header'}'`
13277 { echo "$as_me:$LINENO: result: $ac_res" >&5
13278 echo "${ECHO_T}$ac_res" >&6; }
13279 else
13280 # Is the header compilable?
13281 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13282 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
13290 #include <$ac_header>
13291 _ACEOF
13292 rm -f conftest.$ac_objext
13293 if { (ac_try="$ac_compile"
13294 case "(($ac_try" in
13295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13296 *) ac_try_echo=$ac_try;;
13297 esac
13298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13299 (eval "$ac_compile") 2>conftest.er1
13300 ac_status=$?
13301 grep -v '^ *+' conftest.er1 >conftest.err
13302 rm -f conftest.er1
13303 cat conftest.err >&5
13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); } && {
13306 test -z "$ac_c_werror_flag" ||
13307 test ! -s conftest.err
13308 } && test -s conftest.$ac_objext; then
13309 ac_header_compiler=yes
13310 else
13311 echo "$as_me: failed program was:" >&5
13312 sed 's/^/| /' conftest.$ac_ext >&5
13314 ac_header_compiler=no
13317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13318 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13319 echo "${ECHO_T}$ac_header_compiler" >&6; }
13321 # Is the header present?
13322 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13323 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13324 cat >conftest.$ac_ext <<_ACEOF
13325 /* confdefs.h. */
13326 _ACEOF
13327 cat confdefs.h >>conftest.$ac_ext
13328 cat >>conftest.$ac_ext <<_ACEOF
13329 /* end confdefs.h. */
13330 #include <$ac_header>
13331 _ACEOF
13332 if { (ac_try="$ac_cpp conftest.$ac_ext"
13333 case "(($ac_try" in
13334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13335 *) ac_try_echo=$ac_try;;
13336 esac
13337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13338 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13339 ac_status=$?
13340 grep -v '^ *+' conftest.er1 >conftest.err
13341 rm -f conftest.er1
13342 cat conftest.err >&5
13343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344 (exit $ac_status); } >/dev/null && {
13345 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13346 test ! -s conftest.err
13347 }; then
13348 ac_header_preproc=yes
13349 else
13350 echo "$as_me: failed program was:" >&5
13351 sed 's/^/| /' conftest.$ac_ext >&5
13353 ac_header_preproc=no
13356 rm -f conftest.err conftest.$ac_ext
13357 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13358 echo "${ECHO_T}$ac_header_preproc" >&6; }
13360 # So? What about this header?
13361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13362 yes:no: )
13363 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13364 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13366 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13367 ac_header_preproc=yes
13369 no:yes:* )
13370 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13371 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13372 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13373 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13374 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13375 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13376 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13377 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13378 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13379 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13380 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13381 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13382 ( cat <<\_ASBOX
13383 ## ---------------------------------------- ##
13384 ## Report this to pgsql-bugs@postgresql.org ##
13385 ## ---------------------------------------- ##
13386 _ASBOX
13387 ) | sed "s/^/$as_me: WARNING: /" >&2
13389 esac
13390 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13393 echo $ECHO_N "(cached) $ECHO_C" >&6
13394 else
13395 eval "$as_ac_Header=\$ac_header_preproc"
13397 ac_res=`eval echo '${'$as_ac_Header'}'`
13398 { echo "$as_me:$LINENO: result: $ac_res" >&5
13399 echo "${ECHO_T}$ac_res" >&6; }
13402 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13403 cat >>confdefs.h <<_ACEOF
13404 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13405 _ACEOF
13407 else
13408 { { echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
13409 echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
13410 { (exit 1); exit 1; }; }
13413 done
13417 done
13423 ## Types, structures, compiler characteristics
13426 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13427 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
13428 if test "${ac_cv_c_bigendian+set}" = set; then
13429 echo $ECHO_N "(cached) $ECHO_C" >&6
13430 else
13431 # See if sys/param.h defines the BYTE_ORDER macro.
13432 cat >conftest.$ac_ext <<_ACEOF
13433 /* confdefs.h. */
13434 _ACEOF
13435 cat confdefs.h >>conftest.$ac_ext
13436 cat >>conftest.$ac_ext <<_ACEOF
13437 /* end confdefs.h. */
13438 #include <sys/types.h>
13439 #include <sys/param.h>
13442 main ()
13444 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
13445 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
13446 bogus endian macros
13447 #endif
13450 return 0;
13452 _ACEOF
13453 rm -f conftest.$ac_objext
13454 if { (ac_try="$ac_compile"
13455 case "(($ac_try" in
13456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13457 *) ac_try_echo=$ac_try;;
13458 esac
13459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13460 (eval "$ac_compile") 2>conftest.er1
13461 ac_status=$?
13462 grep -v '^ *+' conftest.er1 >conftest.err
13463 rm -f conftest.er1
13464 cat conftest.err >&5
13465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466 (exit $ac_status); } && {
13467 test -z "$ac_c_werror_flag" ||
13468 test ! -s conftest.err
13469 } && test -s conftest.$ac_objext; then
13470 # It does; now see whether it defined to BIG_ENDIAN or not.
13471 cat >conftest.$ac_ext <<_ACEOF
13472 /* confdefs.h. */
13473 _ACEOF
13474 cat confdefs.h >>conftest.$ac_ext
13475 cat >>conftest.$ac_ext <<_ACEOF
13476 /* end confdefs.h. */
13477 #include <sys/types.h>
13478 #include <sys/param.h>
13481 main ()
13483 #if BYTE_ORDER != BIG_ENDIAN
13484 not big endian
13485 #endif
13488 return 0;
13490 _ACEOF
13491 rm -f conftest.$ac_objext
13492 if { (ac_try="$ac_compile"
13493 case "(($ac_try" in
13494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13495 *) ac_try_echo=$ac_try;;
13496 esac
13497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13498 (eval "$ac_compile") 2>conftest.er1
13499 ac_status=$?
13500 grep -v '^ *+' conftest.er1 >conftest.err
13501 rm -f conftest.er1
13502 cat conftest.err >&5
13503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504 (exit $ac_status); } && {
13505 test -z "$ac_c_werror_flag" ||
13506 test ! -s conftest.err
13507 } && test -s conftest.$ac_objext; then
13508 ac_cv_c_bigendian=yes
13509 else
13510 echo "$as_me: failed program was:" >&5
13511 sed 's/^/| /' conftest.$ac_ext >&5
13513 ac_cv_c_bigendian=no
13516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13517 else
13518 echo "$as_me: failed program was:" >&5
13519 sed 's/^/| /' conftest.$ac_ext >&5
13521 # It does not; compile a test program.
13522 if test "$cross_compiling" = yes; then
13523 # try to guess the endianness by grepping values into an object file
13524 ac_cv_c_bigendian=unknown
13525 cat >conftest.$ac_ext <<_ACEOF
13526 /* confdefs.h. */
13527 _ACEOF
13528 cat confdefs.h >>conftest.$ac_ext
13529 cat >>conftest.$ac_ext <<_ACEOF
13530 /* end confdefs.h. */
13531 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13532 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13533 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
13534 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13535 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13536 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
13538 main ()
13540 _ascii (); _ebcdic ();
13542 return 0;
13544 _ACEOF
13545 rm -f conftest.$ac_objext
13546 if { (ac_try="$ac_compile"
13547 case "(($ac_try" in
13548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13549 *) ac_try_echo=$ac_try;;
13550 esac
13551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13552 (eval "$ac_compile") 2>conftest.er1
13553 ac_status=$?
13554 grep -v '^ *+' conftest.er1 >conftest.err
13555 rm -f conftest.er1
13556 cat conftest.err >&5
13557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558 (exit $ac_status); } && {
13559 test -z "$ac_c_werror_flag" ||
13560 test ! -s conftest.err
13561 } && test -s conftest.$ac_objext; then
13562 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
13563 ac_cv_c_bigendian=yes
13565 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13566 if test "$ac_cv_c_bigendian" = unknown; then
13567 ac_cv_c_bigendian=no
13568 else
13569 # finding both strings is unlikely to happen, but who knows?
13570 ac_cv_c_bigendian=unknown
13573 else
13574 echo "$as_me: failed program was:" >&5
13575 sed 's/^/| /' conftest.$ac_ext >&5
13580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13581 else
13582 cat >conftest.$ac_ext <<_ACEOF
13583 /* confdefs.h. */
13584 _ACEOF
13585 cat confdefs.h >>conftest.$ac_ext
13586 cat >>conftest.$ac_ext <<_ACEOF
13587 /* end confdefs.h. */
13588 $ac_includes_default
13590 main ()
13593 /* Are we little or big endian? From Harbison&Steele. */
13594 union
13596 long int l;
13597 char c[sizeof (long int)];
13598 } u;
13599 u.l = 1;
13600 return u.c[sizeof (long int) - 1] == 1;
13603 return 0;
13605 _ACEOF
13606 rm -f conftest$ac_exeext
13607 if { (ac_try="$ac_link"
13608 case "(($ac_try" in
13609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13610 *) ac_try_echo=$ac_try;;
13611 esac
13612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13613 (eval "$ac_link") 2>&5
13614 ac_status=$?
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13617 { (case "(($ac_try" in
13618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13619 *) ac_try_echo=$ac_try;;
13620 esac
13621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13622 (eval "$ac_try") 2>&5
13623 ac_status=$?
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); }; }; then
13626 ac_cv_c_bigendian=no
13627 else
13628 echo "$as_me: program exited with status $ac_status" >&5
13629 echo "$as_me: failed program was:" >&5
13630 sed 's/^/| /' conftest.$ac_ext >&5
13632 ( exit $ac_status )
13633 ac_cv_c_bigendian=yes
13635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13643 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13644 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
13645 case $ac_cv_c_bigendian in
13646 yes)
13648 cat >>confdefs.h <<\_ACEOF
13649 #define WORDS_BIGENDIAN 1
13650 _ACEOF
13655 { { echo "$as_me:$LINENO: error: unknown endianness
13656 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
13657 echo "$as_me: error: unknown endianness
13658 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
13659 { (exit 1); exit 1; }; } ;;
13660 esac
13662 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13663 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
13664 if test "${ac_cv_c_const+set}" = set; then
13665 echo $ECHO_N "(cached) $ECHO_C" >&6
13666 else
13667 cat >conftest.$ac_ext <<_ACEOF
13668 /* confdefs.h. */
13669 _ACEOF
13670 cat confdefs.h >>conftest.$ac_ext
13671 cat >>conftest.$ac_ext <<_ACEOF
13672 /* end confdefs.h. */
13675 main ()
13677 /* FIXME: Include the comments suggested by Paul. */
13678 #ifndef __cplusplus
13679 /* Ultrix mips cc rejects this. */
13680 typedef int charset[2];
13681 const charset cs;
13682 /* SunOS 4.1.1 cc rejects this. */
13683 char const *const *pcpcc;
13684 char **ppc;
13685 /* NEC SVR4.0.2 mips cc rejects this. */
13686 struct point {int x, y;};
13687 static struct point const zero = {0,0};
13688 /* AIX XL C 1.02.0.0 rejects this.
13689 It does not let you subtract one const X* pointer from another in
13690 an arm of an if-expression whose if-part is not a constant
13691 expression */
13692 const char *g = "string";
13693 pcpcc = &g + (g ? g-g : 0);
13694 /* HPUX 7.0 cc rejects these. */
13695 ++pcpcc;
13696 ppc = (char**) pcpcc;
13697 pcpcc = (char const *const *) ppc;
13698 { /* SCO 3.2v4 cc rejects this. */
13699 char *t;
13700 char const *s = 0 ? (char *) 0 : (char const *) 0;
13702 *t++ = 0;
13703 if (s) return 0;
13705 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13706 int x[] = {25, 17};
13707 const int *foo = &x[0];
13708 ++foo;
13710 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13711 typedef const int *iptr;
13712 iptr p = 0;
13713 ++p;
13715 { /* AIX XL C 1.02.0.0 rejects this saying
13716 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13717 struct s { int j; const int *ap[3]; };
13718 struct s *b; b->j = 5;
13720 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13721 const int foo = 10;
13722 if (!foo) return 0;
13724 return !cs[0] && !zero.x;
13725 #endif
13728 return 0;
13730 _ACEOF
13731 rm -f conftest.$ac_objext
13732 if { (ac_try="$ac_compile"
13733 case "(($ac_try" in
13734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13735 *) ac_try_echo=$ac_try;;
13736 esac
13737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13738 (eval "$ac_compile") 2>conftest.er1
13739 ac_status=$?
13740 grep -v '^ *+' conftest.er1 >conftest.err
13741 rm -f conftest.er1
13742 cat conftest.err >&5
13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); } && {
13745 test -z "$ac_c_werror_flag" ||
13746 test ! -s conftest.err
13747 } && test -s conftest.$ac_objext; then
13748 ac_cv_c_const=yes
13749 else
13750 echo "$as_me: failed program was:" >&5
13751 sed 's/^/| /' conftest.$ac_ext >&5
13753 ac_cv_c_const=no
13756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13758 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13759 echo "${ECHO_T}$ac_cv_c_const" >&6; }
13760 if test $ac_cv_c_const = no; then
13762 cat >>confdefs.h <<\_ACEOF
13763 #define const
13764 _ACEOF
13768 { echo "$as_me:$LINENO: checking for inline" >&5
13769 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
13770 if test "${ac_cv_c_inline+set}" = set; then
13771 echo $ECHO_N "(cached) $ECHO_C" >&6
13772 else
13773 ac_cv_c_inline=no
13774 for ac_kw in inline __inline__ __inline; do
13775 cat >conftest.$ac_ext <<_ACEOF
13776 /* confdefs.h. */
13777 _ACEOF
13778 cat confdefs.h >>conftest.$ac_ext
13779 cat >>conftest.$ac_ext <<_ACEOF
13780 /* end confdefs.h. */
13781 #ifndef __cplusplus
13782 typedef int foo_t;
13783 static $ac_kw foo_t static_foo () {return 0; }
13784 $ac_kw foo_t foo () {return 0; }
13785 #endif
13787 _ACEOF
13788 rm -f conftest.$ac_objext
13789 if { (ac_try="$ac_compile"
13790 case "(($ac_try" in
13791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13792 *) ac_try_echo=$ac_try;;
13793 esac
13794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13795 (eval "$ac_compile") 2>conftest.er1
13796 ac_status=$?
13797 grep -v '^ *+' conftest.er1 >conftest.err
13798 rm -f conftest.er1
13799 cat conftest.err >&5
13800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801 (exit $ac_status); } && {
13802 test -z "$ac_c_werror_flag" ||
13803 test ! -s conftest.err
13804 } && test -s conftest.$ac_objext; then
13805 ac_cv_c_inline=$ac_kw
13806 else
13807 echo "$as_me: failed program was:" >&5
13808 sed 's/^/| /' conftest.$ac_ext >&5
13813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13814 test "$ac_cv_c_inline" != no && break
13815 done
13818 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13819 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
13822 case $ac_cv_c_inline in
13823 inline | yes) ;;
13825 case $ac_cv_c_inline in
13826 no) ac_val=;;
13827 *) ac_val=$ac_cv_c_inline;;
13828 esac
13829 cat >>confdefs.h <<_ACEOF
13830 #ifndef __cplusplus
13831 #define inline $ac_val
13832 #endif
13833 _ACEOF
13835 esac
13837 { echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
13838 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6; }
13839 if test "${ac_cv_c_stringize+set}" = set; then
13840 echo $ECHO_N "(cached) $ECHO_C" >&6
13841 else
13842 cat >conftest.$ac_ext <<_ACEOF
13843 /* confdefs.h. */
13844 _ACEOF
13845 cat confdefs.h >>conftest.$ac_ext
13846 cat >>conftest.$ac_ext <<_ACEOF
13847 /* end confdefs.h. */
13848 #define x(y) #y
13850 char *s = x(teststring);
13851 _ACEOF
13852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13853 $EGREP "#teststring" >/dev/null 2>&1; then
13854 ac_cv_c_stringize=no
13855 else
13856 ac_cv_c_stringize=yes
13858 rm -f conftest*
13861 { echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
13862 echo "${ECHO_T}$ac_cv_c_stringize" >&6; }
13863 if test $ac_cv_c_stringize = yes; then
13865 cat >>confdefs.h <<\_ACEOF
13866 #define HAVE_STRINGIZE 1
13867 _ACEOF
13871 { echo "$as_me:$LINENO: checking for signed types" >&5
13872 echo $ECHO_N "checking for signed types... $ECHO_C" >&6; }
13873 if test "${pgac_cv_c_signed+set}" = set; then
13874 echo $ECHO_N "(cached) $ECHO_C" >&6
13875 else
13876 cat >conftest.$ac_ext <<_ACEOF
13877 /* confdefs.h. */
13878 _ACEOF
13879 cat confdefs.h >>conftest.$ac_ext
13880 cat >>conftest.$ac_ext <<_ACEOF
13881 /* end confdefs.h. */
13884 main ()
13886 signed char c; signed short s; signed int i;
13888 return 0;
13890 _ACEOF
13891 rm -f conftest.$ac_objext
13892 if { (ac_try="$ac_compile"
13893 case "(($ac_try" in
13894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13895 *) ac_try_echo=$ac_try;;
13896 esac
13897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13898 (eval "$ac_compile") 2>conftest.er1
13899 ac_status=$?
13900 grep -v '^ *+' conftest.er1 >conftest.err
13901 rm -f conftest.er1
13902 cat conftest.err >&5
13903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); } && {
13905 test -z "$ac_c_werror_flag" ||
13906 test ! -s conftest.err
13907 } && test -s conftest.$ac_objext; then
13908 pgac_cv_c_signed=yes
13909 else
13910 echo "$as_me: failed program was:" >&5
13911 sed 's/^/| /' conftest.$ac_ext >&5
13913 pgac_cv_c_signed=no
13916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13918 { echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
13919 echo "${ECHO_T}$pgac_cv_c_signed" >&6; }
13920 if test x"$pgac_cv_c_signed" = xno ; then
13922 cat >>confdefs.h <<\_ACEOF
13923 #define signed
13924 _ACEOF
13927 { echo "$as_me:$LINENO: checking for working volatile" >&5
13928 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
13929 if test "${ac_cv_c_volatile+set}" = set; then
13930 echo $ECHO_N "(cached) $ECHO_C" >&6
13931 else
13932 cat >conftest.$ac_ext <<_ACEOF
13933 /* confdefs.h. */
13934 _ACEOF
13935 cat confdefs.h >>conftest.$ac_ext
13936 cat >>conftest.$ac_ext <<_ACEOF
13937 /* end confdefs.h. */
13940 main ()
13943 volatile int x;
13944 int * volatile y = (int *) 0;
13945 return !x && !y;
13947 return 0;
13949 _ACEOF
13950 rm -f conftest.$ac_objext
13951 if { (ac_try="$ac_compile"
13952 case "(($ac_try" in
13953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13954 *) ac_try_echo=$ac_try;;
13955 esac
13956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13957 (eval "$ac_compile") 2>conftest.er1
13958 ac_status=$?
13959 grep -v '^ *+' conftest.er1 >conftest.err
13960 rm -f conftest.er1
13961 cat conftest.err >&5
13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 (exit $ac_status); } && {
13964 test -z "$ac_c_werror_flag" ||
13965 test ! -s conftest.err
13966 } && test -s conftest.$ac_objext; then
13967 ac_cv_c_volatile=yes
13968 else
13969 echo "$as_me: failed program was:" >&5
13970 sed 's/^/| /' conftest.$ac_ext >&5
13972 ac_cv_c_volatile=no
13975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13977 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
13978 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
13979 if test $ac_cv_c_volatile = no; then
13981 cat >>confdefs.h <<\_ACEOF
13982 #define volatile
13983 _ACEOF
13987 { echo "$as_me:$LINENO: checking for __func__" >&5
13988 echo $ECHO_N "checking for __func__... $ECHO_C" >&6; }
13989 if test "${pgac_cv_funcname_func_support+set}" = set; then
13990 echo $ECHO_N "(cached) $ECHO_C" >&6
13991 else
13992 cat >conftest.$ac_ext <<_ACEOF
13993 /* confdefs.h. */
13994 _ACEOF
13995 cat confdefs.h >>conftest.$ac_ext
13996 cat >>conftest.$ac_ext <<_ACEOF
13997 /* end confdefs.h. */
13998 #include <stdio.h>
14000 main ()
14002 printf("%s\n", __func__);
14004 return 0;
14006 _ACEOF
14007 rm -f conftest.$ac_objext
14008 if { (ac_try="$ac_compile"
14009 case "(($ac_try" in
14010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14011 *) ac_try_echo=$ac_try;;
14012 esac
14013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14014 (eval "$ac_compile") 2>conftest.er1
14015 ac_status=$?
14016 grep -v '^ *+' conftest.er1 >conftest.err
14017 rm -f conftest.er1
14018 cat conftest.err >&5
14019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020 (exit $ac_status); } && {
14021 test -z "$ac_c_werror_flag" ||
14022 test ! -s conftest.err
14023 } && test -s conftest.$ac_objext; then
14024 pgac_cv_funcname_func_support=yes
14025 else
14026 echo "$as_me: failed program was:" >&5
14027 sed 's/^/| /' conftest.$ac_ext >&5
14029 pgac_cv_funcname_func_support=no
14032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14034 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
14035 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6; }
14036 if test x"$pgac_cv_funcname_func_support" = xyes ; then
14038 cat >>confdefs.h <<\_ACEOF
14039 #define HAVE_FUNCNAME__FUNC 1
14040 _ACEOF
14042 else
14043 { echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
14044 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6; }
14045 if test "${pgac_cv_funcname_function_support+set}" = set; then
14046 echo $ECHO_N "(cached) $ECHO_C" >&6
14047 else
14048 cat >conftest.$ac_ext <<_ACEOF
14049 /* confdefs.h. */
14050 _ACEOF
14051 cat confdefs.h >>conftest.$ac_ext
14052 cat >>conftest.$ac_ext <<_ACEOF
14053 /* end confdefs.h. */
14054 #include <stdio.h>
14056 main ()
14058 printf("%s\n", __FUNCTION__);
14060 return 0;
14062 _ACEOF
14063 rm -f conftest.$ac_objext
14064 if { (ac_try="$ac_compile"
14065 case "(($ac_try" in
14066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14067 *) ac_try_echo=$ac_try;;
14068 esac
14069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14070 (eval "$ac_compile") 2>conftest.er1
14071 ac_status=$?
14072 grep -v '^ *+' conftest.er1 >conftest.err
14073 rm -f conftest.er1
14074 cat conftest.err >&5
14075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076 (exit $ac_status); } && {
14077 test -z "$ac_c_werror_flag" ||
14078 test ! -s conftest.err
14079 } && test -s conftest.$ac_objext; then
14080 pgac_cv_funcname_function_support=yes
14081 else
14082 echo "$as_me: failed program was:" >&5
14083 sed 's/^/| /' conftest.$ac_ext >&5
14085 pgac_cv_funcname_function_support=no
14088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14090 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
14091 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6; }
14092 if test x"$pgac_cv_funcname_function_support" = xyes ; then
14094 cat >>confdefs.h <<\_ACEOF
14095 #define HAVE_FUNCNAME__FUNCTION 1
14096 _ACEOF
14100 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14101 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
14102 if test "${ac_cv_struct_tm+set}" = set; then
14103 echo $ECHO_N "(cached) $ECHO_C" >&6
14104 else
14105 cat >conftest.$ac_ext <<_ACEOF
14106 /* confdefs.h. */
14107 _ACEOF
14108 cat confdefs.h >>conftest.$ac_ext
14109 cat >>conftest.$ac_ext <<_ACEOF
14110 /* end confdefs.h. */
14111 #include <sys/types.h>
14112 #include <time.h>
14115 main ()
14117 struct tm tm;
14118 int *p = &tm.tm_sec;
14119 return !p;
14121 return 0;
14123 _ACEOF
14124 rm -f conftest.$ac_objext
14125 if { (ac_try="$ac_compile"
14126 case "(($ac_try" in
14127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14128 *) ac_try_echo=$ac_try;;
14129 esac
14130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14131 (eval "$ac_compile") 2>conftest.er1
14132 ac_status=$?
14133 grep -v '^ *+' conftest.er1 >conftest.err
14134 rm -f conftest.er1
14135 cat conftest.err >&5
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); } && {
14138 test -z "$ac_c_werror_flag" ||
14139 test ! -s conftest.err
14140 } && test -s conftest.$ac_objext; then
14141 ac_cv_struct_tm=time.h
14142 else
14143 echo "$as_me: failed program was:" >&5
14144 sed 's/^/| /' conftest.$ac_ext >&5
14146 ac_cv_struct_tm=sys/time.h
14149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14151 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14152 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
14153 if test $ac_cv_struct_tm = sys/time.h; then
14155 cat >>confdefs.h <<\_ACEOF
14156 #define TM_IN_SYS_TIME 1
14157 _ACEOF
14161 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
14162 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
14163 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
14164 echo $ECHO_N "(cached) $ECHO_C" >&6
14165 else
14166 cat >conftest.$ac_ext <<_ACEOF
14167 /* confdefs.h. */
14168 _ACEOF
14169 cat confdefs.h >>conftest.$ac_ext
14170 cat >>conftest.$ac_ext <<_ACEOF
14171 /* end confdefs.h. */
14172 #include <sys/types.h>
14173 #include <$ac_cv_struct_tm>
14177 main ()
14179 static struct tm ac_aggr;
14180 if (ac_aggr.tm_zone)
14181 return 0;
14183 return 0;
14185 _ACEOF
14186 rm -f conftest.$ac_objext
14187 if { (ac_try="$ac_compile"
14188 case "(($ac_try" in
14189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14190 *) ac_try_echo=$ac_try;;
14191 esac
14192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14193 (eval "$ac_compile") 2>conftest.er1
14194 ac_status=$?
14195 grep -v '^ *+' conftest.er1 >conftest.err
14196 rm -f conftest.er1
14197 cat conftest.err >&5
14198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199 (exit $ac_status); } && {
14200 test -z "$ac_c_werror_flag" ||
14201 test ! -s conftest.err
14202 } && test -s conftest.$ac_objext; then
14203 ac_cv_member_struct_tm_tm_zone=yes
14204 else
14205 echo "$as_me: failed program was:" >&5
14206 sed 's/^/| /' conftest.$ac_ext >&5
14208 cat >conftest.$ac_ext <<_ACEOF
14209 /* confdefs.h. */
14210 _ACEOF
14211 cat confdefs.h >>conftest.$ac_ext
14212 cat >>conftest.$ac_ext <<_ACEOF
14213 /* end confdefs.h. */
14214 #include <sys/types.h>
14215 #include <$ac_cv_struct_tm>
14219 main ()
14221 static struct tm ac_aggr;
14222 if (sizeof ac_aggr.tm_zone)
14223 return 0;
14225 return 0;
14227 _ACEOF
14228 rm -f conftest.$ac_objext
14229 if { (ac_try="$ac_compile"
14230 case "(($ac_try" in
14231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14232 *) ac_try_echo=$ac_try;;
14233 esac
14234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14235 (eval "$ac_compile") 2>conftest.er1
14236 ac_status=$?
14237 grep -v '^ *+' conftest.er1 >conftest.err
14238 rm -f conftest.er1
14239 cat conftest.err >&5
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); } && {
14242 test -z "$ac_c_werror_flag" ||
14243 test ! -s conftest.err
14244 } && test -s conftest.$ac_objext; then
14245 ac_cv_member_struct_tm_tm_zone=yes
14246 else
14247 echo "$as_me: failed program was:" >&5
14248 sed 's/^/| /' conftest.$ac_ext >&5
14250 ac_cv_member_struct_tm_tm_zone=no
14253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14258 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
14259 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
14260 if test $ac_cv_member_struct_tm_tm_zone = yes; then
14262 cat >>confdefs.h <<_ACEOF
14263 #define HAVE_STRUCT_TM_TM_ZONE 1
14264 _ACEOF
14269 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
14271 cat >>confdefs.h <<\_ACEOF
14272 #define HAVE_TM_ZONE 1
14273 _ACEOF
14276 { echo "$as_me:$LINENO: checking for tzname" >&5
14277 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
14278 if test "${ac_cv_var_tzname+set}" = set; then
14279 echo $ECHO_N "(cached) $ECHO_C" >&6
14280 else
14281 cat >conftest.$ac_ext <<_ACEOF
14282 /* confdefs.h. */
14283 _ACEOF
14284 cat confdefs.h >>conftest.$ac_ext
14285 cat >>conftest.$ac_ext <<_ACEOF
14286 /* end confdefs.h. */
14287 #include <time.h>
14288 #ifndef tzname /* For SGI. */
14289 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
14290 #endif
14293 main ()
14295 atoi(*tzname);
14297 return 0;
14299 _ACEOF
14300 rm -f conftest.$ac_objext conftest$ac_exeext
14301 if { (ac_try="$ac_link"
14302 case "(($ac_try" in
14303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14304 *) ac_try_echo=$ac_try;;
14305 esac
14306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14307 (eval "$ac_link") 2>conftest.er1
14308 ac_status=$?
14309 grep -v '^ *+' conftest.er1 >conftest.err
14310 rm -f conftest.er1
14311 cat conftest.err >&5
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); } && {
14314 test -z "$ac_c_werror_flag" ||
14315 test ! -s conftest.err
14316 } && test -s conftest$ac_exeext &&
14317 $as_test_x conftest$ac_exeext; then
14318 ac_cv_var_tzname=yes
14319 else
14320 echo "$as_me: failed program was:" >&5
14321 sed 's/^/| /' conftest.$ac_ext >&5
14323 ac_cv_var_tzname=no
14326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14327 conftest$ac_exeext conftest.$ac_ext
14329 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
14330 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
14331 if test $ac_cv_var_tzname = yes; then
14333 cat >>confdefs.h <<\_ACEOF
14334 #define HAVE_TZNAME 1
14335 _ACEOF
14339 { echo "$as_me:$LINENO: checking for union semun" >&5
14340 echo $ECHO_N "checking for union semun... $ECHO_C" >&6; }
14341 if test "${ac_cv_type_union_semun+set}" = set; then
14342 echo $ECHO_N "(cached) $ECHO_C" >&6
14343 else
14344 cat >conftest.$ac_ext <<_ACEOF
14345 /* confdefs.h. */
14346 _ACEOF
14347 cat confdefs.h >>conftest.$ac_ext
14348 cat >>conftest.$ac_ext <<_ACEOF
14349 /* end confdefs.h. */
14350 #include <sys/types.h>
14351 #include <sys/ipc.h>
14352 #include <sys/sem.h>
14354 typedef union semun ac__type_new_;
14356 main ()
14358 if ((ac__type_new_ *) 0)
14359 return 0;
14360 if (sizeof (ac__type_new_))
14361 return 0;
14363 return 0;
14365 _ACEOF
14366 rm -f conftest.$ac_objext
14367 if { (ac_try="$ac_compile"
14368 case "(($ac_try" in
14369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14370 *) ac_try_echo=$ac_try;;
14371 esac
14372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14373 (eval "$ac_compile") 2>conftest.er1
14374 ac_status=$?
14375 grep -v '^ *+' conftest.er1 >conftest.err
14376 rm -f conftest.er1
14377 cat conftest.err >&5
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); } && {
14380 test -z "$ac_c_werror_flag" ||
14381 test ! -s conftest.err
14382 } && test -s conftest.$ac_objext; then
14383 ac_cv_type_union_semun=yes
14384 else
14385 echo "$as_me: failed program was:" >&5
14386 sed 's/^/| /' conftest.$ac_ext >&5
14388 ac_cv_type_union_semun=no
14391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14393 { echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
14394 echo "${ECHO_T}$ac_cv_type_union_semun" >&6; }
14395 if test $ac_cv_type_union_semun = yes; then
14397 cat >>confdefs.h <<_ACEOF
14398 #define HAVE_UNION_SEMUN 1
14399 _ACEOF
14404 { echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
14405 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6; }
14406 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
14407 echo $ECHO_N "(cached) $ECHO_C" >&6
14408 else
14409 cat >conftest.$ac_ext <<_ACEOF
14410 /* confdefs.h. */
14411 _ACEOF
14412 cat confdefs.h >>conftest.$ac_ext
14413 cat >>conftest.$ac_ext <<_ACEOF
14414 /* end confdefs.h. */
14415 #include <sys/types.h>
14416 #ifdef HAVE_SYS_UN_H
14417 #include <sys/un.h>
14418 #endif
14421 typedef struct sockaddr_un ac__type_new_;
14423 main ()
14425 if ((ac__type_new_ *) 0)
14426 return 0;
14427 if (sizeof (ac__type_new_))
14428 return 0;
14430 return 0;
14432 _ACEOF
14433 rm -f conftest.$ac_objext
14434 if { (ac_try="$ac_compile"
14435 case "(($ac_try" in
14436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14437 *) ac_try_echo=$ac_try;;
14438 esac
14439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14440 (eval "$ac_compile") 2>conftest.er1
14441 ac_status=$?
14442 grep -v '^ *+' conftest.er1 >conftest.err
14443 rm -f conftest.er1
14444 cat conftest.err >&5
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); } && {
14447 test -z "$ac_c_werror_flag" ||
14448 test ! -s conftest.err
14449 } && test -s conftest.$ac_objext; then
14450 ac_cv_type_struct_sockaddr_un=yes
14451 else
14452 echo "$as_me: failed program was:" >&5
14453 sed 's/^/| /' conftest.$ac_ext >&5
14455 ac_cv_type_struct_sockaddr_un=no
14458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14460 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
14461 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6; }
14462 if test $ac_cv_type_struct_sockaddr_un = yes; then
14464 cat >>confdefs.h <<_ACEOF
14465 #define HAVE_STRUCT_SOCKADDR_UN 1
14466 _ACEOF
14469 cat >>confdefs.h <<\_ACEOF
14470 #define HAVE_UNIX_SOCKETS 1
14471 _ACEOF
14475 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
14476 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
14477 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
14478 echo $ECHO_N "(cached) $ECHO_C" >&6
14479 else
14480 cat >conftest.$ac_ext <<_ACEOF
14481 /* confdefs.h. */
14482 _ACEOF
14483 cat confdefs.h >>conftest.$ac_ext
14484 cat >>conftest.$ac_ext <<_ACEOF
14485 /* end confdefs.h. */
14486 #include <sys/types.h>
14487 #ifdef HAVE_SYS_SOCKET_H
14488 #include <sys/socket.h>
14489 #endif
14492 typedef struct sockaddr_storage ac__type_new_;
14494 main ()
14496 if ((ac__type_new_ *) 0)
14497 return 0;
14498 if (sizeof (ac__type_new_))
14499 return 0;
14501 return 0;
14503 _ACEOF
14504 rm -f conftest.$ac_objext
14505 if { (ac_try="$ac_compile"
14506 case "(($ac_try" in
14507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14508 *) ac_try_echo=$ac_try;;
14509 esac
14510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14511 (eval "$ac_compile") 2>conftest.er1
14512 ac_status=$?
14513 grep -v '^ *+' conftest.er1 >conftest.err
14514 rm -f conftest.er1
14515 cat conftest.err >&5
14516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517 (exit $ac_status); } && {
14518 test -z "$ac_c_werror_flag" ||
14519 test ! -s conftest.err
14520 } && test -s conftest.$ac_objext; then
14521 ac_cv_type_struct_sockaddr_storage=yes
14522 else
14523 echo "$as_me: failed program was:" >&5
14524 sed 's/^/| /' conftest.$ac_ext >&5
14526 ac_cv_type_struct_sockaddr_storage=no
14529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14531 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
14532 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
14533 if test $ac_cv_type_struct_sockaddr_storage = yes; then
14535 cat >>confdefs.h <<_ACEOF
14536 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
14537 _ACEOF
14542 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
14543 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6; }
14544 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
14545 echo $ECHO_N "(cached) $ECHO_C" >&6
14546 else
14547 cat >conftest.$ac_ext <<_ACEOF
14548 /* confdefs.h. */
14549 _ACEOF
14550 cat confdefs.h >>conftest.$ac_ext
14551 cat >>conftest.$ac_ext <<_ACEOF
14552 /* end confdefs.h. */
14553 #include <sys/types.h>
14554 #ifdef HAVE_SYS_SOCKET_H
14555 #include <sys/socket.h>
14556 #endif
14560 main ()
14562 static struct sockaddr_storage ac_aggr;
14563 if (ac_aggr.ss_family)
14564 return 0;
14566 return 0;
14568 _ACEOF
14569 rm -f conftest.$ac_objext
14570 if { (ac_try="$ac_compile"
14571 case "(($ac_try" in
14572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14573 *) ac_try_echo=$ac_try;;
14574 esac
14575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14576 (eval "$ac_compile") 2>conftest.er1
14577 ac_status=$?
14578 grep -v '^ *+' conftest.er1 >conftest.err
14579 rm -f conftest.er1
14580 cat conftest.err >&5
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 (exit $ac_status); } && {
14583 test -z "$ac_c_werror_flag" ||
14584 test ! -s conftest.err
14585 } && test -s conftest.$ac_objext; then
14586 ac_cv_member_struct_sockaddr_storage_ss_family=yes
14587 else
14588 echo "$as_me: failed program was:" >&5
14589 sed 's/^/| /' conftest.$ac_ext >&5
14591 cat >conftest.$ac_ext <<_ACEOF
14592 /* confdefs.h. */
14593 _ACEOF
14594 cat confdefs.h >>conftest.$ac_ext
14595 cat >>conftest.$ac_ext <<_ACEOF
14596 /* end confdefs.h. */
14597 #include <sys/types.h>
14598 #ifdef HAVE_SYS_SOCKET_H
14599 #include <sys/socket.h>
14600 #endif
14604 main ()
14606 static struct sockaddr_storage ac_aggr;
14607 if (sizeof ac_aggr.ss_family)
14608 return 0;
14610 return 0;
14612 _ACEOF
14613 rm -f conftest.$ac_objext
14614 if { (ac_try="$ac_compile"
14615 case "(($ac_try" in
14616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14617 *) ac_try_echo=$ac_try;;
14618 esac
14619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14620 (eval "$ac_compile") 2>conftest.er1
14621 ac_status=$?
14622 grep -v '^ *+' conftest.er1 >conftest.err
14623 rm -f conftest.er1
14624 cat conftest.err >&5
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); } && {
14627 test -z "$ac_c_werror_flag" ||
14628 test ! -s conftest.err
14629 } && test -s conftest.$ac_objext; then
14630 ac_cv_member_struct_sockaddr_storage_ss_family=yes
14631 else
14632 echo "$as_me: failed program was:" >&5
14633 sed 's/^/| /' conftest.$ac_ext >&5
14635 ac_cv_member_struct_sockaddr_storage_ss_family=no
14638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14643 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
14644 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
14645 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
14647 cat >>confdefs.h <<_ACEOF
14648 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
14649 _ACEOF
14653 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
14654 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6; }
14655 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
14656 echo $ECHO_N "(cached) $ECHO_C" >&6
14657 else
14658 cat >conftest.$ac_ext <<_ACEOF
14659 /* confdefs.h. */
14660 _ACEOF
14661 cat confdefs.h >>conftest.$ac_ext
14662 cat >>conftest.$ac_ext <<_ACEOF
14663 /* end confdefs.h. */
14664 #include <sys/types.h>
14665 #ifdef HAVE_SYS_SOCKET_H
14666 #include <sys/socket.h>
14667 #endif
14671 main ()
14673 static struct sockaddr_storage ac_aggr;
14674 if (ac_aggr.__ss_family)
14675 return 0;
14677 return 0;
14679 _ACEOF
14680 rm -f conftest.$ac_objext
14681 if { (ac_try="$ac_compile"
14682 case "(($ac_try" in
14683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14684 *) ac_try_echo=$ac_try;;
14685 esac
14686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14687 (eval "$ac_compile") 2>conftest.er1
14688 ac_status=$?
14689 grep -v '^ *+' conftest.er1 >conftest.err
14690 rm -f conftest.er1
14691 cat conftest.err >&5
14692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693 (exit $ac_status); } && {
14694 test -z "$ac_c_werror_flag" ||
14695 test ! -s conftest.err
14696 } && test -s conftest.$ac_objext; then
14697 ac_cv_member_struct_sockaddr_storage___ss_family=yes
14698 else
14699 echo "$as_me: failed program was:" >&5
14700 sed 's/^/| /' conftest.$ac_ext >&5
14702 cat >conftest.$ac_ext <<_ACEOF
14703 /* confdefs.h. */
14704 _ACEOF
14705 cat confdefs.h >>conftest.$ac_ext
14706 cat >>conftest.$ac_ext <<_ACEOF
14707 /* end confdefs.h. */
14708 #include <sys/types.h>
14709 #ifdef HAVE_SYS_SOCKET_H
14710 #include <sys/socket.h>
14711 #endif
14715 main ()
14717 static struct sockaddr_storage ac_aggr;
14718 if (sizeof ac_aggr.__ss_family)
14719 return 0;
14721 return 0;
14723 _ACEOF
14724 rm -f conftest.$ac_objext
14725 if { (ac_try="$ac_compile"
14726 case "(($ac_try" in
14727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14728 *) ac_try_echo=$ac_try;;
14729 esac
14730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14731 (eval "$ac_compile") 2>conftest.er1
14732 ac_status=$?
14733 grep -v '^ *+' conftest.er1 >conftest.err
14734 rm -f conftest.er1
14735 cat conftest.err >&5
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); } && {
14738 test -z "$ac_c_werror_flag" ||
14739 test ! -s conftest.err
14740 } && test -s conftest.$ac_objext; then
14741 ac_cv_member_struct_sockaddr_storage___ss_family=yes
14742 else
14743 echo "$as_me: failed program was:" >&5
14744 sed 's/^/| /' conftest.$ac_ext >&5
14746 ac_cv_member_struct_sockaddr_storage___ss_family=no
14749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14754 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
14755 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
14756 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
14758 cat >>confdefs.h <<_ACEOF
14759 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
14760 _ACEOF
14764 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
14765 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6; }
14766 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
14767 echo $ECHO_N "(cached) $ECHO_C" >&6
14768 else
14769 cat >conftest.$ac_ext <<_ACEOF
14770 /* confdefs.h. */
14771 _ACEOF
14772 cat confdefs.h >>conftest.$ac_ext
14773 cat >>conftest.$ac_ext <<_ACEOF
14774 /* end confdefs.h. */
14775 #include <sys/types.h>
14776 #ifdef HAVE_SYS_SOCKET_H
14777 #include <sys/socket.h>
14778 #endif
14782 main ()
14784 static struct sockaddr_storage ac_aggr;
14785 if (ac_aggr.ss_len)
14786 return 0;
14788 return 0;
14790 _ACEOF
14791 rm -f conftest.$ac_objext
14792 if { (ac_try="$ac_compile"
14793 case "(($ac_try" in
14794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14795 *) ac_try_echo=$ac_try;;
14796 esac
14797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14798 (eval "$ac_compile") 2>conftest.er1
14799 ac_status=$?
14800 grep -v '^ *+' conftest.er1 >conftest.err
14801 rm -f conftest.er1
14802 cat conftest.err >&5
14803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804 (exit $ac_status); } && {
14805 test -z "$ac_c_werror_flag" ||
14806 test ! -s conftest.err
14807 } && test -s conftest.$ac_objext; then
14808 ac_cv_member_struct_sockaddr_storage_ss_len=yes
14809 else
14810 echo "$as_me: failed program was:" >&5
14811 sed 's/^/| /' conftest.$ac_ext >&5
14813 cat >conftest.$ac_ext <<_ACEOF
14814 /* confdefs.h. */
14815 _ACEOF
14816 cat confdefs.h >>conftest.$ac_ext
14817 cat >>conftest.$ac_ext <<_ACEOF
14818 /* end confdefs.h. */
14819 #include <sys/types.h>
14820 #ifdef HAVE_SYS_SOCKET_H
14821 #include <sys/socket.h>
14822 #endif
14826 main ()
14828 static struct sockaddr_storage ac_aggr;
14829 if (sizeof ac_aggr.ss_len)
14830 return 0;
14832 return 0;
14834 _ACEOF
14835 rm -f conftest.$ac_objext
14836 if { (ac_try="$ac_compile"
14837 case "(($ac_try" in
14838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14839 *) ac_try_echo=$ac_try;;
14840 esac
14841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14842 (eval "$ac_compile") 2>conftest.er1
14843 ac_status=$?
14844 grep -v '^ *+' conftest.er1 >conftest.err
14845 rm -f conftest.er1
14846 cat conftest.err >&5
14847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848 (exit $ac_status); } && {
14849 test -z "$ac_c_werror_flag" ||
14850 test ! -s conftest.err
14851 } && test -s conftest.$ac_objext; then
14852 ac_cv_member_struct_sockaddr_storage_ss_len=yes
14853 else
14854 echo "$as_me: failed program was:" >&5
14855 sed 's/^/| /' conftest.$ac_ext >&5
14857 ac_cv_member_struct_sockaddr_storage_ss_len=no
14860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14865 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
14866 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
14867 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
14869 cat >>confdefs.h <<_ACEOF
14870 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
14871 _ACEOF
14875 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
14876 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6; }
14877 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
14878 echo $ECHO_N "(cached) $ECHO_C" >&6
14879 else
14880 cat >conftest.$ac_ext <<_ACEOF
14881 /* confdefs.h. */
14882 _ACEOF
14883 cat confdefs.h >>conftest.$ac_ext
14884 cat >>conftest.$ac_ext <<_ACEOF
14885 /* end confdefs.h. */
14886 #include <sys/types.h>
14887 #ifdef HAVE_SYS_SOCKET_H
14888 #include <sys/socket.h>
14889 #endif
14893 main ()
14895 static struct sockaddr_storage ac_aggr;
14896 if (ac_aggr.__ss_len)
14897 return 0;
14899 return 0;
14901 _ACEOF
14902 rm -f conftest.$ac_objext
14903 if { (ac_try="$ac_compile"
14904 case "(($ac_try" in
14905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14906 *) ac_try_echo=$ac_try;;
14907 esac
14908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14909 (eval "$ac_compile") 2>conftest.er1
14910 ac_status=$?
14911 grep -v '^ *+' conftest.er1 >conftest.err
14912 rm -f conftest.er1
14913 cat conftest.err >&5
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); } && {
14916 test -z "$ac_c_werror_flag" ||
14917 test ! -s conftest.err
14918 } && test -s conftest.$ac_objext; then
14919 ac_cv_member_struct_sockaddr_storage___ss_len=yes
14920 else
14921 echo "$as_me: failed program was:" >&5
14922 sed 's/^/| /' conftest.$ac_ext >&5
14924 cat >conftest.$ac_ext <<_ACEOF
14925 /* confdefs.h. */
14926 _ACEOF
14927 cat confdefs.h >>conftest.$ac_ext
14928 cat >>conftest.$ac_ext <<_ACEOF
14929 /* end confdefs.h. */
14930 #include <sys/types.h>
14931 #ifdef HAVE_SYS_SOCKET_H
14932 #include <sys/socket.h>
14933 #endif
14937 main ()
14939 static struct sockaddr_storage ac_aggr;
14940 if (sizeof ac_aggr.__ss_len)
14941 return 0;
14943 return 0;
14945 _ACEOF
14946 rm -f conftest.$ac_objext
14947 if { (ac_try="$ac_compile"
14948 case "(($ac_try" in
14949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14950 *) ac_try_echo=$ac_try;;
14951 esac
14952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14953 (eval "$ac_compile") 2>conftest.er1
14954 ac_status=$?
14955 grep -v '^ *+' conftest.er1 >conftest.err
14956 rm -f conftest.er1
14957 cat conftest.err >&5
14958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959 (exit $ac_status); } && {
14960 test -z "$ac_c_werror_flag" ||
14961 test ! -s conftest.err
14962 } && test -s conftest.$ac_objext; then
14963 ac_cv_member_struct_sockaddr_storage___ss_len=yes
14964 else
14965 echo "$as_me: failed program was:" >&5
14966 sed 's/^/| /' conftest.$ac_ext >&5
14968 ac_cv_member_struct_sockaddr_storage___ss_len=no
14971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14976 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
14977 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
14978 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
14980 cat >>confdefs.h <<_ACEOF
14981 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
14982 _ACEOF
14986 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14987 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14988 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14989 echo $ECHO_N "(cached) $ECHO_C" >&6
14990 else
14991 cat >conftest.$ac_ext <<_ACEOF
14992 /* confdefs.h. */
14993 _ACEOF
14994 cat confdefs.h >>conftest.$ac_ext
14995 cat >>conftest.$ac_ext <<_ACEOF
14996 /* end confdefs.h. */
14997 #include <sys/types.h>
14998 #ifdef HAVE_SYS_SOCKET_H
14999 #include <sys/socket.h>
15000 #endif
15004 main ()
15006 static struct sockaddr ac_aggr;
15007 if (ac_aggr.sa_len)
15008 return 0;
15010 return 0;
15012 _ACEOF
15013 rm -f conftest.$ac_objext
15014 if { (ac_try="$ac_compile"
15015 case "(($ac_try" in
15016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15017 *) ac_try_echo=$ac_try;;
15018 esac
15019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15020 (eval "$ac_compile") 2>conftest.er1
15021 ac_status=$?
15022 grep -v '^ *+' conftest.er1 >conftest.err
15023 rm -f conftest.er1
15024 cat conftest.err >&5
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); } && {
15027 test -z "$ac_c_werror_flag" ||
15028 test ! -s conftest.err
15029 } && test -s conftest.$ac_objext; then
15030 ac_cv_member_struct_sockaddr_sa_len=yes
15031 else
15032 echo "$as_me: failed program was:" >&5
15033 sed 's/^/| /' conftest.$ac_ext >&5
15035 cat >conftest.$ac_ext <<_ACEOF
15036 /* confdefs.h. */
15037 _ACEOF
15038 cat confdefs.h >>conftest.$ac_ext
15039 cat >>conftest.$ac_ext <<_ACEOF
15040 /* end confdefs.h. */
15041 #include <sys/types.h>
15042 #ifdef HAVE_SYS_SOCKET_H
15043 #include <sys/socket.h>
15044 #endif
15048 main ()
15050 static struct sockaddr ac_aggr;
15051 if (sizeof ac_aggr.sa_len)
15052 return 0;
15054 return 0;
15056 _ACEOF
15057 rm -f conftest.$ac_objext
15058 if { (ac_try="$ac_compile"
15059 case "(($ac_try" in
15060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15061 *) ac_try_echo=$ac_try;;
15062 esac
15063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15064 (eval "$ac_compile") 2>conftest.er1
15065 ac_status=$?
15066 grep -v '^ *+' conftest.er1 >conftest.err
15067 rm -f conftest.er1
15068 cat conftest.err >&5
15069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070 (exit $ac_status); } && {
15071 test -z "$ac_c_werror_flag" ||
15072 test ! -s conftest.err
15073 } && test -s conftest.$ac_objext; then
15074 ac_cv_member_struct_sockaddr_sa_len=yes
15075 else
15076 echo "$as_me: failed program was:" >&5
15077 sed 's/^/| /' conftest.$ac_ext >&5
15079 ac_cv_member_struct_sockaddr_sa_len=no
15082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15087 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
15088 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
15089 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
15091 cat >>confdefs.h <<_ACEOF
15092 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
15093 _ACEOF
15098 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
15099 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
15100 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
15101 echo $ECHO_N "(cached) $ECHO_C" >&6
15102 else
15103 cat >conftest.$ac_ext <<_ACEOF
15104 /* confdefs.h. */
15105 _ACEOF
15106 cat confdefs.h >>conftest.$ac_ext
15107 cat >>conftest.$ac_ext <<_ACEOF
15108 /* end confdefs.h. */
15109 #include <sys/types.h>
15110 #include <sys/socket.h>
15111 #include <netdb.h>
15114 typedef struct addrinfo ac__type_new_;
15116 main ()
15118 if ((ac__type_new_ *) 0)
15119 return 0;
15120 if (sizeof (ac__type_new_))
15121 return 0;
15123 return 0;
15125 _ACEOF
15126 rm -f conftest.$ac_objext
15127 if { (ac_try="$ac_compile"
15128 case "(($ac_try" in
15129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15130 *) ac_try_echo=$ac_try;;
15131 esac
15132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15133 (eval "$ac_compile") 2>conftest.er1
15134 ac_status=$?
15135 grep -v '^ *+' conftest.er1 >conftest.err
15136 rm -f conftest.er1
15137 cat conftest.err >&5
15138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139 (exit $ac_status); } && {
15140 test -z "$ac_c_werror_flag" ||
15141 test ! -s conftest.err
15142 } && test -s conftest.$ac_objext; then
15143 ac_cv_type_struct_addrinfo=yes
15144 else
15145 echo "$as_me: failed program was:" >&5
15146 sed 's/^/| /' conftest.$ac_ext >&5
15148 ac_cv_type_struct_addrinfo=no
15151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15153 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
15154 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
15155 if test $ac_cv_type_struct_addrinfo = yes; then
15157 cat >>confdefs.h <<_ACEOF
15158 #define HAVE_STRUCT_ADDRINFO 1
15159 _ACEOF
15165 { echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
15166 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6; }
15167 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
15168 echo $ECHO_N "(cached) $ECHO_C" >&6
15169 else
15170 cat >conftest.$ac_ext <<_ACEOF
15171 /* confdefs.h. */
15172 _ACEOF
15173 cat confdefs.h >>conftest.$ac_ext
15174 cat >>conftest.$ac_ext <<_ACEOF
15175 /* end confdefs.h. */
15176 #include <sys/param.h>
15177 #include <sys/types.h>
15178 #include <sys/socket.h>
15179 #include <sys/ucred.h>
15181 typedef struct cmsgcred ac__type_new_;
15183 main ()
15185 if ((ac__type_new_ *) 0)
15186 return 0;
15187 if (sizeof (ac__type_new_))
15188 return 0;
15190 return 0;
15192 _ACEOF
15193 rm -f conftest.$ac_objext
15194 if { (ac_try="$ac_compile"
15195 case "(($ac_try" in
15196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15197 *) ac_try_echo=$ac_try;;
15198 esac
15199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15200 (eval "$ac_compile") 2>conftest.er1
15201 ac_status=$?
15202 grep -v '^ *+' conftest.er1 >conftest.err
15203 rm -f conftest.er1
15204 cat conftest.err >&5
15205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206 (exit $ac_status); } && {
15207 test -z "$ac_c_werror_flag" ||
15208 test ! -s conftest.err
15209 } && test -s conftest.$ac_objext; then
15210 ac_cv_type_struct_cmsgcred=yes
15211 else
15212 echo "$as_me: failed program was:" >&5
15213 sed 's/^/| /' conftest.$ac_ext >&5
15215 ac_cv_type_struct_cmsgcred=no
15218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15220 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
15221 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6; }
15222 if test $ac_cv_type_struct_cmsgcred = yes; then
15224 cat >>confdefs.h <<_ACEOF
15225 #define HAVE_STRUCT_CMSGCRED 1
15226 _ACEOF
15230 { echo "$as_me:$LINENO: checking for struct fcred" >&5
15231 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6; }
15232 if test "${ac_cv_type_struct_fcred+set}" = set; then
15233 echo $ECHO_N "(cached) $ECHO_C" >&6
15234 else
15235 cat >conftest.$ac_ext <<_ACEOF
15236 /* confdefs.h. */
15237 _ACEOF
15238 cat confdefs.h >>conftest.$ac_ext
15239 cat >>conftest.$ac_ext <<_ACEOF
15240 /* end confdefs.h. */
15241 #include <sys/param.h>
15242 #include <sys/types.h>
15243 #include <sys/socket.h>
15244 #include <sys/ucred.h>
15246 typedef struct fcred ac__type_new_;
15248 main ()
15250 if ((ac__type_new_ *) 0)
15251 return 0;
15252 if (sizeof (ac__type_new_))
15253 return 0;
15255 return 0;
15257 _ACEOF
15258 rm -f conftest.$ac_objext
15259 if { (ac_try="$ac_compile"
15260 case "(($ac_try" in
15261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15262 *) ac_try_echo=$ac_try;;
15263 esac
15264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15265 (eval "$ac_compile") 2>conftest.er1
15266 ac_status=$?
15267 grep -v '^ *+' conftest.er1 >conftest.err
15268 rm -f conftest.er1
15269 cat conftest.err >&5
15270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271 (exit $ac_status); } && {
15272 test -z "$ac_c_werror_flag" ||
15273 test ! -s conftest.err
15274 } && test -s conftest.$ac_objext; then
15275 ac_cv_type_struct_fcred=yes
15276 else
15277 echo "$as_me: failed program was:" >&5
15278 sed 's/^/| /' conftest.$ac_ext >&5
15280 ac_cv_type_struct_fcred=no
15283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15285 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
15286 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6; }
15287 if test $ac_cv_type_struct_fcred = yes; then
15289 cat >>confdefs.h <<_ACEOF
15290 #define HAVE_STRUCT_FCRED 1
15291 _ACEOF
15295 { echo "$as_me:$LINENO: checking for struct sockcred" >&5
15296 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6; }
15297 if test "${ac_cv_type_struct_sockcred+set}" = set; then
15298 echo $ECHO_N "(cached) $ECHO_C" >&6
15299 else
15300 cat >conftest.$ac_ext <<_ACEOF
15301 /* confdefs.h. */
15302 _ACEOF
15303 cat confdefs.h >>conftest.$ac_ext
15304 cat >>conftest.$ac_ext <<_ACEOF
15305 /* end confdefs.h. */
15306 #include <sys/param.h>
15307 #include <sys/types.h>
15308 #include <sys/socket.h>
15309 #include <sys/ucred.h>
15311 typedef struct sockcred ac__type_new_;
15313 main ()
15315 if ((ac__type_new_ *) 0)
15316 return 0;
15317 if (sizeof (ac__type_new_))
15318 return 0;
15320 return 0;
15322 _ACEOF
15323 rm -f conftest.$ac_objext
15324 if { (ac_try="$ac_compile"
15325 case "(($ac_try" in
15326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15327 *) ac_try_echo=$ac_try;;
15328 esac
15329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15330 (eval "$ac_compile") 2>conftest.er1
15331 ac_status=$?
15332 grep -v '^ *+' conftest.er1 >conftest.err
15333 rm -f conftest.er1
15334 cat conftest.err >&5
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); } && {
15337 test -z "$ac_c_werror_flag" ||
15338 test ! -s conftest.err
15339 } && test -s conftest.$ac_objext; then
15340 ac_cv_type_struct_sockcred=yes
15341 else
15342 echo "$as_me: failed program was:" >&5
15343 sed 's/^/| /' conftest.$ac_ext >&5
15345 ac_cv_type_struct_sockcred=no
15348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15350 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
15351 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6; }
15352 if test $ac_cv_type_struct_sockcred = yes; then
15354 cat >>confdefs.h <<_ACEOF
15355 #define HAVE_STRUCT_SOCKCRED 1
15356 _ACEOF
15362 { echo "$as_me:$LINENO: checking for struct option" >&5
15363 echo $ECHO_N "checking for struct option... $ECHO_C" >&6; }
15364 if test "${ac_cv_type_struct_option+set}" = set; then
15365 echo $ECHO_N "(cached) $ECHO_C" >&6
15366 else
15367 cat >conftest.$ac_ext <<_ACEOF
15368 /* confdefs.h. */
15369 _ACEOF
15370 cat confdefs.h >>conftest.$ac_ext
15371 cat >>conftest.$ac_ext <<_ACEOF
15372 /* end confdefs.h. */
15373 #ifdef HAVE_GETOPT_H
15374 #include <getopt.h>
15375 #endif
15377 typedef struct option ac__type_new_;
15379 main ()
15381 if ((ac__type_new_ *) 0)
15382 return 0;
15383 if (sizeof (ac__type_new_))
15384 return 0;
15386 return 0;
15388 _ACEOF
15389 rm -f conftest.$ac_objext
15390 if { (ac_try="$ac_compile"
15391 case "(($ac_try" in
15392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15393 *) ac_try_echo=$ac_try;;
15394 esac
15395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15396 (eval "$ac_compile") 2>conftest.er1
15397 ac_status=$?
15398 grep -v '^ *+' conftest.er1 >conftest.err
15399 rm -f conftest.er1
15400 cat conftest.err >&5
15401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402 (exit $ac_status); } && {
15403 test -z "$ac_c_werror_flag" ||
15404 test ! -s conftest.err
15405 } && test -s conftest.$ac_objext; then
15406 ac_cv_type_struct_option=yes
15407 else
15408 echo "$as_me: failed program was:" >&5
15409 sed 's/^/| /' conftest.$ac_ext >&5
15411 ac_cv_type_struct_option=no
15414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15416 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
15417 echo "${ECHO_T}$ac_cv_type_struct_option" >&6; }
15418 if test $ac_cv_type_struct_option = yes; then
15420 cat >>confdefs.h <<_ACEOF
15421 #define HAVE_STRUCT_OPTION 1
15422 _ACEOF
15428 if test "$with_zlib" = yes; then
15429 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
15430 # did not). While we could work around the lack of z_streamp, it
15431 # seems unwise to encourage people to use such old zlib versions...
15432 { echo "$as_me:$LINENO: checking for z_streamp" >&5
15433 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6; }
15434 if test "${ac_cv_type_z_streamp+set}" = set; then
15435 echo $ECHO_N "(cached) $ECHO_C" >&6
15436 else
15437 cat >conftest.$ac_ext <<_ACEOF
15438 /* confdefs.h. */
15439 _ACEOF
15440 cat confdefs.h >>conftest.$ac_ext
15441 cat >>conftest.$ac_ext <<_ACEOF
15442 /* end confdefs.h. */
15443 #include <zlib.h>
15445 typedef z_streamp ac__type_new_;
15447 main ()
15449 if ((ac__type_new_ *) 0)
15450 return 0;
15451 if (sizeof (ac__type_new_))
15452 return 0;
15454 return 0;
15456 _ACEOF
15457 rm -f conftest.$ac_objext
15458 if { (ac_try="$ac_compile"
15459 case "(($ac_try" in
15460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15461 *) ac_try_echo=$ac_try;;
15462 esac
15463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15464 (eval "$ac_compile") 2>conftest.er1
15465 ac_status=$?
15466 grep -v '^ *+' conftest.er1 >conftest.err
15467 rm -f conftest.er1
15468 cat conftest.err >&5
15469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470 (exit $ac_status); } && {
15471 test -z "$ac_c_werror_flag" ||
15472 test ! -s conftest.err
15473 } && test -s conftest.$ac_objext; then
15474 ac_cv_type_z_streamp=yes
15475 else
15476 echo "$as_me: failed program was:" >&5
15477 sed 's/^/| /' conftest.$ac_ext >&5
15479 ac_cv_type_z_streamp=no
15482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15484 { echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
15485 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6; }
15486 if test $ac_cv_type_z_streamp = yes; then
15488 else
15489 { { echo "$as_me:$LINENO: error: zlib version is too old
15490 Use --without-zlib to disable zlib support." >&5
15491 echo "$as_me: error: zlib version is too old
15492 Use --without-zlib to disable zlib support." >&2;}
15493 { (exit 1); exit 1; }; }
15498 if test "$with_krb5" = yes; then
15499 # Check for differences between MIT and Heimdal (KTH) releases
15500 { echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
15501 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6; }
15502 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
15503 echo $ECHO_N "(cached) $ECHO_C" >&6
15504 else
15505 cat >conftest.$ac_ext <<_ACEOF
15506 /* confdefs.h. */
15507 _ACEOF
15508 cat confdefs.h >>conftest.$ac_ext
15509 cat >>conftest.$ac_ext <<_ACEOF
15510 /* end confdefs.h. */
15511 #include <krb5.h>
15514 main ()
15516 static krb5_ticket ac_aggr;
15517 if (ac_aggr.enc_part2)
15518 return 0;
15520 return 0;
15522 _ACEOF
15523 rm -f conftest.$ac_objext
15524 if { (ac_try="$ac_compile"
15525 case "(($ac_try" in
15526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15527 *) ac_try_echo=$ac_try;;
15528 esac
15529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15530 (eval "$ac_compile") 2>conftest.er1
15531 ac_status=$?
15532 grep -v '^ *+' conftest.er1 >conftest.err
15533 rm -f conftest.er1
15534 cat conftest.err >&5
15535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536 (exit $ac_status); } && {
15537 test -z "$ac_c_werror_flag" ||
15538 test ! -s conftest.err
15539 } && test -s conftest.$ac_objext; then
15540 ac_cv_member_krb5_ticket_enc_part2=yes
15541 else
15542 echo "$as_me: failed program was:" >&5
15543 sed 's/^/| /' conftest.$ac_ext >&5
15545 cat >conftest.$ac_ext <<_ACEOF
15546 /* confdefs.h. */
15547 _ACEOF
15548 cat confdefs.h >>conftest.$ac_ext
15549 cat >>conftest.$ac_ext <<_ACEOF
15550 /* end confdefs.h. */
15551 #include <krb5.h>
15554 main ()
15556 static krb5_ticket ac_aggr;
15557 if (sizeof ac_aggr.enc_part2)
15558 return 0;
15560 return 0;
15562 _ACEOF
15563 rm -f conftest.$ac_objext
15564 if { (ac_try="$ac_compile"
15565 case "(($ac_try" in
15566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15567 *) ac_try_echo=$ac_try;;
15568 esac
15569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15570 (eval "$ac_compile") 2>conftest.er1
15571 ac_status=$?
15572 grep -v '^ *+' conftest.er1 >conftest.err
15573 rm -f conftest.er1
15574 cat conftest.err >&5
15575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576 (exit $ac_status); } && {
15577 test -z "$ac_c_werror_flag" ||
15578 test ! -s conftest.err
15579 } && test -s conftest.$ac_objext; then
15580 ac_cv_member_krb5_ticket_enc_part2=yes
15581 else
15582 echo "$as_me: failed program was:" >&5
15583 sed 's/^/| /' conftest.$ac_ext >&5
15585 ac_cv_member_krb5_ticket_enc_part2=no
15588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15593 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
15594 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6; }
15595 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
15597 cat >>confdefs.h <<_ACEOF
15598 #define HAVE_KRB5_TICKET_ENC_PART2 1
15599 _ACEOF
15602 else
15603 { echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
15604 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6; }
15605 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
15606 echo $ECHO_N "(cached) $ECHO_C" >&6
15607 else
15608 cat >conftest.$ac_ext <<_ACEOF
15609 /* confdefs.h. */
15610 _ACEOF
15611 cat confdefs.h >>conftest.$ac_ext
15612 cat >>conftest.$ac_ext <<_ACEOF
15613 /* end confdefs.h. */
15614 #include <krb5.h>
15617 main ()
15619 static krb5_ticket ac_aggr;
15620 if (ac_aggr.client)
15621 return 0;
15623 return 0;
15625 _ACEOF
15626 rm -f conftest.$ac_objext
15627 if { (ac_try="$ac_compile"
15628 case "(($ac_try" in
15629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15630 *) ac_try_echo=$ac_try;;
15631 esac
15632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15633 (eval "$ac_compile") 2>conftest.er1
15634 ac_status=$?
15635 grep -v '^ *+' conftest.er1 >conftest.err
15636 rm -f conftest.er1
15637 cat conftest.err >&5
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); } && {
15640 test -z "$ac_c_werror_flag" ||
15641 test ! -s conftest.err
15642 } && test -s conftest.$ac_objext; then
15643 ac_cv_member_krb5_ticket_client=yes
15644 else
15645 echo "$as_me: failed program was:" >&5
15646 sed 's/^/| /' conftest.$ac_ext >&5
15648 cat >conftest.$ac_ext <<_ACEOF
15649 /* confdefs.h. */
15650 _ACEOF
15651 cat confdefs.h >>conftest.$ac_ext
15652 cat >>conftest.$ac_ext <<_ACEOF
15653 /* end confdefs.h. */
15654 #include <krb5.h>
15657 main ()
15659 static krb5_ticket ac_aggr;
15660 if (sizeof ac_aggr.client)
15661 return 0;
15663 return 0;
15665 _ACEOF
15666 rm -f conftest.$ac_objext
15667 if { (ac_try="$ac_compile"
15668 case "(($ac_try" in
15669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15670 *) ac_try_echo=$ac_try;;
15671 esac
15672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15673 (eval "$ac_compile") 2>conftest.er1
15674 ac_status=$?
15675 grep -v '^ *+' conftest.er1 >conftest.err
15676 rm -f conftest.er1
15677 cat conftest.err >&5
15678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679 (exit $ac_status); } && {
15680 test -z "$ac_c_werror_flag" ||
15681 test ! -s conftest.err
15682 } && test -s conftest.$ac_objext; then
15683 ac_cv_member_krb5_ticket_client=yes
15684 else
15685 echo "$as_me: failed program was:" >&5
15686 sed 's/^/| /' conftest.$ac_ext >&5
15688 ac_cv_member_krb5_ticket_client=no
15691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15696 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
15697 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6; }
15698 if test $ac_cv_member_krb5_ticket_client = yes; then
15700 cat >>confdefs.h <<_ACEOF
15701 #define HAVE_KRB5_TICKET_CLIENT 1
15702 _ACEOF
15705 else
15706 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
15707 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
15708 { (exit 1); exit 1; }; }
15713 { echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
15714 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6; }
15715 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
15716 echo $ECHO_N "(cached) $ECHO_C" >&6
15717 else
15718 cat >conftest.$ac_ext <<_ACEOF
15719 /* confdefs.h. */
15720 _ACEOF
15721 cat confdefs.h >>conftest.$ac_ext
15722 cat >>conftest.$ac_ext <<_ACEOF
15723 /* end confdefs.h. */
15724 #include <krb5.h>
15727 main ()
15729 static krb5_error ac_aggr;
15730 if (ac_aggr.text.data)
15731 return 0;
15733 return 0;
15735 _ACEOF
15736 rm -f conftest.$ac_objext
15737 if { (ac_try="$ac_compile"
15738 case "(($ac_try" in
15739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15740 *) ac_try_echo=$ac_try;;
15741 esac
15742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15743 (eval "$ac_compile") 2>conftest.er1
15744 ac_status=$?
15745 grep -v '^ *+' conftest.er1 >conftest.err
15746 rm -f conftest.er1
15747 cat conftest.err >&5
15748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749 (exit $ac_status); } && {
15750 test -z "$ac_c_werror_flag" ||
15751 test ! -s conftest.err
15752 } && test -s conftest.$ac_objext; then
15753 ac_cv_member_krb5_error_text_data=yes
15754 else
15755 echo "$as_me: failed program was:" >&5
15756 sed 's/^/| /' conftest.$ac_ext >&5
15758 cat >conftest.$ac_ext <<_ACEOF
15759 /* confdefs.h. */
15760 _ACEOF
15761 cat confdefs.h >>conftest.$ac_ext
15762 cat >>conftest.$ac_ext <<_ACEOF
15763 /* end confdefs.h. */
15764 #include <krb5.h>
15767 main ()
15769 static krb5_error ac_aggr;
15770 if (sizeof ac_aggr.text.data)
15771 return 0;
15773 return 0;
15775 _ACEOF
15776 rm -f conftest.$ac_objext
15777 if { (ac_try="$ac_compile"
15778 case "(($ac_try" in
15779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15780 *) ac_try_echo=$ac_try;;
15781 esac
15782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15783 (eval "$ac_compile") 2>conftest.er1
15784 ac_status=$?
15785 grep -v '^ *+' conftest.er1 >conftest.err
15786 rm -f conftest.er1
15787 cat conftest.err >&5
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); } && {
15790 test -z "$ac_c_werror_flag" ||
15791 test ! -s conftest.err
15792 } && test -s conftest.$ac_objext; then
15793 ac_cv_member_krb5_error_text_data=yes
15794 else
15795 echo "$as_me: failed program was:" >&5
15796 sed 's/^/| /' conftest.$ac_ext >&5
15798 ac_cv_member_krb5_error_text_data=no
15801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15806 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
15807 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6; }
15808 if test $ac_cv_member_krb5_error_text_data = yes; then
15810 cat >>confdefs.h <<_ACEOF
15811 #define HAVE_KRB5_ERROR_TEXT_DATA 1
15812 _ACEOF
15815 else
15816 { echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
15817 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6; }
15818 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
15819 echo $ECHO_N "(cached) $ECHO_C" >&6
15820 else
15821 cat >conftest.$ac_ext <<_ACEOF
15822 /* confdefs.h. */
15823 _ACEOF
15824 cat confdefs.h >>conftest.$ac_ext
15825 cat >>conftest.$ac_ext <<_ACEOF
15826 /* end confdefs.h. */
15827 #include <krb5.h>
15830 main ()
15832 static krb5_error ac_aggr;
15833 if (ac_aggr.e_data)
15834 return 0;
15836 return 0;
15838 _ACEOF
15839 rm -f conftest.$ac_objext
15840 if { (ac_try="$ac_compile"
15841 case "(($ac_try" in
15842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15843 *) ac_try_echo=$ac_try;;
15844 esac
15845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15846 (eval "$ac_compile") 2>conftest.er1
15847 ac_status=$?
15848 grep -v '^ *+' conftest.er1 >conftest.err
15849 rm -f conftest.er1
15850 cat conftest.err >&5
15851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852 (exit $ac_status); } && {
15853 test -z "$ac_c_werror_flag" ||
15854 test ! -s conftest.err
15855 } && test -s conftest.$ac_objext; then
15856 ac_cv_member_krb5_error_e_data=yes
15857 else
15858 echo "$as_me: failed program was:" >&5
15859 sed 's/^/| /' conftest.$ac_ext >&5
15861 cat >conftest.$ac_ext <<_ACEOF
15862 /* confdefs.h. */
15863 _ACEOF
15864 cat confdefs.h >>conftest.$ac_ext
15865 cat >>conftest.$ac_ext <<_ACEOF
15866 /* end confdefs.h. */
15867 #include <krb5.h>
15870 main ()
15872 static krb5_error ac_aggr;
15873 if (sizeof ac_aggr.e_data)
15874 return 0;
15876 return 0;
15878 _ACEOF
15879 rm -f conftest.$ac_objext
15880 if { (ac_try="$ac_compile"
15881 case "(($ac_try" in
15882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15883 *) ac_try_echo=$ac_try;;
15884 esac
15885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15886 (eval "$ac_compile") 2>conftest.er1
15887 ac_status=$?
15888 grep -v '^ *+' conftest.er1 >conftest.err
15889 rm -f conftest.er1
15890 cat conftest.err >&5
15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); } && {
15893 test -z "$ac_c_werror_flag" ||
15894 test ! -s conftest.err
15895 } && test -s conftest.$ac_objext; then
15896 ac_cv_member_krb5_error_e_data=yes
15897 else
15898 echo "$as_me: failed program was:" >&5
15899 sed 's/^/| /' conftest.$ac_ext >&5
15901 ac_cv_member_krb5_error_e_data=no
15904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15909 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
15910 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6; }
15911 if test $ac_cv_member_krb5_error_e_data = yes; then
15913 cat >>confdefs.h <<_ACEOF
15914 #define HAVE_KRB5_ERROR_E_DATA 1
15915 _ACEOF
15918 else
15919 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
15920 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
15921 { (exit 1); exit 1; }; }
15927 # Win32 requires headers to be loaded for __stdcall, so can't use
15928 # AC_CHECK_FUNCS here.
15929 { echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
15930 echo $ECHO_N "checking for krb5_free_unparsed_name... $ECHO_C" >&6; }
15931 cat >conftest.$ac_ext <<_ACEOF
15932 /* confdefs.h. */
15933 _ACEOF
15934 cat confdefs.h >>conftest.$ac_ext
15935 cat >>conftest.$ac_ext <<_ACEOF
15936 /* end confdefs.h. */
15937 #include <krb5.h>
15939 main ()
15941 krb5_free_unparsed_name(NULL,NULL);
15943 return 0;
15945 _ACEOF
15946 rm -f conftest.$ac_objext conftest$ac_exeext
15947 if { (ac_try="$ac_link"
15948 case "(($ac_try" in
15949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15950 *) ac_try_echo=$ac_try;;
15951 esac
15952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15953 (eval "$ac_link") 2>conftest.er1
15954 ac_status=$?
15955 grep -v '^ *+' conftest.er1 >conftest.err
15956 rm -f conftest.er1
15957 cat conftest.err >&5
15958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); } && {
15960 test -z "$ac_c_werror_flag" ||
15961 test ! -s conftest.err
15962 } && test -s conftest$ac_exeext &&
15963 $as_test_x conftest$ac_exeext; then
15965 cat >>confdefs.h <<\_ACEOF
15966 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
15967 _ACEOF
15969 { echo "$as_me:$LINENO: result: yes" >&5
15970 echo "${ECHO_T}yes" >&6; }
15971 else
15972 echo "$as_me: failed program was:" >&5
15973 sed 's/^/| /' conftest.$ac_ext >&5
15975 { echo "$as_me:$LINENO: result: no" >&5
15976 echo "${ECHO_T}no" >&6; }
15979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15980 conftest$ac_exeext conftest.$ac_ext
15985 ## Functions, global variables
15988 { echo "$as_me:$LINENO: checking for int timezone" >&5
15989 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6; }
15990 if test "${pgac_cv_var_int_timezone+set}" = set; then
15991 echo $ECHO_N "(cached) $ECHO_C" >&6
15992 else
15993 cat >conftest.$ac_ext <<_ACEOF
15994 /* confdefs.h. */
15995 _ACEOF
15996 cat confdefs.h >>conftest.$ac_ext
15997 cat >>conftest.$ac_ext <<_ACEOF
15998 /* end confdefs.h. */
15999 #include <time.h>
16000 int res;
16002 main ()
16004 #ifndef __CYGWIN__
16005 res = timezone / 60;
16006 #else
16007 res = _timezone / 60;
16008 #endif
16010 return 0;
16012 _ACEOF
16013 rm -f conftest.$ac_objext conftest$ac_exeext
16014 if { (ac_try="$ac_link"
16015 case "(($ac_try" in
16016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16017 *) ac_try_echo=$ac_try;;
16018 esac
16019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16020 (eval "$ac_link") 2>conftest.er1
16021 ac_status=$?
16022 grep -v '^ *+' conftest.er1 >conftest.err
16023 rm -f conftest.er1
16024 cat conftest.err >&5
16025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026 (exit $ac_status); } && {
16027 test -z "$ac_c_werror_flag" ||
16028 test ! -s conftest.err
16029 } && test -s conftest$ac_exeext &&
16030 $as_test_x conftest$ac_exeext; then
16031 pgac_cv_var_int_timezone=yes
16032 else
16033 echo "$as_me: failed program was:" >&5
16034 sed 's/^/| /' conftest.$ac_ext >&5
16036 pgac_cv_var_int_timezone=no
16039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16040 conftest$ac_exeext conftest.$ac_ext
16042 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
16043 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6; }
16044 if test x"$pgac_cv_var_int_timezone" = xyes ; then
16046 cat >>confdefs.h <<\_ACEOF
16047 #define HAVE_INT_TIMEZONE
16048 _ACEOF
16051 { echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
16052 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6; }
16053 if test "${ac_cv_func_accept_return+set}" = set; then
16054 echo $ECHO_N "(cached) $ECHO_C" >&6
16055 else
16056 if test "${ac_cv_func_accept_arg1+set}" = set; then
16057 echo $ECHO_N "(cached) $ECHO_C" >&6
16058 else
16059 if test "${ac_cv_func_accept_arg2+set}" = set; then
16060 echo $ECHO_N "(cached) $ECHO_C" >&6
16061 else
16062 if test "${ac_cv_func_accept_arg3+set}" = set; then
16063 echo $ECHO_N "(cached) $ECHO_C" >&6
16064 else
16065 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
16066 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
16067 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
16068 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
16069 cat >conftest.$ac_ext <<_ACEOF
16070 /* confdefs.h. */
16071 _ACEOF
16072 cat confdefs.h >>conftest.$ac_ext
16073 cat >>conftest.$ac_ext <<_ACEOF
16074 /* end confdefs.h. */
16075 #ifdef HAVE_SYS_TYPES_H
16076 #include <sys/types.h>
16077 #endif
16078 #ifdef HAVE_SYS_SOCKET_H
16079 #include <sys/socket.h>
16080 #endif
16081 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
16083 main ()
16087 return 0;
16089 _ACEOF
16090 rm -f conftest.$ac_objext
16091 if { (ac_try="$ac_compile"
16092 case "(($ac_try" in
16093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16094 *) ac_try_echo=$ac_try;;
16095 esac
16096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16097 (eval "$ac_compile") 2>conftest.er1
16098 ac_status=$?
16099 grep -v '^ *+' conftest.er1 >conftest.err
16100 rm -f conftest.er1
16101 cat conftest.err >&5
16102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103 (exit $ac_status); } && {
16104 test -z "$ac_c_werror_flag" ||
16105 test ! -s conftest.err
16106 } && test -s conftest.$ac_objext; then
16107 ac_not_found=no; break 4
16108 else
16109 echo "$as_me: failed program was:" >&5
16110 sed 's/^/| /' conftest.$ac_ext >&5
16112 ac_not_found=yes
16115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16116 done
16117 done
16118 done
16119 done
16120 if test "$ac_not_found" = yes; then
16121 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
16122 echo "$as_me: error: could not determine argument types" >&2;}
16123 { (exit 1); exit 1; }; }
16125 if test "$ac_cv_func_accept_arg3" = "void"; then
16126 ac_cv_func_accept_arg3=int
16136 { 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
16137 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
16139 cat >>confdefs.h <<_ACEOF
16140 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
16141 _ACEOF
16144 cat >>confdefs.h <<_ACEOF
16145 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
16146 _ACEOF
16149 cat >>confdefs.h <<_ACEOF
16150 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
16151 _ACEOF
16154 cat >>confdefs.h <<_ACEOF
16155 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
16156 _ACEOF
16159 { echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
16160 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6; }
16161 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
16162 echo $ECHO_N "(cached) $ECHO_C" >&6
16163 else
16164 cat >conftest.$ac_ext <<_ACEOF
16165 /* confdefs.h. */
16166 _ACEOF
16167 cat confdefs.h >>conftest.$ac_ext
16168 cat >>conftest.$ac_ext <<_ACEOF
16169 /* end confdefs.h. */
16170 #include <sys/time.h>
16172 main ()
16174 struct timeval *tp;
16175 struct timezone *tzp;
16176 gettimeofday(tp,tzp);
16178 return 0;
16180 _ACEOF
16181 rm -f conftest.$ac_objext
16182 if { (ac_try="$ac_compile"
16183 case "(($ac_try" in
16184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16185 *) ac_try_echo=$ac_try;;
16186 esac
16187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16188 (eval "$ac_compile") 2>conftest.er1
16189 ac_status=$?
16190 grep -v '^ *+' conftest.er1 >conftest.err
16191 rm -f conftest.er1
16192 cat conftest.err >&5
16193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194 (exit $ac_status); } && {
16195 test -z "$ac_c_werror_flag" ||
16196 test ! -s conftest.err
16197 } && test -s conftest.$ac_objext; then
16198 pgac_cv_func_gettimeofday_1arg=no
16199 else
16200 echo "$as_me: failed program was:" >&5
16201 sed 's/^/| /' conftest.$ac_ext >&5
16203 pgac_cv_func_gettimeofday_1arg=yes
16206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16208 { echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
16209 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6; }
16210 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
16212 cat >>confdefs.h <<\_ACEOF
16213 #define GETTIMEOFDAY_1ARG
16214 _ACEOF
16242 for ac_func in cbrt dlopen fcvt fdatasync getpeereid getpeerucred getrlimit memmove poll posix_fadvise pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
16244 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16245 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16246 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16247 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16248 echo $ECHO_N "(cached) $ECHO_C" >&6
16249 else
16250 cat >conftest.$ac_ext <<_ACEOF
16251 /* confdefs.h. */
16252 _ACEOF
16253 cat confdefs.h >>conftest.$ac_ext
16254 cat >>conftest.$ac_ext <<_ACEOF
16255 /* end confdefs.h. */
16256 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16258 #define $ac_func innocuous_$ac_func
16260 /* System header to define __stub macros and hopefully few prototypes,
16261 which can conflict with char $ac_func (); below.
16262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16263 <limits.h> exists even on freestanding compilers. */
16265 #ifdef __STDC__
16266 # include <limits.h>
16267 #else
16268 # include <assert.h>
16269 #endif
16271 #undef $ac_func
16273 /* Override any GCC internal prototype to avoid an error.
16274 Use char because int might match the return type of a GCC
16275 builtin and then its argument prototype would still apply. */
16276 #ifdef __cplusplus
16277 extern "C"
16278 #endif
16279 char $ac_func ();
16280 /* The GNU C library defines this for functions which it implements
16281 to always fail with ENOSYS. Some functions are actually named
16282 something starting with __ and the normal name is an alias. */
16283 #if defined __stub_$ac_func || defined __stub___$ac_func
16284 choke me
16285 #endif
16288 main ()
16290 return $ac_func ();
16292 return 0;
16294 _ACEOF
16295 rm -f conftest.$ac_objext conftest$ac_exeext
16296 if { (ac_try="$ac_link"
16297 case "(($ac_try" in
16298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16299 *) ac_try_echo=$ac_try;;
16300 esac
16301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16302 (eval "$ac_link") 2>conftest.er1
16303 ac_status=$?
16304 grep -v '^ *+' conftest.er1 >conftest.err
16305 rm -f conftest.er1
16306 cat conftest.err >&5
16307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308 (exit $ac_status); } && {
16309 test -z "$ac_c_werror_flag" ||
16310 test ! -s conftest.err
16311 } && test -s conftest$ac_exeext &&
16312 $as_test_x conftest$ac_exeext; then
16313 eval "$as_ac_var=yes"
16314 else
16315 echo "$as_me: failed program was:" >&5
16316 sed 's/^/| /' conftest.$ac_ext >&5
16318 eval "$as_ac_var=no"
16321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16322 conftest$ac_exeext conftest.$ac_ext
16324 ac_res=`eval echo '${'$as_ac_var'}'`
16325 { echo "$as_me:$LINENO: result: $ac_res" >&5
16326 echo "${ECHO_T}$ac_res" >&6; }
16327 if test `eval echo '${'$as_ac_var'}'` = yes; then
16328 cat >>confdefs.h <<_ACEOF
16329 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16330 _ACEOF
16333 done
16336 { echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
16337 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6; }
16338 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
16339 echo $ECHO_N "(cached) $ECHO_C" >&6
16340 else
16341 cat >conftest.$ac_ext <<_ACEOF
16342 /* confdefs.h. */
16343 _ACEOF
16344 cat confdefs.h >>conftest.$ac_ext
16345 cat >>conftest.$ac_ext <<_ACEOF
16346 /* end confdefs.h. */
16347 #include <unistd.h>
16350 main ()
16352 #ifndef fdatasync
16353 (void) fdatasync;
16354 #endif
16357 return 0;
16359 _ACEOF
16360 rm -f conftest.$ac_objext
16361 if { (ac_try="$ac_compile"
16362 case "(($ac_try" in
16363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16364 *) ac_try_echo=$ac_try;;
16365 esac
16366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16367 (eval "$ac_compile") 2>conftest.er1
16368 ac_status=$?
16369 grep -v '^ *+' conftest.er1 >conftest.err
16370 rm -f conftest.er1
16371 cat conftest.err >&5
16372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 (exit $ac_status); } && {
16374 test -z "$ac_c_werror_flag" ||
16375 test ! -s conftest.err
16376 } && test -s conftest.$ac_objext; then
16377 ac_cv_have_decl_fdatasync=yes
16378 else
16379 echo "$as_me: failed program was:" >&5
16380 sed 's/^/| /' conftest.$ac_ext >&5
16382 ac_cv_have_decl_fdatasync=no
16385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16387 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
16388 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6; }
16389 if test $ac_cv_have_decl_fdatasync = yes; then
16391 cat >>confdefs.h <<_ACEOF
16392 #define HAVE_DECL_FDATASYNC 1
16393 _ACEOF
16396 else
16397 cat >>confdefs.h <<_ACEOF
16398 #define HAVE_DECL_FDATASYNC 0
16399 _ACEOF
16405 { echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
16406 echo $ECHO_N "checking whether posix_fadvise is declared... $ECHO_C" >&6; }
16407 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
16408 echo $ECHO_N "(cached) $ECHO_C" >&6
16409 else
16410 cat >conftest.$ac_ext <<_ACEOF
16411 /* confdefs.h. */
16412 _ACEOF
16413 cat confdefs.h >>conftest.$ac_ext
16414 cat >>conftest.$ac_ext <<_ACEOF
16415 /* end confdefs.h. */
16416 #include <fcntl.h>
16419 main ()
16421 #ifndef posix_fadvise
16422 (void) posix_fadvise;
16423 #endif
16426 return 0;
16428 _ACEOF
16429 rm -f conftest.$ac_objext
16430 if { (ac_try="$ac_compile"
16431 case "(($ac_try" in
16432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16433 *) ac_try_echo=$ac_try;;
16434 esac
16435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16436 (eval "$ac_compile") 2>conftest.er1
16437 ac_status=$?
16438 grep -v '^ *+' conftest.er1 >conftest.err
16439 rm -f conftest.er1
16440 cat conftest.err >&5
16441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442 (exit $ac_status); } && {
16443 test -z "$ac_c_werror_flag" ||
16444 test ! -s conftest.err
16445 } && test -s conftest.$ac_objext; then
16446 ac_cv_have_decl_posix_fadvise=yes
16447 else
16448 echo "$as_me: failed program was:" >&5
16449 sed 's/^/| /' conftest.$ac_ext >&5
16451 ac_cv_have_decl_posix_fadvise=no
16454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16456 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
16457 echo "${ECHO_T}$ac_cv_have_decl_posix_fadvise" >&6; }
16458 if test $ac_cv_have_decl_posix_fadvise = yes; then
16460 cat >>confdefs.h <<_ACEOF
16461 #define HAVE_DECL_POSIX_FADVISE 1
16462 _ACEOF
16465 else
16466 cat >>confdefs.h <<_ACEOF
16467 #define HAVE_DECL_POSIX_FADVISE 0
16468 _ACEOF
16474 { echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
16475 echo $ECHO_N "checking whether strlcat is declared... $ECHO_C" >&6; }
16476 if test "${ac_cv_have_decl_strlcat+set}" = set; then
16477 echo $ECHO_N "(cached) $ECHO_C" >&6
16478 else
16479 cat >conftest.$ac_ext <<_ACEOF
16480 /* confdefs.h. */
16481 _ACEOF
16482 cat confdefs.h >>conftest.$ac_ext
16483 cat >>conftest.$ac_ext <<_ACEOF
16484 /* end confdefs.h. */
16485 $ac_includes_default
16487 main ()
16489 #ifndef strlcat
16490 (void) strlcat;
16491 #endif
16494 return 0;
16496 _ACEOF
16497 rm -f conftest.$ac_objext
16498 if { (ac_try="$ac_compile"
16499 case "(($ac_try" in
16500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16501 *) ac_try_echo=$ac_try;;
16502 esac
16503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16504 (eval "$ac_compile") 2>conftest.er1
16505 ac_status=$?
16506 grep -v '^ *+' conftest.er1 >conftest.err
16507 rm -f conftest.er1
16508 cat conftest.err >&5
16509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); } && {
16511 test -z "$ac_c_werror_flag" ||
16512 test ! -s conftest.err
16513 } && test -s conftest.$ac_objext; then
16514 ac_cv_have_decl_strlcat=yes
16515 else
16516 echo "$as_me: failed program was:" >&5
16517 sed 's/^/| /' conftest.$ac_ext >&5
16519 ac_cv_have_decl_strlcat=no
16522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16524 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
16525 echo "${ECHO_T}$ac_cv_have_decl_strlcat" >&6; }
16526 if test $ac_cv_have_decl_strlcat = yes; then
16528 cat >>confdefs.h <<_ACEOF
16529 #define HAVE_DECL_STRLCAT 1
16530 _ACEOF
16533 else
16534 cat >>confdefs.h <<_ACEOF
16535 #define HAVE_DECL_STRLCAT 0
16536 _ACEOF
16540 { echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
16541 echo $ECHO_N "checking whether strlcpy is declared... $ECHO_C" >&6; }
16542 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
16543 echo $ECHO_N "(cached) $ECHO_C" >&6
16544 else
16545 cat >conftest.$ac_ext <<_ACEOF
16546 /* confdefs.h. */
16547 _ACEOF
16548 cat confdefs.h >>conftest.$ac_ext
16549 cat >>conftest.$ac_ext <<_ACEOF
16550 /* end confdefs.h. */
16551 $ac_includes_default
16553 main ()
16555 #ifndef strlcpy
16556 (void) strlcpy;
16557 #endif
16560 return 0;
16562 _ACEOF
16563 rm -f conftest.$ac_objext
16564 if { (ac_try="$ac_compile"
16565 case "(($ac_try" in
16566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16567 *) ac_try_echo=$ac_try;;
16568 esac
16569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16570 (eval "$ac_compile") 2>conftest.er1
16571 ac_status=$?
16572 grep -v '^ *+' conftest.er1 >conftest.err
16573 rm -f conftest.er1
16574 cat conftest.err >&5
16575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576 (exit $ac_status); } && {
16577 test -z "$ac_c_werror_flag" ||
16578 test ! -s conftest.err
16579 } && test -s conftest.$ac_objext; then
16580 ac_cv_have_decl_strlcpy=yes
16581 else
16582 echo "$as_me: failed program was:" >&5
16583 sed 's/^/| /' conftest.$ac_ext >&5
16585 ac_cv_have_decl_strlcpy=no
16588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16590 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
16591 echo "${ECHO_T}$ac_cv_have_decl_strlcpy" >&6; }
16592 if test $ac_cv_have_decl_strlcpy = yes; then
16594 cat >>confdefs.h <<_ACEOF
16595 #define HAVE_DECL_STRLCPY 1
16596 _ACEOF
16599 else
16600 cat >>confdefs.h <<_ACEOF
16601 #define HAVE_DECL_STRLCPY 0
16602 _ACEOF
16608 # This is probably only present on Darwin, but may as well check always
16609 { echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
16610 echo $ECHO_N "checking whether F_FULLFSYNC is declared... $ECHO_C" >&6; }
16611 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
16612 echo $ECHO_N "(cached) $ECHO_C" >&6
16613 else
16614 cat >conftest.$ac_ext <<_ACEOF
16615 /* confdefs.h. */
16616 _ACEOF
16617 cat confdefs.h >>conftest.$ac_ext
16618 cat >>conftest.$ac_ext <<_ACEOF
16619 /* end confdefs.h. */
16620 #include <fcntl.h>
16623 main ()
16625 #ifndef F_FULLFSYNC
16626 (void) F_FULLFSYNC;
16627 #endif
16630 return 0;
16632 _ACEOF
16633 rm -f conftest.$ac_objext
16634 if { (ac_try="$ac_compile"
16635 case "(($ac_try" in
16636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16637 *) ac_try_echo=$ac_try;;
16638 esac
16639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16640 (eval "$ac_compile") 2>conftest.er1
16641 ac_status=$?
16642 grep -v '^ *+' conftest.er1 >conftest.err
16643 rm -f conftest.er1
16644 cat conftest.err >&5
16645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646 (exit $ac_status); } && {
16647 test -z "$ac_c_werror_flag" ||
16648 test ! -s conftest.err
16649 } && test -s conftest.$ac_objext; then
16650 ac_cv_have_decl_F_FULLFSYNC=yes
16651 else
16652 echo "$as_me: failed program was:" >&5
16653 sed 's/^/| /' conftest.$ac_ext >&5
16655 ac_cv_have_decl_F_FULLFSYNC=no
16658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16660 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
16661 echo "${ECHO_T}$ac_cv_have_decl_F_FULLFSYNC" >&6; }
16662 if test $ac_cv_have_decl_F_FULLFSYNC = yes; then
16664 cat >>confdefs.h <<_ACEOF
16665 #define HAVE_DECL_F_FULLFSYNC 1
16666 _ACEOF
16669 else
16670 cat >>confdefs.h <<_ACEOF
16671 #define HAVE_DECL_F_FULLFSYNC 0
16672 _ACEOF
16679 HAVE_IPV6=no
16680 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
16681 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
16682 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
16683 echo $ECHO_N "(cached) $ECHO_C" >&6
16684 else
16685 cat >conftest.$ac_ext <<_ACEOF
16686 /* confdefs.h. */
16687 _ACEOF
16688 cat confdefs.h >>conftest.$ac_ext
16689 cat >>conftest.$ac_ext <<_ACEOF
16690 /* end confdefs.h. */
16691 $ac_includes_default
16692 #include <netinet/in.h>
16694 typedef struct sockaddr_in6 ac__type_new_;
16696 main ()
16698 if ((ac__type_new_ *) 0)
16699 return 0;
16700 if (sizeof (ac__type_new_))
16701 return 0;
16703 return 0;
16705 _ACEOF
16706 rm -f conftest.$ac_objext
16707 if { (ac_try="$ac_compile"
16708 case "(($ac_try" in
16709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16710 *) ac_try_echo=$ac_try;;
16711 esac
16712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16713 (eval "$ac_compile") 2>conftest.er1
16714 ac_status=$?
16715 grep -v '^ *+' conftest.er1 >conftest.err
16716 rm -f conftest.er1
16717 cat conftest.err >&5
16718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719 (exit $ac_status); } && {
16720 test -z "$ac_c_werror_flag" ||
16721 test ! -s conftest.err
16722 } && test -s conftest.$ac_objext; then
16723 ac_cv_type_struct_sockaddr_in6=yes
16724 else
16725 echo "$as_me: failed program was:" >&5
16726 sed 's/^/| /' conftest.$ac_ext >&5
16728 ac_cv_type_struct_sockaddr_in6=no
16731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16733 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
16734 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
16735 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
16737 cat >>confdefs.h <<\_ACEOF
16738 #define HAVE_IPV6 1
16739 _ACEOF
16741 HAVE_IPV6=yes
16746 { echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
16747 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6; }
16748 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
16749 echo $ECHO_N "(cached) $ECHO_C" >&6
16750 else
16751 cat >conftest.$ac_ext <<_ACEOF
16752 /* confdefs.h. */
16753 _ACEOF
16754 cat confdefs.h >>conftest.$ac_ext
16755 cat >>conftest.$ac_ext <<_ACEOF
16756 /* end confdefs.h. */
16757 #include <machine/vmparam.h>
16758 #include <sys/exec.h>
16761 main ()
16763 PS_STRINGS->ps_nargvstr = 1;
16764 PS_STRINGS->ps_argvstr = "foo";
16766 return 0;
16768 _ACEOF
16769 rm -f conftest.$ac_objext conftest$ac_exeext
16770 if { (ac_try="$ac_link"
16771 case "(($ac_try" in
16772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16773 *) ac_try_echo=$ac_try;;
16774 esac
16775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16776 (eval "$ac_link") 2>conftest.er1
16777 ac_status=$?
16778 grep -v '^ *+' conftest.er1 >conftest.err
16779 rm -f conftest.er1
16780 cat conftest.err >&5
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); } && {
16783 test -z "$ac_c_werror_flag" ||
16784 test ! -s conftest.err
16785 } && test -s conftest$ac_exeext &&
16786 $as_test_x conftest$ac_exeext; then
16787 pgac_cv_var_PS_STRINGS=yes
16788 else
16789 echo "$as_me: failed program was:" >&5
16790 sed 's/^/| /' conftest.$ac_ext >&5
16792 pgac_cv_var_PS_STRINGS=no
16795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16796 conftest$ac_exeext conftest.$ac_ext
16798 { echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
16799 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6; }
16800 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
16802 cat >>confdefs.h <<\_ACEOF
16803 #define HAVE_PS_STRINGS
16804 _ACEOF
16809 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
16810 # is missing. Yes, there are machines that have only one. We may
16811 # also decide to use snprintf.c if snprintf() is present but does not
16812 # have all the features we need --- see below.
16814 if test "$PORTNAME" = "win32"; then
16815 # Win32 gets snprintf.c built unconditionally.
16817 # To properly translate all NLS languages strings, we must support the
16818 # *printf() %$ format, which allows *printf() arguments to be selected
16819 # by position in the translated string.
16821 # libintl versions < 0.13 use the native *printf() functions, and Win32
16822 # *printf() doesn't understand %$, so we must use our /port versions,
16823 # which do understand %$. libintl versions >= 0.13 include their own
16824 # *printf versions on Win32. The libintl 0.13 release note text is:
16826 # C format strings with positions, as they arise when a translator
16827 # needs to reorder a sentence, are now supported on all platforms.
16828 # On those few platforms (NetBSD and Woe32) for which the native
16829 # printf()/fprintf()/... functions don't support such format
16830 # strings, replacements are provided through <libintl.h>.
16832 # We could use libintl >= 0.13's *printf() if we were sure that we had
16833 # a litint >= 0.13 at runtime, but seeing that there is no clean way
16834 # to guarantee that, it is best to just use our own, so we are sure to
16835 # get %$ support. In include/port.h we disable the *printf() macros
16836 # that might have been defined by libintl.
16838 # We do this unconditionally whether NLS is used or not so we are sure
16839 # that all Win32 libraries and binaries behave the same.
16840 pgac_need_repl_snprintf=yes
16841 else
16842 pgac_need_repl_snprintf=no
16844 for ac_func in snprintf
16846 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16847 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16849 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16850 echo $ECHO_N "(cached) $ECHO_C" >&6
16851 else
16852 cat >conftest.$ac_ext <<_ACEOF
16853 /* confdefs.h. */
16854 _ACEOF
16855 cat confdefs.h >>conftest.$ac_ext
16856 cat >>conftest.$ac_ext <<_ACEOF
16857 /* end confdefs.h. */
16858 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16860 #define $ac_func innocuous_$ac_func
16862 /* System header to define __stub macros and hopefully few prototypes,
16863 which can conflict with char $ac_func (); below.
16864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16865 <limits.h> exists even on freestanding compilers. */
16867 #ifdef __STDC__
16868 # include <limits.h>
16869 #else
16870 # include <assert.h>
16871 #endif
16873 #undef $ac_func
16875 /* Override any GCC internal prototype to avoid an error.
16876 Use char because int might match the return type of a GCC
16877 builtin and then its argument prototype would still apply. */
16878 #ifdef __cplusplus
16879 extern "C"
16880 #endif
16881 char $ac_func ();
16882 /* The GNU C library defines this for functions which it implements
16883 to always fail with ENOSYS. Some functions are actually named
16884 something starting with __ and the normal name is an alias. */
16885 #if defined __stub_$ac_func || defined __stub___$ac_func
16886 choke me
16887 #endif
16890 main ()
16892 return $ac_func ();
16894 return 0;
16896 _ACEOF
16897 rm -f conftest.$ac_objext conftest$ac_exeext
16898 if { (ac_try="$ac_link"
16899 case "(($ac_try" in
16900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16901 *) ac_try_echo=$ac_try;;
16902 esac
16903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16904 (eval "$ac_link") 2>conftest.er1
16905 ac_status=$?
16906 grep -v '^ *+' conftest.er1 >conftest.err
16907 rm -f conftest.er1
16908 cat conftest.err >&5
16909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910 (exit $ac_status); } && {
16911 test -z "$ac_c_werror_flag" ||
16912 test ! -s conftest.err
16913 } && test -s conftest$ac_exeext &&
16914 $as_test_x conftest$ac_exeext; then
16915 eval "$as_ac_var=yes"
16916 else
16917 echo "$as_me: failed program was:" >&5
16918 sed 's/^/| /' conftest.$ac_ext >&5
16920 eval "$as_ac_var=no"
16923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16924 conftest$ac_exeext conftest.$ac_ext
16926 ac_res=`eval echo '${'$as_ac_var'}'`
16927 { echo "$as_me:$LINENO: result: $ac_res" >&5
16928 echo "${ECHO_T}$ac_res" >&6; }
16929 if test `eval echo '${'$as_ac_var'}'` = yes; then
16930 cat >>confdefs.h <<_ACEOF
16931 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16932 _ACEOF
16934 else
16935 pgac_need_repl_snprintf=yes
16937 done
16940 for ac_func in vsnprintf
16942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16943 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16945 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16946 echo $ECHO_N "(cached) $ECHO_C" >&6
16947 else
16948 cat >conftest.$ac_ext <<_ACEOF
16949 /* confdefs.h. */
16950 _ACEOF
16951 cat confdefs.h >>conftest.$ac_ext
16952 cat >>conftest.$ac_ext <<_ACEOF
16953 /* end confdefs.h. */
16954 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16956 #define $ac_func innocuous_$ac_func
16958 /* System header to define __stub macros and hopefully few prototypes,
16959 which can conflict with char $ac_func (); below.
16960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16961 <limits.h> exists even on freestanding compilers. */
16963 #ifdef __STDC__
16964 # include <limits.h>
16965 #else
16966 # include <assert.h>
16967 #endif
16969 #undef $ac_func
16971 /* Override any GCC internal prototype to avoid an error.
16972 Use char because int might match the return type of a GCC
16973 builtin and then its argument prototype would still apply. */
16974 #ifdef __cplusplus
16975 extern "C"
16976 #endif
16977 char $ac_func ();
16978 /* The GNU C library defines this for functions which it implements
16979 to always fail with ENOSYS. Some functions are actually named
16980 something starting with __ and the normal name is an alias. */
16981 #if defined __stub_$ac_func || defined __stub___$ac_func
16982 choke me
16983 #endif
16986 main ()
16988 return $ac_func ();
16990 return 0;
16992 _ACEOF
16993 rm -f conftest.$ac_objext conftest$ac_exeext
16994 if { (ac_try="$ac_link"
16995 case "(($ac_try" in
16996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16997 *) ac_try_echo=$ac_try;;
16998 esac
16999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17000 (eval "$ac_link") 2>conftest.er1
17001 ac_status=$?
17002 grep -v '^ *+' conftest.er1 >conftest.err
17003 rm -f conftest.er1
17004 cat conftest.err >&5
17005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006 (exit $ac_status); } && {
17007 test -z "$ac_c_werror_flag" ||
17008 test ! -s conftest.err
17009 } && test -s conftest$ac_exeext &&
17010 $as_test_x conftest$ac_exeext; then
17011 eval "$as_ac_var=yes"
17012 else
17013 echo "$as_me: failed program was:" >&5
17014 sed 's/^/| /' conftest.$ac_ext >&5
17016 eval "$as_ac_var=no"
17019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17020 conftest$ac_exeext conftest.$ac_ext
17022 ac_res=`eval echo '${'$as_ac_var'}'`
17023 { echo "$as_me:$LINENO: result: $ac_res" >&5
17024 echo "${ECHO_T}$ac_res" >&6; }
17025 if test `eval echo '${'$as_ac_var'}'` = yes; then
17026 cat >>confdefs.h <<_ACEOF
17027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17028 _ACEOF
17030 else
17031 pgac_need_repl_snprintf=yes
17033 done
17038 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
17039 # include/c.h will provide declarations. Note this is a separate test
17040 # from whether the functions exist in the C library --- there are
17041 # systems that have the functions but don't bother to declare them :-(
17043 { echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
17044 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
17045 if test "${ac_cv_have_decl_snprintf+set}" = set; then
17046 echo $ECHO_N "(cached) $ECHO_C" >&6
17047 else
17048 cat >conftest.$ac_ext <<_ACEOF
17049 /* confdefs.h. */
17050 _ACEOF
17051 cat confdefs.h >>conftest.$ac_ext
17052 cat >>conftest.$ac_ext <<_ACEOF
17053 /* end confdefs.h. */
17054 $ac_includes_default
17056 main ()
17058 #ifndef snprintf
17059 (void) snprintf;
17060 #endif
17063 return 0;
17065 _ACEOF
17066 rm -f conftest.$ac_objext
17067 if { (ac_try="$ac_compile"
17068 case "(($ac_try" in
17069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17070 *) ac_try_echo=$ac_try;;
17071 esac
17072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17073 (eval "$ac_compile") 2>conftest.er1
17074 ac_status=$?
17075 grep -v '^ *+' conftest.er1 >conftest.err
17076 rm -f conftest.er1
17077 cat conftest.err >&5
17078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079 (exit $ac_status); } && {
17080 test -z "$ac_c_werror_flag" ||
17081 test ! -s conftest.err
17082 } && test -s conftest.$ac_objext; then
17083 ac_cv_have_decl_snprintf=yes
17084 else
17085 echo "$as_me: failed program was:" >&5
17086 sed 's/^/| /' conftest.$ac_ext >&5
17088 ac_cv_have_decl_snprintf=no
17091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17093 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
17094 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
17095 if test $ac_cv_have_decl_snprintf = yes; then
17097 cat >>confdefs.h <<_ACEOF
17098 #define HAVE_DECL_SNPRINTF 1
17099 _ACEOF
17102 else
17103 cat >>confdefs.h <<_ACEOF
17104 #define HAVE_DECL_SNPRINTF 0
17105 _ACEOF
17109 { echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
17110 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
17111 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
17112 echo $ECHO_N "(cached) $ECHO_C" >&6
17113 else
17114 cat >conftest.$ac_ext <<_ACEOF
17115 /* confdefs.h. */
17116 _ACEOF
17117 cat confdefs.h >>conftest.$ac_ext
17118 cat >>conftest.$ac_ext <<_ACEOF
17119 /* end confdefs.h. */
17120 $ac_includes_default
17122 main ()
17124 #ifndef vsnprintf
17125 (void) vsnprintf;
17126 #endif
17129 return 0;
17131 _ACEOF
17132 rm -f conftest.$ac_objext
17133 if { (ac_try="$ac_compile"
17134 case "(($ac_try" in
17135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17136 *) ac_try_echo=$ac_try;;
17137 esac
17138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17139 (eval "$ac_compile") 2>conftest.er1
17140 ac_status=$?
17141 grep -v '^ *+' conftest.er1 >conftest.err
17142 rm -f conftest.er1
17143 cat conftest.err >&5
17144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145 (exit $ac_status); } && {
17146 test -z "$ac_c_werror_flag" ||
17147 test ! -s conftest.err
17148 } && test -s conftest.$ac_objext; then
17149 ac_cv_have_decl_vsnprintf=yes
17150 else
17151 echo "$as_me: failed program was:" >&5
17152 sed 's/^/| /' conftest.$ac_ext >&5
17154 ac_cv_have_decl_vsnprintf=no
17157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17159 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
17160 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
17161 if test $ac_cv_have_decl_vsnprintf = yes; then
17163 cat >>confdefs.h <<_ACEOF
17164 #define HAVE_DECL_VSNPRINTF 1
17165 _ACEOF
17168 else
17169 cat >>confdefs.h <<_ACEOF
17170 #define HAVE_DECL_VSNPRINTF 0
17171 _ACEOF
17179 { echo "$as_me:$LINENO: checking for isinf" >&5
17180 echo $ECHO_N "checking for isinf... $ECHO_C" >&6; }
17181 if test "${ac_cv_func_isinf+set}" = set; then
17182 echo $ECHO_N "(cached) $ECHO_C" >&6
17183 else
17184 cat >conftest.$ac_ext <<_ACEOF
17185 /* confdefs.h. */
17186 _ACEOF
17187 cat confdefs.h >>conftest.$ac_ext
17188 cat >>conftest.$ac_ext <<_ACEOF
17189 /* end confdefs.h. */
17191 #include <math.h>
17192 double glob_double;
17195 main ()
17197 return isinf(glob_double) ? 0 : 1;
17199 return 0;
17201 _ACEOF
17202 rm -f conftest.$ac_objext conftest$ac_exeext
17203 if { (ac_try="$ac_link"
17204 case "(($ac_try" in
17205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17206 *) ac_try_echo=$ac_try;;
17207 esac
17208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17209 (eval "$ac_link") 2>conftest.er1
17210 ac_status=$?
17211 grep -v '^ *+' conftest.er1 >conftest.err
17212 rm -f conftest.er1
17213 cat conftest.err >&5
17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215 (exit $ac_status); } && {
17216 test -z "$ac_c_werror_flag" ||
17217 test ! -s conftest.err
17218 } && test -s conftest$ac_exeext &&
17219 $as_test_x conftest$ac_exeext; then
17220 ac_cv_func_isinf=yes
17221 else
17222 echo "$as_me: failed program was:" >&5
17223 sed 's/^/| /' conftest.$ac_ext >&5
17225 ac_cv_func_isinf=no
17228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17229 conftest$ac_exeext conftest.$ac_ext
17231 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
17232 echo "${ECHO_T}$ac_cv_func_isinf" >&6; }
17234 if test $ac_cv_func_isinf = yes ; then
17236 cat >>confdefs.h <<\_ACEOF
17237 #define HAVE_ISINF 1
17238 _ACEOF
17240 else
17241 case " $LIBOBJS " in
17242 *" isinf.$ac_objext "* ) ;;
17243 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
17245 esac
17247 # Look for a way to implement a substitute for isinf()
17252 for ac_func in fpclass fp_class fp_class_d class
17254 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17255 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17257 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17258 echo $ECHO_N "(cached) $ECHO_C" >&6
17259 else
17260 cat >conftest.$ac_ext <<_ACEOF
17261 /* confdefs.h. */
17262 _ACEOF
17263 cat confdefs.h >>conftest.$ac_ext
17264 cat >>conftest.$ac_ext <<_ACEOF
17265 /* end confdefs.h. */
17266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17268 #define $ac_func innocuous_$ac_func
17270 /* System header to define __stub macros and hopefully few prototypes,
17271 which can conflict with char $ac_func (); below.
17272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17273 <limits.h> exists even on freestanding compilers. */
17275 #ifdef __STDC__
17276 # include <limits.h>
17277 #else
17278 # include <assert.h>
17279 #endif
17281 #undef $ac_func
17283 /* Override any GCC internal prototype to avoid an error.
17284 Use char because int might match the return type of a GCC
17285 builtin and then its argument prototype would still apply. */
17286 #ifdef __cplusplus
17287 extern "C"
17288 #endif
17289 char $ac_func ();
17290 /* The GNU C library defines this for functions which it implements
17291 to always fail with ENOSYS. Some functions are actually named
17292 something starting with __ and the normal name is an alias. */
17293 #if defined __stub_$ac_func || defined __stub___$ac_func
17294 choke me
17295 #endif
17298 main ()
17300 return $ac_func ();
17302 return 0;
17304 _ACEOF
17305 rm -f conftest.$ac_objext conftest$ac_exeext
17306 if { (ac_try="$ac_link"
17307 case "(($ac_try" in
17308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17309 *) ac_try_echo=$ac_try;;
17310 esac
17311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17312 (eval "$ac_link") 2>conftest.er1
17313 ac_status=$?
17314 grep -v '^ *+' conftest.er1 >conftest.err
17315 rm -f conftest.er1
17316 cat conftest.err >&5
17317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318 (exit $ac_status); } && {
17319 test -z "$ac_c_werror_flag" ||
17320 test ! -s conftest.err
17321 } && test -s conftest$ac_exeext &&
17322 $as_test_x conftest$ac_exeext; then
17323 eval "$as_ac_var=yes"
17324 else
17325 echo "$as_me: failed program was:" >&5
17326 sed 's/^/| /' conftest.$ac_ext >&5
17328 eval "$as_ac_var=no"
17331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17332 conftest$ac_exeext conftest.$ac_ext
17334 ac_res=`eval echo '${'$as_ac_var'}'`
17335 { echo "$as_me:$LINENO: result: $ac_res" >&5
17336 echo "${ECHO_T}$ac_res" >&6; }
17337 if test `eval echo '${'$as_ac_var'}'` = yes; then
17338 cat >>confdefs.h <<_ACEOF
17339 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17340 _ACEOF
17341 break
17343 done
17347 # Some versions of libedit contain strlcpy(); so disregard that library while
17348 # checking for these standard libc functions.
17349 pgac_save_LIBS="$LIBS"
17350 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
17366 for ac_func in crypt getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul unsetenv
17368 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17369 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17371 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17372 echo $ECHO_N "(cached) $ECHO_C" >&6
17373 else
17374 cat >conftest.$ac_ext <<_ACEOF
17375 /* confdefs.h. */
17376 _ACEOF
17377 cat confdefs.h >>conftest.$ac_ext
17378 cat >>conftest.$ac_ext <<_ACEOF
17379 /* end confdefs.h. */
17380 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17382 #define $ac_func innocuous_$ac_func
17384 /* System header to define __stub macros and hopefully few prototypes,
17385 which can conflict with char $ac_func (); below.
17386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17387 <limits.h> exists even on freestanding compilers. */
17389 #ifdef __STDC__
17390 # include <limits.h>
17391 #else
17392 # include <assert.h>
17393 #endif
17395 #undef $ac_func
17397 /* Override any GCC internal prototype to avoid an error.
17398 Use char because int might match the return type of a GCC
17399 builtin and then its argument prototype would still apply. */
17400 #ifdef __cplusplus
17401 extern "C"
17402 #endif
17403 char $ac_func ();
17404 /* The GNU C library defines this for functions which it implements
17405 to always fail with ENOSYS. Some functions are actually named
17406 something starting with __ and the normal name is an alias. */
17407 #if defined __stub_$ac_func || defined __stub___$ac_func
17408 choke me
17409 #endif
17412 main ()
17414 return $ac_func ();
17416 return 0;
17418 _ACEOF
17419 rm -f conftest.$ac_objext conftest$ac_exeext
17420 if { (ac_try="$ac_link"
17421 case "(($ac_try" in
17422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17423 *) ac_try_echo=$ac_try;;
17424 esac
17425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17426 (eval "$ac_link") 2>conftest.er1
17427 ac_status=$?
17428 grep -v '^ *+' conftest.er1 >conftest.err
17429 rm -f conftest.er1
17430 cat conftest.err >&5
17431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432 (exit $ac_status); } && {
17433 test -z "$ac_c_werror_flag" ||
17434 test ! -s conftest.err
17435 } && test -s conftest$ac_exeext &&
17436 $as_test_x conftest$ac_exeext; then
17437 eval "$as_ac_var=yes"
17438 else
17439 echo "$as_me: failed program was:" >&5
17440 sed 's/^/| /' conftest.$ac_ext >&5
17442 eval "$as_ac_var=no"
17445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17446 conftest$ac_exeext conftest.$ac_ext
17448 ac_res=`eval echo '${'$as_ac_var'}'`
17449 { echo "$as_me:$LINENO: result: $ac_res" >&5
17450 echo "${ECHO_T}$ac_res" >&6; }
17451 if test `eval echo '${'$as_ac_var'}'` = yes; then
17452 cat >>confdefs.h <<_ACEOF
17453 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17454 _ACEOF
17456 else
17457 case " $LIBOBJS " in
17458 *" $ac_func.$ac_objext "* ) ;;
17459 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17461 esac
17464 done
17468 LIBS="$pgac_save_LIBS"
17470 # System's version of getaddrinfo(), if any, may be used only if we found
17471 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
17472 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
17473 # versions of getaddrinfo don't follow normal C call protocol. This is OK
17474 # because we want to use our own getaddrinfo.c on Windows anyway.)
17475 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
17477 for ac_func in getaddrinfo
17479 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17480 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17481 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17482 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17483 echo $ECHO_N "(cached) $ECHO_C" >&6
17484 else
17485 cat >conftest.$ac_ext <<_ACEOF
17486 /* confdefs.h. */
17487 _ACEOF
17488 cat confdefs.h >>conftest.$ac_ext
17489 cat >>conftest.$ac_ext <<_ACEOF
17490 /* end confdefs.h. */
17491 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17493 #define $ac_func innocuous_$ac_func
17495 /* System header to define __stub macros and hopefully few prototypes,
17496 which can conflict with char $ac_func (); below.
17497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17498 <limits.h> exists even on freestanding compilers. */
17500 #ifdef __STDC__
17501 # include <limits.h>
17502 #else
17503 # include <assert.h>
17504 #endif
17506 #undef $ac_func
17508 /* Override any GCC internal prototype to avoid an error.
17509 Use char because int might match the return type of a GCC
17510 builtin and then its argument prototype would still apply. */
17511 #ifdef __cplusplus
17512 extern "C"
17513 #endif
17514 char $ac_func ();
17515 /* The GNU C library defines this for functions which it implements
17516 to always fail with ENOSYS. Some functions are actually named
17517 something starting with __ and the normal name is an alias. */
17518 #if defined __stub_$ac_func || defined __stub___$ac_func
17519 choke me
17520 #endif
17523 main ()
17525 return $ac_func ();
17527 return 0;
17529 _ACEOF
17530 rm -f conftest.$ac_objext conftest$ac_exeext
17531 if { (ac_try="$ac_link"
17532 case "(($ac_try" in
17533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17534 *) ac_try_echo=$ac_try;;
17535 esac
17536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17537 (eval "$ac_link") 2>conftest.er1
17538 ac_status=$?
17539 grep -v '^ *+' conftest.er1 >conftest.err
17540 rm -f conftest.er1
17541 cat conftest.err >&5
17542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17543 (exit $ac_status); } && {
17544 test -z "$ac_c_werror_flag" ||
17545 test ! -s conftest.err
17546 } && test -s conftest$ac_exeext &&
17547 $as_test_x conftest$ac_exeext; then
17548 eval "$as_ac_var=yes"
17549 else
17550 echo "$as_me: failed program was:" >&5
17551 sed 's/^/| /' conftest.$ac_ext >&5
17553 eval "$as_ac_var=no"
17556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17557 conftest$ac_exeext conftest.$ac_ext
17559 ac_res=`eval echo '${'$as_ac_var'}'`
17560 { echo "$as_me:$LINENO: result: $ac_res" >&5
17561 echo "${ECHO_T}$ac_res" >&6; }
17562 if test `eval echo '${'$as_ac_var'}'` = yes; then
17563 cat >>confdefs.h <<_ACEOF
17564 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17565 _ACEOF
17567 else
17568 case " $LIBOBJS " in
17569 *" $ac_func.$ac_objext "* ) ;;
17570 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17572 esac
17575 done
17578 else
17579 case " $LIBOBJS " in
17580 *" getaddrinfo.$ac_objext "* ) ;;
17581 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
17583 esac
17587 # Similarly, use system's getopt_long() only if system provides struct option.
17588 # Solaris' getopt() doesn't do what we want for long options, so always use
17589 # our versions on that platform.
17590 if test "$PORTNAME" = "solaris"; then
17591 case " $LIBOBJS " in
17592 *" getopt.$ac_objext "* ) ;;
17593 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
17595 esac
17597 case " $LIBOBJS " in
17598 *" getopt_long.$ac_objext "* ) ;;
17599 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
17601 esac
17603 elif test x"$ac_cv_type_struct_option" = xyes ; then
17605 for ac_func in getopt_long
17607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17608 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17610 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17611 echo $ECHO_N "(cached) $ECHO_C" >&6
17612 else
17613 cat >conftest.$ac_ext <<_ACEOF
17614 /* confdefs.h. */
17615 _ACEOF
17616 cat confdefs.h >>conftest.$ac_ext
17617 cat >>conftest.$ac_ext <<_ACEOF
17618 /* end confdefs.h. */
17619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17621 #define $ac_func innocuous_$ac_func
17623 /* System header to define __stub macros and hopefully few prototypes,
17624 which can conflict with char $ac_func (); below.
17625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17626 <limits.h> exists even on freestanding compilers. */
17628 #ifdef __STDC__
17629 # include <limits.h>
17630 #else
17631 # include <assert.h>
17632 #endif
17634 #undef $ac_func
17636 /* Override any GCC internal prototype to avoid an error.
17637 Use char because int might match the return type of a GCC
17638 builtin and then its argument prototype would still apply. */
17639 #ifdef __cplusplus
17640 extern "C"
17641 #endif
17642 char $ac_func ();
17643 /* The GNU C library defines this for functions which it implements
17644 to always fail with ENOSYS. Some functions are actually named
17645 something starting with __ and the normal name is an alias. */
17646 #if defined __stub_$ac_func || defined __stub___$ac_func
17647 choke me
17648 #endif
17651 main ()
17653 return $ac_func ();
17655 return 0;
17657 _ACEOF
17658 rm -f conftest.$ac_objext conftest$ac_exeext
17659 if { (ac_try="$ac_link"
17660 case "(($ac_try" in
17661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17662 *) ac_try_echo=$ac_try;;
17663 esac
17664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17665 (eval "$ac_link") 2>conftest.er1
17666 ac_status=$?
17667 grep -v '^ *+' conftest.er1 >conftest.err
17668 rm -f conftest.er1
17669 cat conftest.err >&5
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); } && {
17672 test -z "$ac_c_werror_flag" ||
17673 test ! -s conftest.err
17674 } && test -s conftest$ac_exeext &&
17675 $as_test_x conftest$ac_exeext; then
17676 eval "$as_ac_var=yes"
17677 else
17678 echo "$as_me: failed program was:" >&5
17679 sed 's/^/| /' conftest.$ac_ext >&5
17681 eval "$as_ac_var=no"
17684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17685 conftest$ac_exeext conftest.$ac_ext
17687 ac_res=`eval echo '${'$as_ac_var'}'`
17688 { echo "$as_me:$LINENO: result: $ac_res" >&5
17689 echo "${ECHO_T}$ac_res" >&6; }
17690 if test `eval echo '${'$as_ac_var'}'` = yes; then
17691 cat >>confdefs.h <<_ACEOF
17692 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17693 _ACEOF
17695 else
17696 case " $LIBOBJS " in
17697 *" $ac_func.$ac_objext "* ) ;;
17698 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17700 esac
17703 done
17706 else
17707 case " $LIBOBJS " in
17708 *" getopt_long.$ac_objext "* ) ;;
17709 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
17711 esac
17715 # Win32 support
17716 if test "$PORTNAME" = "win32"; then
17718 for ac_func in gettimeofday
17720 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17721 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17723 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17724 echo $ECHO_N "(cached) $ECHO_C" >&6
17725 else
17726 cat >conftest.$ac_ext <<_ACEOF
17727 /* confdefs.h. */
17728 _ACEOF
17729 cat confdefs.h >>conftest.$ac_ext
17730 cat >>conftest.$ac_ext <<_ACEOF
17731 /* end confdefs.h. */
17732 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17734 #define $ac_func innocuous_$ac_func
17736 /* System header to define __stub macros and hopefully few prototypes,
17737 which can conflict with char $ac_func (); below.
17738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17739 <limits.h> exists even on freestanding compilers. */
17741 #ifdef __STDC__
17742 # include <limits.h>
17743 #else
17744 # include <assert.h>
17745 #endif
17747 #undef $ac_func
17749 /* Override any GCC internal prototype to avoid an error.
17750 Use char because int might match the return type of a GCC
17751 builtin and then its argument prototype would still apply. */
17752 #ifdef __cplusplus
17753 extern "C"
17754 #endif
17755 char $ac_func ();
17756 /* The GNU C library defines this for functions which it implements
17757 to always fail with ENOSYS. Some functions are actually named
17758 something starting with __ and the normal name is an alias. */
17759 #if defined __stub_$ac_func || defined __stub___$ac_func
17760 choke me
17761 #endif
17764 main ()
17766 return $ac_func ();
17768 return 0;
17770 _ACEOF
17771 rm -f conftest.$ac_objext conftest$ac_exeext
17772 if { (ac_try="$ac_link"
17773 case "(($ac_try" in
17774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17775 *) ac_try_echo=$ac_try;;
17776 esac
17777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17778 (eval "$ac_link") 2>conftest.er1
17779 ac_status=$?
17780 grep -v '^ *+' conftest.er1 >conftest.err
17781 rm -f conftest.er1
17782 cat conftest.err >&5
17783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784 (exit $ac_status); } && {
17785 test -z "$ac_c_werror_flag" ||
17786 test ! -s conftest.err
17787 } && test -s conftest$ac_exeext &&
17788 $as_test_x conftest$ac_exeext; then
17789 eval "$as_ac_var=yes"
17790 else
17791 echo "$as_me: failed program was:" >&5
17792 sed 's/^/| /' conftest.$ac_ext >&5
17794 eval "$as_ac_var=no"
17797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17798 conftest$ac_exeext conftest.$ac_ext
17800 ac_res=`eval echo '${'$as_ac_var'}'`
17801 { echo "$as_me:$LINENO: result: $ac_res" >&5
17802 echo "${ECHO_T}$ac_res" >&6; }
17803 if test `eval echo '${'$as_ac_var'}'` = yes; then
17804 cat >>confdefs.h <<_ACEOF
17805 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17806 _ACEOF
17808 else
17809 case " $LIBOBJS " in
17810 *" $ac_func.$ac_objext "* ) ;;
17811 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17813 esac
17816 done
17819 case " $LIBOBJS " in
17820 *" kill.$ac_objext "* ) ;;
17821 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
17823 esac
17825 case " $LIBOBJS " in
17826 *" open.$ac_objext "* ) ;;
17827 *) LIBOBJS="$LIBOBJS open.$ac_objext"
17829 esac
17831 case " $LIBOBJS " in
17832 *" rand.$ac_objext "* ) ;;
17833 *) LIBOBJS="$LIBOBJS rand.$ac_objext"
17835 esac
17837 case " $LIBOBJS " in
17838 *" win32error.$ac_objext "* ) ;;
17839 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
17841 esac
17844 cat >>confdefs.h <<\_ACEOF
17845 #define HAVE_SYMLINK 1
17846 _ACEOF
17850 if test "$with_readline" = yes; then
17851 { echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
17852 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6; }
17853 cat >conftest.$ac_ext <<_ACEOF
17854 /* confdefs.h. */
17855 _ACEOF
17856 cat confdefs.h >>conftest.$ac_ext
17857 cat >>conftest.$ac_ext <<_ACEOF
17858 /* end confdefs.h. */
17859 #include <stdio.h>
17860 #ifdef HAVE_READLINE_READLINE_H
17861 # include <readline/readline.h>
17862 #elif defined(HAVE_READLINE_H)
17863 # include <readline.h>
17864 #endif
17867 main ()
17869 rl_completion_append_character = 'x';
17871 return 0;
17873 _ACEOF
17874 rm -f conftest.$ac_objext conftest$ac_exeext
17875 if { (ac_try="$ac_link"
17876 case "(($ac_try" in
17877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17878 *) ac_try_echo=$ac_try;;
17879 esac
17880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17881 (eval "$ac_link") 2>conftest.er1
17882 ac_status=$?
17883 grep -v '^ *+' conftest.er1 >conftest.err
17884 rm -f conftest.er1
17885 cat conftest.err >&5
17886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17887 (exit $ac_status); } && {
17888 test -z "$ac_c_werror_flag" ||
17889 test ! -s conftest.err
17890 } && test -s conftest$ac_exeext &&
17891 $as_test_x conftest$ac_exeext; then
17892 { echo "$as_me:$LINENO: result: yes" >&5
17893 echo "${ECHO_T}yes" >&6; }
17895 cat >>confdefs.h <<\_ACEOF
17896 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
17897 _ACEOF
17899 else
17900 echo "$as_me: failed program was:" >&5
17901 sed 's/^/| /' conftest.$ac_ext >&5
17903 { echo "$as_me:$LINENO: result: no" >&5
17904 echo "${ECHO_T}no" >&6; }
17907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17908 conftest$ac_exeext conftest.$ac_ext
17911 for ac_func in rl_completion_matches rl_filename_completion_function
17913 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17914 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17915 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17916 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17917 echo $ECHO_N "(cached) $ECHO_C" >&6
17918 else
17919 cat >conftest.$ac_ext <<_ACEOF
17920 /* confdefs.h. */
17921 _ACEOF
17922 cat confdefs.h >>conftest.$ac_ext
17923 cat >>conftest.$ac_ext <<_ACEOF
17924 /* end confdefs.h. */
17925 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17927 #define $ac_func innocuous_$ac_func
17929 /* System header to define __stub macros and hopefully few prototypes,
17930 which can conflict with char $ac_func (); below.
17931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17932 <limits.h> exists even on freestanding compilers. */
17934 #ifdef __STDC__
17935 # include <limits.h>
17936 #else
17937 # include <assert.h>
17938 #endif
17940 #undef $ac_func
17942 /* Override any GCC internal prototype to avoid an error.
17943 Use char because int might match the return type of a GCC
17944 builtin and then its argument prototype would still apply. */
17945 #ifdef __cplusplus
17946 extern "C"
17947 #endif
17948 char $ac_func ();
17949 /* The GNU C library defines this for functions which it implements
17950 to always fail with ENOSYS. Some functions are actually named
17951 something starting with __ and the normal name is an alias. */
17952 #if defined __stub_$ac_func || defined __stub___$ac_func
17953 choke me
17954 #endif
17957 main ()
17959 return $ac_func ();
17961 return 0;
17963 _ACEOF
17964 rm -f conftest.$ac_objext conftest$ac_exeext
17965 if { (ac_try="$ac_link"
17966 case "(($ac_try" in
17967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17968 *) ac_try_echo=$ac_try;;
17969 esac
17970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17971 (eval "$ac_link") 2>conftest.er1
17972 ac_status=$?
17973 grep -v '^ *+' conftest.er1 >conftest.err
17974 rm -f conftest.er1
17975 cat conftest.err >&5
17976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977 (exit $ac_status); } && {
17978 test -z "$ac_c_werror_flag" ||
17979 test ! -s conftest.err
17980 } && test -s conftest$ac_exeext &&
17981 $as_test_x conftest$ac_exeext; then
17982 eval "$as_ac_var=yes"
17983 else
17984 echo "$as_me: failed program was:" >&5
17985 sed 's/^/| /' conftest.$ac_ext >&5
17987 eval "$as_ac_var=no"
17990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17991 conftest$ac_exeext conftest.$ac_ext
17993 ac_res=`eval echo '${'$as_ac_var'}'`
17994 { echo "$as_me:$LINENO: result: $ac_res" >&5
17995 echo "${ECHO_T}$ac_res" >&6; }
17996 if test `eval echo '${'$as_ac_var'}'` = yes; then
17997 cat >>confdefs.h <<_ACEOF
17998 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17999 _ACEOF
18002 done
18005 for ac_func in replace_history_entry
18007 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18008 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18009 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18010 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18011 echo $ECHO_N "(cached) $ECHO_C" >&6
18012 else
18013 cat >conftest.$ac_ext <<_ACEOF
18014 /* confdefs.h. */
18015 _ACEOF
18016 cat confdefs.h >>conftest.$ac_ext
18017 cat >>conftest.$ac_ext <<_ACEOF
18018 /* end confdefs.h. */
18019 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18021 #define $ac_func innocuous_$ac_func
18023 /* System header to define __stub macros and hopefully few prototypes,
18024 which can conflict with char $ac_func (); below.
18025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18026 <limits.h> exists even on freestanding compilers. */
18028 #ifdef __STDC__
18029 # include <limits.h>
18030 #else
18031 # include <assert.h>
18032 #endif
18034 #undef $ac_func
18036 /* Override any GCC internal prototype to avoid an error.
18037 Use char because int might match the return type of a GCC
18038 builtin and then its argument prototype would still apply. */
18039 #ifdef __cplusplus
18040 extern "C"
18041 #endif
18042 char $ac_func ();
18043 /* The GNU C library defines this for functions which it implements
18044 to always fail with ENOSYS. Some functions are actually named
18045 something starting with __ and the normal name is an alias. */
18046 #if defined __stub_$ac_func || defined __stub___$ac_func
18047 choke me
18048 #endif
18051 main ()
18053 return $ac_func ();
18055 return 0;
18057 _ACEOF
18058 rm -f conftest.$ac_objext conftest$ac_exeext
18059 if { (ac_try="$ac_link"
18060 case "(($ac_try" in
18061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18062 *) ac_try_echo=$ac_try;;
18063 esac
18064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18065 (eval "$ac_link") 2>conftest.er1
18066 ac_status=$?
18067 grep -v '^ *+' conftest.er1 >conftest.err
18068 rm -f conftest.er1
18069 cat conftest.err >&5
18070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18071 (exit $ac_status); } && {
18072 test -z "$ac_c_werror_flag" ||
18073 test ! -s conftest.err
18074 } && test -s conftest$ac_exeext &&
18075 $as_test_x conftest$ac_exeext; then
18076 eval "$as_ac_var=yes"
18077 else
18078 echo "$as_me: failed program was:" >&5
18079 sed 's/^/| /' conftest.$ac_ext >&5
18081 eval "$as_ac_var=no"
18084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18085 conftest$ac_exeext conftest.$ac_ext
18087 ac_res=`eval echo '${'$as_ac_var'}'`
18088 { echo "$as_me:$LINENO: result: $ac_res" >&5
18089 echo "${ECHO_T}$ac_res" >&6; }
18090 if test `eval echo '${'$as_ac_var'}'` = yes; then
18091 cat >>confdefs.h <<_ACEOF
18092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18093 _ACEOF
18096 done
18101 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
18102 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
18103 cat >conftest.$ac_ext <<_ACEOF
18104 /* confdefs.h. */
18105 _ACEOF
18106 cat confdefs.h >>conftest.$ac_ext
18107 cat >>conftest.$ac_ext <<_ACEOF
18108 /* end confdefs.h. */
18109 #include <setjmp.h>
18111 main ()
18113 sigjmp_buf x; sigsetjmp(x, 1);
18115 return 0;
18117 _ACEOF
18118 rm -f conftest.$ac_objext conftest$ac_exeext
18119 if { (ac_try="$ac_link"
18120 case "(($ac_try" in
18121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18122 *) ac_try_echo=$ac_try;;
18123 esac
18124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18125 (eval "$ac_link") 2>conftest.er1
18126 ac_status=$?
18127 grep -v '^ *+' conftest.er1 >conftest.err
18128 rm -f conftest.er1
18129 cat conftest.err >&5
18130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131 (exit $ac_status); } && {
18132 test -z "$ac_c_werror_flag" ||
18133 test ! -s conftest.err
18134 } && test -s conftest$ac_exeext &&
18135 $as_test_x conftest$ac_exeext; then
18137 cat >>confdefs.h <<\_ACEOF
18138 #define HAVE_SIGSETJMP 1
18139 _ACEOF
18141 { echo "$as_me:$LINENO: result: yes" >&5
18142 echo "${ECHO_T}yes" >&6; }
18143 else
18144 echo "$as_me: failed program was:" >&5
18145 sed 's/^/| /' conftest.$ac_ext >&5
18147 { echo "$as_me:$LINENO: result: no" >&5
18148 echo "${ECHO_T}no" >&6; }
18151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18152 conftest$ac_exeext conftest.$ac_ext
18154 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
18155 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
18156 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
18157 echo $ECHO_N "(cached) $ECHO_C" >&6
18158 else
18159 cat >conftest.$ac_ext <<_ACEOF
18160 /* confdefs.h. */
18161 _ACEOF
18162 cat confdefs.h >>conftest.$ac_ext
18163 cat >>conftest.$ac_ext <<_ACEOF
18164 /* end confdefs.h. */
18165 #include <signal.h>
18166 /* NetBSD declares sys_siglist in unistd.h. */
18167 #ifdef HAVE_UNISTD_H
18168 # include <unistd.h>
18169 #endif
18173 main ()
18175 #ifndef sys_siglist
18176 (void) sys_siglist;
18177 #endif
18180 return 0;
18182 _ACEOF
18183 rm -f conftest.$ac_objext
18184 if { (ac_try="$ac_compile"
18185 case "(($ac_try" in
18186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18187 *) ac_try_echo=$ac_try;;
18188 esac
18189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18190 (eval "$ac_compile") 2>conftest.er1
18191 ac_status=$?
18192 grep -v '^ *+' conftest.er1 >conftest.err
18193 rm -f conftest.er1
18194 cat conftest.err >&5
18195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196 (exit $ac_status); } && {
18197 test -z "$ac_c_werror_flag" ||
18198 test ! -s conftest.err
18199 } && test -s conftest.$ac_objext; then
18200 ac_cv_have_decl_sys_siglist=yes
18201 else
18202 echo "$as_me: failed program was:" >&5
18203 sed 's/^/| /' conftest.$ac_ext >&5
18205 ac_cv_have_decl_sys_siglist=no
18208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18210 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
18211 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
18212 if test $ac_cv_have_decl_sys_siglist = yes; then
18214 cat >>confdefs.h <<_ACEOF
18215 #define HAVE_DECL_SYS_SIGLIST 1
18216 _ACEOF
18219 else
18220 cat >>confdefs.h <<_ACEOF
18221 #define HAVE_DECL_SYS_SIGLIST 0
18222 _ACEOF
18230 { echo "$as_me:$LINENO: checking for syslog" >&5
18231 echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
18232 if test "${ac_cv_func_syslog+set}" = set; then
18233 echo $ECHO_N "(cached) $ECHO_C" >&6
18234 else
18235 cat >conftest.$ac_ext <<_ACEOF
18236 /* confdefs.h. */
18237 _ACEOF
18238 cat confdefs.h >>conftest.$ac_ext
18239 cat >>conftest.$ac_ext <<_ACEOF
18240 /* end confdefs.h. */
18241 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
18242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18243 #define syslog innocuous_syslog
18245 /* System header to define __stub macros and hopefully few prototypes,
18246 which can conflict with char syslog (); below.
18247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18248 <limits.h> exists even on freestanding compilers. */
18250 #ifdef __STDC__
18251 # include <limits.h>
18252 #else
18253 # include <assert.h>
18254 #endif
18256 #undef syslog
18258 /* Override any GCC internal prototype to avoid an error.
18259 Use char because int might match the return type of a GCC
18260 builtin and then its argument prototype would still apply. */
18261 #ifdef __cplusplus
18262 extern "C"
18263 #endif
18264 char syslog ();
18265 /* The GNU C library defines this for functions which it implements
18266 to always fail with ENOSYS. Some functions are actually named
18267 something starting with __ and the normal name is an alias. */
18268 #if defined __stub_syslog || defined __stub___syslog
18269 choke me
18270 #endif
18273 main ()
18275 return syslog ();
18277 return 0;
18279 _ACEOF
18280 rm -f conftest.$ac_objext conftest$ac_exeext
18281 if { (ac_try="$ac_link"
18282 case "(($ac_try" in
18283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18284 *) ac_try_echo=$ac_try;;
18285 esac
18286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18287 (eval "$ac_link") 2>conftest.er1
18288 ac_status=$?
18289 grep -v '^ *+' conftest.er1 >conftest.err
18290 rm -f conftest.er1
18291 cat conftest.err >&5
18292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293 (exit $ac_status); } && {
18294 test -z "$ac_c_werror_flag" ||
18295 test ! -s conftest.err
18296 } && test -s conftest$ac_exeext &&
18297 $as_test_x conftest$ac_exeext; then
18298 ac_cv_func_syslog=yes
18299 else
18300 echo "$as_me: failed program was:" >&5
18301 sed 's/^/| /' conftest.$ac_ext >&5
18303 ac_cv_func_syslog=no
18306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18307 conftest$ac_exeext conftest.$ac_ext
18309 { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
18310 echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
18311 if test $ac_cv_func_syslog = yes; then
18312 if test "${ac_cv_header_syslog_h+set}" = set; then
18313 { echo "$as_me:$LINENO: checking for syslog.h" >&5
18314 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
18315 if test "${ac_cv_header_syslog_h+set}" = set; then
18316 echo $ECHO_N "(cached) $ECHO_C" >&6
18318 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
18319 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
18320 else
18321 # Is the header compilable?
18322 { echo "$as_me:$LINENO: checking syslog.h usability" >&5
18323 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6; }
18324 cat >conftest.$ac_ext <<_ACEOF
18325 /* confdefs.h. */
18326 _ACEOF
18327 cat confdefs.h >>conftest.$ac_ext
18328 cat >>conftest.$ac_ext <<_ACEOF
18329 /* end confdefs.h. */
18330 $ac_includes_default
18331 #include <syslog.h>
18332 _ACEOF
18333 rm -f conftest.$ac_objext
18334 if { (ac_try="$ac_compile"
18335 case "(($ac_try" in
18336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18337 *) ac_try_echo=$ac_try;;
18338 esac
18339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18340 (eval "$ac_compile") 2>conftest.er1
18341 ac_status=$?
18342 grep -v '^ *+' conftest.er1 >conftest.err
18343 rm -f conftest.er1
18344 cat conftest.err >&5
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); } && {
18347 test -z "$ac_c_werror_flag" ||
18348 test ! -s conftest.err
18349 } && test -s conftest.$ac_objext; then
18350 ac_header_compiler=yes
18351 else
18352 echo "$as_me: failed program was:" >&5
18353 sed 's/^/| /' conftest.$ac_ext >&5
18355 ac_header_compiler=no
18358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18359 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18360 echo "${ECHO_T}$ac_header_compiler" >&6; }
18362 # Is the header present?
18363 { echo "$as_me:$LINENO: checking syslog.h presence" >&5
18364 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6; }
18365 cat >conftest.$ac_ext <<_ACEOF
18366 /* confdefs.h. */
18367 _ACEOF
18368 cat confdefs.h >>conftest.$ac_ext
18369 cat >>conftest.$ac_ext <<_ACEOF
18370 /* end confdefs.h. */
18371 #include <syslog.h>
18372 _ACEOF
18373 if { (ac_try="$ac_cpp conftest.$ac_ext"
18374 case "(($ac_try" in
18375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18376 *) ac_try_echo=$ac_try;;
18377 esac
18378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18379 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18380 ac_status=$?
18381 grep -v '^ *+' conftest.er1 >conftest.err
18382 rm -f conftest.er1
18383 cat conftest.err >&5
18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385 (exit $ac_status); } >/dev/null && {
18386 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18387 test ! -s conftest.err
18388 }; then
18389 ac_header_preproc=yes
18390 else
18391 echo "$as_me: failed program was:" >&5
18392 sed 's/^/| /' conftest.$ac_ext >&5
18394 ac_header_preproc=no
18397 rm -f conftest.err conftest.$ac_ext
18398 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18399 echo "${ECHO_T}$ac_header_preproc" >&6; }
18401 # So? What about this header?
18402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18403 yes:no: )
18404 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
18405 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18406 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
18407 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
18408 ac_header_preproc=yes
18410 no:yes:* )
18411 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
18412 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
18413 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
18414 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
18415 { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
18416 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
18417 { echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
18418 echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
18419 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
18420 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
18421 { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
18422 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
18423 ( cat <<\_ASBOX
18424 ## ---------------------------------------- ##
18425 ## Report this to pgsql-bugs@postgresql.org ##
18426 ## ---------------------------------------- ##
18427 _ASBOX
18428 ) | sed "s/^/$as_me: WARNING: /" >&2
18430 esac
18431 { echo "$as_me:$LINENO: checking for syslog.h" >&5
18432 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
18433 if test "${ac_cv_header_syslog_h+set}" = set; then
18434 echo $ECHO_N "(cached) $ECHO_C" >&6
18435 else
18436 ac_cv_header_syslog_h=$ac_header_preproc
18438 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
18439 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
18442 if test $ac_cv_header_syslog_h = yes; then
18444 cat >>confdefs.h <<\_ACEOF
18445 #define HAVE_SYSLOG 1
18446 _ACEOF
18454 { echo "$as_me:$LINENO: checking for optreset" >&5
18455 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
18456 if test "${pgac_cv_var_int_optreset+set}" = set; then
18457 echo $ECHO_N "(cached) $ECHO_C" >&6
18458 else
18459 cat >conftest.$ac_ext <<_ACEOF
18460 /* confdefs.h. */
18461 _ACEOF
18462 cat confdefs.h >>conftest.$ac_ext
18463 cat >>conftest.$ac_ext <<_ACEOF
18464 /* end confdefs.h. */
18465 #include <unistd.h>
18467 main ()
18469 extern int optreset; optreset = 1;
18471 return 0;
18473 _ACEOF
18474 rm -f conftest.$ac_objext conftest$ac_exeext
18475 if { (ac_try="$ac_link"
18476 case "(($ac_try" in
18477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18478 *) ac_try_echo=$ac_try;;
18479 esac
18480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18481 (eval "$ac_link") 2>conftest.er1
18482 ac_status=$?
18483 grep -v '^ *+' conftest.er1 >conftest.err
18484 rm -f conftest.er1
18485 cat conftest.err >&5
18486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487 (exit $ac_status); } && {
18488 test -z "$ac_c_werror_flag" ||
18489 test ! -s conftest.err
18490 } && test -s conftest$ac_exeext &&
18491 $as_test_x conftest$ac_exeext; then
18492 pgac_cv_var_int_optreset=yes
18493 else
18494 echo "$as_me: failed program was:" >&5
18495 sed 's/^/| /' conftest.$ac_ext >&5
18497 pgac_cv_var_int_optreset=no
18500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18501 conftest$ac_exeext conftest.$ac_ext
18503 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
18504 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6; }
18505 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
18507 cat >>confdefs.h <<\_ACEOF
18508 #define HAVE_INT_OPTRESET 1
18509 _ACEOF
18515 for ac_func in strtoll strtoq
18517 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18518 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18519 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18520 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18521 echo $ECHO_N "(cached) $ECHO_C" >&6
18522 else
18523 cat >conftest.$ac_ext <<_ACEOF
18524 /* confdefs.h. */
18525 _ACEOF
18526 cat confdefs.h >>conftest.$ac_ext
18527 cat >>conftest.$ac_ext <<_ACEOF
18528 /* end confdefs.h. */
18529 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18531 #define $ac_func innocuous_$ac_func
18533 /* System header to define __stub macros and hopefully few prototypes,
18534 which can conflict with char $ac_func (); below.
18535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18536 <limits.h> exists even on freestanding compilers. */
18538 #ifdef __STDC__
18539 # include <limits.h>
18540 #else
18541 # include <assert.h>
18542 #endif
18544 #undef $ac_func
18546 /* Override any GCC internal prototype to avoid an error.
18547 Use char because int might match the return type of a GCC
18548 builtin and then its argument prototype would still apply. */
18549 #ifdef __cplusplus
18550 extern "C"
18551 #endif
18552 char $ac_func ();
18553 /* The GNU C library defines this for functions which it implements
18554 to always fail with ENOSYS. Some functions are actually named
18555 something starting with __ and the normal name is an alias. */
18556 #if defined __stub_$ac_func || defined __stub___$ac_func
18557 choke me
18558 #endif
18561 main ()
18563 return $ac_func ();
18565 return 0;
18567 _ACEOF
18568 rm -f conftest.$ac_objext conftest$ac_exeext
18569 if { (ac_try="$ac_link"
18570 case "(($ac_try" in
18571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18572 *) ac_try_echo=$ac_try;;
18573 esac
18574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18575 (eval "$ac_link") 2>conftest.er1
18576 ac_status=$?
18577 grep -v '^ *+' conftest.er1 >conftest.err
18578 rm -f conftest.er1
18579 cat conftest.err >&5
18580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581 (exit $ac_status); } && {
18582 test -z "$ac_c_werror_flag" ||
18583 test ! -s conftest.err
18584 } && test -s conftest$ac_exeext &&
18585 $as_test_x conftest$ac_exeext; then
18586 eval "$as_ac_var=yes"
18587 else
18588 echo "$as_me: failed program was:" >&5
18589 sed 's/^/| /' conftest.$ac_ext >&5
18591 eval "$as_ac_var=no"
18594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18595 conftest$ac_exeext conftest.$ac_ext
18597 ac_res=`eval echo '${'$as_ac_var'}'`
18598 { echo "$as_me:$LINENO: result: $ac_res" >&5
18599 echo "${ECHO_T}$ac_res" >&6; }
18600 if test `eval echo '${'$as_ac_var'}'` = yes; then
18601 cat >>confdefs.h <<_ACEOF
18602 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18603 _ACEOF
18604 break
18606 done
18610 for ac_func in strtoull strtouq
18612 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18613 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18615 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18616 echo $ECHO_N "(cached) $ECHO_C" >&6
18617 else
18618 cat >conftest.$ac_ext <<_ACEOF
18619 /* confdefs.h. */
18620 _ACEOF
18621 cat confdefs.h >>conftest.$ac_ext
18622 cat >>conftest.$ac_ext <<_ACEOF
18623 /* end confdefs.h. */
18624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18626 #define $ac_func innocuous_$ac_func
18628 /* System header to define __stub macros and hopefully few prototypes,
18629 which can conflict with char $ac_func (); below.
18630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18631 <limits.h> exists even on freestanding compilers. */
18633 #ifdef __STDC__
18634 # include <limits.h>
18635 #else
18636 # include <assert.h>
18637 #endif
18639 #undef $ac_func
18641 /* Override any GCC internal prototype to avoid an error.
18642 Use char because int might match the return type of a GCC
18643 builtin and then its argument prototype would still apply. */
18644 #ifdef __cplusplus
18645 extern "C"
18646 #endif
18647 char $ac_func ();
18648 /* The GNU C library defines this for functions which it implements
18649 to always fail with ENOSYS. Some functions are actually named
18650 something starting with __ and the normal name is an alias. */
18651 #if defined __stub_$ac_func || defined __stub___$ac_func
18652 choke me
18653 #endif
18656 main ()
18658 return $ac_func ();
18660 return 0;
18662 _ACEOF
18663 rm -f conftest.$ac_objext conftest$ac_exeext
18664 if { (ac_try="$ac_link"
18665 case "(($ac_try" in
18666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18667 *) ac_try_echo=$ac_try;;
18668 esac
18669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18670 (eval "$ac_link") 2>conftest.er1
18671 ac_status=$?
18672 grep -v '^ *+' conftest.er1 >conftest.err
18673 rm -f conftest.er1
18674 cat conftest.err >&5
18675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18676 (exit $ac_status); } && {
18677 test -z "$ac_c_werror_flag" ||
18678 test ! -s conftest.err
18679 } && test -s conftest$ac_exeext &&
18680 $as_test_x conftest$ac_exeext; then
18681 eval "$as_ac_var=yes"
18682 else
18683 echo "$as_me: failed program was:" >&5
18684 sed 's/^/| /' conftest.$ac_ext >&5
18686 eval "$as_ac_var=no"
18689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18690 conftest$ac_exeext conftest.$ac_ext
18692 ac_res=`eval echo '${'$as_ac_var'}'`
18693 { echo "$as_me:$LINENO: result: $ac_res" >&5
18694 echo "${ECHO_T}$ac_res" >&6; }
18695 if test `eval echo '${'$as_ac_var'}'` = yes; then
18696 cat >>confdefs.h <<_ACEOF
18697 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18698 _ACEOF
18699 break
18701 done
18704 # Check for one of atexit() or on_exit()
18706 for ac_func in atexit
18708 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18709 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18710 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18711 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18712 echo $ECHO_N "(cached) $ECHO_C" >&6
18713 else
18714 cat >conftest.$ac_ext <<_ACEOF
18715 /* confdefs.h. */
18716 _ACEOF
18717 cat confdefs.h >>conftest.$ac_ext
18718 cat >>conftest.$ac_ext <<_ACEOF
18719 /* end confdefs.h. */
18720 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18722 #define $ac_func innocuous_$ac_func
18724 /* System header to define __stub macros and hopefully few prototypes,
18725 which can conflict with char $ac_func (); below.
18726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18727 <limits.h> exists even on freestanding compilers. */
18729 #ifdef __STDC__
18730 # include <limits.h>
18731 #else
18732 # include <assert.h>
18733 #endif
18735 #undef $ac_func
18737 /* Override any GCC internal prototype to avoid an error.
18738 Use char because int might match the return type of a GCC
18739 builtin and then its argument prototype would still apply. */
18740 #ifdef __cplusplus
18741 extern "C"
18742 #endif
18743 char $ac_func ();
18744 /* The GNU C library defines this for functions which it implements
18745 to always fail with ENOSYS. Some functions are actually named
18746 something starting with __ and the normal name is an alias. */
18747 #if defined __stub_$ac_func || defined __stub___$ac_func
18748 choke me
18749 #endif
18752 main ()
18754 return $ac_func ();
18756 return 0;
18758 _ACEOF
18759 rm -f conftest.$ac_objext conftest$ac_exeext
18760 if { (ac_try="$ac_link"
18761 case "(($ac_try" in
18762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18763 *) ac_try_echo=$ac_try;;
18764 esac
18765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18766 (eval "$ac_link") 2>conftest.er1
18767 ac_status=$?
18768 grep -v '^ *+' conftest.er1 >conftest.err
18769 rm -f conftest.er1
18770 cat conftest.err >&5
18771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); } && {
18773 test -z "$ac_c_werror_flag" ||
18774 test ! -s conftest.err
18775 } && test -s conftest$ac_exeext &&
18776 $as_test_x conftest$ac_exeext; then
18777 eval "$as_ac_var=yes"
18778 else
18779 echo "$as_me: failed program was:" >&5
18780 sed 's/^/| /' conftest.$ac_ext >&5
18782 eval "$as_ac_var=no"
18785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18786 conftest$ac_exeext conftest.$ac_ext
18788 ac_res=`eval echo '${'$as_ac_var'}'`
18789 { echo "$as_me:$LINENO: result: $ac_res" >&5
18790 echo "${ECHO_T}$ac_res" >&6; }
18791 if test `eval echo '${'$as_ac_var'}'` = yes; then
18792 cat >>confdefs.h <<_ACEOF
18793 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18794 _ACEOF
18796 else
18798 for ac_func in on_exit
18800 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18801 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18802 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18803 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18804 echo $ECHO_N "(cached) $ECHO_C" >&6
18805 else
18806 cat >conftest.$ac_ext <<_ACEOF
18807 /* confdefs.h. */
18808 _ACEOF
18809 cat confdefs.h >>conftest.$ac_ext
18810 cat >>conftest.$ac_ext <<_ACEOF
18811 /* end confdefs.h. */
18812 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18814 #define $ac_func innocuous_$ac_func
18816 /* System header to define __stub macros and hopefully few prototypes,
18817 which can conflict with char $ac_func (); below.
18818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18819 <limits.h> exists even on freestanding compilers. */
18821 #ifdef __STDC__
18822 # include <limits.h>
18823 #else
18824 # include <assert.h>
18825 #endif
18827 #undef $ac_func
18829 /* Override any GCC internal prototype to avoid an error.
18830 Use char because int might match the return type of a GCC
18831 builtin and then its argument prototype would still apply. */
18832 #ifdef __cplusplus
18833 extern "C"
18834 #endif
18835 char $ac_func ();
18836 /* The GNU C library defines this for functions which it implements
18837 to always fail with ENOSYS. Some functions are actually named
18838 something starting with __ and the normal name is an alias. */
18839 #if defined __stub_$ac_func || defined __stub___$ac_func
18840 choke me
18841 #endif
18844 main ()
18846 return $ac_func ();
18848 return 0;
18850 _ACEOF
18851 rm -f conftest.$ac_objext conftest$ac_exeext
18852 if { (ac_try="$ac_link"
18853 case "(($ac_try" in
18854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18855 *) ac_try_echo=$ac_try;;
18856 esac
18857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18858 (eval "$ac_link") 2>conftest.er1
18859 ac_status=$?
18860 grep -v '^ *+' conftest.er1 >conftest.err
18861 rm -f conftest.er1
18862 cat conftest.err >&5
18863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864 (exit $ac_status); } && {
18865 test -z "$ac_c_werror_flag" ||
18866 test ! -s conftest.err
18867 } && test -s conftest$ac_exeext &&
18868 $as_test_x conftest$ac_exeext; then
18869 eval "$as_ac_var=yes"
18870 else
18871 echo "$as_me: failed program was:" >&5
18872 sed 's/^/| /' conftest.$ac_ext >&5
18874 eval "$as_ac_var=no"
18877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18878 conftest$ac_exeext conftest.$ac_ext
18880 ac_res=`eval echo '${'$as_ac_var'}'`
18881 { echo "$as_me:$LINENO: result: $ac_res" >&5
18882 echo "${ECHO_T}$ac_res" >&6; }
18883 if test `eval echo '${'$as_ac_var'}'` = yes; then
18884 cat >>confdefs.h <<_ACEOF
18885 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18886 _ACEOF
18888 else
18889 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
18890 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
18891 { (exit 1); exit 1; }; }
18893 done
18896 done
18900 for ac_func in fseeko
18902 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18903 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18905 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18906 echo $ECHO_N "(cached) $ECHO_C" >&6
18907 else
18908 cat >conftest.$ac_ext <<_ACEOF
18909 /* confdefs.h. */
18910 _ACEOF
18911 cat confdefs.h >>conftest.$ac_ext
18912 cat >>conftest.$ac_ext <<_ACEOF
18913 /* end confdefs.h. */
18914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18916 #define $ac_func innocuous_$ac_func
18918 /* System header to define __stub macros and hopefully few prototypes,
18919 which can conflict with char $ac_func (); below.
18920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18921 <limits.h> exists even on freestanding compilers. */
18923 #ifdef __STDC__
18924 # include <limits.h>
18925 #else
18926 # include <assert.h>
18927 #endif
18929 #undef $ac_func
18931 /* Override any GCC internal prototype to avoid an error.
18932 Use char because int might match the return type of a GCC
18933 builtin and then its argument prototype would still apply. */
18934 #ifdef __cplusplus
18935 extern "C"
18936 #endif
18937 char $ac_func ();
18938 /* The GNU C library defines this for functions which it implements
18939 to always fail with ENOSYS. Some functions are actually named
18940 something starting with __ and the normal name is an alias. */
18941 #if defined __stub_$ac_func || defined __stub___$ac_func
18942 choke me
18943 #endif
18946 main ()
18948 return $ac_func ();
18950 return 0;
18952 _ACEOF
18953 rm -f conftest.$ac_objext conftest$ac_exeext
18954 if { (ac_try="$ac_link"
18955 case "(($ac_try" in
18956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18957 *) ac_try_echo=$ac_try;;
18958 esac
18959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18960 (eval "$ac_link") 2>conftest.er1
18961 ac_status=$?
18962 grep -v '^ *+' conftest.er1 >conftest.err
18963 rm -f conftest.er1
18964 cat conftest.err >&5
18965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966 (exit $ac_status); } && {
18967 test -z "$ac_c_werror_flag" ||
18968 test ! -s conftest.err
18969 } && test -s conftest$ac_exeext &&
18970 $as_test_x conftest$ac_exeext; then
18971 eval "$as_ac_var=yes"
18972 else
18973 echo "$as_me: failed program was:" >&5
18974 sed 's/^/| /' conftest.$ac_ext >&5
18976 eval "$as_ac_var=no"
18979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18980 conftest$ac_exeext conftest.$ac_ext
18982 ac_res=`eval echo '${'$as_ac_var'}'`
18983 { echo "$as_me:$LINENO: result: $ac_res" >&5
18984 echo "${ECHO_T}$ac_res" >&6; }
18985 if test `eval echo '${'$as_ac_var'}'` = yes; then
18986 cat >>confdefs.h <<_ACEOF
18987 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18988 _ACEOF
18990 else
18991 case " $LIBOBJS " in
18992 *" $ac_func.$ac_objext "* ) ;;
18993 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18995 esac
18998 done
19001 case $host_os in
19002 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
19003 # Mingw uses macros to access Win32 API calls
19004 bsdi*|netbsd*|mingw*)
19006 cat >>confdefs.h <<\_ACEOF
19007 #define HAVE_FSEEKO 1
19008 _ACEOF
19010 ac_cv_func_fseeko=yes;;
19012 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19013 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
19014 if test "${ac_cv_sys_largefile_source+set}" = set; then
19015 echo $ECHO_N "(cached) $ECHO_C" >&6
19016 else
19017 while :; do
19018 cat >conftest.$ac_ext <<_ACEOF
19019 /* confdefs.h. */
19020 _ACEOF
19021 cat confdefs.h >>conftest.$ac_ext
19022 cat >>conftest.$ac_ext <<_ACEOF
19023 /* end confdefs.h. */
19024 #include <sys/types.h> /* for off_t */
19025 #include <stdio.h>
19027 main ()
19029 int (*fp) (FILE *, off_t, int) = fseeko;
19030 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19032 return 0;
19034 _ACEOF
19035 rm -f conftest.$ac_objext conftest$ac_exeext
19036 if { (ac_try="$ac_link"
19037 case "(($ac_try" in
19038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19039 *) ac_try_echo=$ac_try;;
19040 esac
19041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19042 (eval "$ac_link") 2>conftest.er1
19043 ac_status=$?
19044 grep -v '^ *+' conftest.er1 >conftest.err
19045 rm -f conftest.er1
19046 cat conftest.err >&5
19047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048 (exit $ac_status); } && {
19049 test -z "$ac_c_werror_flag" ||
19050 test ! -s conftest.err
19051 } && test -s conftest$ac_exeext &&
19052 $as_test_x conftest$ac_exeext; then
19053 ac_cv_sys_largefile_source=no; break
19054 else
19055 echo "$as_me: failed program was:" >&5
19056 sed 's/^/| /' conftest.$ac_ext >&5
19061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19062 conftest$ac_exeext conftest.$ac_ext
19063 cat >conftest.$ac_ext <<_ACEOF
19064 /* confdefs.h. */
19065 _ACEOF
19066 cat confdefs.h >>conftest.$ac_ext
19067 cat >>conftest.$ac_ext <<_ACEOF
19068 /* end confdefs.h. */
19069 #define _LARGEFILE_SOURCE 1
19070 #include <sys/types.h> /* for off_t */
19071 #include <stdio.h>
19073 main ()
19075 int (*fp) (FILE *, off_t, int) = fseeko;
19076 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19078 return 0;
19080 _ACEOF
19081 rm -f conftest.$ac_objext conftest$ac_exeext
19082 if { (ac_try="$ac_link"
19083 case "(($ac_try" in
19084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19085 *) ac_try_echo=$ac_try;;
19086 esac
19087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19088 (eval "$ac_link") 2>conftest.er1
19089 ac_status=$?
19090 grep -v '^ *+' conftest.er1 >conftest.err
19091 rm -f conftest.er1
19092 cat conftest.err >&5
19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094 (exit $ac_status); } && {
19095 test -z "$ac_c_werror_flag" ||
19096 test ! -s conftest.err
19097 } && test -s conftest$ac_exeext &&
19098 $as_test_x conftest$ac_exeext; then
19099 ac_cv_sys_largefile_source=1; break
19100 else
19101 echo "$as_me: failed program was:" >&5
19102 sed 's/^/| /' conftest.$ac_ext >&5
19107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19108 conftest$ac_exeext conftest.$ac_ext
19109 ac_cv_sys_largefile_source=unknown
19110 break
19111 done
19113 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19114 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
19115 case $ac_cv_sys_largefile_source in #(
19116 no | unknown) ;;
19118 cat >>confdefs.h <<_ACEOF
19119 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19120 _ACEOF
19122 esac
19123 rm -f conftest*
19125 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19126 # in glibc 2.1.3, but that breaks too many other things.
19127 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19128 if test $ac_cv_sys_largefile_source != unknown; then
19130 cat >>confdefs.h <<\_ACEOF
19131 #define HAVE_FSEEKO 1
19132 _ACEOF
19136 esac
19140 # Pthreads
19142 # For each platform, we need to know about any special compile and link
19143 # libraries, and whether the normal C function names are thread-safe.
19144 # See the comment at the top of src/port/thread.c for more information.
19145 # WIN32 doesn't need the pthread tests; it always uses threads
19146 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
19150 ac_ext=c
19151 ac_cpp='$CPP $CPPFLAGS'
19152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19156 acx_pthread_ok=no
19158 # We used to check for pthread.h first, but this fails if pthread.h
19159 # requires special compiler flags (e.g. on True64 or Sequent).
19160 # It gets checked for in the link test anyway.
19162 # First of all, check if the user has set any of the PTHREAD_LIBS,
19163 # etcetera environment variables, and if threads linking works using
19164 # them:
19165 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
19166 save_CFLAGS="$CFLAGS"
19167 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19168 save_LIBS="$LIBS"
19169 LIBS="$PTHREAD_LIBS $LIBS"
19170 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
19171 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
19172 cat >conftest.$ac_ext <<_ACEOF
19173 /* confdefs.h. */
19174 _ACEOF
19175 cat confdefs.h >>conftest.$ac_ext
19176 cat >>conftest.$ac_ext <<_ACEOF
19177 /* end confdefs.h. */
19179 /* Override any GCC internal prototype to avoid an error.
19180 Use char because int might match the return type of a GCC
19181 builtin and then its argument prototype would still apply. */
19182 #ifdef __cplusplus
19183 extern "C"
19184 #endif
19185 char pthread_join ();
19187 main ()
19189 return pthread_join ();
19191 return 0;
19193 _ACEOF
19194 rm -f conftest.$ac_objext conftest$ac_exeext
19195 if { (ac_try="$ac_link"
19196 case "(($ac_try" in
19197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19198 *) ac_try_echo=$ac_try;;
19199 esac
19200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19201 (eval "$ac_link") 2>conftest.er1
19202 ac_status=$?
19203 grep -v '^ *+' conftest.er1 >conftest.err
19204 rm -f conftest.er1
19205 cat conftest.err >&5
19206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); } && {
19208 test -z "$ac_c_werror_flag" ||
19209 test ! -s conftest.err
19210 } && test -s conftest$ac_exeext &&
19211 $as_test_x conftest$ac_exeext; then
19212 acx_pthread_ok=yes
19213 else
19214 echo "$as_me: failed program was:" >&5
19215 sed 's/^/| /' conftest.$ac_ext >&5
19220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19221 conftest$ac_exeext conftest.$ac_ext
19222 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
19223 echo "${ECHO_T}$acx_pthread_ok" >&6; }
19224 if test x"$acx_pthread_ok" = xno; then
19225 PTHREAD_LIBS=""
19226 PTHREAD_CFLAGS=""
19228 LIBS="$save_LIBS"
19229 CFLAGS="$save_CFLAGS"
19232 # We must check for the threads library under a number of different
19233 # names; the ordering is very important because some systems
19234 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19235 # libraries is broken (non-POSIX).
19237 # Create a list of thread flags to try. Items starting with a "-" are
19238 # C compiler flags, and other items are library names, except for "none"
19239 # which indicates that we try without any flags at all, and "pthread-config"
19240 # which is a program returning the flags for the Pth emulation library.
19242 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
19244 # The ordering *is* (sometimes) important. Some notes on the
19245 # individual items follow:
19247 # pthreads: AIX (must check this before -lpthread)
19248 # none: in case threads are in libc; should be tried before -Kthread and
19249 # other compiler flags to prevent continual compiler warnings
19250 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19251 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19252 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19253 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
19254 # -pthreads: Solaris/gcc
19255 # -mthreads: Mingw32/gcc, Lynx/gcc
19256 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19257 # doesn't hurt to check since this sometimes defines pthreads too;
19258 # also defines -D_REENTRANT)
19259 # pthread: Linux, etcetera
19260 # --thread-safe: KAI C++
19261 # pthread-config: use pthread-config program (for GNU Pth library)
19263 case "${host_cpu}-${host_os}" in
19264 *solaris*)
19266 # On Solaris (at least, for some versions), libc contains stubbed
19267 # (non-functional) versions of the pthreads routines, so link-based
19268 # tests will erroneously succeed. (We need to link with -pthread or
19269 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
19270 # a function called by this macro, so we could check for that, but
19271 # who knows whether they'll stub that too in a future libc.) So,
19272 # we'll just look for -pthreads and -lpthread first:
19274 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
19276 esac
19278 if test x"$acx_pthread_ok" = xno; then
19279 for flag in $acx_pthread_flags; do
19281 tryPTHREAD_CFLAGS=""
19282 tryPTHREAD_LIBS=""
19283 case $flag in
19284 none)
19285 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
19286 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
19290 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
19291 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
19292 tryPTHREAD_CFLAGS="$flag"
19295 pthread-config)
19296 # skip this if we already have flags defined, for PostgreSQL
19297 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
19298 # Extract the first word of "pthread-config", so it can be a program name with args.
19299 set dummy pthread-config; ac_word=$2
19300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19302 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
19303 echo $ECHO_N "(cached) $ECHO_C" >&6
19304 else
19305 if test -n "$acx_pthread_config"; then
19306 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
19307 else
19308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19309 for as_dir in $PATH
19311 IFS=$as_save_IFS
19312 test -z "$as_dir" && as_dir=.
19313 for ac_exec_ext in '' $ac_executable_extensions; do
19314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19315 ac_cv_prog_acx_pthread_config="yes"
19316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19317 break 2
19319 done
19320 done
19321 IFS=$as_save_IFS
19323 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
19326 acx_pthread_config=$ac_cv_prog_acx_pthread_config
19327 if test -n "$acx_pthread_config"; then
19328 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
19329 echo "${ECHO_T}$acx_pthread_config" >&6; }
19330 else
19331 { echo "$as_me:$LINENO: result: no" >&5
19332 echo "${ECHO_T}no" >&6; }
19336 if test x"$acx_pthread_config" = xno; then continue; fi
19337 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
19338 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
19342 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
19343 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
19344 tryPTHREAD_LIBS="-l$flag"
19346 esac
19348 save_LIBS="$LIBS"
19349 save_CFLAGS="$CFLAGS"
19350 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
19351 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
19353 # Check for various functions. We must include pthread.h,
19354 # since some functions may be macros. (On the Sequent, we
19355 # need a special flag -Kthread to make this header compile.)
19356 # We check for pthread_join because it is in -lpthread on IRIX
19357 # while pthread_create is in libc. We check for pthread_attr_init
19358 # due to DEC craziness with -lpthreads. We check for
19359 # pthread_cleanup_push because it is one of the few pthread
19360 # functions on Solaris that doesn't have a non-functional libc stub.
19361 # We try pthread_create on general principles.
19362 cat >conftest.$ac_ext <<_ACEOF
19363 /* confdefs.h. */
19364 _ACEOF
19365 cat confdefs.h >>conftest.$ac_ext
19366 cat >>conftest.$ac_ext <<_ACEOF
19367 /* end confdefs.h. */
19368 #include <pthread.h>
19370 main ()
19372 pthread_t th; pthread_join(th, 0);
19373 pthread_attr_init(0); pthread_cleanup_push(0, 0);
19374 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
19376 return 0;
19378 _ACEOF
19379 rm -f conftest.$ac_objext conftest$ac_exeext
19380 if { (ac_try="$ac_link"
19381 case "(($ac_try" in
19382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19383 *) ac_try_echo=$ac_try;;
19384 esac
19385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19386 (eval "$ac_link") 2>conftest.er1
19387 ac_status=$?
19388 grep -v '^ *+' conftest.er1 >conftest.err
19389 rm -f conftest.er1
19390 cat conftest.err >&5
19391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392 (exit $ac_status); } && {
19393 test -z "$ac_c_werror_flag" ||
19394 test ! -s conftest.err
19395 } && test -s conftest$ac_exeext &&
19396 $as_test_x conftest$ac_exeext; then
19397 acx_pthread_ok=yes
19398 else
19399 echo "$as_me: failed program was:" >&5
19400 sed 's/^/| /' conftest.$ac_ext >&5
19402 acx_pthread_ok=no
19405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19406 conftest$ac_exeext conftest.$ac_ext
19408 if test "x$acx_pthread_ok" = xyes; then
19409 # Don't use options that are ignored by the compiler.
19410 # We find them by checking stderror.
19411 cat >conftest.$ac_ext <<_ACEOF
19413 main (int argc, char **argv)
19415 (void) argc;
19416 (void) argv;
19417 return 0;
19419 _ACEOF
19420 rm -f conftest.$ac_objext conftest$ac_exeext
19421 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
19422 # we continue with more flags because Linux needs -lpthread
19423 # for libpq builds on PostgreSQL. The test above only
19424 # tests for building binaries, not shared libraries.
19425 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
19426 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
19427 else acx_pthread_ok=no
19431 LIBS="$save_LIBS"
19432 CFLAGS="$save_CFLAGS"
19434 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
19435 echo "${ECHO_T}$acx_pthread_ok" >&6; }
19436 done
19439 # Various other checks:
19440 if test "x$acx_pthread_ok" = xyes; then
19441 save_LIBS="$LIBS"
19442 LIBS="$PTHREAD_LIBS $LIBS"
19443 save_CFLAGS="$CFLAGS"
19444 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19446 # Detect AIX lossage: threads are created detached by default
19447 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
19448 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
19449 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
19450 cat >conftest.$ac_ext <<_ACEOF
19451 /* confdefs.h. */
19452 _ACEOF
19453 cat confdefs.h >>conftest.$ac_ext
19454 cat >>conftest.$ac_ext <<_ACEOF
19455 /* end confdefs.h. */
19456 #include <pthread.h>
19458 main ()
19460 int attr=PTHREAD_CREATE_JOINABLE;
19462 return 0;
19464 _ACEOF
19465 rm -f conftest.$ac_objext conftest$ac_exeext
19466 if { (ac_try="$ac_link"
19467 case "(($ac_try" in
19468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19469 *) ac_try_echo=$ac_try;;
19470 esac
19471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19472 (eval "$ac_link") 2>conftest.er1
19473 ac_status=$?
19474 grep -v '^ *+' conftest.er1 >conftest.err
19475 rm -f conftest.er1
19476 cat conftest.err >&5
19477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478 (exit $ac_status); } && {
19479 test -z "$ac_c_werror_flag" ||
19480 test ! -s conftest.err
19481 } && test -s conftest$ac_exeext &&
19482 $as_test_x conftest$ac_exeext; then
19483 ok=PTHREAD_CREATE_JOINABLE
19484 else
19485 echo "$as_me: failed program was:" >&5
19486 sed 's/^/| /' conftest.$ac_ext >&5
19488 ok=unknown
19491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19492 conftest$ac_exeext conftest.$ac_ext
19493 if test x"$ok" = xunknown; then
19494 cat >conftest.$ac_ext <<_ACEOF
19495 /* confdefs.h. */
19496 _ACEOF
19497 cat confdefs.h >>conftest.$ac_ext
19498 cat >>conftest.$ac_ext <<_ACEOF
19499 /* end confdefs.h. */
19500 #include <pthread.h>
19502 main ()
19504 int attr=PTHREAD_CREATE_UNDETACHED;
19506 return 0;
19508 _ACEOF
19509 rm -f conftest.$ac_objext conftest$ac_exeext
19510 if { (ac_try="$ac_link"
19511 case "(($ac_try" in
19512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19513 *) ac_try_echo=$ac_try;;
19514 esac
19515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19516 (eval "$ac_link") 2>conftest.er1
19517 ac_status=$?
19518 grep -v '^ *+' conftest.er1 >conftest.err
19519 rm -f conftest.er1
19520 cat conftest.err >&5
19521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522 (exit $ac_status); } && {
19523 test -z "$ac_c_werror_flag" ||
19524 test ! -s conftest.err
19525 } && test -s conftest$ac_exeext &&
19526 $as_test_x conftest$ac_exeext; then
19527 ok=PTHREAD_CREATE_UNDETACHED
19528 else
19529 echo "$as_me: failed program was:" >&5
19530 sed 's/^/| /' conftest.$ac_ext >&5
19532 ok=unknown
19535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19536 conftest$ac_exeext conftest.$ac_ext
19538 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
19540 cat >>confdefs.h <<\_ACEOF
19541 #define PTHREAD_CREATE_JOINABLE $ok
19542 _ACEOF
19545 { echo "$as_me:$LINENO: result: ${ok}" >&5
19546 echo "${ECHO_T}${ok}" >&6; }
19547 if test x"$ok" = xunknown; then
19548 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
19549 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
19552 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
19553 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
19554 flag=no
19555 # We always add these in PostgreSQL
19556 # case "${host_cpu}-${host_os}" in
19557 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
19558 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
19559 # esac
19560 { echo "$as_me:$LINENO: result: ${flag}" >&5
19561 echo "${ECHO_T}${flag}" >&6; }
19562 if test "x$flag" != xno; then
19563 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
19566 LIBS="$save_LIBS"
19567 CFLAGS="$save_CFLAGS"
19569 # Supporting cc_r would require a special CC in all places that
19570 # use libpq, and that is ugly, so we don't do it. Users can still
19571 # define their compiler as cc_r to do thread builds of everything.
19572 # More AIX lossage: must compile with cc_r
19573 # Extract the first word of "cc_r", so it can be a program name with args.
19574 set dummy cc_r; ac_word=$2
19575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19577 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
19578 echo $ECHO_N "(cached) $ECHO_C" >&6
19579 else
19580 if test -n "$PTHREAD_CC"; then
19581 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19582 else
19583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19584 for as_dir in $PATH
19586 IFS=$as_save_IFS
19587 test -z "$as_dir" && as_dir=.
19588 for ac_exec_ext in '' $ac_executable_extensions; do
19589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19590 ac_cv_prog_PTHREAD_CC="cc_r"
19591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19592 break 2
19594 done
19595 done
19596 IFS=$as_save_IFS
19598 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
19601 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19602 if test -n "$PTHREAD_CC"; then
19603 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
19604 echo "${ECHO_T}$PTHREAD_CC" >&6; }
19605 else
19606 { echo "$as_me:$LINENO: result: no" >&5
19607 echo "${ECHO_T}no" >&6; }
19611 else
19612 PTHREAD_CC="$CC"
19619 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
19620 if test x"$acx_pthread_ok" = xyes; then
19622 cat >>confdefs.h <<\_ACEOF
19623 #define HAVE_PTHREAD 1
19624 _ACEOF
19627 else
19628 acx_pthread_ok=no
19631 ac_ext=c
19632 ac_cpp='$CPP $CPPFLAGS'
19633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19637 # set thread flags
19639 # Some platforms use these, so just define them. They can't hurt if they
19640 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
19641 # enables 5-arg getpwuid_r, among other things.
19642 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
19645 # At this point, we don't want to muck with the compiler name for threading.
19646 # Let's see who fails, perhaps AIX. 2004-04-23
19647 if test "$PTHREAD_CC" != "$CC"; then
19648 { { echo "$as_me:$LINENO: error:
19649 PostgreSQL does not support platforms that require a special compiler
19650 for thread safety." >&5
19651 echo "$as_me: error:
19652 PostgreSQL does not support platforms that require a special compiler
19653 for thread safety." >&2;}
19654 { (exit 1); exit 1; }; }
19657 if test "$THREAD_SUPPORT" = no; then
19658 { { echo "$as_me:$LINENO: error: cannot enable threads on this platform
19659 This platform is known to not support thread-safe programs. For details,
19660 compile and run src/bin/pg_thread_test." >&5
19661 echo "$as_me: error: cannot enable threads on this platform
19662 This platform is known to not support thread-safe programs. For details,
19663 compile and run src/bin/pg_thread_test." >&2;}
19664 { (exit 1); exit 1; }; }
19667 # Check for *_r functions
19668 _CFLAGS="$CFLAGS"
19669 _LIBS="$LIBS"
19670 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19671 LIBS="$LIBS $PTHREAD_LIBS"
19673 if test "$PORTNAME" != "win32"; then
19674 if test "${ac_cv_header_pthread_h+set}" = set; then
19675 { echo "$as_me:$LINENO: checking for pthread.h" >&5
19676 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
19677 if test "${ac_cv_header_pthread_h+set}" = set; then
19678 echo $ECHO_N "(cached) $ECHO_C" >&6
19680 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
19681 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
19682 else
19683 # Is the header compilable?
19684 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
19685 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
19686 cat >conftest.$ac_ext <<_ACEOF
19687 /* confdefs.h. */
19688 _ACEOF
19689 cat confdefs.h >>conftest.$ac_ext
19690 cat >>conftest.$ac_ext <<_ACEOF
19691 /* end confdefs.h. */
19692 $ac_includes_default
19693 #include <pthread.h>
19694 _ACEOF
19695 rm -f conftest.$ac_objext
19696 if { (ac_try="$ac_compile"
19697 case "(($ac_try" in
19698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19699 *) ac_try_echo=$ac_try;;
19700 esac
19701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19702 (eval "$ac_compile") 2>conftest.er1
19703 ac_status=$?
19704 grep -v '^ *+' conftest.er1 >conftest.err
19705 rm -f conftest.er1
19706 cat conftest.err >&5
19707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708 (exit $ac_status); } && {
19709 test -z "$ac_c_werror_flag" ||
19710 test ! -s conftest.err
19711 } && test -s conftest.$ac_objext; then
19712 ac_header_compiler=yes
19713 else
19714 echo "$as_me: failed program was:" >&5
19715 sed 's/^/| /' conftest.$ac_ext >&5
19717 ac_header_compiler=no
19720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19721 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19722 echo "${ECHO_T}$ac_header_compiler" >&6; }
19724 # Is the header present?
19725 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
19726 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
19727 cat >conftest.$ac_ext <<_ACEOF
19728 /* confdefs.h. */
19729 _ACEOF
19730 cat confdefs.h >>conftest.$ac_ext
19731 cat >>conftest.$ac_ext <<_ACEOF
19732 /* end confdefs.h. */
19733 #include <pthread.h>
19734 _ACEOF
19735 if { (ac_try="$ac_cpp conftest.$ac_ext"
19736 case "(($ac_try" in
19737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19738 *) ac_try_echo=$ac_try;;
19739 esac
19740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19741 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19742 ac_status=$?
19743 grep -v '^ *+' conftest.er1 >conftest.err
19744 rm -f conftest.er1
19745 cat conftest.err >&5
19746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747 (exit $ac_status); } >/dev/null && {
19748 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19749 test ! -s conftest.err
19750 }; then
19751 ac_header_preproc=yes
19752 else
19753 echo "$as_me: failed program was:" >&5
19754 sed 's/^/| /' conftest.$ac_ext >&5
19756 ac_header_preproc=no
19759 rm -f conftest.err conftest.$ac_ext
19760 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19761 echo "${ECHO_T}$ac_header_preproc" >&6; }
19763 # So? What about this header?
19764 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19765 yes:no: )
19766 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
19767 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19768 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
19769 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
19770 ac_header_preproc=yes
19772 no:yes:* )
19773 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
19774 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
19775 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
19776 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
19777 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
19778 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
19779 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
19780 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
19781 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
19782 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
19783 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
19784 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
19785 ( cat <<\_ASBOX
19786 ## ---------------------------------------- ##
19787 ## Report this to pgsql-bugs@postgresql.org ##
19788 ## ---------------------------------------- ##
19789 _ASBOX
19790 ) | sed "s/^/$as_me: WARNING: /" >&2
19792 esac
19793 { echo "$as_me:$LINENO: checking for pthread.h" >&5
19794 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
19795 if test "${ac_cv_header_pthread_h+set}" = set; then
19796 echo $ECHO_N "(cached) $ECHO_C" >&6
19797 else
19798 ac_cv_header_pthread_h=$ac_header_preproc
19800 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
19801 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
19804 if test $ac_cv_header_pthread_h = yes; then
19806 else
19807 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
19808 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
19809 { (exit 1); exit 1; }; }
19818 for ac_func in strerror_r getpwuid_r gethostbyname_r
19820 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19821 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19822 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19823 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19824 echo $ECHO_N "(cached) $ECHO_C" >&6
19825 else
19826 cat >conftest.$ac_ext <<_ACEOF
19827 /* confdefs.h. */
19828 _ACEOF
19829 cat confdefs.h >>conftest.$ac_ext
19830 cat >>conftest.$ac_ext <<_ACEOF
19831 /* end confdefs.h. */
19832 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19834 #define $ac_func innocuous_$ac_func
19836 /* System header to define __stub macros and hopefully few prototypes,
19837 which can conflict with char $ac_func (); below.
19838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19839 <limits.h> exists even on freestanding compilers. */
19841 #ifdef __STDC__
19842 # include <limits.h>
19843 #else
19844 # include <assert.h>
19845 #endif
19847 #undef $ac_func
19849 /* Override any GCC internal prototype to avoid an error.
19850 Use char because int might match the return type of a GCC
19851 builtin and then its argument prototype would still apply. */
19852 #ifdef __cplusplus
19853 extern "C"
19854 #endif
19855 char $ac_func ();
19856 /* The GNU C library defines this for functions which it implements
19857 to always fail with ENOSYS. Some functions are actually named
19858 something starting with __ and the normal name is an alias. */
19859 #if defined __stub_$ac_func || defined __stub___$ac_func
19860 choke me
19861 #endif
19864 main ()
19866 return $ac_func ();
19868 return 0;
19870 _ACEOF
19871 rm -f conftest.$ac_objext conftest$ac_exeext
19872 if { (ac_try="$ac_link"
19873 case "(($ac_try" in
19874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19875 *) ac_try_echo=$ac_try;;
19876 esac
19877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19878 (eval "$ac_link") 2>conftest.er1
19879 ac_status=$?
19880 grep -v '^ *+' conftest.er1 >conftest.err
19881 rm -f conftest.er1
19882 cat conftest.err >&5
19883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884 (exit $ac_status); } && {
19885 test -z "$ac_c_werror_flag" ||
19886 test ! -s conftest.err
19887 } && test -s conftest$ac_exeext &&
19888 $as_test_x conftest$ac_exeext; then
19889 eval "$as_ac_var=yes"
19890 else
19891 echo "$as_me: failed program was:" >&5
19892 sed 's/^/| /' conftest.$ac_ext >&5
19894 eval "$as_ac_var=no"
19897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19898 conftest$ac_exeext conftest.$ac_ext
19900 ac_res=`eval echo '${'$as_ac_var'}'`
19901 { echo "$as_me:$LINENO: result: $ac_res" >&5
19902 echo "${ECHO_T}$ac_res" >&6; }
19903 if test `eval echo '${'$as_ac_var'}'` = yes; then
19904 cat >>confdefs.h <<_ACEOF
19905 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19906 _ACEOF
19909 done
19912 # Do test here with the proper thread flags
19913 { echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
19914 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6; }
19915 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
19916 echo $ECHO_N "(cached) $ECHO_C" >&6
19917 else
19918 cat >conftest.$ac_ext <<_ACEOF
19919 /* confdefs.h. */
19920 _ACEOF
19921 cat confdefs.h >>conftest.$ac_ext
19922 cat >>conftest.$ac_ext <<_ACEOF
19923 /* end confdefs.h. */
19924 #include <sys/types.h>
19925 #include <pwd.h>
19927 main ()
19929 uid_t uid;
19930 struct passwd *space;
19931 char *buf;
19932 size_t bufsize;
19933 struct passwd **result;
19934 getpwuid_r(uid, space, buf, bufsize, result);
19936 return 0;
19938 _ACEOF
19939 rm -f conftest.$ac_objext
19940 if { (ac_try="$ac_compile"
19941 case "(($ac_try" in
19942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19943 *) ac_try_echo=$ac_try;;
19944 esac
19945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19946 (eval "$ac_compile") 2>conftest.er1
19947 ac_status=$?
19948 grep -v '^ *+' conftest.er1 >conftest.err
19949 rm -f conftest.er1
19950 cat conftest.err >&5
19951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19952 (exit $ac_status); } && {
19953 test -z "$ac_c_werror_flag" ||
19954 test ! -s conftest.err
19955 } && test -s conftest.$ac_objext; then
19956 pgac_cv_func_getpwuid_r_5arg=yes
19957 else
19958 echo "$as_me: failed program was:" >&5
19959 sed 's/^/| /' conftest.$ac_ext >&5
19961 pgac_cv_func_getpwuid_r_5arg=no
19964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19966 { echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
19967 echo "${ECHO_T}$pgac_cv_func_getpwuid_r_5arg" >&6; }
19968 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
19970 cat >>confdefs.h <<\_ACEOF
19971 #define GETPWUID_R_5ARG
19972 _ACEOF
19976 { echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
19977 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6; }
19978 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
19979 echo $ECHO_N "(cached) $ECHO_C" >&6
19980 else
19981 cat >conftest.$ac_ext <<_ACEOF
19982 /* confdefs.h. */
19983 _ACEOF
19984 cat confdefs.h >>conftest.$ac_ext
19985 cat >>conftest.$ac_ext <<_ACEOF
19986 /* end confdefs.h. */
19987 #include <string.h>
19989 main ()
19991 #ifndef _AIX
19992 int strerror_r(int, char *, size_t);
19993 #else
19994 /* Older AIX has 'int' for the third argument so we don't test the args. */
19995 int strerror_r();
19996 #endif
19998 return 0;
20000 _ACEOF
20001 rm -f conftest.$ac_objext
20002 if { (ac_try="$ac_compile"
20003 case "(($ac_try" in
20004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20005 *) ac_try_echo=$ac_try;;
20006 esac
20007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20008 (eval "$ac_compile") 2>conftest.er1
20009 ac_status=$?
20010 grep -v '^ *+' conftest.er1 >conftest.err
20011 rm -f conftest.er1
20012 cat conftest.err >&5
20013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20014 (exit $ac_status); } && {
20015 test -z "$ac_c_werror_flag" ||
20016 test ! -s conftest.err
20017 } && test -s conftest.$ac_objext; then
20018 pgac_cv_func_strerror_r_int=yes
20019 else
20020 echo "$as_me: failed program was:" >&5
20021 sed 's/^/| /' conftest.$ac_ext >&5
20023 pgac_cv_func_strerror_r_int=no
20026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20028 { echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
20029 echo "${ECHO_T}$pgac_cv_func_strerror_r_int" >&6; }
20030 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
20032 cat >>confdefs.h <<\_ACEOF
20033 #define STRERROR_R_INT
20034 _ACEOF
20039 CFLAGS="$_CFLAGS"
20040 LIBS="$_LIBS"
20042 else
20043 # do not use values from template file
20044 PTHREAD_CFLAGS=
20045 PTHREAD_LIBS=
20052 # We can test for libldap_r only after we know PTHREAD_LIBS
20053 if test "$with_ldap" = yes ; then
20054 _LIBS="$LIBS"
20055 if test "$PORTNAME" != "win32"; then
20057 { echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
20058 echo $ECHO_N "checking for ldap_bind in -lldap... $ECHO_C" >&6; }
20059 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
20060 echo $ECHO_N "(cached) $ECHO_C" >&6
20061 else
20062 ac_check_lib_save_LIBS=$LIBS
20063 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
20064 cat >conftest.$ac_ext <<_ACEOF
20065 /* confdefs.h. */
20066 _ACEOF
20067 cat confdefs.h >>conftest.$ac_ext
20068 cat >>conftest.$ac_ext <<_ACEOF
20069 /* end confdefs.h. */
20071 /* Override any GCC internal prototype to avoid an error.
20072 Use char because int might match the return type of a GCC
20073 builtin and then its argument prototype would still apply. */
20074 #ifdef __cplusplus
20075 extern "C"
20076 #endif
20077 char ldap_bind ();
20079 main ()
20081 return ldap_bind ();
20083 return 0;
20085 _ACEOF
20086 rm -f conftest.$ac_objext conftest$ac_exeext
20087 if { (ac_try="$ac_link"
20088 case "(($ac_try" in
20089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20090 *) ac_try_echo=$ac_try;;
20091 esac
20092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20093 (eval "$ac_link") 2>conftest.er1
20094 ac_status=$?
20095 grep -v '^ *+' conftest.er1 >conftest.err
20096 rm -f conftest.er1
20097 cat conftest.err >&5
20098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099 (exit $ac_status); } && {
20100 test -z "$ac_c_werror_flag" ||
20101 test ! -s conftest.err
20102 } && test -s conftest$ac_exeext &&
20103 $as_test_x conftest$ac_exeext; then
20104 ac_cv_lib_ldap_ldap_bind=yes
20105 else
20106 echo "$as_me: failed program was:" >&5
20107 sed 's/^/| /' conftest.$ac_ext >&5
20109 ac_cv_lib_ldap_ldap_bind=no
20112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20113 conftest$ac_exeext conftest.$ac_ext
20114 LIBS=$ac_check_lib_save_LIBS
20116 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
20117 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_bind" >&6; }
20118 if test $ac_cv_lib_ldap_ldap_bind = yes; then
20119 cat >>confdefs.h <<_ACEOF
20120 #define HAVE_LIBLDAP 1
20121 _ACEOF
20123 LIBS="-lldap $LIBS"
20125 else
20126 { { echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
20127 echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
20128 { (exit 1); exit 1; }; }
20131 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
20132 if test "$enable_thread_safety" = yes; then
20133 # on some platforms ldap_r fails to link without PTHREAD_LIBS
20135 { echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
20136 echo $ECHO_N "checking for ldap_simple_bind in -lldap_r... $ECHO_C" >&6; }
20137 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
20138 echo $ECHO_N "(cached) $ECHO_C" >&6
20139 else
20140 ac_check_lib_save_LIBS=$LIBS
20141 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
20142 cat >conftest.$ac_ext <<_ACEOF
20143 /* confdefs.h. */
20144 _ACEOF
20145 cat confdefs.h >>conftest.$ac_ext
20146 cat >>conftest.$ac_ext <<_ACEOF
20147 /* end confdefs.h. */
20149 /* Override any GCC internal prototype to avoid an error.
20150 Use char because int might match the return type of a GCC
20151 builtin and then its argument prototype would still apply. */
20152 #ifdef __cplusplus
20153 extern "C"
20154 #endif
20155 char ldap_simple_bind ();
20157 main ()
20159 return ldap_simple_bind ();
20161 return 0;
20163 _ACEOF
20164 rm -f conftest.$ac_objext conftest$ac_exeext
20165 if { (ac_try="$ac_link"
20166 case "(($ac_try" in
20167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20168 *) ac_try_echo=$ac_try;;
20169 esac
20170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20171 (eval "$ac_link") 2>conftest.er1
20172 ac_status=$?
20173 grep -v '^ *+' conftest.er1 >conftest.err
20174 rm -f conftest.er1
20175 cat conftest.err >&5
20176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177 (exit $ac_status); } && {
20178 test -z "$ac_c_werror_flag" ||
20179 test ! -s conftest.err
20180 } && test -s conftest$ac_exeext &&
20181 $as_test_x conftest$ac_exeext; then
20182 ac_cv_lib_ldap_r_ldap_simple_bind=yes
20183 else
20184 echo "$as_me: failed program was:" >&5
20185 sed 's/^/| /' conftest.$ac_ext >&5
20187 ac_cv_lib_ldap_r_ldap_simple_bind=no
20190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20191 conftest$ac_exeext conftest.$ac_ext
20192 LIBS=$ac_check_lib_save_LIBS
20194 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
20195 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
20196 if test $ac_cv_lib_ldap_r_ldap_simple_bind = yes; then
20197 cat >>confdefs.h <<_ACEOF
20198 #define HAVE_LIBLDAP_R 1
20199 _ACEOF
20201 LIBS="-lldap_r $LIBS"
20203 else
20204 { { echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
20205 echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
20206 { (exit 1); exit 1; }; }
20209 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
20210 else
20211 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
20213 else
20215 { echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
20216 echo $ECHO_N "checking for ldap_bind in -lwldap32... $ECHO_C" >&6; }
20217 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
20218 echo $ECHO_N "(cached) $ECHO_C" >&6
20219 else
20220 ac_check_lib_save_LIBS=$LIBS
20221 LIBS="-lwldap32 $LIBS"
20222 cat >conftest.$ac_ext <<_ACEOF
20223 /* confdefs.h. */
20224 _ACEOF
20225 cat confdefs.h >>conftest.$ac_ext
20226 cat >>conftest.$ac_ext <<_ACEOF
20227 /* end confdefs.h. */
20229 /* Override any GCC internal prototype to avoid an error.
20230 Use char because int might match the return type of a GCC
20231 builtin and then its argument prototype would still apply. */
20232 #ifdef __cplusplus
20233 extern "C"
20234 #endif
20235 char ldap_bind ();
20237 main ()
20239 return ldap_bind ();
20241 return 0;
20243 _ACEOF
20244 rm -f conftest.$ac_objext conftest$ac_exeext
20245 if { (ac_try="$ac_link"
20246 case "(($ac_try" in
20247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20248 *) ac_try_echo=$ac_try;;
20249 esac
20250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20251 (eval "$ac_link") 2>conftest.er1
20252 ac_status=$?
20253 grep -v '^ *+' conftest.er1 >conftest.err
20254 rm -f conftest.er1
20255 cat conftest.err >&5
20256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257 (exit $ac_status); } && {
20258 test -z "$ac_c_werror_flag" ||
20259 test ! -s conftest.err
20260 } && test -s conftest$ac_exeext &&
20261 $as_test_x conftest$ac_exeext; then
20262 ac_cv_lib_wldap32_ldap_bind=yes
20263 else
20264 echo "$as_me: failed program was:" >&5
20265 sed 's/^/| /' conftest.$ac_ext >&5
20267 ac_cv_lib_wldap32_ldap_bind=no
20270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20271 conftest$ac_exeext conftest.$ac_ext
20272 LIBS=$ac_check_lib_save_LIBS
20274 { echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
20275 echo "${ECHO_T}$ac_cv_lib_wldap32_ldap_bind" >&6; }
20276 if test $ac_cv_lib_wldap32_ldap_bind = yes; then
20277 cat >>confdefs.h <<_ACEOF
20278 #define HAVE_LIBWLDAP32 1
20279 _ACEOF
20281 LIBS="-lwldap32 $LIBS"
20283 else
20284 { { echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
20285 echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
20286 { (exit 1); exit 1; }; }
20289 LDAP_LIBS_FE="-lwldap32"
20290 LDAP_LIBS_BE="-lwldap32"
20292 LIBS="$_LIBS"
20298 # This test makes sure that run tests work at all. Sometimes a shared
20299 # library is found by the linker, but the runtime linker can't find it.
20300 # This check should come after all modifications of compiler or linker
20301 # variables, and before any other run tests.
20302 { echo "$as_me:$LINENO: checking test program" >&5
20303 echo $ECHO_N "checking test program... $ECHO_C" >&6; }
20304 if test "$cross_compiling" = yes; then
20305 { echo "$as_me:$LINENO: result: cross-compiling" >&5
20306 echo "${ECHO_T}cross-compiling" >&6; }
20307 else
20308 cat >conftest.$ac_ext <<_ACEOF
20309 /* confdefs.h. */
20310 _ACEOF
20311 cat confdefs.h >>conftest.$ac_ext
20312 cat >>conftest.$ac_ext <<_ACEOF
20313 /* end confdefs.h. */
20314 int main() { return 0; }
20315 _ACEOF
20316 rm -f conftest$ac_exeext
20317 if { (ac_try="$ac_link"
20318 case "(($ac_try" in
20319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20320 *) ac_try_echo=$ac_try;;
20321 esac
20322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20323 (eval "$ac_link") 2>&5
20324 ac_status=$?
20325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20327 { (case "(($ac_try" in
20328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20329 *) ac_try_echo=$ac_try;;
20330 esac
20331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20332 (eval "$ac_try") 2>&5
20333 ac_status=$?
20334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335 (exit $ac_status); }; }; then
20336 { echo "$as_me:$LINENO: result: ok" >&5
20337 echo "${ECHO_T}ok" >&6; }
20338 else
20339 echo "$as_me: program exited with status $ac_status" >&5
20340 echo "$as_me: failed program was:" >&5
20341 sed 's/^/| /' conftest.$ac_ext >&5
20343 ( exit $ac_status )
20344 { echo "$as_me:$LINENO: result: failed" >&5
20345 echo "${ECHO_T}failed" >&6; }
20346 { { echo "$as_me:$LINENO: error:
20347 Could not execute a simple test program. This may be a problem
20348 related to locating shared libraries. Check the file 'config.log'
20349 for the exact reason." >&5
20350 echo "$as_me: error:
20351 Could not execute a simple test program. This may be a problem
20352 related to locating shared libraries. Check the file 'config.log'
20353 for the exact reason." >&2;}
20354 { (exit 1); exit 1; }; }
20356 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20361 # --------------------
20362 # Run tests below here
20363 # --------------------
20365 # Force use of our snprintf if system's doesn't do arg control
20366 # See comment above at snprintf test for details.
20367 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
20368 { echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
20369 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6; }
20370 if test "${pgac_cv_printf_arg_control+set}" = set; then
20371 echo $ECHO_N "(cached) $ECHO_C" >&6
20372 else
20373 if test "$cross_compiling" = yes; then
20374 pgac_cv_printf_arg_control=cross
20375 else
20376 cat >conftest.$ac_ext <<_ACEOF
20377 /* confdefs.h. */
20378 _ACEOF
20379 cat confdefs.h >>conftest.$ac_ext
20380 cat >>conftest.$ac_ext <<_ACEOF
20381 /* end confdefs.h. */
20382 #include <stdio.h>
20383 #include <string.h>
20385 int main()
20387 char buf[100];
20389 /* can it swap arguments? */
20390 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
20391 if (strcmp(buf, "4 3") != 0)
20392 return 1;
20393 return 0;
20395 _ACEOF
20396 rm -f conftest$ac_exeext
20397 if { (ac_try="$ac_link"
20398 case "(($ac_try" in
20399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20400 *) ac_try_echo=$ac_try;;
20401 esac
20402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20403 (eval "$ac_link") 2>&5
20404 ac_status=$?
20405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20407 { (case "(($ac_try" in
20408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20409 *) ac_try_echo=$ac_try;;
20410 esac
20411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20412 (eval "$ac_try") 2>&5
20413 ac_status=$?
20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); }; }; then
20416 pgac_cv_printf_arg_control=yes
20417 else
20418 echo "$as_me: program exited with status $ac_status" >&5
20419 echo "$as_me: failed program was:" >&5
20420 sed 's/^/| /' conftest.$ac_ext >&5
20422 ( exit $ac_status )
20423 pgac_cv_printf_arg_control=no
20425 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20431 { echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
20432 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6; }
20434 if test $pgac_cv_printf_arg_control != yes ; then
20435 pgac_need_repl_snprintf=yes
20441 { echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
20442 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6; }
20443 if test "${pgac_cv_type_long_int_64+set}" = set; then
20444 echo $ECHO_N "(cached) $ECHO_C" >&6
20445 else
20446 if test "$cross_compiling" = yes; then
20447 # If cross-compiling, check the size reported by the compiler and
20448 # trust that the arithmetic works.
20449 cat >conftest.$ac_ext <<_ACEOF
20450 /* confdefs.h. */
20451 _ACEOF
20452 cat confdefs.h >>conftest.$ac_ext
20453 cat >>conftest.$ac_ext <<_ACEOF
20454 /* end confdefs.h. */
20457 main ()
20459 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
20460 test_array [0] = 0
20463 return 0;
20465 _ACEOF
20466 rm -f conftest.$ac_objext
20467 if { (ac_try="$ac_compile"
20468 case "(($ac_try" in
20469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20470 *) ac_try_echo=$ac_try;;
20471 esac
20472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20473 (eval "$ac_compile") 2>conftest.er1
20474 ac_status=$?
20475 grep -v '^ *+' conftest.er1 >conftest.err
20476 rm -f conftest.er1
20477 cat conftest.err >&5
20478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479 (exit $ac_status); } && {
20480 test -z "$ac_c_werror_flag" ||
20481 test ! -s conftest.err
20482 } && test -s conftest.$ac_objext; then
20483 pgac_cv_type_long_int_64=yes
20484 else
20485 echo "$as_me: failed program was:" >&5
20486 sed 's/^/| /' conftest.$ac_ext >&5
20488 pgac_cv_type_long_int_64=no
20491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20492 else
20493 cat >conftest.$ac_ext <<_ACEOF
20494 /* confdefs.h. */
20495 _ACEOF
20496 cat confdefs.h >>conftest.$ac_ext
20497 cat >>conftest.$ac_ext <<_ACEOF
20498 /* end confdefs.h. */
20499 typedef long int ac_int64;
20502 * These are globals to discourage the compiler from folding all the
20503 * arithmetic tests down to compile-time constants.
20505 ac_int64 a = 20000001;
20506 ac_int64 b = 40000005;
20508 int does_int64_work()
20510 ac_int64 c,d;
20512 if (sizeof(ac_int64) != 8)
20513 return 0; /* definitely not the right size */
20515 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
20516 c = a * b;
20517 d = (c + b) / b;
20518 if (d != a+1)
20519 return 0;
20520 return 1;
20522 main() {
20523 exit(! does_int64_work());
20525 _ACEOF
20526 rm -f conftest$ac_exeext
20527 if { (ac_try="$ac_link"
20528 case "(($ac_try" in
20529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20530 *) ac_try_echo=$ac_try;;
20531 esac
20532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20533 (eval "$ac_link") 2>&5
20534 ac_status=$?
20535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20537 { (case "(($ac_try" in
20538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20539 *) ac_try_echo=$ac_try;;
20540 esac
20541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20542 (eval "$ac_try") 2>&5
20543 ac_status=$?
20544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545 (exit $ac_status); }; }; then
20546 pgac_cv_type_long_int_64=yes
20547 else
20548 echo "$as_me: program exited with status $ac_status" >&5
20549 echo "$as_me: failed program was:" >&5
20550 sed 's/^/| /' conftest.$ac_ext >&5
20552 ( exit $ac_status )
20553 pgac_cv_type_long_int_64=no
20555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20560 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
20561 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6; }
20563 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
20564 if test x"$pgac_cv_type_long_int_64" = xyes ; then
20566 cat >>confdefs.h <<\_ACEOF
20567 #define HAVE_LONG_INT_64 1
20568 _ACEOF
20573 if test x"$HAVE_LONG_INT_64" = x"no" ; then
20574 { echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
20575 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6; }
20576 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
20577 echo $ECHO_N "(cached) $ECHO_C" >&6
20578 else
20579 if test "$cross_compiling" = yes; then
20580 # If cross-compiling, check the size reported by the compiler and
20581 # trust that the arithmetic works.
20582 cat >conftest.$ac_ext <<_ACEOF
20583 /* confdefs.h. */
20584 _ACEOF
20585 cat confdefs.h >>conftest.$ac_ext
20586 cat >>conftest.$ac_ext <<_ACEOF
20587 /* end confdefs.h. */
20590 main ()
20592 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
20593 test_array [0] = 0
20596 return 0;
20598 _ACEOF
20599 rm -f conftest.$ac_objext
20600 if { (ac_try="$ac_compile"
20601 case "(($ac_try" in
20602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20603 *) ac_try_echo=$ac_try;;
20604 esac
20605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20606 (eval "$ac_compile") 2>conftest.er1
20607 ac_status=$?
20608 grep -v '^ *+' conftest.er1 >conftest.err
20609 rm -f conftest.er1
20610 cat conftest.err >&5
20611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612 (exit $ac_status); } && {
20613 test -z "$ac_c_werror_flag" ||
20614 test ! -s conftest.err
20615 } && test -s conftest.$ac_objext; then
20616 pgac_cv_type_long_long_int_64=yes
20617 else
20618 echo "$as_me: failed program was:" >&5
20619 sed 's/^/| /' conftest.$ac_ext >&5
20621 pgac_cv_type_long_long_int_64=no
20624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20625 else
20626 cat >conftest.$ac_ext <<_ACEOF
20627 /* confdefs.h. */
20628 _ACEOF
20629 cat confdefs.h >>conftest.$ac_ext
20630 cat >>conftest.$ac_ext <<_ACEOF
20631 /* end confdefs.h. */
20632 typedef long long int ac_int64;
20635 * These are globals to discourage the compiler from folding all the
20636 * arithmetic tests down to compile-time constants.
20638 ac_int64 a = 20000001;
20639 ac_int64 b = 40000005;
20641 int does_int64_work()
20643 ac_int64 c,d;
20645 if (sizeof(ac_int64) != 8)
20646 return 0; /* definitely not the right size */
20648 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
20649 c = a * b;
20650 d = (c + b) / b;
20651 if (d != a+1)
20652 return 0;
20653 return 1;
20655 main() {
20656 exit(! does_int64_work());
20658 _ACEOF
20659 rm -f conftest$ac_exeext
20660 if { (ac_try="$ac_link"
20661 case "(($ac_try" in
20662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20663 *) ac_try_echo=$ac_try;;
20664 esac
20665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20666 (eval "$ac_link") 2>&5
20667 ac_status=$?
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20670 { (case "(($ac_try" in
20671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20672 *) ac_try_echo=$ac_try;;
20673 esac
20674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20675 (eval "$ac_try") 2>&5
20676 ac_status=$?
20677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20678 (exit $ac_status); }; }; then
20679 pgac_cv_type_long_long_int_64=yes
20680 else
20681 echo "$as_me: program exited with status $ac_status" >&5
20682 echo "$as_me: failed program was:" >&5
20683 sed 's/^/| /' conftest.$ac_ext >&5
20685 ( exit $ac_status )
20686 pgac_cv_type_long_long_int_64=no
20688 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20693 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
20694 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6; }
20696 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
20697 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
20699 cat >>confdefs.h <<\_ACEOF
20700 #define HAVE_LONG_LONG_INT_64 1
20701 _ACEOF
20709 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
20710 cat >conftest.$ac_ext <<_ACEOF
20711 /* confdefs.h. */
20712 _ACEOF
20713 cat confdefs.h >>conftest.$ac_ext
20714 cat >>conftest.$ac_ext <<_ACEOF
20715 /* end confdefs.h. */
20717 #define INT64CONST(x) x##LL
20718 long long int foo = INT64CONST(0x1234567890123456);
20721 main ()
20725 return 0;
20727 _ACEOF
20728 rm -f conftest.$ac_objext
20729 if { (ac_try="$ac_compile"
20730 case "(($ac_try" in
20731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20732 *) ac_try_echo=$ac_try;;
20733 esac
20734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20735 (eval "$ac_compile") 2>conftest.er1
20736 ac_status=$?
20737 grep -v '^ *+' conftest.er1 >conftest.err
20738 rm -f conftest.er1
20739 cat conftest.err >&5
20740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741 (exit $ac_status); } && {
20742 test -z "$ac_c_werror_flag" ||
20743 test ! -s conftest.err
20744 } && test -s conftest.$ac_objext; then
20746 cat >>confdefs.h <<\_ACEOF
20747 #define HAVE_LL_CONSTANTS 1
20748 _ACEOF
20750 else
20751 echo "$as_me: failed program was:" >&5
20752 sed 's/^/| /' conftest.$ac_ext >&5
20757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20761 # If we found "long int" is 64 bits, assume snprintf handles it. If
20762 # we found we need to use "long long int", better check. We cope with
20763 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
20764 # work, fall back to our own snprintf emulation (which we know uses %lld).
20766 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
20767 if test $pgac_need_repl_snprintf = no; then
20768 { echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
20769 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6; }
20770 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
20771 echo $ECHO_N "(cached) $ECHO_C" >&6
20772 else
20773 for pgac_format in '%lld' '%qd' '%I64d'; do
20774 if test "$cross_compiling" = yes; then
20775 pgac_cv_snprintf_long_long_int_format=cross; break
20776 else
20777 cat >conftest.$ac_ext <<_ACEOF
20778 /* confdefs.h. */
20779 _ACEOF
20780 cat confdefs.h >>conftest.$ac_ext
20781 cat >>conftest.$ac_ext <<_ACEOF
20782 /* end confdefs.h. */
20783 #include <stdio.h>
20784 typedef long long int ac_int64;
20785 #define INT64_FORMAT "$pgac_format"
20787 ac_int64 a = 20000001;
20788 ac_int64 b = 40000005;
20790 int does_int64_snprintf_work()
20792 ac_int64 c;
20793 char buf[100];
20795 if (sizeof(ac_int64) != 8)
20796 return 0; /* doesn't look like the right size */
20798 c = a * b;
20799 snprintf(buf, 100, INT64_FORMAT, c);
20800 if (strcmp(buf, "800000140000005") != 0)
20801 return 0; /* either multiply or snprintf is busted */
20802 return 1;
20804 main() {
20805 exit(! does_int64_snprintf_work());
20807 _ACEOF
20808 rm -f conftest$ac_exeext
20809 if { (ac_try="$ac_link"
20810 case "(($ac_try" in
20811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20812 *) ac_try_echo=$ac_try;;
20813 esac
20814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20815 (eval "$ac_link") 2>&5
20816 ac_status=$?
20817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20819 { (case "(($ac_try" in
20820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20821 *) ac_try_echo=$ac_try;;
20822 esac
20823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20824 (eval "$ac_try") 2>&5
20825 ac_status=$?
20826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); }; }; then
20828 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
20829 else
20830 echo "$as_me: program exited with status $ac_status" >&5
20831 echo "$as_me: failed program was:" >&5
20832 sed 's/^/| /' conftest.$ac_ext >&5
20835 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20839 done
20842 LONG_LONG_INT_FORMAT=''
20844 case $pgac_cv_snprintf_long_long_int_format in
20845 cross) { echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
20846 echo "${ECHO_T}cannot test (not on host machine)" >&6; };;
20847 ?*) { echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
20848 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6; }
20849 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
20850 *) { echo "$as_me:$LINENO: result: none" >&5
20851 echo "${ECHO_T}none" >&6; };;
20852 esac
20853 if test "$LONG_LONG_INT_FORMAT" = ""; then
20854 # Force usage of our own snprintf, since system snprintf is broken
20855 pgac_need_repl_snprintf=yes
20856 LONG_LONG_INT_FORMAT='%lld'
20858 else
20859 # Here if we previously decided we needed to use our own snprintf
20860 LONG_LONG_INT_FORMAT='%lld'
20862 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
20863 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
20864 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
20865 else
20866 # Here if we are not using 'long long int' at all
20867 INT64_FORMAT='"%ld"'
20868 UINT64_FORMAT='"%lu"'
20872 cat >>confdefs.h <<_ACEOF
20873 #define INT64_FORMAT $INT64_FORMAT
20874 _ACEOF
20878 cat >>confdefs.h <<_ACEOF
20879 #define UINT64_FORMAT $UINT64_FORMAT
20880 _ACEOF
20883 # Now we have checked all the reasons to replace snprintf
20884 if test $pgac_need_repl_snprintf = yes; then
20886 cat >>confdefs.h <<\_ACEOF
20887 #define USE_REPL_SNPRINTF 1
20888 _ACEOF
20890 case " $LIBOBJS " in
20891 *" snprintf.$ac_objext "* ) ;;
20892 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20894 esac
20898 # Need a #define for the size of Datum (unsigned long)
20899 { echo "$as_me:$LINENO: checking for unsigned long" >&5
20900 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
20901 if test "${ac_cv_type_unsigned_long+set}" = set; then
20902 echo $ECHO_N "(cached) $ECHO_C" >&6
20903 else
20904 cat >conftest.$ac_ext <<_ACEOF
20905 /* confdefs.h. */
20906 _ACEOF
20907 cat confdefs.h >>conftest.$ac_ext
20908 cat >>conftest.$ac_ext <<_ACEOF
20909 /* end confdefs.h. */
20910 $ac_includes_default
20911 typedef unsigned long ac__type_new_;
20913 main ()
20915 if ((ac__type_new_ *) 0)
20916 return 0;
20917 if (sizeof (ac__type_new_))
20918 return 0;
20920 return 0;
20922 _ACEOF
20923 rm -f conftest.$ac_objext
20924 if { (ac_try="$ac_compile"
20925 case "(($ac_try" in
20926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20927 *) ac_try_echo=$ac_try;;
20928 esac
20929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20930 (eval "$ac_compile") 2>conftest.er1
20931 ac_status=$?
20932 grep -v '^ *+' conftest.er1 >conftest.err
20933 rm -f conftest.er1
20934 cat conftest.err >&5
20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936 (exit $ac_status); } && {
20937 test -z "$ac_c_werror_flag" ||
20938 test ! -s conftest.err
20939 } && test -s conftest.$ac_objext; then
20940 ac_cv_type_unsigned_long=yes
20941 else
20942 echo "$as_me: failed program was:" >&5
20943 sed 's/^/| /' conftest.$ac_ext >&5
20945 ac_cv_type_unsigned_long=no
20948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20950 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
20951 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
20953 # The cast to long int works around a bug in the HP C Compiler
20954 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20955 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20956 # This bug is HP SR number 8606223364.
20957 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
20958 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
20959 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
20960 echo $ECHO_N "(cached) $ECHO_C" >&6
20961 else
20962 if test "$cross_compiling" = yes; then
20963 # Depending upon the size, compute the lo and hi bounds.
20964 cat >conftest.$ac_ext <<_ACEOF
20965 /* confdefs.h. */
20966 _ACEOF
20967 cat confdefs.h >>conftest.$ac_ext
20968 cat >>conftest.$ac_ext <<_ACEOF
20969 /* end confdefs.h. */
20970 $ac_includes_default
20971 typedef unsigned long ac__type_sizeof_;
20973 main ()
20975 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20976 test_array [0] = 0
20979 return 0;
20981 _ACEOF
20982 rm -f conftest.$ac_objext
20983 if { (ac_try="$ac_compile"
20984 case "(($ac_try" in
20985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20986 *) ac_try_echo=$ac_try;;
20987 esac
20988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20989 (eval "$ac_compile") 2>conftest.er1
20990 ac_status=$?
20991 grep -v '^ *+' conftest.er1 >conftest.err
20992 rm -f conftest.er1
20993 cat conftest.err >&5
20994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995 (exit $ac_status); } && {
20996 test -z "$ac_c_werror_flag" ||
20997 test ! -s conftest.err
20998 } && test -s conftest.$ac_objext; then
20999 ac_lo=0 ac_mid=0
21000 while :; do
21001 cat >conftest.$ac_ext <<_ACEOF
21002 /* confdefs.h. */
21003 _ACEOF
21004 cat confdefs.h >>conftest.$ac_ext
21005 cat >>conftest.$ac_ext <<_ACEOF
21006 /* end confdefs.h. */
21007 $ac_includes_default
21008 typedef unsigned long ac__type_sizeof_;
21010 main ()
21012 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21013 test_array [0] = 0
21016 return 0;
21018 _ACEOF
21019 rm -f conftest.$ac_objext
21020 if { (ac_try="$ac_compile"
21021 case "(($ac_try" in
21022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21023 *) ac_try_echo=$ac_try;;
21024 esac
21025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21026 (eval "$ac_compile") 2>conftest.er1
21027 ac_status=$?
21028 grep -v '^ *+' conftest.er1 >conftest.err
21029 rm -f conftest.er1
21030 cat conftest.err >&5
21031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032 (exit $ac_status); } && {
21033 test -z "$ac_c_werror_flag" ||
21034 test ! -s conftest.err
21035 } && test -s conftest.$ac_objext; then
21036 ac_hi=$ac_mid; break
21037 else
21038 echo "$as_me: failed program was:" >&5
21039 sed 's/^/| /' conftest.$ac_ext >&5
21041 ac_lo=`expr $ac_mid + 1`
21042 if test $ac_lo -le $ac_mid; then
21043 ac_lo= ac_hi=
21044 break
21046 ac_mid=`expr 2 '*' $ac_mid + 1`
21049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21050 done
21051 else
21052 echo "$as_me: failed program was:" >&5
21053 sed 's/^/| /' conftest.$ac_ext >&5
21055 cat >conftest.$ac_ext <<_ACEOF
21056 /* confdefs.h. */
21057 _ACEOF
21058 cat confdefs.h >>conftest.$ac_ext
21059 cat >>conftest.$ac_ext <<_ACEOF
21060 /* end confdefs.h. */
21061 $ac_includes_default
21062 typedef unsigned long ac__type_sizeof_;
21064 main ()
21066 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21067 test_array [0] = 0
21070 return 0;
21072 _ACEOF
21073 rm -f conftest.$ac_objext
21074 if { (ac_try="$ac_compile"
21075 case "(($ac_try" in
21076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21077 *) ac_try_echo=$ac_try;;
21078 esac
21079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21080 (eval "$ac_compile") 2>conftest.er1
21081 ac_status=$?
21082 grep -v '^ *+' conftest.er1 >conftest.err
21083 rm -f conftest.er1
21084 cat conftest.err >&5
21085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086 (exit $ac_status); } && {
21087 test -z "$ac_c_werror_flag" ||
21088 test ! -s conftest.err
21089 } && test -s conftest.$ac_objext; then
21090 ac_hi=-1 ac_mid=-1
21091 while :; do
21092 cat >conftest.$ac_ext <<_ACEOF
21093 /* confdefs.h. */
21094 _ACEOF
21095 cat confdefs.h >>conftest.$ac_ext
21096 cat >>conftest.$ac_ext <<_ACEOF
21097 /* end confdefs.h. */
21098 $ac_includes_default
21099 typedef unsigned long ac__type_sizeof_;
21101 main ()
21103 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21104 test_array [0] = 0
21107 return 0;
21109 _ACEOF
21110 rm -f conftest.$ac_objext
21111 if { (ac_try="$ac_compile"
21112 case "(($ac_try" in
21113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21114 *) ac_try_echo=$ac_try;;
21115 esac
21116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21117 (eval "$ac_compile") 2>conftest.er1
21118 ac_status=$?
21119 grep -v '^ *+' conftest.er1 >conftest.err
21120 rm -f conftest.er1
21121 cat conftest.err >&5
21122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21123 (exit $ac_status); } && {
21124 test -z "$ac_c_werror_flag" ||
21125 test ! -s conftest.err
21126 } && test -s conftest.$ac_objext; then
21127 ac_lo=$ac_mid; break
21128 else
21129 echo "$as_me: failed program was:" >&5
21130 sed 's/^/| /' conftest.$ac_ext >&5
21132 ac_hi=`expr '(' $ac_mid ')' - 1`
21133 if test $ac_mid -le $ac_hi; then
21134 ac_lo= ac_hi=
21135 break
21137 ac_mid=`expr 2 '*' $ac_mid`
21140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21141 done
21142 else
21143 echo "$as_me: failed program was:" >&5
21144 sed 's/^/| /' conftest.$ac_ext >&5
21146 ac_lo= ac_hi=
21149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21153 # Binary search between lo and hi bounds.
21154 while test "x$ac_lo" != "x$ac_hi"; do
21155 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21156 cat >conftest.$ac_ext <<_ACEOF
21157 /* confdefs.h. */
21158 _ACEOF
21159 cat confdefs.h >>conftest.$ac_ext
21160 cat >>conftest.$ac_ext <<_ACEOF
21161 /* end confdefs.h. */
21162 $ac_includes_default
21163 typedef unsigned long ac__type_sizeof_;
21165 main ()
21167 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21168 test_array [0] = 0
21171 return 0;
21173 _ACEOF
21174 rm -f conftest.$ac_objext
21175 if { (ac_try="$ac_compile"
21176 case "(($ac_try" in
21177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21178 *) ac_try_echo=$ac_try;;
21179 esac
21180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21181 (eval "$ac_compile") 2>conftest.er1
21182 ac_status=$?
21183 grep -v '^ *+' conftest.er1 >conftest.err
21184 rm -f conftest.er1
21185 cat conftest.err >&5
21186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187 (exit $ac_status); } && {
21188 test -z "$ac_c_werror_flag" ||
21189 test ! -s conftest.err
21190 } && test -s conftest.$ac_objext; then
21191 ac_hi=$ac_mid
21192 else
21193 echo "$as_me: failed program was:" >&5
21194 sed 's/^/| /' conftest.$ac_ext >&5
21196 ac_lo=`expr '(' $ac_mid ')' + 1`
21199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21200 done
21201 case $ac_lo in
21202 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
21203 '') if test "$ac_cv_type_unsigned_long" = yes; then
21204 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
21205 See \`config.log' for more details." >&5
21206 echo "$as_me: error: cannot compute sizeof (unsigned long)
21207 See \`config.log' for more details." >&2;}
21208 { (exit 77); exit 77; }; }
21209 else
21210 ac_cv_sizeof_unsigned_long=0
21211 fi ;;
21212 esac
21213 else
21214 cat >conftest.$ac_ext <<_ACEOF
21215 /* confdefs.h. */
21216 _ACEOF
21217 cat confdefs.h >>conftest.$ac_ext
21218 cat >>conftest.$ac_ext <<_ACEOF
21219 /* end confdefs.h. */
21220 $ac_includes_default
21221 typedef unsigned long ac__type_sizeof_;
21222 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21223 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21224 #include <stdio.h>
21225 #include <stdlib.h>
21227 main ()
21230 FILE *f = fopen ("conftest.val", "w");
21231 if (! f)
21232 return 1;
21233 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21235 long int i = longval ();
21236 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21237 return 1;
21238 fprintf (f, "%ld\n", i);
21240 else
21242 unsigned long int i = ulongval ();
21243 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21244 return 1;
21245 fprintf (f, "%lu\n", i);
21247 return ferror (f) || fclose (f) != 0;
21250 return 0;
21252 _ACEOF
21253 rm -f conftest$ac_exeext
21254 if { (ac_try="$ac_link"
21255 case "(($ac_try" in
21256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21257 *) ac_try_echo=$ac_try;;
21258 esac
21259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21260 (eval "$ac_link") 2>&5
21261 ac_status=$?
21262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21263 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21264 { (case "(($ac_try" in
21265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21266 *) ac_try_echo=$ac_try;;
21267 esac
21268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21269 (eval "$ac_try") 2>&5
21270 ac_status=$?
21271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21272 (exit $ac_status); }; }; then
21273 ac_cv_sizeof_unsigned_long=`cat conftest.val`
21274 else
21275 echo "$as_me: program exited with status $ac_status" >&5
21276 echo "$as_me: failed program was:" >&5
21277 sed 's/^/| /' conftest.$ac_ext >&5
21279 ( exit $ac_status )
21280 if test "$ac_cv_type_unsigned_long" = yes; then
21281 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
21282 See \`config.log' for more details." >&5
21283 echo "$as_me: error: cannot compute sizeof (unsigned long)
21284 See \`config.log' for more details." >&2;}
21285 { (exit 77); exit 77; }; }
21286 else
21287 ac_cv_sizeof_unsigned_long=0
21290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21292 rm -f conftest.val
21294 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
21295 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
21299 cat >>confdefs.h <<_ACEOF
21300 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21301 _ACEOF
21305 # And check size of void *, size_t (enables tweaks for > 32bit address space)
21306 { echo "$as_me:$LINENO: checking for void *" >&5
21307 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
21308 if test "${ac_cv_type_void_p+set}" = set; then
21309 echo $ECHO_N "(cached) $ECHO_C" >&6
21310 else
21311 cat >conftest.$ac_ext <<_ACEOF
21312 /* confdefs.h. */
21313 _ACEOF
21314 cat confdefs.h >>conftest.$ac_ext
21315 cat >>conftest.$ac_ext <<_ACEOF
21316 /* end confdefs.h. */
21317 $ac_includes_default
21318 typedef void * ac__type_new_;
21320 main ()
21322 if ((ac__type_new_ *) 0)
21323 return 0;
21324 if (sizeof (ac__type_new_))
21325 return 0;
21327 return 0;
21329 _ACEOF
21330 rm -f conftest.$ac_objext
21331 if { (ac_try="$ac_compile"
21332 case "(($ac_try" in
21333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21334 *) ac_try_echo=$ac_try;;
21335 esac
21336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21337 (eval "$ac_compile") 2>conftest.er1
21338 ac_status=$?
21339 grep -v '^ *+' conftest.er1 >conftest.err
21340 rm -f conftest.er1
21341 cat conftest.err >&5
21342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21343 (exit $ac_status); } && {
21344 test -z "$ac_c_werror_flag" ||
21345 test ! -s conftest.err
21346 } && test -s conftest.$ac_objext; then
21347 ac_cv_type_void_p=yes
21348 else
21349 echo "$as_me: failed program was:" >&5
21350 sed 's/^/| /' conftest.$ac_ext >&5
21352 ac_cv_type_void_p=no
21355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21357 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
21358 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
21360 # The cast to long int works around a bug in the HP C Compiler
21361 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21362 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21363 # This bug is HP SR number 8606223364.
21364 { echo "$as_me:$LINENO: checking size of void *" >&5
21365 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
21366 if test "${ac_cv_sizeof_void_p+set}" = set; then
21367 echo $ECHO_N "(cached) $ECHO_C" >&6
21368 else
21369 if test "$cross_compiling" = yes; then
21370 # Depending upon the size, compute the lo and hi bounds.
21371 cat >conftest.$ac_ext <<_ACEOF
21372 /* confdefs.h. */
21373 _ACEOF
21374 cat confdefs.h >>conftest.$ac_ext
21375 cat >>conftest.$ac_ext <<_ACEOF
21376 /* end confdefs.h. */
21377 $ac_includes_default
21378 typedef void * ac__type_sizeof_;
21380 main ()
21382 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21383 test_array [0] = 0
21386 return 0;
21388 _ACEOF
21389 rm -f conftest.$ac_objext
21390 if { (ac_try="$ac_compile"
21391 case "(($ac_try" in
21392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21393 *) ac_try_echo=$ac_try;;
21394 esac
21395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21396 (eval "$ac_compile") 2>conftest.er1
21397 ac_status=$?
21398 grep -v '^ *+' conftest.er1 >conftest.err
21399 rm -f conftest.er1
21400 cat conftest.err >&5
21401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21402 (exit $ac_status); } && {
21403 test -z "$ac_c_werror_flag" ||
21404 test ! -s conftest.err
21405 } && test -s conftest.$ac_objext; then
21406 ac_lo=0 ac_mid=0
21407 while :; do
21408 cat >conftest.$ac_ext <<_ACEOF
21409 /* confdefs.h. */
21410 _ACEOF
21411 cat confdefs.h >>conftest.$ac_ext
21412 cat >>conftest.$ac_ext <<_ACEOF
21413 /* end confdefs.h. */
21414 $ac_includes_default
21415 typedef void * ac__type_sizeof_;
21417 main ()
21419 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21420 test_array [0] = 0
21423 return 0;
21425 _ACEOF
21426 rm -f conftest.$ac_objext
21427 if { (ac_try="$ac_compile"
21428 case "(($ac_try" in
21429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21430 *) ac_try_echo=$ac_try;;
21431 esac
21432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21433 (eval "$ac_compile") 2>conftest.er1
21434 ac_status=$?
21435 grep -v '^ *+' conftest.er1 >conftest.err
21436 rm -f conftest.er1
21437 cat conftest.err >&5
21438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21439 (exit $ac_status); } && {
21440 test -z "$ac_c_werror_flag" ||
21441 test ! -s conftest.err
21442 } && test -s conftest.$ac_objext; then
21443 ac_hi=$ac_mid; break
21444 else
21445 echo "$as_me: failed program was:" >&5
21446 sed 's/^/| /' conftest.$ac_ext >&5
21448 ac_lo=`expr $ac_mid + 1`
21449 if test $ac_lo -le $ac_mid; then
21450 ac_lo= ac_hi=
21451 break
21453 ac_mid=`expr 2 '*' $ac_mid + 1`
21456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21457 done
21458 else
21459 echo "$as_me: failed program was:" >&5
21460 sed 's/^/| /' conftest.$ac_ext >&5
21462 cat >conftest.$ac_ext <<_ACEOF
21463 /* confdefs.h. */
21464 _ACEOF
21465 cat confdefs.h >>conftest.$ac_ext
21466 cat >>conftest.$ac_ext <<_ACEOF
21467 /* end confdefs.h. */
21468 $ac_includes_default
21469 typedef void * ac__type_sizeof_;
21471 main ()
21473 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21474 test_array [0] = 0
21477 return 0;
21479 _ACEOF
21480 rm -f conftest.$ac_objext
21481 if { (ac_try="$ac_compile"
21482 case "(($ac_try" in
21483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21484 *) ac_try_echo=$ac_try;;
21485 esac
21486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21487 (eval "$ac_compile") 2>conftest.er1
21488 ac_status=$?
21489 grep -v '^ *+' conftest.er1 >conftest.err
21490 rm -f conftest.er1
21491 cat conftest.err >&5
21492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493 (exit $ac_status); } && {
21494 test -z "$ac_c_werror_flag" ||
21495 test ! -s conftest.err
21496 } && test -s conftest.$ac_objext; then
21497 ac_hi=-1 ac_mid=-1
21498 while :; do
21499 cat >conftest.$ac_ext <<_ACEOF
21500 /* confdefs.h. */
21501 _ACEOF
21502 cat confdefs.h >>conftest.$ac_ext
21503 cat >>conftest.$ac_ext <<_ACEOF
21504 /* end confdefs.h. */
21505 $ac_includes_default
21506 typedef void * ac__type_sizeof_;
21508 main ()
21510 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21511 test_array [0] = 0
21514 return 0;
21516 _ACEOF
21517 rm -f conftest.$ac_objext
21518 if { (ac_try="$ac_compile"
21519 case "(($ac_try" in
21520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21521 *) ac_try_echo=$ac_try;;
21522 esac
21523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21524 (eval "$ac_compile") 2>conftest.er1
21525 ac_status=$?
21526 grep -v '^ *+' conftest.er1 >conftest.err
21527 rm -f conftest.er1
21528 cat conftest.err >&5
21529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21530 (exit $ac_status); } && {
21531 test -z "$ac_c_werror_flag" ||
21532 test ! -s conftest.err
21533 } && test -s conftest.$ac_objext; then
21534 ac_lo=$ac_mid; break
21535 else
21536 echo "$as_me: failed program was:" >&5
21537 sed 's/^/| /' conftest.$ac_ext >&5
21539 ac_hi=`expr '(' $ac_mid ')' - 1`
21540 if test $ac_mid -le $ac_hi; then
21541 ac_lo= ac_hi=
21542 break
21544 ac_mid=`expr 2 '*' $ac_mid`
21547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21548 done
21549 else
21550 echo "$as_me: failed program was:" >&5
21551 sed 's/^/| /' conftest.$ac_ext >&5
21553 ac_lo= ac_hi=
21556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21560 # Binary search between lo and hi bounds.
21561 while test "x$ac_lo" != "x$ac_hi"; do
21562 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21563 cat >conftest.$ac_ext <<_ACEOF
21564 /* confdefs.h. */
21565 _ACEOF
21566 cat confdefs.h >>conftest.$ac_ext
21567 cat >>conftest.$ac_ext <<_ACEOF
21568 /* end confdefs.h. */
21569 $ac_includes_default
21570 typedef void * ac__type_sizeof_;
21572 main ()
21574 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21575 test_array [0] = 0
21578 return 0;
21580 _ACEOF
21581 rm -f conftest.$ac_objext
21582 if { (ac_try="$ac_compile"
21583 case "(($ac_try" in
21584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21585 *) ac_try_echo=$ac_try;;
21586 esac
21587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21588 (eval "$ac_compile") 2>conftest.er1
21589 ac_status=$?
21590 grep -v '^ *+' conftest.er1 >conftest.err
21591 rm -f conftest.er1
21592 cat conftest.err >&5
21593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594 (exit $ac_status); } && {
21595 test -z "$ac_c_werror_flag" ||
21596 test ! -s conftest.err
21597 } && test -s conftest.$ac_objext; then
21598 ac_hi=$ac_mid
21599 else
21600 echo "$as_me: failed program was:" >&5
21601 sed 's/^/| /' conftest.$ac_ext >&5
21603 ac_lo=`expr '(' $ac_mid ')' + 1`
21606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21607 done
21608 case $ac_lo in
21609 ?*) ac_cv_sizeof_void_p=$ac_lo;;
21610 '') if test "$ac_cv_type_void_p" = yes; then
21611 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
21612 See \`config.log' for more details." >&5
21613 echo "$as_me: error: cannot compute sizeof (void *)
21614 See \`config.log' for more details." >&2;}
21615 { (exit 77); exit 77; }; }
21616 else
21617 ac_cv_sizeof_void_p=0
21618 fi ;;
21619 esac
21620 else
21621 cat >conftest.$ac_ext <<_ACEOF
21622 /* confdefs.h. */
21623 _ACEOF
21624 cat confdefs.h >>conftest.$ac_ext
21625 cat >>conftest.$ac_ext <<_ACEOF
21626 /* end confdefs.h. */
21627 $ac_includes_default
21628 typedef void * ac__type_sizeof_;
21629 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21630 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21631 #include <stdio.h>
21632 #include <stdlib.h>
21634 main ()
21637 FILE *f = fopen ("conftest.val", "w");
21638 if (! f)
21639 return 1;
21640 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21642 long int i = longval ();
21643 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21644 return 1;
21645 fprintf (f, "%ld\n", i);
21647 else
21649 unsigned long int i = ulongval ();
21650 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21651 return 1;
21652 fprintf (f, "%lu\n", i);
21654 return ferror (f) || fclose (f) != 0;
21657 return 0;
21659 _ACEOF
21660 rm -f conftest$ac_exeext
21661 if { (ac_try="$ac_link"
21662 case "(($ac_try" in
21663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21664 *) ac_try_echo=$ac_try;;
21665 esac
21666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21667 (eval "$ac_link") 2>&5
21668 ac_status=$?
21669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21671 { (case "(($ac_try" in
21672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21673 *) ac_try_echo=$ac_try;;
21674 esac
21675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21676 (eval "$ac_try") 2>&5
21677 ac_status=$?
21678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679 (exit $ac_status); }; }; then
21680 ac_cv_sizeof_void_p=`cat conftest.val`
21681 else
21682 echo "$as_me: program exited with status $ac_status" >&5
21683 echo "$as_me: failed program was:" >&5
21684 sed 's/^/| /' conftest.$ac_ext >&5
21686 ( exit $ac_status )
21687 if test "$ac_cv_type_void_p" = yes; then
21688 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
21689 See \`config.log' for more details." >&5
21690 echo "$as_me: error: cannot compute sizeof (void *)
21691 See \`config.log' for more details." >&2;}
21692 { (exit 77); exit 77; }; }
21693 else
21694 ac_cv_sizeof_void_p=0
21697 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21699 rm -f conftest.val
21701 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
21702 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
21706 cat >>confdefs.h <<_ACEOF
21707 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
21708 _ACEOF
21711 { echo "$as_me:$LINENO: checking for size_t" >&5
21712 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21713 if test "${ac_cv_type_size_t+set}" = set; then
21714 echo $ECHO_N "(cached) $ECHO_C" >&6
21715 else
21716 cat >conftest.$ac_ext <<_ACEOF
21717 /* confdefs.h. */
21718 _ACEOF
21719 cat confdefs.h >>conftest.$ac_ext
21720 cat >>conftest.$ac_ext <<_ACEOF
21721 /* end confdefs.h. */
21722 $ac_includes_default
21723 typedef size_t ac__type_new_;
21725 main ()
21727 if ((ac__type_new_ *) 0)
21728 return 0;
21729 if (sizeof (ac__type_new_))
21730 return 0;
21732 return 0;
21734 _ACEOF
21735 rm -f conftest.$ac_objext
21736 if { (ac_try="$ac_compile"
21737 case "(($ac_try" in
21738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21739 *) ac_try_echo=$ac_try;;
21740 esac
21741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21742 (eval "$ac_compile") 2>conftest.er1
21743 ac_status=$?
21744 grep -v '^ *+' conftest.er1 >conftest.err
21745 rm -f conftest.er1
21746 cat conftest.err >&5
21747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748 (exit $ac_status); } && {
21749 test -z "$ac_c_werror_flag" ||
21750 test ! -s conftest.err
21751 } && test -s conftest.$ac_objext; then
21752 ac_cv_type_size_t=yes
21753 else
21754 echo "$as_me: failed program was:" >&5
21755 sed 's/^/| /' conftest.$ac_ext >&5
21757 ac_cv_type_size_t=no
21760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21762 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21763 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21765 # The cast to long int works around a bug in the HP C Compiler
21766 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21767 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21768 # This bug is HP SR number 8606223364.
21769 { echo "$as_me:$LINENO: checking size of size_t" >&5
21770 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
21771 if test "${ac_cv_sizeof_size_t+set}" = set; then
21772 echo $ECHO_N "(cached) $ECHO_C" >&6
21773 else
21774 if test "$cross_compiling" = yes; then
21775 # Depending upon the size, compute the lo and hi bounds.
21776 cat >conftest.$ac_ext <<_ACEOF
21777 /* confdefs.h. */
21778 _ACEOF
21779 cat confdefs.h >>conftest.$ac_ext
21780 cat >>conftest.$ac_ext <<_ACEOF
21781 /* end confdefs.h. */
21782 $ac_includes_default
21783 typedef size_t ac__type_sizeof_;
21785 main ()
21787 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21788 test_array [0] = 0
21791 return 0;
21793 _ACEOF
21794 rm -f conftest.$ac_objext
21795 if { (ac_try="$ac_compile"
21796 case "(($ac_try" in
21797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21798 *) ac_try_echo=$ac_try;;
21799 esac
21800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21801 (eval "$ac_compile") 2>conftest.er1
21802 ac_status=$?
21803 grep -v '^ *+' conftest.er1 >conftest.err
21804 rm -f conftest.er1
21805 cat conftest.err >&5
21806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807 (exit $ac_status); } && {
21808 test -z "$ac_c_werror_flag" ||
21809 test ! -s conftest.err
21810 } && test -s conftest.$ac_objext; then
21811 ac_lo=0 ac_mid=0
21812 while :; do
21813 cat >conftest.$ac_ext <<_ACEOF
21814 /* confdefs.h. */
21815 _ACEOF
21816 cat confdefs.h >>conftest.$ac_ext
21817 cat >>conftest.$ac_ext <<_ACEOF
21818 /* end confdefs.h. */
21819 $ac_includes_default
21820 typedef size_t ac__type_sizeof_;
21822 main ()
21824 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21825 test_array [0] = 0
21828 return 0;
21830 _ACEOF
21831 rm -f conftest.$ac_objext
21832 if { (ac_try="$ac_compile"
21833 case "(($ac_try" in
21834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21835 *) ac_try_echo=$ac_try;;
21836 esac
21837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21838 (eval "$ac_compile") 2>conftest.er1
21839 ac_status=$?
21840 grep -v '^ *+' conftest.er1 >conftest.err
21841 rm -f conftest.er1
21842 cat conftest.err >&5
21843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844 (exit $ac_status); } && {
21845 test -z "$ac_c_werror_flag" ||
21846 test ! -s conftest.err
21847 } && test -s conftest.$ac_objext; then
21848 ac_hi=$ac_mid; break
21849 else
21850 echo "$as_me: failed program was:" >&5
21851 sed 's/^/| /' conftest.$ac_ext >&5
21853 ac_lo=`expr $ac_mid + 1`
21854 if test $ac_lo -le $ac_mid; then
21855 ac_lo= ac_hi=
21856 break
21858 ac_mid=`expr 2 '*' $ac_mid + 1`
21861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21862 done
21863 else
21864 echo "$as_me: failed program was:" >&5
21865 sed 's/^/| /' conftest.$ac_ext >&5
21867 cat >conftest.$ac_ext <<_ACEOF
21868 /* confdefs.h. */
21869 _ACEOF
21870 cat confdefs.h >>conftest.$ac_ext
21871 cat >>conftest.$ac_ext <<_ACEOF
21872 /* end confdefs.h. */
21873 $ac_includes_default
21874 typedef size_t ac__type_sizeof_;
21876 main ()
21878 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21879 test_array [0] = 0
21882 return 0;
21884 _ACEOF
21885 rm -f conftest.$ac_objext
21886 if { (ac_try="$ac_compile"
21887 case "(($ac_try" in
21888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21889 *) ac_try_echo=$ac_try;;
21890 esac
21891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21892 (eval "$ac_compile") 2>conftest.er1
21893 ac_status=$?
21894 grep -v '^ *+' conftest.er1 >conftest.err
21895 rm -f conftest.er1
21896 cat conftest.err >&5
21897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898 (exit $ac_status); } && {
21899 test -z "$ac_c_werror_flag" ||
21900 test ! -s conftest.err
21901 } && test -s conftest.$ac_objext; then
21902 ac_hi=-1 ac_mid=-1
21903 while :; do
21904 cat >conftest.$ac_ext <<_ACEOF
21905 /* confdefs.h. */
21906 _ACEOF
21907 cat confdefs.h >>conftest.$ac_ext
21908 cat >>conftest.$ac_ext <<_ACEOF
21909 /* end confdefs.h. */
21910 $ac_includes_default
21911 typedef size_t ac__type_sizeof_;
21913 main ()
21915 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21916 test_array [0] = 0
21919 return 0;
21921 _ACEOF
21922 rm -f conftest.$ac_objext
21923 if { (ac_try="$ac_compile"
21924 case "(($ac_try" in
21925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21926 *) ac_try_echo=$ac_try;;
21927 esac
21928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21929 (eval "$ac_compile") 2>conftest.er1
21930 ac_status=$?
21931 grep -v '^ *+' conftest.er1 >conftest.err
21932 rm -f conftest.er1
21933 cat conftest.err >&5
21934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21935 (exit $ac_status); } && {
21936 test -z "$ac_c_werror_flag" ||
21937 test ! -s conftest.err
21938 } && test -s conftest.$ac_objext; then
21939 ac_lo=$ac_mid; break
21940 else
21941 echo "$as_me: failed program was:" >&5
21942 sed 's/^/| /' conftest.$ac_ext >&5
21944 ac_hi=`expr '(' $ac_mid ')' - 1`
21945 if test $ac_mid -le $ac_hi; then
21946 ac_lo= ac_hi=
21947 break
21949 ac_mid=`expr 2 '*' $ac_mid`
21952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21953 done
21954 else
21955 echo "$as_me: failed program was:" >&5
21956 sed 's/^/| /' conftest.$ac_ext >&5
21958 ac_lo= ac_hi=
21961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21965 # Binary search between lo and hi bounds.
21966 while test "x$ac_lo" != "x$ac_hi"; do
21967 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21968 cat >conftest.$ac_ext <<_ACEOF
21969 /* confdefs.h. */
21970 _ACEOF
21971 cat confdefs.h >>conftest.$ac_ext
21972 cat >>conftest.$ac_ext <<_ACEOF
21973 /* end confdefs.h. */
21974 $ac_includes_default
21975 typedef size_t ac__type_sizeof_;
21977 main ()
21979 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21980 test_array [0] = 0
21983 return 0;
21985 _ACEOF
21986 rm -f conftest.$ac_objext
21987 if { (ac_try="$ac_compile"
21988 case "(($ac_try" in
21989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21990 *) ac_try_echo=$ac_try;;
21991 esac
21992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21993 (eval "$ac_compile") 2>conftest.er1
21994 ac_status=$?
21995 grep -v '^ *+' conftest.er1 >conftest.err
21996 rm -f conftest.er1
21997 cat conftest.err >&5
21998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999 (exit $ac_status); } && {
22000 test -z "$ac_c_werror_flag" ||
22001 test ! -s conftest.err
22002 } && test -s conftest.$ac_objext; then
22003 ac_hi=$ac_mid
22004 else
22005 echo "$as_me: failed program was:" >&5
22006 sed 's/^/| /' conftest.$ac_ext >&5
22008 ac_lo=`expr '(' $ac_mid ')' + 1`
22011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22012 done
22013 case $ac_lo in
22014 ?*) ac_cv_sizeof_size_t=$ac_lo;;
22015 '') if test "$ac_cv_type_size_t" = yes; then
22016 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
22017 See \`config.log' for more details." >&5
22018 echo "$as_me: error: cannot compute sizeof (size_t)
22019 See \`config.log' for more details." >&2;}
22020 { (exit 77); exit 77; }; }
22021 else
22022 ac_cv_sizeof_size_t=0
22023 fi ;;
22024 esac
22025 else
22026 cat >conftest.$ac_ext <<_ACEOF
22027 /* confdefs.h. */
22028 _ACEOF
22029 cat confdefs.h >>conftest.$ac_ext
22030 cat >>conftest.$ac_ext <<_ACEOF
22031 /* end confdefs.h. */
22032 $ac_includes_default
22033 typedef size_t ac__type_sizeof_;
22034 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22035 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22036 #include <stdio.h>
22037 #include <stdlib.h>
22039 main ()
22042 FILE *f = fopen ("conftest.val", "w");
22043 if (! f)
22044 return 1;
22045 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22047 long int i = longval ();
22048 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22049 return 1;
22050 fprintf (f, "%ld\n", i);
22052 else
22054 unsigned long int i = ulongval ();
22055 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22056 return 1;
22057 fprintf (f, "%lu\n", i);
22059 return ferror (f) || fclose (f) != 0;
22062 return 0;
22064 _ACEOF
22065 rm -f conftest$ac_exeext
22066 if { (ac_try="$ac_link"
22067 case "(($ac_try" in
22068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22069 *) ac_try_echo=$ac_try;;
22070 esac
22071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22072 (eval "$ac_link") 2>&5
22073 ac_status=$?
22074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22075 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22076 { (case "(($ac_try" in
22077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22078 *) ac_try_echo=$ac_try;;
22079 esac
22080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22081 (eval "$ac_try") 2>&5
22082 ac_status=$?
22083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22084 (exit $ac_status); }; }; then
22085 ac_cv_sizeof_size_t=`cat conftest.val`
22086 else
22087 echo "$as_me: program exited with status $ac_status" >&5
22088 echo "$as_me: failed program was:" >&5
22089 sed 's/^/| /' conftest.$ac_ext >&5
22091 ( exit $ac_status )
22092 if test "$ac_cv_type_size_t" = yes; then
22093 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
22094 See \`config.log' for more details." >&5
22095 echo "$as_me: error: cannot compute sizeof (size_t)
22096 See \`config.log' for more details." >&2;}
22097 { (exit 77); exit 77; }; }
22098 else
22099 ac_cv_sizeof_size_t=0
22102 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22104 rm -f conftest.val
22106 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
22107 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
22111 cat >>confdefs.h <<_ACEOF
22112 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22113 _ACEOF
22117 # Decide whether float4 is passed by value: user-selectable, enabled by default
22118 { echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
22119 echo $ECHO_N "checking whether to build with float4 passed by value... $ECHO_C" >&6; }
22121 pgac_args="$pgac_args enable_float4_byval"
22123 # Check whether --enable-float4-byval was given.
22124 if test "${enable_float4_byval+set}" = set; then
22125 enableval=$enable_float4_byval;
22126 case $enableval in
22127 yes)
22129 cat >>confdefs.h <<\_ACEOF
22130 #define USE_FLOAT4_BYVAL 1
22131 _ACEOF
22133 float4passbyval=true
22136 float4passbyval=false
22139 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
22140 echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
22141 { (exit 1); exit 1; }; }
22143 esac
22145 else
22146 enable_float4_byval=yes
22148 cat >>confdefs.h <<\_ACEOF
22149 #define USE_FLOAT4_BYVAL 1
22150 _ACEOF
22152 float4passbyval=true
22156 { echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
22157 echo "${ECHO_T}$enable_float4_byval" >&6; }
22159 cat >>confdefs.h <<_ACEOF
22160 #define FLOAT4PASSBYVAL $float4passbyval
22161 _ACEOF
22164 # Decide whether float8 is passed by value.
22165 # Note: this setting also controls int8 and related types such as timestamp.
22166 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
22167 # If not, trying to select it is an error.
22168 { echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
22169 echo $ECHO_N "checking whether to build with float8 passed by value... $ECHO_C" >&6; }
22170 if test $ac_cv_sizeof_unsigned_long -ge 8 ; then
22172 pgac_args="$pgac_args enable_float8_byval"
22174 # Check whether --enable-float8-byval was given.
22175 if test "${enable_float8_byval+set}" = set; then
22176 enableval=$enable_float8_byval;
22177 case $enableval in
22178 yes)
22185 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
22186 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
22187 { (exit 1); exit 1; }; }
22189 esac
22191 else
22192 enable_float8_byval=yes
22197 else
22199 pgac_args="$pgac_args enable_float8_byval"
22201 # Check whether --enable-float8-byval was given.
22202 if test "${enable_float8_byval+set}" = set; then
22203 enableval=$enable_float8_byval;
22204 case $enableval in
22205 yes)
22212 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
22213 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
22214 { (exit 1); exit 1; }; }
22216 esac
22218 else
22219 enable_float8_byval=no
22224 if test "$enable_float8_byval" = yes ; then
22225 { { echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
22226 echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
22227 { (exit 1); exit 1; }; }
22230 if test "$enable_float8_byval" = yes ; then
22232 cat >>confdefs.h <<\_ACEOF
22233 #define USE_FLOAT8_BYVAL 1
22234 _ACEOF
22236 float8passbyval=true
22237 else
22238 float8passbyval=false
22240 { echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
22241 echo "${ECHO_T}$enable_float8_byval" >&6; }
22243 cat >>confdefs.h <<_ACEOF
22244 #define FLOAT8PASSBYVAL $float8passbyval
22245 _ACEOF
22248 # Determine memory alignment requirements for the basic C data types.
22250 { echo "$as_me:$LINENO: checking for short" >&5
22251 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
22252 if test "${ac_cv_type_short+set}" = set; then
22253 echo $ECHO_N "(cached) $ECHO_C" >&6
22254 else
22255 cat >conftest.$ac_ext <<_ACEOF
22256 /* confdefs.h. */
22257 _ACEOF
22258 cat confdefs.h >>conftest.$ac_ext
22259 cat >>conftest.$ac_ext <<_ACEOF
22260 /* end confdefs.h. */
22261 $ac_includes_default
22262 typedef short ac__type_new_;
22264 main ()
22266 if ((ac__type_new_ *) 0)
22267 return 0;
22268 if (sizeof (ac__type_new_))
22269 return 0;
22271 return 0;
22273 _ACEOF
22274 rm -f conftest.$ac_objext
22275 if { (ac_try="$ac_compile"
22276 case "(($ac_try" in
22277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22278 *) ac_try_echo=$ac_try;;
22279 esac
22280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22281 (eval "$ac_compile") 2>conftest.er1
22282 ac_status=$?
22283 grep -v '^ *+' conftest.er1 >conftest.err
22284 rm -f conftest.er1
22285 cat conftest.err >&5
22286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22287 (exit $ac_status); } && {
22288 test -z "$ac_c_werror_flag" ||
22289 test ! -s conftest.err
22290 } && test -s conftest.$ac_objext; then
22291 ac_cv_type_short=yes
22292 else
22293 echo "$as_me: failed program was:" >&5
22294 sed 's/^/| /' conftest.$ac_ext >&5
22296 ac_cv_type_short=no
22299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22301 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
22302 echo "${ECHO_T}$ac_cv_type_short" >&6; }
22304 # The cast to long int works around a bug in the HP C Compiler,
22305 # see AC_CHECK_SIZEOF for more information.
22306 { echo "$as_me:$LINENO: checking alignment of short" >&5
22307 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6; }
22308 if test "${ac_cv_alignof_short+set}" = set; then
22309 echo $ECHO_N "(cached) $ECHO_C" >&6
22310 else
22311 if test "$cross_compiling" = yes; then
22312 # Depending upon the size, compute the lo and hi bounds.
22313 cat >conftest.$ac_ext <<_ACEOF
22314 /* confdefs.h. */
22315 _ACEOF
22316 cat confdefs.h >>conftest.$ac_ext
22317 cat >>conftest.$ac_ext <<_ACEOF
22318 /* end confdefs.h. */
22319 $ac_includes_default
22320 #ifndef offsetof
22321 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22322 #endif
22323 typedef struct { char x; short y; } ac__type_alignof_;
22325 main ()
22327 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22328 test_array [0] = 0
22331 return 0;
22333 _ACEOF
22334 rm -f conftest.$ac_objext
22335 if { (ac_try="$ac_compile"
22336 case "(($ac_try" in
22337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22338 *) ac_try_echo=$ac_try;;
22339 esac
22340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22341 (eval "$ac_compile") 2>conftest.er1
22342 ac_status=$?
22343 grep -v '^ *+' conftest.er1 >conftest.err
22344 rm -f conftest.er1
22345 cat conftest.err >&5
22346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22347 (exit $ac_status); } && {
22348 test -z "$ac_c_werror_flag" ||
22349 test ! -s conftest.err
22350 } && test -s conftest.$ac_objext; then
22351 ac_lo=0 ac_mid=0
22352 while :; do
22353 cat >conftest.$ac_ext <<_ACEOF
22354 /* confdefs.h. */
22355 _ACEOF
22356 cat confdefs.h >>conftest.$ac_ext
22357 cat >>conftest.$ac_ext <<_ACEOF
22358 /* end confdefs.h. */
22359 $ac_includes_default
22360 #ifndef offsetof
22361 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22362 #endif
22363 typedef struct { char x; short y; } ac__type_alignof_;
22365 main ()
22367 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22368 test_array [0] = 0
22371 return 0;
22373 _ACEOF
22374 rm -f conftest.$ac_objext
22375 if { (ac_try="$ac_compile"
22376 case "(($ac_try" in
22377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22378 *) ac_try_echo=$ac_try;;
22379 esac
22380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22381 (eval "$ac_compile") 2>conftest.er1
22382 ac_status=$?
22383 grep -v '^ *+' conftest.er1 >conftest.err
22384 rm -f conftest.er1
22385 cat conftest.err >&5
22386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22387 (exit $ac_status); } && {
22388 test -z "$ac_c_werror_flag" ||
22389 test ! -s conftest.err
22390 } && test -s conftest.$ac_objext; then
22391 ac_hi=$ac_mid; break
22392 else
22393 echo "$as_me: failed program was:" >&5
22394 sed 's/^/| /' conftest.$ac_ext >&5
22396 ac_lo=`expr $ac_mid + 1`
22397 if test $ac_lo -le $ac_mid; then
22398 ac_lo= ac_hi=
22399 break
22401 ac_mid=`expr 2 '*' $ac_mid + 1`
22404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22405 done
22406 else
22407 echo "$as_me: failed program was:" >&5
22408 sed 's/^/| /' conftest.$ac_ext >&5
22410 cat >conftest.$ac_ext <<_ACEOF
22411 /* confdefs.h. */
22412 _ACEOF
22413 cat confdefs.h >>conftest.$ac_ext
22414 cat >>conftest.$ac_ext <<_ACEOF
22415 /* end confdefs.h. */
22416 $ac_includes_default
22417 #ifndef offsetof
22418 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22419 #endif
22420 typedef struct { char x; short y; } ac__type_alignof_;
22422 main ()
22424 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22425 test_array [0] = 0
22428 return 0;
22430 _ACEOF
22431 rm -f conftest.$ac_objext
22432 if { (ac_try="$ac_compile"
22433 case "(($ac_try" in
22434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22435 *) ac_try_echo=$ac_try;;
22436 esac
22437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22438 (eval "$ac_compile") 2>conftest.er1
22439 ac_status=$?
22440 grep -v '^ *+' conftest.er1 >conftest.err
22441 rm -f conftest.er1
22442 cat conftest.err >&5
22443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22444 (exit $ac_status); } && {
22445 test -z "$ac_c_werror_flag" ||
22446 test ! -s conftest.err
22447 } && test -s conftest.$ac_objext; then
22448 ac_hi=-1 ac_mid=-1
22449 while :; do
22450 cat >conftest.$ac_ext <<_ACEOF
22451 /* confdefs.h. */
22452 _ACEOF
22453 cat confdefs.h >>conftest.$ac_ext
22454 cat >>conftest.$ac_ext <<_ACEOF
22455 /* end confdefs.h. */
22456 $ac_includes_default
22457 #ifndef offsetof
22458 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22459 #endif
22460 typedef struct { char x; short y; } ac__type_alignof_;
22462 main ()
22464 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22465 test_array [0] = 0
22468 return 0;
22470 _ACEOF
22471 rm -f conftest.$ac_objext
22472 if { (ac_try="$ac_compile"
22473 case "(($ac_try" in
22474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22475 *) ac_try_echo=$ac_try;;
22476 esac
22477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22478 (eval "$ac_compile") 2>conftest.er1
22479 ac_status=$?
22480 grep -v '^ *+' conftest.er1 >conftest.err
22481 rm -f conftest.er1
22482 cat conftest.err >&5
22483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22484 (exit $ac_status); } && {
22485 test -z "$ac_c_werror_flag" ||
22486 test ! -s conftest.err
22487 } && test -s conftest.$ac_objext; then
22488 ac_lo=$ac_mid; break
22489 else
22490 echo "$as_me: failed program was:" >&5
22491 sed 's/^/| /' conftest.$ac_ext >&5
22493 ac_hi=`expr '(' $ac_mid ')' - 1`
22494 if test $ac_mid -le $ac_hi; then
22495 ac_lo= ac_hi=
22496 break
22498 ac_mid=`expr 2 '*' $ac_mid`
22501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22502 done
22503 else
22504 echo "$as_me: failed program was:" >&5
22505 sed 's/^/| /' conftest.$ac_ext >&5
22507 ac_lo= ac_hi=
22510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22514 # Binary search between lo and hi bounds.
22515 while test "x$ac_lo" != "x$ac_hi"; do
22516 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22517 cat >conftest.$ac_ext <<_ACEOF
22518 /* confdefs.h. */
22519 _ACEOF
22520 cat confdefs.h >>conftest.$ac_ext
22521 cat >>conftest.$ac_ext <<_ACEOF
22522 /* end confdefs.h. */
22523 $ac_includes_default
22524 #ifndef offsetof
22525 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22526 #endif
22527 typedef struct { char x; short y; } ac__type_alignof_;
22529 main ()
22531 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22532 test_array [0] = 0
22535 return 0;
22537 _ACEOF
22538 rm -f conftest.$ac_objext
22539 if { (ac_try="$ac_compile"
22540 case "(($ac_try" in
22541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22542 *) ac_try_echo=$ac_try;;
22543 esac
22544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22545 (eval "$ac_compile") 2>conftest.er1
22546 ac_status=$?
22547 grep -v '^ *+' conftest.er1 >conftest.err
22548 rm -f conftest.er1
22549 cat conftest.err >&5
22550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22551 (exit $ac_status); } && {
22552 test -z "$ac_c_werror_flag" ||
22553 test ! -s conftest.err
22554 } && test -s conftest.$ac_objext; then
22555 ac_hi=$ac_mid
22556 else
22557 echo "$as_me: failed program was:" >&5
22558 sed 's/^/| /' conftest.$ac_ext >&5
22560 ac_lo=`expr '(' $ac_mid ')' + 1`
22563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22564 done
22565 case $ac_lo in
22566 ?*) ac_cv_alignof_short=$ac_lo;;
22567 '') if test "$ac_cv_type_short" = yes; then
22568 { { echo "$as_me:$LINENO: error: cannot compute alignment of short
22569 See \`config.log' for more details." >&5
22570 echo "$as_me: error: cannot compute alignment of short
22571 See \`config.log' for more details." >&2;}
22572 { (exit 77); exit 77; }; }
22573 else
22574 ac_cv_alignof_short=0
22575 fi ;;
22576 esac
22577 else
22578 cat >conftest.$ac_ext <<_ACEOF
22579 /* confdefs.h. */
22580 _ACEOF
22581 cat confdefs.h >>conftest.$ac_ext
22582 cat >>conftest.$ac_ext <<_ACEOF
22583 /* end confdefs.h. */
22584 $ac_includes_default
22585 #ifndef offsetof
22586 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22587 #endif
22588 typedef struct { char x; short y; } ac__type_alignof_;
22589 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22590 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22591 #include <stdio.h>
22592 #include <stdlib.h>
22594 main ()
22597 FILE *f = fopen ("conftest.val", "w");
22598 if (! f)
22599 return 1;
22600 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22602 long int i = longval ();
22603 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22604 return 1;
22605 fprintf (f, "%ld\n", i);
22607 else
22609 unsigned long int i = ulongval ();
22610 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22611 return 1;
22612 fprintf (f, "%lu\n", i);
22614 return ferror (f) || fclose (f) != 0;
22617 return 0;
22619 _ACEOF
22620 rm -f conftest$ac_exeext
22621 if { (ac_try="$ac_link"
22622 case "(($ac_try" in
22623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22624 *) ac_try_echo=$ac_try;;
22625 esac
22626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22627 (eval "$ac_link") 2>&5
22628 ac_status=$?
22629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22630 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22631 { (case "(($ac_try" in
22632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22633 *) ac_try_echo=$ac_try;;
22634 esac
22635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22636 (eval "$ac_try") 2>&5
22637 ac_status=$?
22638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22639 (exit $ac_status); }; }; then
22640 ac_cv_alignof_short=`cat conftest.val`
22641 else
22642 echo "$as_me: program exited with status $ac_status" >&5
22643 echo "$as_me: failed program was:" >&5
22644 sed 's/^/| /' conftest.$ac_ext >&5
22646 ( exit $ac_status )
22647 if test "$ac_cv_type_short" = yes; then
22648 { { echo "$as_me:$LINENO: error: cannot compute alignment of short
22649 See \`config.log' for more details." >&5
22650 echo "$as_me: error: cannot compute alignment of short
22651 See \`config.log' for more details." >&2;}
22652 { (exit 77); exit 77; }; }
22653 else
22654 ac_cv_alignof_short=0
22657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22659 rm -f conftest.val
22661 { echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
22662 echo "${ECHO_T}$ac_cv_alignof_short" >&6; }
22666 cat >>confdefs.h <<_ACEOF
22667 #define ALIGNOF_SHORT $ac_cv_alignof_short
22668 _ACEOF
22671 { echo "$as_me:$LINENO: checking for int" >&5
22672 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
22673 if test "${ac_cv_type_int+set}" = set; then
22674 echo $ECHO_N "(cached) $ECHO_C" >&6
22675 else
22676 cat >conftest.$ac_ext <<_ACEOF
22677 /* confdefs.h. */
22678 _ACEOF
22679 cat confdefs.h >>conftest.$ac_ext
22680 cat >>conftest.$ac_ext <<_ACEOF
22681 /* end confdefs.h. */
22682 $ac_includes_default
22683 typedef int ac__type_new_;
22685 main ()
22687 if ((ac__type_new_ *) 0)
22688 return 0;
22689 if (sizeof (ac__type_new_))
22690 return 0;
22692 return 0;
22694 _ACEOF
22695 rm -f conftest.$ac_objext
22696 if { (ac_try="$ac_compile"
22697 case "(($ac_try" in
22698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22699 *) ac_try_echo=$ac_try;;
22700 esac
22701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22702 (eval "$ac_compile") 2>conftest.er1
22703 ac_status=$?
22704 grep -v '^ *+' conftest.er1 >conftest.err
22705 rm -f conftest.er1
22706 cat conftest.err >&5
22707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22708 (exit $ac_status); } && {
22709 test -z "$ac_c_werror_flag" ||
22710 test ! -s conftest.err
22711 } && test -s conftest.$ac_objext; then
22712 ac_cv_type_int=yes
22713 else
22714 echo "$as_me: failed program was:" >&5
22715 sed 's/^/| /' conftest.$ac_ext >&5
22717 ac_cv_type_int=no
22720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22722 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
22723 echo "${ECHO_T}$ac_cv_type_int" >&6; }
22725 # The cast to long int works around a bug in the HP C Compiler,
22726 # see AC_CHECK_SIZEOF for more information.
22727 { echo "$as_me:$LINENO: checking alignment of int" >&5
22728 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6; }
22729 if test "${ac_cv_alignof_int+set}" = set; then
22730 echo $ECHO_N "(cached) $ECHO_C" >&6
22731 else
22732 if test "$cross_compiling" = yes; then
22733 # Depending upon the size, compute the lo and hi bounds.
22734 cat >conftest.$ac_ext <<_ACEOF
22735 /* confdefs.h. */
22736 _ACEOF
22737 cat confdefs.h >>conftest.$ac_ext
22738 cat >>conftest.$ac_ext <<_ACEOF
22739 /* end confdefs.h. */
22740 $ac_includes_default
22741 #ifndef offsetof
22742 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22743 #endif
22744 typedef struct { char x; int y; } ac__type_alignof_;
22746 main ()
22748 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22749 test_array [0] = 0
22752 return 0;
22754 _ACEOF
22755 rm -f conftest.$ac_objext
22756 if { (ac_try="$ac_compile"
22757 case "(($ac_try" in
22758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22759 *) ac_try_echo=$ac_try;;
22760 esac
22761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22762 (eval "$ac_compile") 2>conftest.er1
22763 ac_status=$?
22764 grep -v '^ *+' conftest.er1 >conftest.err
22765 rm -f conftest.er1
22766 cat conftest.err >&5
22767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22768 (exit $ac_status); } && {
22769 test -z "$ac_c_werror_flag" ||
22770 test ! -s conftest.err
22771 } && test -s conftest.$ac_objext; then
22772 ac_lo=0 ac_mid=0
22773 while :; do
22774 cat >conftest.$ac_ext <<_ACEOF
22775 /* confdefs.h. */
22776 _ACEOF
22777 cat confdefs.h >>conftest.$ac_ext
22778 cat >>conftest.$ac_ext <<_ACEOF
22779 /* end confdefs.h. */
22780 $ac_includes_default
22781 #ifndef offsetof
22782 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22783 #endif
22784 typedef struct { char x; int y; } ac__type_alignof_;
22786 main ()
22788 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22789 test_array [0] = 0
22792 return 0;
22794 _ACEOF
22795 rm -f conftest.$ac_objext
22796 if { (ac_try="$ac_compile"
22797 case "(($ac_try" in
22798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22799 *) ac_try_echo=$ac_try;;
22800 esac
22801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22802 (eval "$ac_compile") 2>conftest.er1
22803 ac_status=$?
22804 grep -v '^ *+' conftest.er1 >conftest.err
22805 rm -f conftest.er1
22806 cat conftest.err >&5
22807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22808 (exit $ac_status); } && {
22809 test -z "$ac_c_werror_flag" ||
22810 test ! -s conftest.err
22811 } && test -s conftest.$ac_objext; then
22812 ac_hi=$ac_mid; break
22813 else
22814 echo "$as_me: failed program was:" >&5
22815 sed 's/^/| /' conftest.$ac_ext >&5
22817 ac_lo=`expr $ac_mid + 1`
22818 if test $ac_lo -le $ac_mid; then
22819 ac_lo= ac_hi=
22820 break
22822 ac_mid=`expr 2 '*' $ac_mid + 1`
22825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22826 done
22827 else
22828 echo "$as_me: failed program was:" >&5
22829 sed 's/^/| /' conftest.$ac_ext >&5
22831 cat >conftest.$ac_ext <<_ACEOF
22832 /* confdefs.h. */
22833 _ACEOF
22834 cat confdefs.h >>conftest.$ac_ext
22835 cat >>conftest.$ac_ext <<_ACEOF
22836 /* end confdefs.h. */
22837 $ac_includes_default
22838 #ifndef offsetof
22839 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22840 #endif
22841 typedef struct { char x; int y; } ac__type_alignof_;
22843 main ()
22845 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22846 test_array [0] = 0
22849 return 0;
22851 _ACEOF
22852 rm -f conftest.$ac_objext
22853 if { (ac_try="$ac_compile"
22854 case "(($ac_try" in
22855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22856 *) ac_try_echo=$ac_try;;
22857 esac
22858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22859 (eval "$ac_compile") 2>conftest.er1
22860 ac_status=$?
22861 grep -v '^ *+' conftest.er1 >conftest.err
22862 rm -f conftest.er1
22863 cat conftest.err >&5
22864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22865 (exit $ac_status); } && {
22866 test -z "$ac_c_werror_flag" ||
22867 test ! -s conftest.err
22868 } && test -s conftest.$ac_objext; then
22869 ac_hi=-1 ac_mid=-1
22870 while :; do
22871 cat >conftest.$ac_ext <<_ACEOF
22872 /* confdefs.h. */
22873 _ACEOF
22874 cat confdefs.h >>conftest.$ac_ext
22875 cat >>conftest.$ac_ext <<_ACEOF
22876 /* end confdefs.h. */
22877 $ac_includes_default
22878 #ifndef offsetof
22879 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22880 #endif
22881 typedef struct { char x; int y; } ac__type_alignof_;
22883 main ()
22885 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22886 test_array [0] = 0
22889 return 0;
22891 _ACEOF
22892 rm -f conftest.$ac_objext
22893 if { (ac_try="$ac_compile"
22894 case "(($ac_try" in
22895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22896 *) ac_try_echo=$ac_try;;
22897 esac
22898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22899 (eval "$ac_compile") 2>conftest.er1
22900 ac_status=$?
22901 grep -v '^ *+' conftest.er1 >conftest.err
22902 rm -f conftest.er1
22903 cat conftest.err >&5
22904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22905 (exit $ac_status); } && {
22906 test -z "$ac_c_werror_flag" ||
22907 test ! -s conftest.err
22908 } && test -s conftest.$ac_objext; then
22909 ac_lo=$ac_mid; break
22910 else
22911 echo "$as_me: failed program was:" >&5
22912 sed 's/^/| /' conftest.$ac_ext >&5
22914 ac_hi=`expr '(' $ac_mid ')' - 1`
22915 if test $ac_mid -le $ac_hi; then
22916 ac_lo= ac_hi=
22917 break
22919 ac_mid=`expr 2 '*' $ac_mid`
22922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22923 done
22924 else
22925 echo "$as_me: failed program was:" >&5
22926 sed 's/^/| /' conftest.$ac_ext >&5
22928 ac_lo= ac_hi=
22931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22935 # Binary search between lo and hi bounds.
22936 while test "x$ac_lo" != "x$ac_hi"; do
22937 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22938 cat >conftest.$ac_ext <<_ACEOF
22939 /* confdefs.h. */
22940 _ACEOF
22941 cat confdefs.h >>conftest.$ac_ext
22942 cat >>conftest.$ac_ext <<_ACEOF
22943 /* end confdefs.h. */
22944 $ac_includes_default
22945 #ifndef offsetof
22946 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22947 #endif
22948 typedef struct { char x; int y; } ac__type_alignof_;
22950 main ()
22952 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22953 test_array [0] = 0
22956 return 0;
22958 _ACEOF
22959 rm -f conftest.$ac_objext
22960 if { (ac_try="$ac_compile"
22961 case "(($ac_try" in
22962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22963 *) ac_try_echo=$ac_try;;
22964 esac
22965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22966 (eval "$ac_compile") 2>conftest.er1
22967 ac_status=$?
22968 grep -v '^ *+' conftest.er1 >conftest.err
22969 rm -f conftest.er1
22970 cat conftest.err >&5
22971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22972 (exit $ac_status); } && {
22973 test -z "$ac_c_werror_flag" ||
22974 test ! -s conftest.err
22975 } && test -s conftest.$ac_objext; then
22976 ac_hi=$ac_mid
22977 else
22978 echo "$as_me: failed program was:" >&5
22979 sed 's/^/| /' conftest.$ac_ext >&5
22981 ac_lo=`expr '(' $ac_mid ')' + 1`
22984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22985 done
22986 case $ac_lo in
22987 ?*) ac_cv_alignof_int=$ac_lo;;
22988 '') if test "$ac_cv_type_int" = yes; then
22989 { { echo "$as_me:$LINENO: error: cannot compute alignment of int
22990 See \`config.log' for more details." >&5
22991 echo "$as_me: error: cannot compute alignment of int
22992 See \`config.log' for more details." >&2;}
22993 { (exit 77); exit 77; }; }
22994 else
22995 ac_cv_alignof_int=0
22996 fi ;;
22997 esac
22998 else
22999 cat >conftest.$ac_ext <<_ACEOF
23000 /* confdefs.h. */
23001 _ACEOF
23002 cat confdefs.h >>conftest.$ac_ext
23003 cat >>conftest.$ac_ext <<_ACEOF
23004 /* end confdefs.h. */
23005 $ac_includes_default
23006 #ifndef offsetof
23007 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23008 #endif
23009 typedef struct { char x; int y; } ac__type_alignof_;
23010 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23011 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23012 #include <stdio.h>
23013 #include <stdlib.h>
23015 main ()
23018 FILE *f = fopen ("conftest.val", "w");
23019 if (! f)
23020 return 1;
23021 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23023 long int i = longval ();
23024 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23025 return 1;
23026 fprintf (f, "%ld\n", i);
23028 else
23030 unsigned long int i = ulongval ();
23031 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23032 return 1;
23033 fprintf (f, "%lu\n", i);
23035 return ferror (f) || fclose (f) != 0;
23038 return 0;
23040 _ACEOF
23041 rm -f conftest$ac_exeext
23042 if { (ac_try="$ac_link"
23043 case "(($ac_try" in
23044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23045 *) ac_try_echo=$ac_try;;
23046 esac
23047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23048 (eval "$ac_link") 2>&5
23049 ac_status=$?
23050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23052 { (case "(($ac_try" in
23053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23054 *) ac_try_echo=$ac_try;;
23055 esac
23056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23057 (eval "$ac_try") 2>&5
23058 ac_status=$?
23059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23060 (exit $ac_status); }; }; then
23061 ac_cv_alignof_int=`cat conftest.val`
23062 else
23063 echo "$as_me: program exited with status $ac_status" >&5
23064 echo "$as_me: failed program was:" >&5
23065 sed 's/^/| /' conftest.$ac_ext >&5
23067 ( exit $ac_status )
23068 if test "$ac_cv_type_int" = yes; then
23069 { { echo "$as_me:$LINENO: error: cannot compute alignment of int
23070 See \`config.log' for more details." >&5
23071 echo "$as_me: error: cannot compute alignment of int
23072 See \`config.log' for more details." >&2;}
23073 { (exit 77); exit 77; }; }
23074 else
23075 ac_cv_alignof_int=0
23078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23080 rm -f conftest.val
23082 { echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
23083 echo "${ECHO_T}$ac_cv_alignof_int" >&6; }
23087 cat >>confdefs.h <<_ACEOF
23088 #define ALIGNOF_INT $ac_cv_alignof_int
23089 _ACEOF
23092 { echo "$as_me:$LINENO: checking for long" >&5
23093 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
23094 if test "${ac_cv_type_long+set}" = set; then
23095 echo $ECHO_N "(cached) $ECHO_C" >&6
23096 else
23097 cat >conftest.$ac_ext <<_ACEOF
23098 /* confdefs.h. */
23099 _ACEOF
23100 cat confdefs.h >>conftest.$ac_ext
23101 cat >>conftest.$ac_ext <<_ACEOF
23102 /* end confdefs.h. */
23103 $ac_includes_default
23104 typedef long ac__type_new_;
23106 main ()
23108 if ((ac__type_new_ *) 0)
23109 return 0;
23110 if (sizeof (ac__type_new_))
23111 return 0;
23113 return 0;
23115 _ACEOF
23116 rm -f conftest.$ac_objext
23117 if { (ac_try="$ac_compile"
23118 case "(($ac_try" in
23119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23120 *) ac_try_echo=$ac_try;;
23121 esac
23122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23123 (eval "$ac_compile") 2>conftest.er1
23124 ac_status=$?
23125 grep -v '^ *+' conftest.er1 >conftest.err
23126 rm -f conftest.er1
23127 cat conftest.err >&5
23128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23129 (exit $ac_status); } && {
23130 test -z "$ac_c_werror_flag" ||
23131 test ! -s conftest.err
23132 } && test -s conftest.$ac_objext; then
23133 ac_cv_type_long=yes
23134 else
23135 echo "$as_me: failed program was:" >&5
23136 sed 's/^/| /' conftest.$ac_ext >&5
23138 ac_cv_type_long=no
23141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23143 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
23144 echo "${ECHO_T}$ac_cv_type_long" >&6; }
23146 # The cast to long int works around a bug in the HP C Compiler,
23147 # see AC_CHECK_SIZEOF for more information.
23148 { echo "$as_me:$LINENO: checking alignment of long" >&5
23149 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6; }
23150 if test "${ac_cv_alignof_long+set}" = set; then
23151 echo $ECHO_N "(cached) $ECHO_C" >&6
23152 else
23153 if test "$cross_compiling" = yes; then
23154 # Depending upon the size, compute the lo and hi bounds.
23155 cat >conftest.$ac_ext <<_ACEOF
23156 /* confdefs.h. */
23157 _ACEOF
23158 cat confdefs.h >>conftest.$ac_ext
23159 cat >>conftest.$ac_ext <<_ACEOF
23160 /* end confdefs.h. */
23161 $ac_includes_default
23162 #ifndef offsetof
23163 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23164 #endif
23165 typedef struct { char x; long y; } ac__type_alignof_;
23167 main ()
23169 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
23170 test_array [0] = 0
23173 return 0;
23175 _ACEOF
23176 rm -f conftest.$ac_objext
23177 if { (ac_try="$ac_compile"
23178 case "(($ac_try" in
23179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23180 *) ac_try_echo=$ac_try;;
23181 esac
23182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23183 (eval "$ac_compile") 2>conftest.er1
23184 ac_status=$?
23185 grep -v '^ *+' conftest.er1 >conftest.err
23186 rm -f conftest.er1
23187 cat conftest.err >&5
23188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23189 (exit $ac_status); } && {
23190 test -z "$ac_c_werror_flag" ||
23191 test ! -s conftest.err
23192 } && test -s conftest.$ac_objext; then
23193 ac_lo=0 ac_mid=0
23194 while :; do
23195 cat >conftest.$ac_ext <<_ACEOF
23196 /* confdefs.h. */
23197 _ACEOF
23198 cat confdefs.h >>conftest.$ac_ext
23199 cat >>conftest.$ac_ext <<_ACEOF
23200 /* end confdefs.h. */
23201 $ac_includes_default
23202 #ifndef offsetof
23203 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23204 #endif
23205 typedef struct { char x; long y; } ac__type_alignof_;
23207 main ()
23209 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23210 test_array [0] = 0
23213 return 0;
23215 _ACEOF
23216 rm -f conftest.$ac_objext
23217 if { (ac_try="$ac_compile"
23218 case "(($ac_try" in
23219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23220 *) ac_try_echo=$ac_try;;
23221 esac
23222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23223 (eval "$ac_compile") 2>conftest.er1
23224 ac_status=$?
23225 grep -v '^ *+' conftest.er1 >conftest.err
23226 rm -f conftest.er1
23227 cat conftest.err >&5
23228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23229 (exit $ac_status); } && {
23230 test -z "$ac_c_werror_flag" ||
23231 test ! -s conftest.err
23232 } && test -s conftest.$ac_objext; then
23233 ac_hi=$ac_mid; break
23234 else
23235 echo "$as_me: failed program was:" >&5
23236 sed 's/^/| /' conftest.$ac_ext >&5
23238 ac_lo=`expr $ac_mid + 1`
23239 if test $ac_lo -le $ac_mid; then
23240 ac_lo= ac_hi=
23241 break
23243 ac_mid=`expr 2 '*' $ac_mid + 1`
23246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23247 done
23248 else
23249 echo "$as_me: failed program was:" >&5
23250 sed 's/^/| /' conftest.$ac_ext >&5
23252 cat >conftest.$ac_ext <<_ACEOF
23253 /* confdefs.h. */
23254 _ACEOF
23255 cat confdefs.h >>conftest.$ac_ext
23256 cat >>conftest.$ac_ext <<_ACEOF
23257 /* end confdefs.h. */
23258 $ac_includes_default
23259 #ifndef offsetof
23260 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23261 #endif
23262 typedef struct { char x; long y; } ac__type_alignof_;
23264 main ()
23266 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
23267 test_array [0] = 0
23270 return 0;
23272 _ACEOF
23273 rm -f conftest.$ac_objext
23274 if { (ac_try="$ac_compile"
23275 case "(($ac_try" in
23276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23277 *) ac_try_echo=$ac_try;;
23278 esac
23279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23280 (eval "$ac_compile") 2>conftest.er1
23281 ac_status=$?
23282 grep -v '^ *+' conftest.er1 >conftest.err
23283 rm -f conftest.er1
23284 cat conftest.err >&5
23285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23286 (exit $ac_status); } && {
23287 test -z "$ac_c_werror_flag" ||
23288 test ! -s conftest.err
23289 } && test -s conftest.$ac_objext; then
23290 ac_hi=-1 ac_mid=-1
23291 while :; do
23292 cat >conftest.$ac_ext <<_ACEOF
23293 /* confdefs.h. */
23294 _ACEOF
23295 cat confdefs.h >>conftest.$ac_ext
23296 cat >>conftest.$ac_ext <<_ACEOF
23297 /* end confdefs.h. */
23298 $ac_includes_default
23299 #ifndef offsetof
23300 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23301 #endif
23302 typedef struct { char x; long y; } ac__type_alignof_;
23304 main ()
23306 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
23307 test_array [0] = 0
23310 return 0;
23312 _ACEOF
23313 rm -f conftest.$ac_objext
23314 if { (ac_try="$ac_compile"
23315 case "(($ac_try" in
23316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23317 *) ac_try_echo=$ac_try;;
23318 esac
23319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23320 (eval "$ac_compile") 2>conftest.er1
23321 ac_status=$?
23322 grep -v '^ *+' conftest.er1 >conftest.err
23323 rm -f conftest.er1
23324 cat conftest.err >&5
23325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23326 (exit $ac_status); } && {
23327 test -z "$ac_c_werror_flag" ||
23328 test ! -s conftest.err
23329 } && test -s conftest.$ac_objext; then
23330 ac_lo=$ac_mid; break
23331 else
23332 echo "$as_me: failed program was:" >&5
23333 sed 's/^/| /' conftest.$ac_ext >&5
23335 ac_hi=`expr '(' $ac_mid ')' - 1`
23336 if test $ac_mid -le $ac_hi; then
23337 ac_lo= ac_hi=
23338 break
23340 ac_mid=`expr 2 '*' $ac_mid`
23343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23344 done
23345 else
23346 echo "$as_me: failed program was:" >&5
23347 sed 's/^/| /' conftest.$ac_ext >&5
23349 ac_lo= ac_hi=
23352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23356 # Binary search between lo and hi bounds.
23357 while test "x$ac_lo" != "x$ac_hi"; do
23358 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23359 cat >conftest.$ac_ext <<_ACEOF
23360 /* confdefs.h. */
23361 _ACEOF
23362 cat confdefs.h >>conftest.$ac_ext
23363 cat >>conftest.$ac_ext <<_ACEOF
23364 /* end confdefs.h. */
23365 $ac_includes_default
23366 #ifndef offsetof
23367 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23368 #endif
23369 typedef struct { char x; long y; } ac__type_alignof_;
23371 main ()
23373 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23374 test_array [0] = 0
23377 return 0;
23379 _ACEOF
23380 rm -f conftest.$ac_objext
23381 if { (ac_try="$ac_compile"
23382 case "(($ac_try" in
23383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23384 *) ac_try_echo=$ac_try;;
23385 esac
23386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23387 (eval "$ac_compile") 2>conftest.er1
23388 ac_status=$?
23389 grep -v '^ *+' conftest.er1 >conftest.err
23390 rm -f conftest.er1
23391 cat conftest.err >&5
23392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23393 (exit $ac_status); } && {
23394 test -z "$ac_c_werror_flag" ||
23395 test ! -s conftest.err
23396 } && test -s conftest.$ac_objext; then
23397 ac_hi=$ac_mid
23398 else
23399 echo "$as_me: failed program was:" >&5
23400 sed 's/^/| /' conftest.$ac_ext >&5
23402 ac_lo=`expr '(' $ac_mid ')' + 1`
23405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23406 done
23407 case $ac_lo in
23408 ?*) ac_cv_alignof_long=$ac_lo;;
23409 '') if test "$ac_cv_type_long" = yes; then
23410 { { echo "$as_me:$LINENO: error: cannot compute alignment of long
23411 See \`config.log' for more details." >&5
23412 echo "$as_me: error: cannot compute alignment of long
23413 See \`config.log' for more details." >&2;}
23414 { (exit 77); exit 77; }; }
23415 else
23416 ac_cv_alignof_long=0
23417 fi ;;
23418 esac
23419 else
23420 cat >conftest.$ac_ext <<_ACEOF
23421 /* confdefs.h. */
23422 _ACEOF
23423 cat confdefs.h >>conftest.$ac_ext
23424 cat >>conftest.$ac_ext <<_ACEOF
23425 /* end confdefs.h. */
23426 $ac_includes_default
23427 #ifndef offsetof
23428 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23429 #endif
23430 typedef struct { char x; long y; } ac__type_alignof_;
23431 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23432 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23433 #include <stdio.h>
23434 #include <stdlib.h>
23436 main ()
23439 FILE *f = fopen ("conftest.val", "w");
23440 if (! f)
23441 return 1;
23442 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23444 long int i = longval ();
23445 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23446 return 1;
23447 fprintf (f, "%ld\n", i);
23449 else
23451 unsigned long int i = ulongval ();
23452 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23453 return 1;
23454 fprintf (f, "%lu\n", i);
23456 return ferror (f) || fclose (f) != 0;
23459 return 0;
23461 _ACEOF
23462 rm -f conftest$ac_exeext
23463 if { (ac_try="$ac_link"
23464 case "(($ac_try" in
23465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23466 *) ac_try_echo=$ac_try;;
23467 esac
23468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23469 (eval "$ac_link") 2>&5
23470 ac_status=$?
23471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23472 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23473 { (case "(($ac_try" in
23474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23475 *) ac_try_echo=$ac_try;;
23476 esac
23477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23478 (eval "$ac_try") 2>&5
23479 ac_status=$?
23480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23481 (exit $ac_status); }; }; then
23482 ac_cv_alignof_long=`cat conftest.val`
23483 else
23484 echo "$as_me: program exited with status $ac_status" >&5
23485 echo "$as_me: failed program was:" >&5
23486 sed 's/^/| /' conftest.$ac_ext >&5
23488 ( exit $ac_status )
23489 if test "$ac_cv_type_long" = yes; then
23490 { { echo "$as_me:$LINENO: error: cannot compute alignment of long
23491 See \`config.log' for more details." >&5
23492 echo "$as_me: error: cannot compute alignment of long
23493 See \`config.log' for more details." >&2;}
23494 { (exit 77); exit 77; }; }
23495 else
23496 ac_cv_alignof_long=0
23499 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23501 rm -f conftest.val
23503 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
23504 echo "${ECHO_T}$ac_cv_alignof_long" >&6; }
23508 cat >>confdefs.h <<_ACEOF
23509 #define ALIGNOF_LONG $ac_cv_alignof_long
23510 _ACEOF
23513 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
23514 { echo "$as_me:$LINENO: checking for long long int" >&5
23515 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
23516 if test "${ac_cv_type_long_long_int+set}" = set; then
23517 echo $ECHO_N "(cached) $ECHO_C" >&6
23518 else
23519 cat >conftest.$ac_ext <<_ACEOF
23520 /* confdefs.h. */
23521 _ACEOF
23522 cat confdefs.h >>conftest.$ac_ext
23523 cat >>conftest.$ac_ext <<_ACEOF
23524 /* end confdefs.h. */
23525 $ac_includes_default
23526 typedef long long int ac__type_new_;
23528 main ()
23530 if ((ac__type_new_ *) 0)
23531 return 0;
23532 if (sizeof (ac__type_new_))
23533 return 0;
23535 return 0;
23537 _ACEOF
23538 rm -f conftest.$ac_objext
23539 if { (ac_try="$ac_compile"
23540 case "(($ac_try" in
23541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23542 *) ac_try_echo=$ac_try;;
23543 esac
23544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23545 (eval "$ac_compile") 2>conftest.er1
23546 ac_status=$?
23547 grep -v '^ *+' conftest.er1 >conftest.err
23548 rm -f conftest.er1
23549 cat conftest.err >&5
23550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23551 (exit $ac_status); } && {
23552 test -z "$ac_c_werror_flag" ||
23553 test ! -s conftest.err
23554 } && test -s conftest.$ac_objext; then
23555 ac_cv_type_long_long_int=yes
23556 else
23557 echo "$as_me: failed program was:" >&5
23558 sed 's/^/| /' conftest.$ac_ext >&5
23560 ac_cv_type_long_long_int=no
23563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23565 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
23566 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
23568 # The cast to long int works around a bug in the HP C Compiler,
23569 # see AC_CHECK_SIZEOF for more information.
23570 { echo "$as_me:$LINENO: checking alignment of long long int" >&5
23571 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6; }
23572 if test "${ac_cv_alignof_long_long_int+set}" = set; then
23573 echo $ECHO_N "(cached) $ECHO_C" >&6
23574 else
23575 if test "$cross_compiling" = yes; then
23576 # Depending upon the size, compute the lo and hi bounds.
23577 cat >conftest.$ac_ext <<_ACEOF
23578 /* confdefs.h. */
23579 _ACEOF
23580 cat confdefs.h >>conftest.$ac_ext
23581 cat >>conftest.$ac_ext <<_ACEOF
23582 /* end confdefs.h. */
23583 $ac_includes_default
23584 #ifndef offsetof
23585 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23586 #endif
23587 typedef struct { char x; long long int y; } ac__type_alignof_;
23589 main ()
23591 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
23592 test_array [0] = 0
23595 return 0;
23597 _ACEOF
23598 rm -f conftest.$ac_objext
23599 if { (ac_try="$ac_compile"
23600 case "(($ac_try" in
23601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23602 *) ac_try_echo=$ac_try;;
23603 esac
23604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23605 (eval "$ac_compile") 2>conftest.er1
23606 ac_status=$?
23607 grep -v '^ *+' conftest.er1 >conftest.err
23608 rm -f conftest.er1
23609 cat conftest.err >&5
23610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23611 (exit $ac_status); } && {
23612 test -z "$ac_c_werror_flag" ||
23613 test ! -s conftest.err
23614 } && test -s conftest.$ac_objext; then
23615 ac_lo=0 ac_mid=0
23616 while :; do
23617 cat >conftest.$ac_ext <<_ACEOF
23618 /* confdefs.h. */
23619 _ACEOF
23620 cat confdefs.h >>conftest.$ac_ext
23621 cat >>conftest.$ac_ext <<_ACEOF
23622 /* end confdefs.h. */
23623 $ac_includes_default
23624 #ifndef offsetof
23625 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23626 #endif
23627 typedef struct { char x; long long int y; } ac__type_alignof_;
23629 main ()
23631 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23632 test_array [0] = 0
23635 return 0;
23637 _ACEOF
23638 rm -f conftest.$ac_objext
23639 if { (ac_try="$ac_compile"
23640 case "(($ac_try" in
23641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23642 *) ac_try_echo=$ac_try;;
23643 esac
23644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23645 (eval "$ac_compile") 2>conftest.er1
23646 ac_status=$?
23647 grep -v '^ *+' conftest.er1 >conftest.err
23648 rm -f conftest.er1
23649 cat conftest.err >&5
23650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23651 (exit $ac_status); } && {
23652 test -z "$ac_c_werror_flag" ||
23653 test ! -s conftest.err
23654 } && test -s conftest.$ac_objext; then
23655 ac_hi=$ac_mid; break
23656 else
23657 echo "$as_me: failed program was:" >&5
23658 sed 's/^/| /' conftest.$ac_ext >&5
23660 ac_lo=`expr $ac_mid + 1`
23661 if test $ac_lo -le $ac_mid; then
23662 ac_lo= ac_hi=
23663 break
23665 ac_mid=`expr 2 '*' $ac_mid + 1`
23668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23669 done
23670 else
23671 echo "$as_me: failed program was:" >&5
23672 sed 's/^/| /' conftest.$ac_ext >&5
23674 cat >conftest.$ac_ext <<_ACEOF
23675 /* confdefs.h. */
23676 _ACEOF
23677 cat confdefs.h >>conftest.$ac_ext
23678 cat >>conftest.$ac_ext <<_ACEOF
23679 /* end confdefs.h. */
23680 $ac_includes_default
23681 #ifndef offsetof
23682 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23683 #endif
23684 typedef struct { char x; long long int y; } ac__type_alignof_;
23686 main ()
23688 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
23689 test_array [0] = 0
23692 return 0;
23694 _ACEOF
23695 rm -f conftest.$ac_objext
23696 if { (ac_try="$ac_compile"
23697 case "(($ac_try" in
23698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23699 *) ac_try_echo=$ac_try;;
23700 esac
23701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23702 (eval "$ac_compile") 2>conftest.er1
23703 ac_status=$?
23704 grep -v '^ *+' conftest.er1 >conftest.err
23705 rm -f conftest.er1
23706 cat conftest.err >&5
23707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23708 (exit $ac_status); } && {
23709 test -z "$ac_c_werror_flag" ||
23710 test ! -s conftest.err
23711 } && test -s conftest.$ac_objext; then
23712 ac_hi=-1 ac_mid=-1
23713 while :; do
23714 cat >conftest.$ac_ext <<_ACEOF
23715 /* confdefs.h. */
23716 _ACEOF
23717 cat confdefs.h >>conftest.$ac_ext
23718 cat >>conftest.$ac_ext <<_ACEOF
23719 /* end confdefs.h. */
23720 $ac_includes_default
23721 #ifndef offsetof
23722 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23723 #endif
23724 typedef struct { char x; long long int y; } ac__type_alignof_;
23726 main ()
23728 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
23729 test_array [0] = 0
23732 return 0;
23734 _ACEOF
23735 rm -f conftest.$ac_objext
23736 if { (ac_try="$ac_compile"
23737 case "(($ac_try" in
23738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23739 *) ac_try_echo=$ac_try;;
23740 esac
23741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23742 (eval "$ac_compile") 2>conftest.er1
23743 ac_status=$?
23744 grep -v '^ *+' conftest.er1 >conftest.err
23745 rm -f conftest.er1
23746 cat conftest.err >&5
23747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23748 (exit $ac_status); } && {
23749 test -z "$ac_c_werror_flag" ||
23750 test ! -s conftest.err
23751 } && test -s conftest.$ac_objext; then
23752 ac_lo=$ac_mid; break
23753 else
23754 echo "$as_me: failed program was:" >&5
23755 sed 's/^/| /' conftest.$ac_ext >&5
23757 ac_hi=`expr '(' $ac_mid ')' - 1`
23758 if test $ac_mid -le $ac_hi; then
23759 ac_lo= ac_hi=
23760 break
23762 ac_mid=`expr 2 '*' $ac_mid`
23765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23766 done
23767 else
23768 echo "$as_me: failed program was:" >&5
23769 sed 's/^/| /' conftest.$ac_ext >&5
23771 ac_lo= ac_hi=
23774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23778 # Binary search between lo and hi bounds.
23779 while test "x$ac_lo" != "x$ac_hi"; do
23780 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23781 cat >conftest.$ac_ext <<_ACEOF
23782 /* confdefs.h. */
23783 _ACEOF
23784 cat confdefs.h >>conftest.$ac_ext
23785 cat >>conftest.$ac_ext <<_ACEOF
23786 /* end confdefs.h. */
23787 $ac_includes_default
23788 #ifndef offsetof
23789 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23790 #endif
23791 typedef struct { char x; long long int y; } ac__type_alignof_;
23793 main ()
23795 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23796 test_array [0] = 0
23799 return 0;
23801 _ACEOF
23802 rm -f conftest.$ac_objext
23803 if { (ac_try="$ac_compile"
23804 case "(($ac_try" in
23805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23806 *) ac_try_echo=$ac_try;;
23807 esac
23808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23809 (eval "$ac_compile") 2>conftest.er1
23810 ac_status=$?
23811 grep -v '^ *+' conftest.er1 >conftest.err
23812 rm -f conftest.er1
23813 cat conftest.err >&5
23814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23815 (exit $ac_status); } && {
23816 test -z "$ac_c_werror_flag" ||
23817 test ! -s conftest.err
23818 } && test -s conftest.$ac_objext; then
23819 ac_hi=$ac_mid
23820 else
23821 echo "$as_me: failed program was:" >&5
23822 sed 's/^/| /' conftest.$ac_ext >&5
23824 ac_lo=`expr '(' $ac_mid ')' + 1`
23827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23828 done
23829 case $ac_lo in
23830 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
23831 '') if test "$ac_cv_type_long_long_int" = yes; then
23832 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
23833 See \`config.log' for more details." >&5
23834 echo "$as_me: error: cannot compute alignment of long long int
23835 See \`config.log' for more details." >&2;}
23836 { (exit 77); exit 77; }; }
23837 else
23838 ac_cv_alignof_long_long_int=0
23839 fi ;;
23840 esac
23841 else
23842 cat >conftest.$ac_ext <<_ACEOF
23843 /* confdefs.h. */
23844 _ACEOF
23845 cat confdefs.h >>conftest.$ac_ext
23846 cat >>conftest.$ac_ext <<_ACEOF
23847 /* end confdefs.h. */
23848 $ac_includes_default
23849 #ifndef offsetof
23850 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23851 #endif
23852 typedef struct { char x; long long int y; } ac__type_alignof_;
23853 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23854 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23855 #include <stdio.h>
23856 #include <stdlib.h>
23858 main ()
23861 FILE *f = fopen ("conftest.val", "w");
23862 if (! f)
23863 return 1;
23864 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23866 long int i = longval ();
23867 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23868 return 1;
23869 fprintf (f, "%ld\n", i);
23871 else
23873 unsigned long int i = ulongval ();
23874 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23875 return 1;
23876 fprintf (f, "%lu\n", i);
23878 return ferror (f) || fclose (f) != 0;
23881 return 0;
23883 _ACEOF
23884 rm -f conftest$ac_exeext
23885 if { (ac_try="$ac_link"
23886 case "(($ac_try" in
23887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23888 *) ac_try_echo=$ac_try;;
23889 esac
23890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23891 (eval "$ac_link") 2>&5
23892 ac_status=$?
23893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23894 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23895 { (case "(($ac_try" in
23896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23897 *) ac_try_echo=$ac_try;;
23898 esac
23899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23900 (eval "$ac_try") 2>&5
23901 ac_status=$?
23902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23903 (exit $ac_status); }; }; then
23904 ac_cv_alignof_long_long_int=`cat conftest.val`
23905 else
23906 echo "$as_me: program exited with status $ac_status" >&5
23907 echo "$as_me: failed program was:" >&5
23908 sed 's/^/| /' conftest.$ac_ext >&5
23910 ( exit $ac_status )
23911 if test "$ac_cv_type_long_long_int" = yes; then
23912 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
23913 See \`config.log' for more details." >&5
23914 echo "$as_me: error: cannot compute alignment of long long int
23915 See \`config.log' for more details." >&2;}
23916 { (exit 77); exit 77; }; }
23917 else
23918 ac_cv_alignof_long_long_int=0
23921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23923 rm -f conftest.val
23925 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
23926 echo "${ECHO_T}$ac_cv_alignof_long_long_int" >&6; }
23930 cat >>confdefs.h <<_ACEOF
23931 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
23932 _ACEOF
23936 { echo "$as_me:$LINENO: checking for double" >&5
23937 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
23938 if test "${ac_cv_type_double+set}" = set; then
23939 echo $ECHO_N "(cached) $ECHO_C" >&6
23940 else
23941 cat >conftest.$ac_ext <<_ACEOF
23942 /* confdefs.h. */
23943 _ACEOF
23944 cat confdefs.h >>conftest.$ac_ext
23945 cat >>conftest.$ac_ext <<_ACEOF
23946 /* end confdefs.h. */
23947 $ac_includes_default
23948 typedef double ac__type_new_;
23950 main ()
23952 if ((ac__type_new_ *) 0)
23953 return 0;
23954 if (sizeof (ac__type_new_))
23955 return 0;
23957 return 0;
23959 _ACEOF
23960 rm -f conftest.$ac_objext
23961 if { (ac_try="$ac_compile"
23962 case "(($ac_try" in
23963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23964 *) ac_try_echo=$ac_try;;
23965 esac
23966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23967 (eval "$ac_compile") 2>conftest.er1
23968 ac_status=$?
23969 grep -v '^ *+' conftest.er1 >conftest.err
23970 rm -f conftest.er1
23971 cat conftest.err >&5
23972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23973 (exit $ac_status); } && {
23974 test -z "$ac_c_werror_flag" ||
23975 test ! -s conftest.err
23976 } && test -s conftest.$ac_objext; then
23977 ac_cv_type_double=yes
23978 else
23979 echo "$as_me: failed program was:" >&5
23980 sed 's/^/| /' conftest.$ac_ext >&5
23982 ac_cv_type_double=no
23985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23987 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
23988 echo "${ECHO_T}$ac_cv_type_double" >&6; }
23990 # The cast to long int works around a bug in the HP C Compiler,
23991 # see AC_CHECK_SIZEOF for more information.
23992 { echo "$as_me:$LINENO: checking alignment of double" >&5
23993 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6; }
23994 if test "${ac_cv_alignof_double+set}" = set; then
23995 echo $ECHO_N "(cached) $ECHO_C" >&6
23996 else
23997 if test "$cross_compiling" = yes; then
23998 # Depending upon the size, compute the lo and hi bounds.
23999 cat >conftest.$ac_ext <<_ACEOF
24000 /* confdefs.h. */
24001 _ACEOF
24002 cat confdefs.h >>conftest.$ac_ext
24003 cat >>conftest.$ac_ext <<_ACEOF
24004 /* end confdefs.h. */
24005 $ac_includes_default
24006 #ifndef offsetof
24007 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24008 #endif
24009 typedef struct { char x; double y; } ac__type_alignof_;
24011 main ()
24013 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
24014 test_array [0] = 0
24017 return 0;
24019 _ACEOF
24020 rm -f conftest.$ac_objext
24021 if { (ac_try="$ac_compile"
24022 case "(($ac_try" in
24023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24024 *) ac_try_echo=$ac_try;;
24025 esac
24026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24027 (eval "$ac_compile") 2>conftest.er1
24028 ac_status=$?
24029 grep -v '^ *+' conftest.er1 >conftest.err
24030 rm -f conftest.er1
24031 cat conftest.err >&5
24032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24033 (exit $ac_status); } && {
24034 test -z "$ac_c_werror_flag" ||
24035 test ! -s conftest.err
24036 } && test -s conftest.$ac_objext; then
24037 ac_lo=0 ac_mid=0
24038 while :; do
24039 cat >conftest.$ac_ext <<_ACEOF
24040 /* confdefs.h. */
24041 _ACEOF
24042 cat confdefs.h >>conftest.$ac_ext
24043 cat >>conftest.$ac_ext <<_ACEOF
24044 /* end confdefs.h. */
24045 $ac_includes_default
24046 #ifndef offsetof
24047 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24048 #endif
24049 typedef struct { char x; double y; } ac__type_alignof_;
24051 main ()
24053 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24054 test_array [0] = 0
24057 return 0;
24059 _ACEOF
24060 rm -f conftest.$ac_objext
24061 if { (ac_try="$ac_compile"
24062 case "(($ac_try" in
24063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24064 *) ac_try_echo=$ac_try;;
24065 esac
24066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24067 (eval "$ac_compile") 2>conftest.er1
24068 ac_status=$?
24069 grep -v '^ *+' conftest.er1 >conftest.err
24070 rm -f conftest.er1
24071 cat conftest.err >&5
24072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24073 (exit $ac_status); } && {
24074 test -z "$ac_c_werror_flag" ||
24075 test ! -s conftest.err
24076 } && test -s conftest.$ac_objext; then
24077 ac_hi=$ac_mid; break
24078 else
24079 echo "$as_me: failed program was:" >&5
24080 sed 's/^/| /' conftest.$ac_ext >&5
24082 ac_lo=`expr $ac_mid + 1`
24083 if test $ac_lo -le $ac_mid; then
24084 ac_lo= ac_hi=
24085 break
24087 ac_mid=`expr 2 '*' $ac_mid + 1`
24090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24091 done
24092 else
24093 echo "$as_me: failed program was:" >&5
24094 sed 's/^/| /' conftest.$ac_ext >&5
24096 cat >conftest.$ac_ext <<_ACEOF
24097 /* confdefs.h. */
24098 _ACEOF
24099 cat confdefs.h >>conftest.$ac_ext
24100 cat >>conftest.$ac_ext <<_ACEOF
24101 /* end confdefs.h. */
24102 $ac_includes_default
24103 #ifndef offsetof
24104 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24105 #endif
24106 typedef struct { char x; double y; } ac__type_alignof_;
24108 main ()
24110 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
24111 test_array [0] = 0
24114 return 0;
24116 _ACEOF
24117 rm -f conftest.$ac_objext
24118 if { (ac_try="$ac_compile"
24119 case "(($ac_try" in
24120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24121 *) ac_try_echo=$ac_try;;
24122 esac
24123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24124 (eval "$ac_compile") 2>conftest.er1
24125 ac_status=$?
24126 grep -v '^ *+' conftest.er1 >conftest.err
24127 rm -f conftest.er1
24128 cat conftest.err >&5
24129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24130 (exit $ac_status); } && {
24131 test -z "$ac_c_werror_flag" ||
24132 test ! -s conftest.err
24133 } && test -s conftest.$ac_objext; then
24134 ac_hi=-1 ac_mid=-1
24135 while :; do
24136 cat >conftest.$ac_ext <<_ACEOF
24137 /* confdefs.h. */
24138 _ACEOF
24139 cat confdefs.h >>conftest.$ac_ext
24140 cat >>conftest.$ac_ext <<_ACEOF
24141 /* end confdefs.h. */
24142 $ac_includes_default
24143 #ifndef offsetof
24144 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24145 #endif
24146 typedef struct { char x; double y; } ac__type_alignof_;
24148 main ()
24150 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
24151 test_array [0] = 0
24154 return 0;
24156 _ACEOF
24157 rm -f conftest.$ac_objext
24158 if { (ac_try="$ac_compile"
24159 case "(($ac_try" in
24160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24161 *) ac_try_echo=$ac_try;;
24162 esac
24163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24164 (eval "$ac_compile") 2>conftest.er1
24165 ac_status=$?
24166 grep -v '^ *+' conftest.er1 >conftest.err
24167 rm -f conftest.er1
24168 cat conftest.err >&5
24169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24170 (exit $ac_status); } && {
24171 test -z "$ac_c_werror_flag" ||
24172 test ! -s conftest.err
24173 } && test -s conftest.$ac_objext; then
24174 ac_lo=$ac_mid; break
24175 else
24176 echo "$as_me: failed program was:" >&5
24177 sed 's/^/| /' conftest.$ac_ext >&5
24179 ac_hi=`expr '(' $ac_mid ')' - 1`
24180 if test $ac_mid -le $ac_hi; then
24181 ac_lo= ac_hi=
24182 break
24184 ac_mid=`expr 2 '*' $ac_mid`
24187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24188 done
24189 else
24190 echo "$as_me: failed program was:" >&5
24191 sed 's/^/| /' conftest.$ac_ext >&5
24193 ac_lo= ac_hi=
24196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24200 # Binary search between lo and hi bounds.
24201 while test "x$ac_lo" != "x$ac_hi"; do
24202 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24203 cat >conftest.$ac_ext <<_ACEOF
24204 /* confdefs.h. */
24205 _ACEOF
24206 cat confdefs.h >>conftest.$ac_ext
24207 cat >>conftest.$ac_ext <<_ACEOF
24208 /* end confdefs.h. */
24209 $ac_includes_default
24210 #ifndef offsetof
24211 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24212 #endif
24213 typedef struct { char x; double y; } ac__type_alignof_;
24215 main ()
24217 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24218 test_array [0] = 0
24221 return 0;
24223 _ACEOF
24224 rm -f conftest.$ac_objext
24225 if { (ac_try="$ac_compile"
24226 case "(($ac_try" in
24227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24228 *) ac_try_echo=$ac_try;;
24229 esac
24230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24231 (eval "$ac_compile") 2>conftest.er1
24232 ac_status=$?
24233 grep -v '^ *+' conftest.er1 >conftest.err
24234 rm -f conftest.er1
24235 cat conftest.err >&5
24236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24237 (exit $ac_status); } && {
24238 test -z "$ac_c_werror_flag" ||
24239 test ! -s conftest.err
24240 } && test -s conftest.$ac_objext; then
24241 ac_hi=$ac_mid
24242 else
24243 echo "$as_me: failed program was:" >&5
24244 sed 's/^/| /' conftest.$ac_ext >&5
24246 ac_lo=`expr '(' $ac_mid ')' + 1`
24249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24250 done
24251 case $ac_lo in
24252 ?*) ac_cv_alignof_double=$ac_lo;;
24253 '') if test "$ac_cv_type_double" = yes; then
24254 { { echo "$as_me:$LINENO: error: cannot compute alignment of double
24255 See \`config.log' for more details." >&5
24256 echo "$as_me: error: cannot compute alignment of double
24257 See \`config.log' for more details." >&2;}
24258 { (exit 77); exit 77; }; }
24259 else
24260 ac_cv_alignof_double=0
24261 fi ;;
24262 esac
24263 else
24264 cat >conftest.$ac_ext <<_ACEOF
24265 /* confdefs.h. */
24266 _ACEOF
24267 cat confdefs.h >>conftest.$ac_ext
24268 cat >>conftest.$ac_ext <<_ACEOF
24269 /* end confdefs.h. */
24270 $ac_includes_default
24271 #ifndef offsetof
24272 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24273 #endif
24274 typedef struct { char x; double y; } ac__type_alignof_;
24275 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
24276 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
24277 #include <stdio.h>
24278 #include <stdlib.h>
24280 main ()
24283 FILE *f = fopen ("conftest.val", "w");
24284 if (! f)
24285 return 1;
24286 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
24288 long int i = longval ();
24289 if (i != ((long int) offsetof (ac__type_alignof_, y)))
24290 return 1;
24291 fprintf (f, "%ld\n", i);
24293 else
24295 unsigned long int i = ulongval ();
24296 if (i != ((long int) offsetof (ac__type_alignof_, y)))
24297 return 1;
24298 fprintf (f, "%lu\n", i);
24300 return ferror (f) || fclose (f) != 0;
24303 return 0;
24305 _ACEOF
24306 rm -f conftest$ac_exeext
24307 if { (ac_try="$ac_link"
24308 case "(($ac_try" in
24309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24310 *) ac_try_echo=$ac_try;;
24311 esac
24312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24313 (eval "$ac_link") 2>&5
24314 ac_status=$?
24315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24317 { (case "(($ac_try" in
24318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24319 *) ac_try_echo=$ac_try;;
24320 esac
24321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24322 (eval "$ac_try") 2>&5
24323 ac_status=$?
24324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24325 (exit $ac_status); }; }; then
24326 ac_cv_alignof_double=`cat conftest.val`
24327 else
24328 echo "$as_me: program exited with status $ac_status" >&5
24329 echo "$as_me: failed program was:" >&5
24330 sed 's/^/| /' conftest.$ac_ext >&5
24332 ( exit $ac_status )
24333 if test "$ac_cv_type_double" = yes; then
24334 { { echo "$as_me:$LINENO: error: cannot compute alignment of double
24335 See \`config.log' for more details." >&5
24336 echo "$as_me: error: cannot compute alignment of double
24337 See \`config.log' for more details." >&2;}
24338 { (exit 77); exit 77; }; }
24339 else
24340 ac_cv_alignof_double=0
24343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24345 rm -f conftest.val
24347 { echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
24348 echo "${ECHO_T}$ac_cv_alignof_double" >&6; }
24352 cat >>confdefs.h <<_ACEOF
24353 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
24354 _ACEOF
24358 # Compute maximum alignment of any basic type.
24359 # We assume long's alignment is at least as strong as char, short, or int;
24360 # but we must check long long (if it exists) and double.
24362 MAX_ALIGNOF=$ac_cv_alignof_long
24363 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
24364 MAX_ALIGNOF=$ac_cv_alignof_double
24366 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
24367 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
24370 cat >>confdefs.h <<_ACEOF
24371 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
24372 _ACEOF
24376 # Some platforms predefine the types int8, int16, etc. Only check
24377 # a (hopefully) representative subset.
24378 { echo "$as_me:$LINENO: checking for int8" >&5
24379 echo $ECHO_N "checking for int8... $ECHO_C" >&6; }
24380 if test "${ac_cv_type_int8+set}" = set; then
24381 echo $ECHO_N "(cached) $ECHO_C" >&6
24382 else
24383 cat >conftest.$ac_ext <<_ACEOF
24384 /* confdefs.h. */
24385 _ACEOF
24386 cat confdefs.h >>conftest.$ac_ext
24387 cat >>conftest.$ac_ext <<_ACEOF
24388 /* end confdefs.h. */
24389 #include <stdio.h>
24390 #ifdef HAVE_SUPPORTDEFS_H
24391 #include <SupportDefs.h>
24392 #endif
24394 typedef int8 ac__type_new_;
24396 main ()
24398 if ((ac__type_new_ *) 0)
24399 return 0;
24400 if (sizeof (ac__type_new_))
24401 return 0;
24403 return 0;
24405 _ACEOF
24406 rm -f conftest.$ac_objext
24407 if { (ac_try="$ac_compile"
24408 case "(($ac_try" in
24409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24410 *) ac_try_echo=$ac_try;;
24411 esac
24412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24413 (eval "$ac_compile") 2>conftest.er1
24414 ac_status=$?
24415 grep -v '^ *+' conftest.er1 >conftest.err
24416 rm -f conftest.er1
24417 cat conftest.err >&5
24418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24419 (exit $ac_status); } && {
24420 test -z "$ac_c_werror_flag" ||
24421 test ! -s conftest.err
24422 } && test -s conftest.$ac_objext; then
24423 ac_cv_type_int8=yes
24424 else
24425 echo "$as_me: failed program was:" >&5
24426 sed 's/^/| /' conftest.$ac_ext >&5
24428 ac_cv_type_int8=no
24431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24433 { echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
24434 echo "${ECHO_T}$ac_cv_type_int8" >&6; }
24435 if test $ac_cv_type_int8 = yes; then
24437 cat >>confdefs.h <<_ACEOF
24438 #define HAVE_INT8 1
24439 _ACEOF
24443 { echo "$as_me:$LINENO: checking for uint8" >&5
24444 echo $ECHO_N "checking for uint8... $ECHO_C" >&6; }
24445 if test "${ac_cv_type_uint8+set}" = set; then
24446 echo $ECHO_N "(cached) $ECHO_C" >&6
24447 else
24448 cat >conftest.$ac_ext <<_ACEOF
24449 /* confdefs.h. */
24450 _ACEOF
24451 cat confdefs.h >>conftest.$ac_ext
24452 cat >>conftest.$ac_ext <<_ACEOF
24453 /* end confdefs.h. */
24454 #include <stdio.h>
24455 #ifdef HAVE_SUPPORTDEFS_H
24456 #include <SupportDefs.h>
24457 #endif
24459 typedef uint8 ac__type_new_;
24461 main ()
24463 if ((ac__type_new_ *) 0)
24464 return 0;
24465 if (sizeof (ac__type_new_))
24466 return 0;
24468 return 0;
24470 _ACEOF
24471 rm -f conftest.$ac_objext
24472 if { (ac_try="$ac_compile"
24473 case "(($ac_try" in
24474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24475 *) ac_try_echo=$ac_try;;
24476 esac
24477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24478 (eval "$ac_compile") 2>conftest.er1
24479 ac_status=$?
24480 grep -v '^ *+' conftest.er1 >conftest.err
24481 rm -f conftest.er1
24482 cat conftest.err >&5
24483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24484 (exit $ac_status); } && {
24485 test -z "$ac_c_werror_flag" ||
24486 test ! -s conftest.err
24487 } && test -s conftest.$ac_objext; then
24488 ac_cv_type_uint8=yes
24489 else
24490 echo "$as_me: failed program was:" >&5
24491 sed 's/^/| /' conftest.$ac_ext >&5
24493 ac_cv_type_uint8=no
24496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24498 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
24499 echo "${ECHO_T}$ac_cv_type_uint8" >&6; }
24500 if test $ac_cv_type_uint8 = yes; then
24502 cat >>confdefs.h <<_ACEOF
24503 #define HAVE_UINT8 1
24504 _ACEOF
24508 { echo "$as_me:$LINENO: checking for int64" >&5
24509 echo $ECHO_N "checking for int64... $ECHO_C" >&6; }
24510 if test "${ac_cv_type_int64+set}" = set; then
24511 echo $ECHO_N "(cached) $ECHO_C" >&6
24512 else
24513 cat >conftest.$ac_ext <<_ACEOF
24514 /* confdefs.h. */
24515 _ACEOF
24516 cat confdefs.h >>conftest.$ac_ext
24517 cat >>conftest.$ac_ext <<_ACEOF
24518 /* end confdefs.h. */
24519 #include <stdio.h>
24520 #ifdef HAVE_SUPPORTDEFS_H
24521 #include <SupportDefs.h>
24522 #endif
24524 typedef int64 ac__type_new_;
24526 main ()
24528 if ((ac__type_new_ *) 0)
24529 return 0;
24530 if (sizeof (ac__type_new_))
24531 return 0;
24533 return 0;
24535 _ACEOF
24536 rm -f conftest.$ac_objext
24537 if { (ac_try="$ac_compile"
24538 case "(($ac_try" in
24539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24540 *) ac_try_echo=$ac_try;;
24541 esac
24542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24543 (eval "$ac_compile") 2>conftest.er1
24544 ac_status=$?
24545 grep -v '^ *+' conftest.er1 >conftest.err
24546 rm -f conftest.er1
24547 cat conftest.err >&5
24548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24549 (exit $ac_status); } && {
24550 test -z "$ac_c_werror_flag" ||
24551 test ! -s conftest.err
24552 } && test -s conftest.$ac_objext; then
24553 ac_cv_type_int64=yes
24554 else
24555 echo "$as_me: failed program was:" >&5
24556 sed 's/^/| /' conftest.$ac_ext >&5
24558 ac_cv_type_int64=no
24561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24563 { echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
24564 echo "${ECHO_T}$ac_cv_type_int64" >&6; }
24565 if test $ac_cv_type_int64 = yes; then
24567 cat >>confdefs.h <<_ACEOF
24568 #define HAVE_INT64 1
24569 _ACEOF
24573 { echo "$as_me:$LINENO: checking for uint64" >&5
24574 echo $ECHO_N "checking for uint64... $ECHO_C" >&6; }
24575 if test "${ac_cv_type_uint64+set}" = set; then
24576 echo $ECHO_N "(cached) $ECHO_C" >&6
24577 else
24578 cat >conftest.$ac_ext <<_ACEOF
24579 /* confdefs.h. */
24580 _ACEOF
24581 cat confdefs.h >>conftest.$ac_ext
24582 cat >>conftest.$ac_ext <<_ACEOF
24583 /* end confdefs.h. */
24584 #include <stdio.h>
24585 #ifdef HAVE_SUPPORTDEFS_H
24586 #include <SupportDefs.h>
24587 #endif
24589 typedef uint64 ac__type_new_;
24591 main ()
24593 if ((ac__type_new_ *) 0)
24594 return 0;
24595 if (sizeof (ac__type_new_))
24596 return 0;
24598 return 0;
24600 _ACEOF
24601 rm -f conftest.$ac_objext
24602 if { (ac_try="$ac_compile"
24603 case "(($ac_try" in
24604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24605 *) ac_try_echo=$ac_try;;
24606 esac
24607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24608 (eval "$ac_compile") 2>conftest.er1
24609 ac_status=$?
24610 grep -v '^ *+' conftest.er1 >conftest.err
24611 rm -f conftest.er1
24612 cat conftest.err >&5
24613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24614 (exit $ac_status); } && {
24615 test -z "$ac_c_werror_flag" ||
24616 test ! -s conftest.err
24617 } && test -s conftest.$ac_objext; then
24618 ac_cv_type_uint64=yes
24619 else
24620 echo "$as_me: failed program was:" >&5
24621 sed 's/^/| /' conftest.$ac_ext >&5
24623 ac_cv_type_uint64=no
24626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24628 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
24629 echo "${ECHO_T}$ac_cv_type_uint64" >&6; }
24630 if test $ac_cv_type_uint64 = yes; then
24632 cat >>confdefs.h <<_ACEOF
24633 #define HAVE_UINT64 1
24634 _ACEOF
24640 # We also check for sig_atomic_t, which *should* be defined per ANSI
24641 # C, but is missing on some old platforms.
24642 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
24643 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
24644 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
24645 echo $ECHO_N "(cached) $ECHO_C" >&6
24646 else
24647 cat >conftest.$ac_ext <<_ACEOF
24648 /* confdefs.h. */
24649 _ACEOF
24650 cat confdefs.h >>conftest.$ac_ext
24651 cat >>conftest.$ac_ext <<_ACEOF
24652 /* end confdefs.h. */
24653 #include <signal.h>
24655 typedef sig_atomic_t ac__type_new_;
24657 main ()
24659 if ((ac__type_new_ *) 0)
24660 return 0;
24661 if (sizeof (ac__type_new_))
24662 return 0;
24664 return 0;
24666 _ACEOF
24667 rm -f conftest.$ac_objext
24668 if { (ac_try="$ac_compile"
24669 case "(($ac_try" in
24670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24671 *) ac_try_echo=$ac_try;;
24672 esac
24673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24674 (eval "$ac_compile") 2>conftest.er1
24675 ac_status=$?
24676 grep -v '^ *+' conftest.er1 >conftest.err
24677 rm -f conftest.er1
24678 cat conftest.err >&5
24679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24680 (exit $ac_status); } && {
24681 test -z "$ac_c_werror_flag" ||
24682 test ! -s conftest.err
24683 } && test -s conftest.$ac_objext; then
24684 ac_cv_type_sig_atomic_t=yes
24685 else
24686 echo "$as_me: failed program was:" >&5
24687 sed 's/^/| /' conftest.$ac_ext >&5
24689 ac_cv_type_sig_atomic_t=no
24692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24694 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
24695 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
24696 if test $ac_cv_type_sig_atomic_t = yes; then
24698 cat >>confdefs.h <<_ACEOF
24699 #define HAVE_SIG_ATOMIC_T 1
24700 _ACEOF
24707 # If the user did not disable integer datetimes, check that
24708 # there is a working 64-bit integral type to use.
24709 if test x"$USE_INTEGER_DATETIMES" = x"yes" &&
24710 test x"$HAVE_LONG_INT_64" = x"no" &&
24711 test x"$HAVE_LONG_LONG_INT_64" = x"no" &&
24712 test x"$HAVE_INT64" = x"no" ; then
24713 { { echo "$as_me:$LINENO: error:
24714 Integer-based datetime support requires a 64-bit integer type,
24715 but no such type could be found. The --disable-integer-datetimes
24716 configure option can be used to disable integer-based storage
24717 of datetime values." >&5
24718 echo "$as_me: error:
24719 Integer-based datetime support requires a 64-bit integer type,
24720 but no such type could be found. The --disable-integer-datetimes
24721 configure option can be used to disable integer-based storage
24722 of datetime values." >&2;}
24723 { (exit 1); exit 1; }; }
24727 if test "$PORTNAME" != "win32"
24728 then
24729 { echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
24730 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6; }
24731 if test "${pgac_cv_func_posix_signals+set}" = set; then
24732 echo $ECHO_N "(cached) $ECHO_C" >&6
24733 else
24734 cat >conftest.$ac_ext <<_ACEOF
24735 /* confdefs.h. */
24736 _ACEOF
24737 cat confdefs.h >>conftest.$ac_ext
24738 cat >>conftest.$ac_ext <<_ACEOF
24739 /* end confdefs.h. */
24740 #include <signal.h>
24743 main ()
24745 struct sigaction act, oact;
24746 sigemptyset(&act.sa_mask);
24747 act.sa_flags = SA_RESTART;
24748 sigaction(0, &act, &oact);
24750 return 0;
24752 _ACEOF
24753 rm -f conftest.$ac_objext conftest$ac_exeext
24754 if { (ac_try="$ac_link"
24755 case "(($ac_try" in
24756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24757 *) ac_try_echo=$ac_try;;
24758 esac
24759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24760 (eval "$ac_link") 2>conftest.er1
24761 ac_status=$?
24762 grep -v '^ *+' conftest.er1 >conftest.err
24763 rm -f conftest.er1
24764 cat conftest.err >&5
24765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24766 (exit $ac_status); } && {
24767 test -z "$ac_c_werror_flag" ||
24768 test ! -s conftest.err
24769 } && test -s conftest$ac_exeext &&
24770 $as_test_x conftest$ac_exeext; then
24771 pgac_cv_func_posix_signals=yes
24772 else
24773 echo "$as_me: failed program was:" >&5
24774 sed 's/^/| /' conftest.$ac_ext >&5
24776 pgac_cv_func_posix_signals=no
24779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24780 conftest$ac_exeext conftest.$ac_ext
24782 { echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
24783 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6; }
24784 if test x"$pgac_cv_func_posix_signals" = xyes ; then
24786 cat >>confdefs.h <<\_ACEOF
24787 #define HAVE_POSIX_SIGNALS
24788 _ACEOF
24791 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
24793 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
24794 { { echo "$as_me:$LINENO: error:
24795 Thread-safety requires POSIX signals, which are not supported by this
24796 operating system." >&5
24797 echo "$as_me: error:
24798 Thread-safety requires POSIX signals, which are not supported by this
24799 operating system." >&2;}
24800 { (exit 1); exit 1; }; }
24804 if test $ac_cv_func_fseeko = yes; then
24805 # Check whether --enable-largefile was given.
24806 if test "${enable_largefile+set}" = set; then
24807 enableval=$enable_largefile;
24810 if test "$enable_largefile" != no; then
24812 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
24813 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
24814 if test "${ac_cv_sys_largefile_CC+set}" = set; then
24815 echo $ECHO_N "(cached) $ECHO_C" >&6
24816 else
24817 ac_cv_sys_largefile_CC=no
24818 if test "$GCC" != yes; then
24819 ac_save_CC=$CC
24820 while :; do
24821 # IRIX 6.2 and later do not support large files by default,
24822 # so use the C compiler's -n32 option if that helps.
24823 cat >conftest.$ac_ext <<_ACEOF
24824 /* confdefs.h. */
24825 _ACEOF
24826 cat confdefs.h >>conftest.$ac_ext
24827 cat >>conftest.$ac_ext <<_ACEOF
24828 /* end confdefs.h. */
24829 #include <sys/types.h>
24830 /* Check that off_t can represent 2**63 - 1 correctly.
24831 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24832 since some C++ compilers masquerading as C compilers
24833 incorrectly reject 9223372036854775807. */
24834 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24835 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24836 && LARGE_OFF_T % 2147483647 == 1)
24837 ? 1 : -1];
24839 main ()
24843 return 0;
24845 _ACEOF
24846 rm -f conftest.$ac_objext
24847 if { (ac_try="$ac_compile"
24848 case "(($ac_try" in
24849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24850 *) ac_try_echo=$ac_try;;
24851 esac
24852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24853 (eval "$ac_compile") 2>conftest.er1
24854 ac_status=$?
24855 grep -v '^ *+' conftest.er1 >conftest.err
24856 rm -f conftest.er1
24857 cat conftest.err >&5
24858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24859 (exit $ac_status); } && {
24860 test -z "$ac_c_werror_flag" ||
24861 test ! -s conftest.err
24862 } && test -s conftest.$ac_objext; then
24863 break
24864 else
24865 echo "$as_me: failed program was:" >&5
24866 sed 's/^/| /' conftest.$ac_ext >&5
24871 rm -f core conftest.err conftest.$ac_objext
24872 CC="$CC -n32"
24873 rm -f conftest.$ac_objext
24874 if { (ac_try="$ac_compile"
24875 case "(($ac_try" in
24876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24877 *) ac_try_echo=$ac_try;;
24878 esac
24879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24880 (eval "$ac_compile") 2>conftest.er1
24881 ac_status=$?
24882 grep -v '^ *+' conftest.er1 >conftest.err
24883 rm -f conftest.er1
24884 cat conftest.err >&5
24885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24886 (exit $ac_status); } && {
24887 test -z "$ac_c_werror_flag" ||
24888 test ! -s conftest.err
24889 } && test -s conftest.$ac_objext; then
24890 ac_cv_sys_largefile_CC=' -n32'; break
24891 else
24892 echo "$as_me: failed program was:" >&5
24893 sed 's/^/| /' conftest.$ac_ext >&5
24898 rm -f core conftest.err conftest.$ac_objext
24899 break
24900 done
24901 CC=$ac_save_CC
24902 rm -f conftest.$ac_ext
24905 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
24906 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
24907 if test "$ac_cv_sys_largefile_CC" != no; then
24908 CC=$CC$ac_cv_sys_largefile_CC
24911 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
24912 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
24913 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
24914 echo $ECHO_N "(cached) $ECHO_C" >&6
24915 else
24916 while :; do
24917 cat >conftest.$ac_ext <<_ACEOF
24918 /* confdefs.h. */
24919 _ACEOF
24920 cat confdefs.h >>conftest.$ac_ext
24921 cat >>conftest.$ac_ext <<_ACEOF
24922 /* end confdefs.h. */
24923 #include <sys/types.h>
24924 /* Check that off_t can represent 2**63 - 1 correctly.
24925 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24926 since some C++ compilers masquerading as C compilers
24927 incorrectly reject 9223372036854775807. */
24928 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24929 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24930 && LARGE_OFF_T % 2147483647 == 1)
24931 ? 1 : -1];
24933 main ()
24937 return 0;
24939 _ACEOF
24940 rm -f conftest.$ac_objext
24941 if { (ac_try="$ac_compile"
24942 case "(($ac_try" in
24943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24944 *) ac_try_echo=$ac_try;;
24945 esac
24946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24947 (eval "$ac_compile") 2>conftest.er1
24948 ac_status=$?
24949 grep -v '^ *+' conftest.er1 >conftest.err
24950 rm -f conftest.er1
24951 cat conftest.err >&5
24952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24953 (exit $ac_status); } && {
24954 test -z "$ac_c_werror_flag" ||
24955 test ! -s conftest.err
24956 } && test -s conftest.$ac_objext; then
24957 ac_cv_sys_file_offset_bits=no; break
24958 else
24959 echo "$as_me: failed program was:" >&5
24960 sed 's/^/| /' conftest.$ac_ext >&5
24965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24966 cat >conftest.$ac_ext <<_ACEOF
24967 /* confdefs.h. */
24968 _ACEOF
24969 cat confdefs.h >>conftest.$ac_ext
24970 cat >>conftest.$ac_ext <<_ACEOF
24971 /* end confdefs.h. */
24972 #define _FILE_OFFSET_BITS 64
24973 #include <sys/types.h>
24974 /* Check that off_t can represent 2**63 - 1 correctly.
24975 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24976 since some C++ compilers masquerading as C compilers
24977 incorrectly reject 9223372036854775807. */
24978 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24979 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24980 && LARGE_OFF_T % 2147483647 == 1)
24981 ? 1 : -1];
24983 main ()
24987 return 0;
24989 _ACEOF
24990 rm -f conftest.$ac_objext
24991 if { (ac_try="$ac_compile"
24992 case "(($ac_try" in
24993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24994 *) ac_try_echo=$ac_try;;
24995 esac
24996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24997 (eval "$ac_compile") 2>conftest.er1
24998 ac_status=$?
24999 grep -v '^ *+' conftest.er1 >conftest.err
25000 rm -f conftest.er1
25001 cat conftest.err >&5
25002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25003 (exit $ac_status); } && {
25004 test -z "$ac_c_werror_flag" ||
25005 test ! -s conftest.err
25006 } && test -s conftest.$ac_objext; then
25007 ac_cv_sys_file_offset_bits=64; break
25008 else
25009 echo "$as_me: failed program was:" >&5
25010 sed 's/^/| /' conftest.$ac_ext >&5
25015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25016 ac_cv_sys_file_offset_bits=unknown
25017 break
25018 done
25020 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
25021 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
25022 case $ac_cv_sys_file_offset_bits in #(
25023 no | unknown) ;;
25025 cat >>confdefs.h <<_ACEOF
25026 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
25027 _ACEOF
25029 esac
25030 rm -f conftest*
25031 if test $ac_cv_sys_file_offset_bits = unknown; then
25032 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
25033 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
25034 if test "${ac_cv_sys_large_files+set}" = set; then
25035 echo $ECHO_N "(cached) $ECHO_C" >&6
25036 else
25037 while :; do
25038 cat >conftest.$ac_ext <<_ACEOF
25039 /* confdefs.h. */
25040 _ACEOF
25041 cat confdefs.h >>conftest.$ac_ext
25042 cat >>conftest.$ac_ext <<_ACEOF
25043 /* end confdefs.h. */
25044 #include <sys/types.h>
25045 /* Check that off_t can represent 2**63 - 1 correctly.
25046 We can't simply define LARGE_OFF_T to be 9223372036854775807,
25047 since some C++ compilers masquerading as C compilers
25048 incorrectly reject 9223372036854775807. */
25049 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
25050 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
25051 && LARGE_OFF_T % 2147483647 == 1)
25052 ? 1 : -1];
25054 main ()
25058 return 0;
25060 _ACEOF
25061 rm -f conftest.$ac_objext
25062 if { (ac_try="$ac_compile"
25063 case "(($ac_try" in
25064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25065 *) ac_try_echo=$ac_try;;
25066 esac
25067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25068 (eval "$ac_compile") 2>conftest.er1
25069 ac_status=$?
25070 grep -v '^ *+' conftest.er1 >conftest.err
25071 rm -f conftest.er1
25072 cat conftest.err >&5
25073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25074 (exit $ac_status); } && {
25075 test -z "$ac_c_werror_flag" ||
25076 test ! -s conftest.err
25077 } && test -s conftest.$ac_objext; then
25078 ac_cv_sys_large_files=no; break
25079 else
25080 echo "$as_me: failed program was:" >&5
25081 sed 's/^/| /' conftest.$ac_ext >&5
25086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25087 cat >conftest.$ac_ext <<_ACEOF
25088 /* confdefs.h. */
25089 _ACEOF
25090 cat confdefs.h >>conftest.$ac_ext
25091 cat >>conftest.$ac_ext <<_ACEOF
25092 /* end confdefs.h. */
25093 #define _LARGE_FILES 1
25094 #include <sys/types.h>
25095 /* Check that off_t can represent 2**63 - 1 correctly.
25096 We can't simply define LARGE_OFF_T to be 9223372036854775807,
25097 since some C++ compilers masquerading as C compilers
25098 incorrectly reject 9223372036854775807. */
25099 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
25100 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
25101 && LARGE_OFF_T % 2147483647 == 1)
25102 ? 1 : -1];
25104 main ()
25108 return 0;
25110 _ACEOF
25111 rm -f conftest.$ac_objext
25112 if { (ac_try="$ac_compile"
25113 case "(($ac_try" in
25114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25115 *) ac_try_echo=$ac_try;;
25116 esac
25117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25118 (eval "$ac_compile") 2>conftest.er1
25119 ac_status=$?
25120 grep -v '^ *+' conftest.er1 >conftest.err
25121 rm -f conftest.er1
25122 cat conftest.err >&5
25123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25124 (exit $ac_status); } && {
25125 test -z "$ac_c_werror_flag" ||
25126 test ! -s conftest.err
25127 } && test -s conftest.$ac_objext; then
25128 ac_cv_sys_large_files=1; break
25129 else
25130 echo "$as_me: failed program was:" >&5
25131 sed 's/^/| /' conftest.$ac_ext >&5
25136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25137 ac_cv_sys_large_files=unknown
25138 break
25139 done
25141 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
25142 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
25143 case $ac_cv_sys_large_files in #(
25144 no | unknown) ;;
25146 cat >>confdefs.h <<_ACEOF
25147 #define _LARGE_FILES $ac_cv_sys_large_files
25148 _ACEOF
25150 esac
25151 rm -f conftest*
25157 # Check for largefile support (must be after AC_SYS_LARGEFILE)
25158 { echo "$as_me:$LINENO: checking for off_t" >&5
25159 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
25160 if test "${ac_cv_type_off_t+set}" = set; then
25161 echo $ECHO_N "(cached) $ECHO_C" >&6
25162 else
25163 cat >conftest.$ac_ext <<_ACEOF
25164 /* confdefs.h. */
25165 _ACEOF
25166 cat confdefs.h >>conftest.$ac_ext
25167 cat >>conftest.$ac_ext <<_ACEOF
25168 /* end confdefs.h. */
25169 $ac_includes_default
25170 typedef off_t ac__type_new_;
25172 main ()
25174 if ((ac__type_new_ *) 0)
25175 return 0;
25176 if (sizeof (ac__type_new_))
25177 return 0;
25179 return 0;
25181 _ACEOF
25182 rm -f conftest.$ac_objext
25183 if { (ac_try="$ac_compile"
25184 case "(($ac_try" in
25185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25186 *) ac_try_echo=$ac_try;;
25187 esac
25188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25189 (eval "$ac_compile") 2>conftest.er1
25190 ac_status=$?
25191 grep -v '^ *+' conftest.er1 >conftest.err
25192 rm -f conftest.er1
25193 cat conftest.err >&5
25194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25195 (exit $ac_status); } && {
25196 test -z "$ac_c_werror_flag" ||
25197 test ! -s conftest.err
25198 } && test -s conftest.$ac_objext; then
25199 ac_cv_type_off_t=yes
25200 else
25201 echo "$as_me: failed program was:" >&5
25202 sed 's/^/| /' conftest.$ac_ext >&5
25204 ac_cv_type_off_t=no
25207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25209 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
25210 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
25212 # The cast to long int works around a bug in the HP C Compiler
25213 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25214 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25215 # This bug is HP SR number 8606223364.
25216 { echo "$as_me:$LINENO: checking size of off_t" >&5
25217 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
25218 if test "${ac_cv_sizeof_off_t+set}" = set; then
25219 echo $ECHO_N "(cached) $ECHO_C" >&6
25220 else
25221 if test "$cross_compiling" = yes; then
25222 # Depending upon the size, compute the lo and hi bounds.
25223 cat >conftest.$ac_ext <<_ACEOF
25224 /* confdefs.h. */
25225 _ACEOF
25226 cat confdefs.h >>conftest.$ac_ext
25227 cat >>conftest.$ac_ext <<_ACEOF
25228 /* end confdefs.h. */
25229 $ac_includes_default
25230 typedef off_t ac__type_sizeof_;
25232 main ()
25234 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25235 test_array [0] = 0
25238 return 0;
25240 _ACEOF
25241 rm -f conftest.$ac_objext
25242 if { (ac_try="$ac_compile"
25243 case "(($ac_try" in
25244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25245 *) ac_try_echo=$ac_try;;
25246 esac
25247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25248 (eval "$ac_compile") 2>conftest.er1
25249 ac_status=$?
25250 grep -v '^ *+' conftest.er1 >conftest.err
25251 rm -f conftest.er1
25252 cat conftest.err >&5
25253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25254 (exit $ac_status); } && {
25255 test -z "$ac_c_werror_flag" ||
25256 test ! -s conftest.err
25257 } && test -s conftest.$ac_objext; then
25258 ac_lo=0 ac_mid=0
25259 while :; do
25260 cat >conftest.$ac_ext <<_ACEOF
25261 /* confdefs.h. */
25262 _ACEOF
25263 cat confdefs.h >>conftest.$ac_ext
25264 cat >>conftest.$ac_ext <<_ACEOF
25265 /* end confdefs.h. */
25266 $ac_includes_default
25267 typedef off_t ac__type_sizeof_;
25269 main ()
25271 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25272 test_array [0] = 0
25275 return 0;
25277 _ACEOF
25278 rm -f conftest.$ac_objext
25279 if { (ac_try="$ac_compile"
25280 case "(($ac_try" in
25281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25282 *) ac_try_echo=$ac_try;;
25283 esac
25284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25285 (eval "$ac_compile") 2>conftest.er1
25286 ac_status=$?
25287 grep -v '^ *+' conftest.er1 >conftest.err
25288 rm -f conftest.er1
25289 cat conftest.err >&5
25290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25291 (exit $ac_status); } && {
25292 test -z "$ac_c_werror_flag" ||
25293 test ! -s conftest.err
25294 } && test -s conftest.$ac_objext; then
25295 ac_hi=$ac_mid; break
25296 else
25297 echo "$as_me: failed program was:" >&5
25298 sed 's/^/| /' conftest.$ac_ext >&5
25300 ac_lo=`expr $ac_mid + 1`
25301 if test $ac_lo -le $ac_mid; then
25302 ac_lo= ac_hi=
25303 break
25305 ac_mid=`expr 2 '*' $ac_mid + 1`
25308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25309 done
25310 else
25311 echo "$as_me: failed program was:" >&5
25312 sed 's/^/| /' conftest.$ac_ext >&5
25314 cat >conftest.$ac_ext <<_ACEOF
25315 /* confdefs.h. */
25316 _ACEOF
25317 cat confdefs.h >>conftest.$ac_ext
25318 cat >>conftest.$ac_ext <<_ACEOF
25319 /* end confdefs.h. */
25320 $ac_includes_default
25321 typedef off_t ac__type_sizeof_;
25323 main ()
25325 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25326 test_array [0] = 0
25329 return 0;
25331 _ACEOF
25332 rm -f conftest.$ac_objext
25333 if { (ac_try="$ac_compile"
25334 case "(($ac_try" in
25335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25336 *) ac_try_echo=$ac_try;;
25337 esac
25338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25339 (eval "$ac_compile") 2>conftest.er1
25340 ac_status=$?
25341 grep -v '^ *+' conftest.er1 >conftest.err
25342 rm -f conftest.er1
25343 cat conftest.err >&5
25344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25345 (exit $ac_status); } && {
25346 test -z "$ac_c_werror_flag" ||
25347 test ! -s conftest.err
25348 } && test -s conftest.$ac_objext; then
25349 ac_hi=-1 ac_mid=-1
25350 while :; do
25351 cat >conftest.$ac_ext <<_ACEOF
25352 /* confdefs.h. */
25353 _ACEOF
25354 cat confdefs.h >>conftest.$ac_ext
25355 cat >>conftest.$ac_ext <<_ACEOF
25356 /* end confdefs.h. */
25357 $ac_includes_default
25358 typedef off_t ac__type_sizeof_;
25360 main ()
25362 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25363 test_array [0] = 0
25366 return 0;
25368 _ACEOF
25369 rm -f conftest.$ac_objext
25370 if { (ac_try="$ac_compile"
25371 case "(($ac_try" in
25372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25373 *) ac_try_echo=$ac_try;;
25374 esac
25375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25376 (eval "$ac_compile") 2>conftest.er1
25377 ac_status=$?
25378 grep -v '^ *+' conftest.er1 >conftest.err
25379 rm -f conftest.er1
25380 cat conftest.err >&5
25381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25382 (exit $ac_status); } && {
25383 test -z "$ac_c_werror_flag" ||
25384 test ! -s conftest.err
25385 } && test -s conftest.$ac_objext; then
25386 ac_lo=$ac_mid; break
25387 else
25388 echo "$as_me: failed program was:" >&5
25389 sed 's/^/| /' conftest.$ac_ext >&5
25391 ac_hi=`expr '(' $ac_mid ')' - 1`
25392 if test $ac_mid -le $ac_hi; then
25393 ac_lo= ac_hi=
25394 break
25396 ac_mid=`expr 2 '*' $ac_mid`
25399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25400 done
25401 else
25402 echo "$as_me: failed program was:" >&5
25403 sed 's/^/| /' conftest.$ac_ext >&5
25405 ac_lo= ac_hi=
25408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25412 # Binary search between lo and hi bounds.
25413 while test "x$ac_lo" != "x$ac_hi"; do
25414 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25415 cat >conftest.$ac_ext <<_ACEOF
25416 /* confdefs.h. */
25417 _ACEOF
25418 cat confdefs.h >>conftest.$ac_ext
25419 cat >>conftest.$ac_ext <<_ACEOF
25420 /* end confdefs.h. */
25421 $ac_includes_default
25422 typedef off_t ac__type_sizeof_;
25424 main ()
25426 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25427 test_array [0] = 0
25430 return 0;
25432 _ACEOF
25433 rm -f conftest.$ac_objext
25434 if { (ac_try="$ac_compile"
25435 case "(($ac_try" in
25436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25437 *) ac_try_echo=$ac_try;;
25438 esac
25439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25440 (eval "$ac_compile") 2>conftest.er1
25441 ac_status=$?
25442 grep -v '^ *+' conftest.er1 >conftest.err
25443 rm -f conftest.er1
25444 cat conftest.err >&5
25445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25446 (exit $ac_status); } && {
25447 test -z "$ac_c_werror_flag" ||
25448 test ! -s conftest.err
25449 } && test -s conftest.$ac_objext; then
25450 ac_hi=$ac_mid
25451 else
25452 echo "$as_me: failed program was:" >&5
25453 sed 's/^/| /' conftest.$ac_ext >&5
25455 ac_lo=`expr '(' $ac_mid ')' + 1`
25458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25459 done
25460 case $ac_lo in
25461 ?*) ac_cv_sizeof_off_t=$ac_lo;;
25462 '') if test "$ac_cv_type_off_t" = yes; then
25463 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
25464 See \`config.log' for more details." >&5
25465 echo "$as_me: error: cannot compute sizeof (off_t)
25466 See \`config.log' for more details." >&2;}
25467 { (exit 77); exit 77; }; }
25468 else
25469 ac_cv_sizeof_off_t=0
25470 fi ;;
25471 esac
25472 else
25473 cat >conftest.$ac_ext <<_ACEOF
25474 /* confdefs.h. */
25475 _ACEOF
25476 cat confdefs.h >>conftest.$ac_ext
25477 cat >>conftest.$ac_ext <<_ACEOF
25478 /* end confdefs.h. */
25479 $ac_includes_default
25480 typedef off_t ac__type_sizeof_;
25481 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25482 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25483 #include <stdio.h>
25484 #include <stdlib.h>
25486 main ()
25489 FILE *f = fopen ("conftest.val", "w");
25490 if (! f)
25491 return 1;
25492 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25494 long int i = longval ();
25495 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25496 return 1;
25497 fprintf (f, "%ld\n", i);
25499 else
25501 unsigned long int i = ulongval ();
25502 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25503 return 1;
25504 fprintf (f, "%lu\n", i);
25506 return ferror (f) || fclose (f) != 0;
25509 return 0;
25511 _ACEOF
25512 rm -f conftest$ac_exeext
25513 if { (ac_try="$ac_link"
25514 case "(($ac_try" in
25515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25516 *) ac_try_echo=$ac_try;;
25517 esac
25518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25519 (eval "$ac_link") 2>&5
25520 ac_status=$?
25521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25522 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25523 { (case "(($ac_try" in
25524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25525 *) ac_try_echo=$ac_try;;
25526 esac
25527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25528 (eval "$ac_try") 2>&5
25529 ac_status=$?
25530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25531 (exit $ac_status); }; }; then
25532 ac_cv_sizeof_off_t=`cat conftest.val`
25533 else
25534 echo "$as_me: program exited with status $ac_status" >&5
25535 echo "$as_me: failed program was:" >&5
25536 sed 's/^/| /' conftest.$ac_ext >&5
25538 ( exit $ac_status )
25539 if test "$ac_cv_type_off_t" = yes; then
25540 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
25541 See \`config.log' for more details." >&5
25542 echo "$as_me: error: cannot compute sizeof (off_t)
25543 See \`config.log' for more details." >&2;}
25544 { (exit 77); exit 77; }; }
25545 else
25546 ac_cv_sizeof_off_t=0
25549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25551 rm -f conftest.val
25553 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
25554 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
25558 cat >>confdefs.h <<_ACEOF
25559 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
25560 _ACEOF
25564 # If we don't have largefile support, can't handle segsize >= 2GB.
25565 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
25566 { { echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
25567 echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
25568 { (exit 1); exit 1; }; }
25571 # SunOS doesn't handle negative byte comparisons properly with +/- return
25572 { echo "$as_me:$LINENO: checking for working memcmp" >&5
25573 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
25574 if test "${ac_cv_func_memcmp_working+set}" = set; then
25575 echo $ECHO_N "(cached) $ECHO_C" >&6
25576 else
25577 if test "$cross_compiling" = yes; then
25578 ac_cv_func_memcmp_working=no
25579 else
25580 cat >conftest.$ac_ext <<_ACEOF
25581 /* confdefs.h. */
25582 _ACEOF
25583 cat confdefs.h >>conftest.$ac_ext
25584 cat >>conftest.$ac_ext <<_ACEOF
25585 /* end confdefs.h. */
25586 $ac_includes_default
25588 main ()
25591 /* Some versions of memcmp are not 8-bit clean. */
25592 char c0 = '\100', c1 = '\200', c2 = '\201';
25593 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25594 return 1;
25596 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25597 or more and with at least one buffer not starting on a 4-byte boundary.
25598 William Lewis provided this test program. */
25600 char foo[21];
25601 char bar[21];
25602 int i;
25603 for (i = 0; i < 4; i++)
25605 char *a = foo + i;
25606 char *b = bar + i;
25607 strcpy (a, "--------01111111");
25608 strcpy (b, "--------10000000");
25609 if (memcmp (a, b, 16) >= 0)
25610 return 1;
25612 return 0;
25616 return 0;
25618 _ACEOF
25619 rm -f conftest$ac_exeext
25620 if { (ac_try="$ac_link"
25621 case "(($ac_try" in
25622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25623 *) ac_try_echo=$ac_try;;
25624 esac
25625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25626 (eval "$ac_link") 2>&5
25627 ac_status=$?
25628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25629 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25630 { (case "(($ac_try" in
25631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25632 *) ac_try_echo=$ac_try;;
25633 esac
25634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25635 (eval "$ac_try") 2>&5
25636 ac_status=$?
25637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25638 (exit $ac_status); }; }; then
25639 ac_cv_func_memcmp_working=yes
25640 else
25641 echo "$as_me: program exited with status $ac_status" >&5
25642 echo "$as_me: failed program was:" >&5
25643 sed 's/^/| /' conftest.$ac_ext >&5
25645 ( exit $ac_status )
25646 ac_cv_func_memcmp_working=no
25648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25653 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
25654 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
25655 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
25656 *" memcmp.$ac_objext "* ) ;;
25657 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
25659 esac
25664 # Select semaphore implementation type.
25665 if test "$PORTNAME" != "win32"; then
25666 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
25668 cat >>confdefs.h <<\_ACEOF
25669 #define USE_NAMED_POSIX_SEMAPHORES 1
25670 _ACEOF
25672 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
25673 else
25674 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
25676 cat >>confdefs.h <<\_ACEOF
25677 #define USE_UNNAMED_POSIX_SEMAPHORES 1
25678 _ACEOF
25680 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
25681 else
25683 cat >>confdefs.h <<\_ACEOF
25684 #define USE_SYSV_SEMAPHORES 1
25685 _ACEOF
25687 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
25690 else
25692 cat >>confdefs.h <<\_ACEOF
25693 #define USE_WIN32_SEMAPHORES 1
25694 _ACEOF
25696 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
25700 # Select shared-memory implementation type.
25701 if test "$PORTNAME" != "win32"; then
25703 cat >>confdefs.h <<\_ACEOF
25704 #define USE_SYSV_SHARED_MEMORY 1
25705 _ACEOF
25707 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
25708 else
25710 cat >>confdefs.h <<\_ACEOF
25711 #define USE_WIN32_SHARED_MEMORY 1
25712 _ACEOF
25714 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
25717 # If not set in template file, set bytes to use libc memset()
25718 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
25719 MEMSET_LOOP_LIMIT=1024
25722 cat >>confdefs.h <<_ACEOF
25723 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
25724 _ACEOF
25728 if test "$enable_nls" = yes ; then
25730 { echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
25731 echo $ECHO_N "checking for library containing bind_textdomain_codeset... $ECHO_C" >&6; }
25732 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
25733 echo $ECHO_N "(cached) $ECHO_C" >&6
25734 else
25735 ac_func_search_save_LIBS=$LIBS
25736 cat >conftest.$ac_ext <<_ACEOF
25737 /* confdefs.h. */
25738 _ACEOF
25739 cat confdefs.h >>conftest.$ac_ext
25740 cat >>conftest.$ac_ext <<_ACEOF
25741 /* end confdefs.h. */
25743 /* Override any GCC internal prototype to avoid an error.
25744 Use char because int might match the return type of a GCC
25745 builtin and then its argument prototype would still apply. */
25746 #ifdef __cplusplus
25747 extern "C"
25748 #endif
25749 char bind_textdomain_codeset ();
25751 main ()
25753 return bind_textdomain_codeset ();
25755 return 0;
25757 _ACEOF
25758 for ac_lib in '' intl; do
25759 if test -z "$ac_lib"; then
25760 ac_res="none required"
25761 else
25762 ac_res=-l$ac_lib
25763 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25765 rm -f conftest.$ac_objext conftest$ac_exeext
25766 if { (ac_try="$ac_link"
25767 case "(($ac_try" in
25768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25769 *) ac_try_echo=$ac_try;;
25770 esac
25771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25772 (eval "$ac_link") 2>conftest.er1
25773 ac_status=$?
25774 grep -v '^ *+' conftest.er1 >conftest.err
25775 rm -f conftest.er1
25776 cat conftest.err >&5
25777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25778 (exit $ac_status); } && {
25779 test -z "$ac_c_werror_flag" ||
25780 test ! -s conftest.err
25781 } && test -s conftest$ac_exeext &&
25782 $as_test_x conftest$ac_exeext; then
25783 ac_cv_search_bind_textdomain_codeset=$ac_res
25784 else
25785 echo "$as_me: failed program was:" >&5
25786 sed 's/^/| /' conftest.$ac_ext >&5
25791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25792 conftest$ac_exeext
25793 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
25794 break
25796 done
25797 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
25799 else
25800 ac_cv_search_bind_textdomain_codeset=no
25802 rm conftest.$ac_ext
25803 LIBS=$ac_func_search_save_LIBS
25805 { echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
25806 echo "${ECHO_T}$ac_cv_search_bind_textdomain_codeset" >&6; }
25807 ac_res=$ac_cv_search_bind_textdomain_codeset
25808 if test "$ac_res" != no; then
25809 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25811 else
25812 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
25813 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
25814 { (exit 1); exit 1; }; }
25817 if test "${ac_cv_header_libintl_h+set}" = set; then
25818 { echo "$as_me:$LINENO: checking for libintl.h" >&5
25819 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
25820 if test "${ac_cv_header_libintl_h+set}" = set; then
25821 echo $ECHO_N "(cached) $ECHO_C" >&6
25823 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
25824 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
25825 else
25826 # Is the header compilable?
25827 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
25828 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
25829 cat >conftest.$ac_ext <<_ACEOF
25830 /* confdefs.h. */
25831 _ACEOF
25832 cat confdefs.h >>conftest.$ac_ext
25833 cat >>conftest.$ac_ext <<_ACEOF
25834 /* end confdefs.h. */
25835 $ac_includes_default
25836 #include <libintl.h>
25837 _ACEOF
25838 rm -f conftest.$ac_objext
25839 if { (ac_try="$ac_compile"
25840 case "(($ac_try" in
25841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25842 *) ac_try_echo=$ac_try;;
25843 esac
25844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25845 (eval "$ac_compile") 2>conftest.er1
25846 ac_status=$?
25847 grep -v '^ *+' conftest.er1 >conftest.err
25848 rm -f conftest.er1
25849 cat conftest.err >&5
25850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25851 (exit $ac_status); } && {
25852 test -z "$ac_c_werror_flag" ||
25853 test ! -s conftest.err
25854 } && test -s conftest.$ac_objext; then
25855 ac_header_compiler=yes
25856 else
25857 echo "$as_me: failed program was:" >&5
25858 sed 's/^/| /' conftest.$ac_ext >&5
25860 ac_header_compiler=no
25863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25864 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25865 echo "${ECHO_T}$ac_header_compiler" >&6; }
25867 # Is the header present?
25868 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
25869 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
25870 cat >conftest.$ac_ext <<_ACEOF
25871 /* confdefs.h. */
25872 _ACEOF
25873 cat confdefs.h >>conftest.$ac_ext
25874 cat >>conftest.$ac_ext <<_ACEOF
25875 /* end confdefs.h. */
25876 #include <libintl.h>
25877 _ACEOF
25878 if { (ac_try="$ac_cpp conftest.$ac_ext"
25879 case "(($ac_try" in
25880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25881 *) ac_try_echo=$ac_try;;
25882 esac
25883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25885 ac_status=$?
25886 grep -v '^ *+' conftest.er1 >conftest.err
25887 rm -f conftest.er1
25888 cat conftest.err >&5
25889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25890 (exit $ac_status); } >/dev/null && {
25891 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25892 test ! -s conftest.err
25893 }; then
25894 ac_header_preproc=yes
25895 else
25896 echo "$as_me: failed program was:" >&5
25897 sed 's/^/| /' conftest.$ac_ext >&5
25899 ac_header_preproc=no
25902 rm -f conftest.err conftest.$ac_ext
25903 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25904 echo "${ECHO_T}$ac_header_preproc" >&6; }
25906 # So? What about this header?
25907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25908 yes:no: )
25909 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25910 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25911 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
25912 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
25913 ac_header_preproc=yes
25915 no:yes:* )
25916 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
25917 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
25918 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
25919 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
25920 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
25921 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
25922 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
25923 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
25924 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
25925 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
25926 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
25927 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
25928 ( cat <<\_ASBOX
25929 ## ---------------------------------------- ##
25930 ## Report this to pgsql-bugs@postgresql.org ##
25931 ## ---------------------------------------- ##
25932 _ASBOX
25933 ) | sed "s/^/$as_me: WARNING: /" >&2
25935 esac
25936 { echo "$as_me:$LINENO: checking for libintl.h" >&5
25937 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
25938 if test "${ac_cv_header_libintl_h+set}" = set; then
25939 echo $ECHO_N "(cached) $ECHO_C" >&6
25940 else
25941 ac_cv_header_libintl_h=$ac_header_preproc
25943 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
25944 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
25947 if test $ac_cv_header_libintl_h = yes; then
25949 else
25950 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
25951 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
25952 { (exit 1); exit 1; }; }
25956 for ac_prog in msgfmt
25958 # Extract the first word of "$ac_prog", so it can be a program name with args.
25959 set dummy $ac_prog; ac_word=$2
25960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25962 if test "${ac_cv_prog_MSGFMT+set}" = set; then
25963 echo $ECHO_N "(cached) $ECHO_C" >&6
25964 else
25965 if test -n "$MSGFMT"; then
25966 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
25967 else
25968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25969 for as_dir in $PATH
25971 IFS=$as_save_IFS
25972 test -z "$as_dir" && as_dir=.
25973 for ac_exec_ext in '' $ac_executable_extensions; do
25974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25975 ac_cv_prog_MSGFMT="$ac_prog"
25976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25977 break 2
25979 done
25980 done
25981 IFS=$as_save_IFS
25985 MSGFMT=$ac_cv_prog_MSGFMT
25986 if test -n "$MSGFMT"; then
25987 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
25988 echo "${ECHO_T}$MSGFMT" >&6; }
25989 else
25990 { echo "$as_me:$LINENO: result: no" >&5
25991 echo "${ECHO_T}no" >&6; }
25995 test -n "$MSGFMT" && break
25996 done
25998 if test -z "$MSGFMT"; then
25999 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
26000 echo "$as_me: error: msgfmt is required for NLS" >&2;}
26001 { (exit 1); exit 1; }; }
26003 for ac_prog in msgmerge
26005 # Extract the first word of "$ac_prog", so it can be a program name with args.
26006 set dummy $ac_prog; ac_word=$2
26007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26009 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
26010 echo $ECHO_N "(cached) $ECHO_C" >&6
26011 else
26012 if test -n "$MSGMERGE"; then
26013 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
26014 else
26015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26016 for as_dir in $PATH
26018 IFS=$as_save_IFS
26019 test -z "$as_dir" && as_dir=.
26020 for ac_exec_ext in '' $ac_executable_extensions; do
26021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26022 ac_cv_prog_MSGMERGE="$ac_prog"
26023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26024 break 2
26026 done
26027 done
26028 IFS=$as_save_IFS
26032 MSGMERGE=$ac_cv_prog_MSGMERGE
26033 if test -n "$MSGMERGE"; then
26034 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
26035 echo "${ECHO_T}$MSGMERGE" >&6; }
26036 else
26037 { echo "$as_me:$LINENO: result: no" >&5
26038 echo "${ECHO_T}no" >&6; }
26042 test -n "$MSGMERGE" && break
26043 done
26045 for ac_prog in xgettext
26047 # Extract the first word of "$ac_prog", so it can be a program name with args.
26048 set dummy $ac_prog; ac_word=$2
26049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26051 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
26052 echo $ECHO_N "(cached) $ECHO_C" >&6
26053 else
26054 if test -n "$XGETTEXT"; then
26055 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
26056 else
26057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26058 for as_dir in $PATH
26060 IFS=$as_save_IFS
26061 test -z "$as_dir" && as_dir=.
26062 for ac_exec_ext in '' $ac_executable_extensions; do
26063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26064 ac_cv_prog_XGETTEXT="$ac_prog"
26065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26066 break 2
26068 done
26069 done
26070 IFS=$as_save_IFS
26074 XGETTEXT=$ac_cv_prog_XGETTEXT
26075 if test -n "$XGETTEXT"; then
26076 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
26077 echo "${ECHO_T}$XGETTEXT" >&6; }
26078 else
26079 { echo "$as_me:$LINENO: result: no" >&5
26080 echo "${ECHO_T}no" >&6; }
26084 test -n "$XGETTEXT" && break
26085 done
26090 # Check for Tcl configuration script tclConfig.sh
26091 if test "$with_tcl" = yes; then
26092 for ac_prog in tclsh tcl tclsh8.5 tclsh8.4 tclsh8.3
26094 # Extract the first word of "$ac_prog", so it can be a program name with args.
26095 set dummy $ac_prog; ac_word=$2
26096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26098 if test "${ac_cv_path_TCLSH+set}" = set; then
26099 echo $ECHO_N "(cached) $ECHO_C" >&6
26100 else
26101 case $TCLSH in
26102 [\\/]* | ?:[\\/]*)
26103 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
26106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26107 for as_dir in $PATH
26109 IFS=$as_save_IFS
26110 test -z "$as_dir" && as_dir=.
26111 for ac_exec_ext in '' $ac_executable_extensions; do
26112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26113 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
26114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26115 break 2
26117 done
26118 done
26119 IFS=$as_save_IFS
26122 esac
26124 TCLSH=$ac_cv_path_TCLSH
26125 if test -n "$TCLSH"; then
26126 { echo "$as_me:$LINENO: result: $TCLSH" >&5
26127 echo "${ECHO_T}$TCLSH" >&6; }
26128 else
26129 { echo "$as_me:$LINENO: result: no" >&5
26130 echo "${ECHO_T}no" >&6; }
26134 test -n "$TCLSH" && break
26135 done
26137 if test x"$TCLSH" = x""; then
26138 { { echo "$as_me:$LINENO: error: Tcl shell not found" >&5
26139 echo "$as_me: error: Tcl shell not found" >&2;}
26140 { (exit 1); exit 1; }; }
26143 { echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
26144 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6; }
26145 # Let user override test
26146 if test -z "$TCL_CONFIG_SH"; then
26147 pgac_test_dirs="$with_tclconfig"
26149 set X $pgac_test_dirs; shift
26150 if test $# -eq 0; then
26151 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
26152 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
26153 { (exit 1); exit 1; }; }
26154 set X `echo 'puts $auto_path' | $TCLSH`; shift
26157 for pgac_dir do
26158 if test -r "$pgac_dir/tclConfig.sh"; then
26159 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
26160 break
26162 done
26165 if test -z "$TCL_CONFIG_SH"; then
26166 { echo "$as_me:$LINENO: result: no" >&5
26167 echo "${ECHO_T}no" >&6; }
26168 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
26169 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
26170 { (exit 1); exit 1; }; }
26171 else
26172 { echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
26173 echo "${ECHO_T}$TCL_CONFIG_SH" >&6; }
26178 . "$TCL_CONFIG_SH"
26179 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
26180 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
26181 eval TCL_LIBS=\"$TCL_LIBS\"
26182 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
26183 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
26185 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
26186 ac_save_CPPFLAGS=$CPPFLAGS
26187 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
26188 if test "${ac_cv_header_tcl_h+set}" = set; then
26189 { echo "$as_me:$LINENO: checking for tcl.h" >&5
26190 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
26191 if test "${ac_cv_header_tcl_h+set}" = set; then
26192 echo $ECHO_N "(cached) $ECHO_C" >&6
26194 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
26195 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
26196 else
26197 # Is the header compilable?
26198 { echo "$as_me:$LINENO: checking tcl.h usability" >&5
26199 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6; }
26200 cat >conftest.$ac_ext <<_ACEOF
26201 /* confdefs.h. */
26202 _ACEOF
26203 cat confdefs.h >>conftest.$ac_ext
26204 cat >>conftest.$ac_ext <<_ACEOF
26205 /* end confdefs.h. */
26206 $ac_includes_default
26207 #include <tcl.h>
26208 _ACEOF
26209 rm -f conftest.$ac_objext
26210 if { (ac_try="$ac_compile"
26211 case "(($ac_try" in
26212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26213 *) ac_try_echo=$ac_try;;
26214 esac
26215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26216 (eval "$ac_compile") 2>conftest.er1
26217 ac_status=$?
26218 grep -v '^ *+' conftest.er1 >conftest.err
26219 rm -f conftest.er1
26220 cat conftest.err >&5
26221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26222 (exit $ac_status); } && {
26223 test -z "$ac_c_werror_flag" ||
26224 test ! -s conftest.err
26225 } && test -s conftest.$ac_objext; then
26226 ac_header_compiler=yes
26227 else
26228 echo "$as_me: failed program was:" >&5
26229 sed 's/^/| /' conftest.$ac_ext >&5
26231 ac_header_compiler=no
26234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26235 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26236 echo "${ECHO_T}$ac_header_compiler" >&6; }
26238 # Is the header present?
26239 { echo "$as_me:$LINENO: checking tcl.h presence" >&5
26240 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6; }
26241 cat >conftest.$ac_ext <<_ACEOF
26242 /* confdefs.h. */
26243 _ACEOF
26244 cat confdefs.h >>conftest.$ac_ext
26245 cat >>conftest.$ac_ext <<_ACEOF
26246 /* end confdefs.h. */
26247 #include <tcl.h>
26248 _ACEOF
26249 if { (ac_try="$ac_cpp conftest.$ac_ext"
26250 case "(($ac_try" in
26251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26252 *) ac_try_echo=$ac_try;;
26253 esac
26254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26256 ac_status=$?
26257 grep -v '^ *+' conftest.er1 >conftest.err
26258 rm -f conftest.er1
26259 cat conftest.err >&5
26260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26261 (exit $ac_status); } >/dev/null && {
26262 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26263 test ! -s conftest.err
26264 }; then
26265 ac_header_preproc=yes
26266 else
26267 echo "$as_me: failed program was:" >&5
26268 sed 's/^/| /' conftest.$ac_ext >&5
26270 ac_header_preproc=no
26273 rm -f conftest.err conftest.$ac_ext
26274 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26275 echo "${ECHO_T}$ac_header_preproc" >&6; }
26277 # So? What about this header?
26278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26279 yes:no: )
26280 { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
26281 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26282 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
26283 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
26284 ac_header_preproc=yes
26286 no:yes:* )
26287 { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
26288 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
26289 { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
26290 echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
26291 { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
26292 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
26293 { echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
26294 echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
26295 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
26296 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
26297 { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
26298 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
26299 ( cat <<\_ASBOX
26300 ## ---------------------------------------- ##
26301 ## Report this to pgsql-bugs@postgresql.org ##
26302 ## ---------------------------------------- ##
26303 _ASBOX
26304 ) | sed "s/^/$as_me: WARNING: /" >&2
26306 esac
26307 { echo "$as_me:$LINENO: checking for tcl.h" >&5
26308 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
26309 if test "${ac_cv_header_tcl_h+set}" = set; then
26310 echo $ECHO_N "(cached) $ECHO_C" >&6
26311 else
26312 ac_cv_header_tcl_h=$ac_header_preproc
26314 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
26315 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
26318 if test $ac_cv_header_tcl_h = yes; then
26320 else
26321 { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
26322 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
26323 { (exit 1); exit 1; }; }
26327 CPPFLAGS=$ac_save_CPPFLAGS
26331 # Check for DocBook and tools
26333 for ac_prog in onsgmls nsgmls
26335 # Extract the first word of "$ac_prog", so it can be a program name with args.
26336 set dummy $ac_prog; ac_word=$2
26337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26339 if test "${ac_cv_prog_NSGMLS+set}" = set; then
26340 echo $ECHO_N "(cached) $ECHO_C" >&6
26341 else
26342 if test -n "$NSGMLS"; then
26343 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
26344 else
26345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26346 for as_dir in $PATH
26348 IFS=$as_save_IFS
26349 test -z "$as_dir" && as_dir=.
26350 for ac_exec_ext in '' $ac_executable_extensions; do
26351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26352 ac_cv_prog_NSGMLS="$ac_prog"
26353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26354 break 2
26356 done
26357 done
26358 IFS=$as_save_IFS
26362 NSGMLS=$ac_cv_prog_NSGMLS
26363 if test -n "$NSGMLS"; then
26364 { echo "$as_me:$LINENO: result: $NSGMLS" >&5
26365 echo "${ECHO_T}$NSGMLS" >&6; }
26366 else
26367 { echo "$as_me:$LINENO: result: no" >&5
26368 echo "${ECHO_T}no" >&6; }
26372 test -n "$NSGMLS" && break
26373 done
26375 for ac_prog in openjade jade
26377 # Extract the first word of "$ac_prog", so it can be a program name with args.
26378 set dummy $ac_prog; ac_word=$2
26379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26381 if test "${ac_cv_prog_JADE+set}" = set; then
26382 echo $ECHO_N "(cached) $ECHO_C" >&6
26383 else
26384 if test -n "$JADE"; then
26385 ac_cv_prog_JADE="$JADE" # Let the user override the test.
26386 else
26387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26388 for as_dir in $PATH
26390 IFS=$as_save_IFS
26391 test -z "$as_dir" && as_dir=.
26392 for ac_exec_ext in '' $ac_executable_extensions; do
26393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26394 ac_cv_prog_JADE="$ac_prog"
26395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26396 break 2
26398 done
26399 done
26400 IFS=$as_save_IFS
26404 JADE=$ac_cv_prog_JADE
26405 if test -n "$JADE"; then
26406 { echo "$as_me:$LINENO: result: $JADE" >&5
26407 echo "${ECHO_T}$JADE" >&6; }
26408 else
26409 { echo "$as_me:$LINENO: result: no" >&5
26410 echo "${ECHO_T}no" >&6; }
26414 test -n "$JADE" && break
26415 done
26418 { echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
26419 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6; }
26420 if test "${pgac_cv_check_docbook+set}" = set; then
26421 echo $ECHO_N "(cached) $ECHO_C" >&6
26422 else
26423 cat >conftest.sgml <<EOF
26424 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
26425 <book>
26426 <title>test</title>
26427 <chapter>
26428 <title>random</title>
26429 <sect1>
26430 <title>testsect</title>
26431 <para>text</para>
26432 </sect1>
26433 </chapter>
26434 </book>
26437 pgac_cv_check_docbook=no
26439 if test -n "$NSGMLS"; then
26440 $NSGMLS -s conftest.sgml 1>&5 2>&1
26441 if test $? -eq 0; then
26442 pgac_cv_check_docbook=yes
26445 rm -f conftest.sgml
26447 { echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
26448 echo "${ECHO_T}$pgac_cv_check_docbook" >&6; }
26450 have_docbook=$pgac_cv_check_docbook
26453 { echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
26454 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6; }
26455 if test "${pgac_cv_path_stylesheets+set}" = set; then
26456 echo $ECHO_N "(cached) $ECHO_C" >&6
26457 else
26458 if test -n "$DOCBOOKSTYLE"; then
26459 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
26460 else
26461 for pgac_prefix in /usr /usr/local /opt /sw; do
26462 for pgac_infix in share lib; do
26463 for pgac_postfix in \
26464 sgml/stylesheets/nwalsh-modular \
26465 sgml/stylesheets/docbook \
26466 sgml/stylesheets/dsssl/docbook \
26467 sgml/docbook-dsssl \
26468 sgml/docbook/dsssl/modular \
26469 sgml/docbook/stylesheet/dsssl/modular \
26470 sgml/docbook/dsssl-stylesheets \
26471 sgml/dsssl/docbook-dsssl-nwalsh
26473 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
26474 if test -r "$pgac_candidate/html/docbook.dsl" \
26475 && test -r "$pgac_candidate/print/docbook.dsl"
26476 then
26477 pgac_cv_path_stylesheets=$pgac_candidate
26478 break 3
26480 done
26481 done
26482 done
26486 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
26488 if test -n "$DOCBOOKSTYLE"; then
26489 { echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
26490 echo "${ECHO_T}$DOCBOOKSTYLE" >&6; }
26491 else
26492 { echo "$as_me:$LINENO: result: no" >&5
26493 echo "${ECHO_T}no" >&6; }
26495 if test -n "$DOCBOOKSTYLE"; then
26496 for ac_prog in collateindex.pl
26498 # Extract the first word of "$ac_prog", so it can be a program name with args.
26499 set dummy $ac_prog; ac_word=$2
26500 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26502 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
26503 echo $ECHO_N "(cached) $ECHO_C" >&6
26504 else
26505 case $COLLATEINDEX in
26506 [\\/]* | ?:[\\/]*)
26507 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
26510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26511 for as_dir in $DOCBOOKSTYLE/bin $PATH
26513 IFS=$as_save_IFS
26514 test -z "$as_dir" && as_dir=.
26515 for ac_exec_ext in '' $ac_executable_extensions; do
26516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26517 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
26518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26519 break 2
26521 done
26522 done
26523 IFS=$as_save_IFS
26526 esac
26528 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
26529 if test -n "$COLLATEINDEX"; then
26530 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
26531 echo "${ECHO_T}$COLLATEINDEX" >&6; }
26532 else
26533 { echo "$as_me:$LINENO: result: no" >&5
26534 echo "${ECHO_T}no" >&6; }
26538 test -n "$COLLATEINDEX" && break
26539 done
26541 else
26542 for ac_prog in collateindex.pl
26544 # Extract the first word of "$ac_prog", so it can be a program name with args.
26545 set dummy $ac_prog; ac_word=$2
26546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26548 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
26549 echo $ECHO_N "(cached) $ECHO_C" >&6
26550 else
26551 case $COLLATEINDEX in
26552 [\\/]* | ?:[\\/]*)
26553 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
26556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26557 for as_dir in $PATH
26559 IFS=$as_save_IFS
26560 test -z "$as_dir" && as_dir=.
26561 for ac_exec_ext in '' $ac_executable_extensions; do
26562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26563 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
26564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26565 break 2
26567 done
26568 done
26569 IFS=$as_save_IFS
26572 esac
26574 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
26575 if test -n "$COLLATEINDEX"; then
26576 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
26577 echo "${ECHO_T}$COLLATEINDEX" >&6; }
26578 else
26579 { echo "$as_me:$LINENO: result: no" >&5
26580 echo "${ECHO_T}no" >&6; }
26584 test -n "$COLLATEINDEX" && break
26585 done
26588 for ac_prog in sgmlspl
26590 # Extract the first word of "$ac_prog", so it can be a program name with args.
26591 set dummy $ac_prog; ac_word=$2
26592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26594 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
26595 echo $ECHO_N "(cached) $ECHO_C" >&6
26596 else
26597 if test -n "$SGMLSPL"; then
26598 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
26599 else
26600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26601 for as_dir in $PATH
26603 IFS=$as_save_IFS
26604 test -z "$as_dir" && as_dir=.
26605 for ac_exec_ext in '' $ac_executable_extensions; do
26606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26607 ac_cv_prog_SGMLSPL="$ac_prog"
26608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26609 break 2
26611 done
26612 done
26613 IFS=$as_save_IFS
26617 SGMLSPL=$ac_cv_prog_SGMLSPL
26618 if test -n "$SGMLSPL"; then
26619 { echo "$as_me:$LINENO: result: $SGMLSPL" >&5
26620 echo "${ECHO_T}$SGMLSPL" >&6; }
26621 else
26622 { echo "$as_me:$LINENO: result: no" >&5
26623 echo "${ECHO_T}no" >&6; }
26627 test -n "$SGMLSPL" && break
26628 done
26630 { echo "$as_me:$LINENO: checking for docbook2man" >&5
26631 echo $ECHO_N "checking for docbook2man... $ECHO_C" >&6; }
26632 if test "${ac_cv_path_DOCBOOK2MAN+set}" = set; then
26633 echo $ECHO_N "(cached) $ECHO_C" >&6
26634 else
26635 if test -z "$DOCBOOK2MAN"; then
26636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26637 for as_dir in $PATH
26639 IFS=$as_save_IFS
26640 test -z "$as_dir" && as_dir=.
26641 for ac_prog in docbook2x-man db2x_docbook2man docbook2man; do
26642 ac_path="$as_dir/$ac_prog"
26643 { test -f "$ac_path" && $as_test_x "$ac_path"; } || continue
26644 if "$ac_path" --version 2>/dev/null | $GREP docbook2x >/dev/null 2>&1; then
26645 ac_cv_path_DOCBOOK2MAN=$ac_path
26646 break
26648 done
26649 done
26650 IFS=$as_save_IFS
26652 else
26653 ac_cv_path_DOCBOOK2MAN=$DOCBOOK2MAN
26656 { echo "$as_me:$LINENO: result: $ac_cv_path_DOCBOOK2MAN" >&5
26657 echo "${ECHO_T}$ac_cv_path_DOCBOOK2MAN" >&6; }
26658 DOCBOOK2MAN=$ac_cv_path_DOCBOOK2MAN
26662 # Thread testing
26664 # We have to run the thread test near the end so we have all our symbols
26665 # defined. Cross compiling throws a warning.
26667 if test "$enable_thread_safety_force" = yes; then
26668 if test "$PORTNAME" != "win32"
26669 then
26670 { echo "$as_me:$LINENO: WARNING:
26671 *** Skipping thread test program. --enable-thread-safety-force was used.
26672 *** Run the program in src/test/thread on the your machine and add proper
26673 *** locking function calls to your applications to guarantee thread safety.
26674 " >&5
26675 echo "$as_me: WARNING:
26676 *** Skipping thread test program. --enable-thread-safety-force was used.
26677 *** Run the program in src/test/thread on the your machine and add proper
26678 *** locking function calls to your applications to guarantee thread safety.
26679 " >&2;}
26680 else
26681 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
26682 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
26684 elif test "$enable_thread_safety" = yes; then
26685 if test "$PORTNAME" != "win32"
26686 then
26687 { echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
26688 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6; }
26690 _CFLAGS="$CFLAGS"
26691 _LIBS="$LIBS"
26692 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
26693 LIBS="$LIBS $PTHREAD_LIBS"
26694 if test "$cross_compiling" = yes; then
26695 { echo "$as_me:$LINENO: result: maybe" >&5
26696 echo "${ECHO_T}maybe" >&6; }
26697 { echo "$as_me:$LINENO: WARNING:
26698 *** Skipping thread test program because of cross-compile build.
26699 *** Run the program in src/test/thread on the target machine.
26700 " >&5
26701 echo "$as_me: WARNING:
26702 *** Skipping thread test program because of cross-compile build.
26703 *** Run the program in src/test/thread on the target machine.
26704 " >&2;}
26705 else
26706 cat >conftest.$ac_ext <<_ACEOF
26707 /* confdefs.h. */
26708 _ACEOF
26709 cat confdefs.h >>conftest.$ac_ext
26710 cat >>conftest.$ac_ext <<_ACEOF
26711 /* end confdefs.h. */
26712 #include "$srcdir/src/test/thread/thread_test.c"
26713 _ACEOF
26714 rm -f conftest$ac_exeext
26715 if { (ac_try="$ac_link"
26716 case "(($ac_try" in
26717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26718 *) ac_try_echo=$ac_try;;
26719 esac
26720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26721 (eval "$ac_link") 2>&5
26722 ac_status=$?
26723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26724 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26725 { (case "(($ac_try" in
26726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26727 *) ac_try_echo=$ac_try;;
26728 esac
26729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26730 (eval "$ac_try") 2>&5
26731 ac_status=$?
26732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26733 (exit $ac_status); }; }; then
26734 { echo "$as_me:$LINENO: result: yes" >&5
26735 echo "${ECHO_T}yes" >&6; }
26736 else
26737 echo "$as_me: program exited with status $ac_status" >&5
26738 echo "$as_me: failed program was:" >&5
26739 sed 's/^/| /' conftest.$ac_ext >&5
26741 ( exit $ac_status )
26742 { echo "$as_me:$LINENO: result: no" >&5
26743 echo "${ECHO_T}no" >&6; }
26744 { { echo "$as_me:$LINENO: error: thread test program failed
26745 This platform is not thread-safe. Check the file 'config.log' for the
26746 exact reason.
26748 You can use the configure option --enable-thread-safety-force to force
26749 threads to be enabled. But you must then run the program in
26750 src/test/thread and add locking function calls to your applications to
26751 guarantee thread safety." >&5
26752 echo "$as_me: error: thread test program failed
26753 This platform is not thread-safe. Check the file 'config.log' for the
26754 exact reason.
26756 You can use the configure option --enable-thread-safety-force to force
26757 threads to be enabled. But you must then run the program in
26758 src/test/thread and add locking function calls to your applications to
26759 guarantee thread safety." >&2;}
26760 { (exit 1); exit 1; }; }
26762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26766 CFLAGS="$_CFLAGS"
26767 LIBS="$_LIBS"
26768 else
26769 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
26770 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
26774 # If compiler will take -Wl,--as-needed then add that to LDFLAGS.
26775 # This is much easier than trying to filter LIBS to the minimum for each
26776 # executable. (Note that shared library links won't use this switch, though.)
26777 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
26778 # libreadline; therefore we postpone testing it until we know what library
26779 # dependencies readline has. The test code will try to link with $LIBS.
26780 if test "$with_readline" = yes; then
26781 link_test_func=readline
26782 else
26783 link_test_func=exit
26785 if test "$PORTNAME" != "darwin"; then
26786 { echo "$as_me:$LINENO: checking if $CC supports -Wl,--as-needed" >&5
26787 echo $ECHO_N "checking if $CC supports -Wl,--as-needed... $ECHO_C" >&6; }
26788 pgac_save_LDFLAGS=$LDFLAGS
26789 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
26790 if test "$cross_compiling" = yes; then
26791 LDFLAGS="$pgac_save_LDFLAGS"
26792 { echo "$as_me:$LINENO: result: assuming no" >&5
26793 echo "${ECHO_T}assuming no" >&6; }
26794 else
26795 cat >conftest.$ac_ext <<_ACEOF
26796 /* confdefs.h. */
26797 _ACEOF
26798 cat confdefs.h >>conftest.$ac_ext
26799 cat >>conftest.$ac_ext <<_ACEOF
26800 /* end confdefs.h. */
26801 extern void $link_test_func (); void (*fptr) () = $link_test_func;
26803 main ()
26807 return 0;
26809 _ACEOF
26810 rm -f conftest$ac_exeext
26811 if { (ac_try="$ac_link"
26812 case "(($ac_try" in
26813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26814 *) ac_try_echo=$ac_try;;
26815 esac
26816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26817 (eval "$ac_link") 2>&5
26818 ac_status=$?
26819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26820 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26821 { (case "(($ac_try" in
26822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26823 *) ac_try_echo=$ac_try;;
26824 esac
26825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26826 (eval "$ac_try") 2>&5
26827 ac_status=$?
26828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26829 (exit $ac_status); }; }; then
26830 { echo "$as_me:$LINENO: result: yes" >&5
26831 echo "${ECHO_T}yes" >&6; }
26832 else
26833 echo "$as_me: program exited with status $ac_status" >&5
26834 echo "$as_me: failed program was:" >&5
26835 sed 's/^/| /' conftest.$ac_ext >&5
26837 ( exit $ac_status )
26838 LDFLAGS="$pgac_save_LDFLAGS"
26839 { echo "$as_me:$LINENO: result: no" >&5
26840 echo "${ECHO_T}no" >&6; }
26842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26847 else
26848 # On Darwin it's spelled -Wl,-dead_strip_dylibs, but don't try that elsewhere
26849 { echo "$as_me:$LINENO: checking if $CC supports -Wl,-dead_strip_dylibs" >&5
26850 echo $ECHO_N "checking if $CC supports -Wl,-dead_strip_dylibs... $ECHO_C" >&6; }
26851 pgac_save_LDFLAGS=$LDFLAGS
26852 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
26853 if test "$cross_compiling" = yes; then
26854 LDFLAGS="$pgac_save_LDFLAGS"
26855 { echo "$as_me:$LINENO: result: assuming no" >&5
26856 echo "${ECHO_T}assuming no" >&6; }
26857 else
26858 cat >conftest.$ac_ext <<_ACEOF
26859 /* confdefs.h. */
26860 _ACEOF
26861 cat confdefs.h >>conftest.$ac_ext
26862 cat >>conftest.$ac_ext <<_ACEOF
26863 /* end confdefs.h. */
26864 extern void $link_test_func (); void (*fptr) () = $link_test_func;
26866 main ()
26870 return 0;
26872 _ACEOF
26873 rm -f conftest$ac_exeext
26874 if { (ac_try="$ac_link"
26875 case "(($ac_try" in
26876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26877 *) ac_try_echo=$ac_try;;
26878 esac
26879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26880 (eval "$ac_link") 2>&5
26881 ac_status=$?
26882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26884 { (case "(($ac_try" in
26885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26886 *) ac_try_echo=$ac_try;;
26887 esac
26888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26889 (eval "$ac_try") 2>&5
26890 ac_status=$?
26891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26892 (exit $ac_status); }; }; then
26893 { echo "$as_me:$LINENO: result: yes" >&5
26894 echo "${ECHO_T}yes" >&6; }
26895 else
26896 echo "$as_me: program exited with status $ac_status" >&5
26897 echo "$as_me: failed program was:" >&5
26898 sed 's/^/| /' conftest.$ac_ext >&5
26900 ( exit $ac_status )
26901 LDFLAGS="$pgac_save_LDFLAGS"
26902 { echo "$as_me:$LINENO: result: no" >&5
26903 echo "${ECHO_T}no" >&6; }
26905 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26913 # Begin output steps
26915 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
26916 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
26917 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
26918 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
26919 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
26920 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
26922 # Create compiler version string
26923 if test x"$GCC" = x"yes" ; then
26924 cc_string="GCC `${CC} --version | sed q`"
26925 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
26926 cc_string=`${CC} -V 2>&1 | sed q`
26927 else
26928 cc_string=$CC
26932 cat >>confdefs.h <<_ACEOF
26933 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
26934 _ACEOF
26937 # Supply a numeric version string for use by 3rd party add-ons
26938 # awk -F is a regex on some platforms, and not on others, so make "." a tab
26939 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
26940 tr '.' ' ' |
26941 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
26943 cat >>confdefs.h <<_ACEOF
26944 #define PG_VERSION_NUM $PG_VERSION_NUM
26945 _ACEOF
26949 # prepare build tree if outside source tree
26950 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
26951 # Note 2: /bin/pwd might be better than shell's built-in at getting
26952 # a symlink-free name.
26953 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
26954 vpath_build=no
26955 else
26956 vpath_build=yes
26957 if test "$no_create" != yes; then
26958 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
26959 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
26960 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
26961 || { { echo "$as_me:$LINENO: error: failed" >&5
26962 echo "$as_me: error: failed" >&2;}
26963 { (exit 1); exit 1; }; }
26964 { echo "$as_me:$LINENO: result: done" >&5
26965 echo "${ECHO_T}done" >&6; }
26971 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
26974 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}"
26977 if test "$PORTNAME" = "win32"; then
26978 ac_config_commands="$ac_config_commands check_win32_symlinks"
26982 ac_config_headers="$ac_config_headers src/include/pg_config.h"
26985 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
26988 cat >confcache <<\_ACEOF
26989 # This file is a shell script that caches the results of configure
26990 # tests run on this system so they can be shared between configure
26991 # scripts and configure runs, see configure's option --config-cache.
26992 # It is not useful on other systems. If it contains results you don't
26993 # want to keep, you may remove or edit it.
26995 # config.status only pays attention to the cache file if you give it
26996 # the --recheck option to rerun configure.
26998 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26999 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27000 # following values.
27002 _ACEOF
27004 # The following way of writing the cache mishandles newlines in values,
27005 # but we know of no workaround that is simple, portable, and efficient.
27006 # So, we kill variables containing newlines.
27007 # Ultrix sh set writes to stderr and can't be redirected directly,
27008 # and sets the high bit in the cache file unless we assign to the vars.
27010 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27011 eval ac_val=\$$ac_var
27012 case $ac_val in #(
27013 *${as_nl}*)
27014 case $ac_var in #(
27015 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27016 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27017 esac
27018 case $ac_var in #(
27019 _ | IFS | as_nl) ;; #(
27020 *) $as_unset $ac_var ;;
27021 esac ;;
27022 esac
27023 done
27025 (set) 2>&1 |
27026 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27027 *${as_nl}ac_space=\ *)
27028 # `set' does not quote correctly, so add quotes (double-quote
27029 # substitution turns \\\\ into \\, and sed turns \\ into \).
27030 sed -n \
27031 "s/'/'\\\\''/g;
27032 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27033 ;; #(
27035 # `set' quotes correctly as required by POSIX, so do not add quotes.
27036 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27038 esac |
27039 sort
27041 sed '
27042 /^ac_cv_env_/b end
27043 t clear
27044 :clear
27045 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27046 t end
27047 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27048 :end' >>confcache
27049 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27050 if test -w "$cache_file"; then
27051 test "x$cache_file" != "x/dev/null" &&
27052 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27053 echo "$as_me: updating cache $cache_file" >&6;}
27054 cat confcache >$cache_file
27055 else
27056 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27057 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27060 rm -f confcache
27062 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27063 # Let make expand exec_prefix.
27064 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27066 DEFS=-DHAVE_CONFIG_H
27068 ac_libobjs=
27069 ac_ltlibobjs=
27070 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27071 # 1. Remove the extension, and $U if already installed.
27072 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27073 ac_i=`echo "$ac_i" | sed "$ac_script"`
27074 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27075 # will be set to the directory where LIBOBJS objects are built.
27076 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27077 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
27078 done
27079 LIBOBJS=$ac_libobjs
27081 LTLIBOBJS=$ac_ltlibobjs
27085 : ${CONFIG_STATUS=./config.status}
27086 ac_clean_files_save=$ac_clean_files
27087 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27088 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27089 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27090 cat >$CONFIG_STATUS <<_ACEOF
27091 #! $SHELL
27092 # Generated by $as_me.
27093 # Run this file to recreate the current configuration.
27094 # Compiler output produced by configure, useful for debugging
27095 # configure, is in config.log if it exists.
27097 debug=false
27098 ac_cs_recheck=false
27099 ac_cs_silent=false
27100 SHELL=\${CONFIG_SHELL-$SHELL}
27101 _ACEOF
27103 cat >>$CONFIG_STATUS <<\_ACEOF
27104 ## --------------------- ##
27105 ## M4sh Initialization. ##
27106 ## --------------------- ##
27108 # Be more Bourne compatible
27109 DUALCASE=1; export DUALCASE # for MKS sh
27110 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27111 emulate sh
27112 NULLCMD=:
27113 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27114 # is contrary to our usage. Disable this feature.
27115 alias -g '${1+"$@"}'='"$@"'
27116 setopt NO_GLOB_SUBST
27117 else
27118 case `(set -o) 2>/dev/null` in
27119 *posix*) set -o posix ;;
27120 esac
27127 # PATH needs CR
27128 # Avoid depending upon Character Ranges.
27129 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27130 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27131 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27132 as_cr_digits='0123456789'
27133 as_cr_alnum=$as_cr_Letters$as_cr_digits
27135 # The user is always right.
27136 if test "${PATH_SEPARATOR+set}" != set; then
27137 echo "#! /bin/sh" >conf$$.sh
27138 echo "exit 0" >>conf$$.sh
27139 chmod +x conf$$.sh
27140 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27141 PATH_SEPARATOR=';'
27142 else
27143 PATH_SEPARATOR=:
27145 rm -f conf$$.sh
27148 # Support unset when possible.
27149 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27150 as_unset=unset
27151 else
27152 as_unset=false
27156 # IFS
27157 # We need space, tab and new line, in precisely that order. Quoting is
27158 # there to prevent editors from complaining about space-tab.
27159 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27160 # splitting by setting IFS to empty value.)
27161 as_nl='
27163 IFS=" "" $as_nl"
27165 # Find who we are. Look in the path if we contain no directory separator.
27166 case $0 in
27167 *[\\/]* ) as_myself=$0 ;;
27168 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27169 for as_dir in $PATH
27171 IFS=$as_save_IFS
27172 test -z "$as_dir" && as_dir=.
27173 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27174 done
27175 IFS=$as_save_IFS
27178 esac
27179 # We did not find ourselves, most probably we were run as `sh COMMAND'
27180 # in which case we are not to be found in the path.
27181 if test "x$as_myself" = x; then
27182 as_myself=$0
27184 if test ! -f "$as_myself"; then
27185 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27186 { (exit 1); exit 1; }
27189 # Work around bugs in pre-3.0 UWIN ksh.
27190 for as_var in ENV MAIL MAILPATH
27191 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27192 done
27193 PS1='$ '
27194 PS2='> '
27195 PS4='+ '
27197 # NLS nuisances.
27198 for as_var in \
27199 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27200 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27201 LC_TELEPHONE LC_TIME
27203 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27204 eval $as_var=C; export $as_var
27205 else
27206 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27208 done
27210 # Required to use basename.
27211 if expr a : '\(a\)' >/dev/null 2>&1 &&
27212 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27213 as_expr=expr
27214 else
27215 as_expr=false
27218 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27219 as_basename=basename
27220 else
27221 as_basename=false
27225 # Name of the executable.
27226 as_me=`$as_basename -- "$0" ||
27227 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27228 X"$0" : 'X\(//\)$' \| \
27229 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27230 echo X/"$0" |
27231 sed '/^.*\/\([^/][^/]*\)\/*$/{
27232 s//\1/
27235 /^X\/\(\/\/\)$/{
27236 s//\1/
27239 /^X\/\(\/\).*/{
27240 s//\1/
27243 s/.*/./; q'`
27245 # CDPATH.
27246 $as_unset CDPATH
27250 as_lineno_1=$LINENO
27251 as_lineno_2=$LINENO
27252 test "x$as_lineno_1" != "x$as_lineno_2" &&
27253 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
27255 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27256 # uniformly replaced by the line number. The first 'sed' inserts a
27257 # line-number line after each line using $LINENO; the second 'sed'
27258 # does the real work. The second script uses 'N' to pair each
27259 # line-number line with the line containing $LINENO, and appends
27260 # trailing '-' during substitution so that $LINENO is not a special
27261 # case at line end.
27262 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27263 # scripts with optimization help from Paolo Bonzini. Blame Lee
27264 # E. McMahon (1931-1989) for sed's syntax. :-)
27265 sed -n '
27267 /[$]LINENO/=
27268 ' <$as_myself |
27269 sed '
27270 s/[$]LINENO.*/&-/
27271 t lineno
27273 :lineno
27275 :loop
27276 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27277 t loop
27278 s/-\n.*//
27279 ' >$as_me.lineno &&
27280 chmod +x "$as_me.lineno" ||
27281 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27282 { (exit 1); exit 1; }; }
27284 # Don't try to exec as it changes $[0], causing all sort of problems
27285 # (the dirname of $[0] is not the place where we might find the
27286 # original and so on. Autoconf is especially sensitive to this).
27287 . "./$as_me.lineno"
27288 # Exit status is that of the last command.
27289 exit
27293 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27294 as_dirname=dirname
27295 else
27296 as_dirname=false
27299 ECHO_C= ECHO_N= ECHO_T=
27300 case `echo -n x` in
27301 -n*)
27302 case `echo 'x\c'` in
27303 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27304 *) ECHO_C='\c';;
27305 esac;;
27307 ECHO_N='-n';;
27308 esac
27310 if expr a : '\(a\)' >/dev/null 2>&1 &&
27311 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27312 as_expr=expr
27313 else
27314 as_expr=false
27317 rm -f conf$$ conf$$.exe conf$$.file
27318 if test -d conf$$.dir; then
27319 rm -f conf$$.dir/conf$$.file
27320 else
27321 rm -f conf$$.dir
27322 mkdir conf$$.dir
27324 echo >conf$$.file
27325 if ln -s conf$$.file conf$$ 2>/dev/null; then
27326 as_ln_s='ln -s'
27327 # ... but there are two gotchas:
27328 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27329 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27330 # In both cases, we have to default to `cp -p'.
27331 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27332 as_ln_s='cp -p'
27333 elif ln conf$$.file conf$$ 2>/dev/null; then
27334 as_ln_s=ln
27335 else
27336 as_ln_s='cp -p'
27338 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27339 rmdir conf$$.dir 2>/dev/null
27341 if mkdir -p . 2>/dev/null; then
27342 as_mkdir_p=:
27343 else
27344 test -d ./-p && rmdir ./-p
27345 as_mkdir_p=false
27348 if test -x / >/dev/null 2>&1; then
27349 as_test_x='test -x'
27350 else
27351 if ls -dL / >/dev/null 2>&1; then
27352 as_ls_L_option=L
27353 else
27354 as_ls_L_option=
27356 as_test_x='
27357 eval sh -c '\''
27358 if test -d "$1"; then
27359 test -d "$1/.";
27360 else
27361 case $1 in
27362 -*)set "./$1";;
27363 esac;
27364 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27365 ???[sx]*):;;*)false;;esac;fi
27366 '\'' sh
27369 as_executable_p=$as_test_x
27371 # Sed expression to map a string onto a valid CPP name.
27372 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27374 # Sed expression to map a string onto a valid variable name.
27375 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27378 exec 6>&1
27380 # Save the log message, to keep $[0] and so on meaningful, and to
27381 # report actual input values of CONFIG_FILES etc. instead of their
27382 # values after options handling.
27383 ac_log="
27384 This file was extended by PostgreSQL $as_me 8.4devel, which was
27385 generated by GNU Autoconf 2.61. Invocation command line was
27387 CONFIG_FILES = $CONFIG_FILES
27388 CONFIG_HEADERS = $CONFIG_HEADERS
27389 CONFIG_LINKS = $CONFIG_LINKS
27390 CONFIG_COMMANDS = $CONFIG_COMMANDS
27391 $ $0 $@
27393 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27396 _ACEOF
27398 cat >>$CONFIG_STATUS <<_ACEOF
27399 # Files that config.status was made for.
27400 config_files="$ac_config_files"
27401 config_headers="$ac_config_headers"
27402 config_links="$ac_config_links"
27403 config_commands="$ac_config_commands"
27405 _ACEOF
27407 cat >>$CONFIG_STATUS <<\_ACEOF
27408 ac_cs_usage="\
27409 \`$as_me' instantiates files from templates according to the
27410 current configuration.
27412 Usage: $0 [OPTIONS] [FILE]...
27414 -h, --help print this help, then exit
27415 -V, --version print version number and configuration settings, then exit
27416 -q, --quiet do not print progress messages
27417 -d, --debug don't remove temporary files
27418 --recheck update $as_me by reconfiguring in the same conditions
27419 --file=FILE[:TEMPLATE]
27420 instantiate the configuration file FILE
27421 --header=FILE[:TEMPLATE]
27422 instantiate the configuration header FILE
27424 Configuration files:
27425 $config_files
27427 Configuration headers:
27428 $config_headers
27430 Configuration links:
27431 $config_links
27433 Configuration commands:
27434 $config_commands
27436 Report bugs to <bug-autoconf@gnu.org>."
27438 _ACEOF
27439 cat >>$CONFIG_STATUS <<_ACEOF
27440 ac_cs_version="\\
27441 PostgreSQL config.status 8.4devel
27442 configured by $0, generated by GNU Autoconf 2.61,
27443 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27445 Copyright (C) 2006 Free Software Foundation, Inc.
27446 This config.status script is free software; the Free Software Foundation
27447 gives unlimited permission to copy, distribute and modify it."
27449 ac_pwd='$ac_pwd'
27450 srcdir='$srcdir'
27451 _ACEOF
27453 cat >>$CONFIG_STATUS <<\_ACEOF
27454 # If no file are specified by the user, then we need to provide default
27455 # value. By we need to know if files were specified by the user.
27456 ac_need_defaults=:
27457 while test $# != 0
27459 case $1 in
27460 --*=*)
27461 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27462 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27463 ac_shift=:
27466 ac_option=$1
27467 ac_optarg=$2
27468 ac_shift=shift
27470 esac
27472 case $ac_option in
27473 # Handling of the options.
27474 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27475 ac_cs_recheck=: ;;
27476 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27477 echo "$ac_cs_version"; exit ;;
27478 --debug | --debu | --deb | --de | --d | -d )
27479 debug=: ;;
27480 --file | --fil | --fi | --f )
27481 $ac_shift
27482 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27483 ac_need_defaults=false;;
27484 --header | --heade | --head | --hea )
27485 $ac_shift
27486 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27487 ac_need_defaults=false;;
27488 --he | --h)
27489 # Conflict between --help and --header
27490 { echo "$as_me: error: ambiguous option: $1
27491 Try \`$0 --help' for more information." >&2
27492 { (exit 1); exit 1; }; };;
27493 --help | --hel | -h )
27494 echo "$ac_cs_usage"; exit ;;
27495 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27496 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27497 ac_cs_silent=: ;;
27499 # This is an error.
27500 -*) { echo "$as_me: error: unrecognized option: $1
27501 Try \`$0 --help' for more information." >&2
27502 { (exit 1); exit 1; }; } ;;
27504 *) ac_config_targets="$ac_config_targets $1"
27505 ac_need_defaults=false ;;
27507 esac
27508 shift
27509 done
27511 ac_configure_extra_args=
27513 if $ac_cs_silent; then
27514 exec 6>/dev/null
27515 ac_configure_extra_args="$ac_configure_extra_args --silent"
27518 _ACEOF
27519 cat >>$CONFIG_STATUS <<_ACEOF
27520 if \$ac_cs_recheck; then
27521 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27522 CONFIG_SHELL=$SHELL
27523 export CONFIG_SHELL
27524 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27527 _ACEOF
27528 cat >>$CONFIG_STATUS <<\_ACEOF
27529 exec 5>>config.log
27531 echo
27532 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27533 ## Running $as_me. ##
27534 _ASBOX
27535 echo "$ac_log"
27536 } >&5
27538 _ACEOF
27539 cat >>$CONFIG_STATUS <<_ACEOF
27540 _ACEOF
27542 cat >>$CONFIG_STATUS <<\_ACEOF
27544 # Handling of arguments.
27545 for ac_config_target in $ac_config_targets
27547 case $ac_config_target in
27548 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
27549 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
27550 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
27551 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
27552 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
27553 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
27554 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
27555 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
27556 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
27557 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
27558 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
27559 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
27561 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27562 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27563 { (exit 1); exit 1; }; };;
27564 esac
27565 done
27568 # If the user did not use the arguments to specify the items to instantiate,
27569 # then the envvar interface is used. Set only those that are not.
27570 # We use the long form for the default assignment because of an extremely
27571 # bizarre bug on SunOS 4.1.3.
27572 if $ac_need_defaults; then
27573 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27574 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27575 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
27576 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27579 # Have a temporary directory for convenience. Make it in the build tree
27580 # simply because there is no reason against having it here, and in addition,
27581 # creating and moving files from /tmp can sometimes cause problems.
27582 # Hook for its removal unless debugging.
27583 # Note that there is a small window in which the directory will not be cleaned:
27584 # after its creation but before its name has been assigned to `$tmp'.
27585 $debug ||
27587 tmp=
27588 trap 'exit_status=$?
27589 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27591 trap '{ (exit 1); exit 1; }' 1 2 13 15
27593 # Create a (secure) tmp directory for tmp files.
27596 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27597 test -n "$tmp" && test -d "$tmp"
27598 } ||
27600 tmp=./conf$$-$RANDOM
27601 (umask 077 && mkdir "$tmp")
27602 } ||
27604 echo "$me: cannot create a temporary directory in ." >&2
27605 { (exit 1); exit 1; }
27609 # Set up the sed scripts for CONFIG_FILES section.
27612 # No need to generate the scripts if there are no CONFIG_FILES.
27613 # This happens for instance when ./config.status config.h
27614 if test -n "$CONFIG_FILES"; then
27616 _ACEOF
27620 ac_delim='%!_!# '
27621 for ac_last_try in false false false false false :; do
27622 cat >conf$$subs.sed <<_ACEOF
27623 SHELL!$SHELL$ac_delim
27624 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27625 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27626 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27627 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27628 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27629 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27630 exec_prefix!$exec_prefix$ac_delim
27631 prefix!$prefix$ac_delim
27632 program_transform_name!$program_transform_name$ac_delim
27633 bindir!$bindir$ac_delim
27634 sbindir!$sbindir$ac_delim
27635 libexecdir!$libexecdir$ac_delim
27636 datarootdir!$datarootdir$ac_delim
27637 datadir!$datadir$ac_delim
27638 sysconfdir!$sysconfdir$ac_delim
27639 sharedstatedir!$sharedstatedir$ac_delim
27640 localstatedir!$localstatedir$ac_delim
27641 includedir!$includedir$ac_delim
27642 oldincludedir!$oldincludedir$ac_delim
27643 docdir!$docdir$ac_delim
27644 infodir!$infodir$ac_delim
27645 htmldir!$htmldir$ac_delim
27646 dvidir!$dvidir$ac_delim
27647 pdfdir!$pdfdir$ac_delim
27648 psdir!$psdir$ac_delim
27649 libdir!$libdir$ac_delim
27650 localedir!$localedir$ac_delim
27651 mandir!$mandir$ac_delim
27652 DEFS!$DEFS$ac_delim
27653 ECHO_C!$ECHO_C$ac_delim
27654 ECHO_N!$ECHO_N$ac_delim
27655 ECHO_T!$ECHO_T$ac_delim
27656 LIBS!$LIBS$ac_delim
27657 build_alias!$build_alias$ac_delim
27658 host_alias!$host_alias$ac_delim
27659 target_alias!$target_alias$ac_delim
27660 configure_args!$configure_args$ac_delim
27661 PG_MAJORVERSION!$PG_MAJORVERSION$ac_delim
27662 build!$build$ac_delim
27663 build_cpu!$build_cpu$ac_delim
27664 build_vendor!$build_vendor$ac_delim
27665 build_os!$build_os$ac_delim
27666 host!$host$ac_delim
27667 host_cpu!$host_cpu$ac_delim
27668 host_vendor!$host_vendor$ac_delim
27669 host_os!$host_os$ac_delim
27670 PORTNAME!$PORTNAME$ac_delim
27671 enable_nls!$enable_nls$ac_delim
27672 WANTED_LANGUAGES!$WANTED_LANGUAGES$ac_delim
27673 default_port!$default_port$ac_delim
27674 enable_shared!$enable_shared$ac_delim
27675 enable_rpath!$enable_rpath$ac_delim
27676 enable_debug!$enable_debug$ac_delim
27677 enable_profiling!$enable_profiling$ac_delim
27678 GCOV!$GCOV$ac_delim
27679 LCOV!$LCOV$ac_delim
27680 GENHTML!$GENHTML$ac_delim
27681 enable_coverage!$enable_coverage$ac_delim
27682 DTRACE!$DTRACE$ac_delim
27683 DTRACEFLAGS!$DTRACEFLAGS$ac_delim
27684 enable_dtrace!$enable_dtrace$ac_delim
27685 CC!$CC$ac_delim
27686 CFLAGS!$CFLAGS$ac_delim
27687 LDFLAGS!$LDFLAGS$ac_delim
27688 CPPFLAGS!$CPPFLAGS$ac_delim
27689 ac_ct_CC!$ac_ct_CC$ac_delim
27690 EXEEXT!$EXEEXT$ac_delim
27691 OBJEXT!$OBJEXT$ac_delim
27692 SUN_STUDIO_CC!$SUN_STUDIO_CC$ac_delim
27693 CPP!$CPP$ac_delim
27694 GCC!$GCC$ac_delim
27695 TAS!$TAS$ac_delim
27696 autodepend!$autodepend$ac_delim
27697 INCLUDES!$INCLUDES$ac_delim
27698 enable_thread_safety!$enable_thread_safety$ac_delim
27699 with_tcl!$with_tcl$ac_delim
27700 with_perl!$with_perl$ac_delim
27701 with_python!$with_python$ac_delim
27702 with_gssapi!$with_gssapi$ac_delim
27703 with_krb5!$with_krb5$ac_delim
27704 krb_srvtab!$krb_srvtab$ac_delim
27705 with_pam!$with_pam$ac_delim
27706 with_ldap!$with_ldap$ac_delim
27707 with_bonjour!$with_bonjour$ac_delim
27708 with_openssl!$with_openssl$ac_delim
27709 with_ossp_uuid!$with_ossp_uuid$ac_delim
27710 XML2_CONFIG!$XML2_CONFIG$ac_delim
27711 with_libxml!$with_libxml$ac_delim
27712 with_libxslt!$with_libxslt$ac_delim
27713 with_system_tzdata!$with_system_tzdata$ac_delim
27714 with_zlib!$with_zlib$ac_delim
27715 GREP!$GREP$ac_delim
27716 EGREP!$EGREP$ac_delim
27717 ELF_SYS!$ELF_SYS$ac_delim
27718 LDFLAGS_SL!$LDFLAGS_SL$ac_delim
27719 LD!$LD$ac_delim
27720 _ACEOF
27722 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27723 break
27724 elif $ac_last_try; then
27725 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27726 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27727 { (exit 1); exit 1; }; }
27728 else
27729 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27731 done
27733 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27734 if test -n "$ac_eof"; then
27735 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27736 ac_eof=`expr $ac_eof + 1`
27739 cat >>$CONFIG_STATUS <<_ACEOF
27740 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27741 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27742 _ACEOF
27743 sed '
27744 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27745 s/^/s,@/; s/!/@,|#_!!_#|/
27748 s/'"$ac_delim"'$/,g/; t
27749 s/$/\\/; p
27750 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27751 ' >>$CONFIG_STATUS <conf$$subs.sed
27752 rm -f conf$$subs.sed
27753 cat >>$CONFIG_STATUS <<_ACEOF
27754 CEOF$ac_eof
27755 _ACEOF
27758 ac_delim='%!_!# '
27759 for ac_last_try in false false false false false :; do
27760 cat >conf$$subs.sed <<_ACEOF
27761 with_gnu_ld!$with_gnu_ld$ac_delim
27762 ld_R_works!$ld_R_works$ac_delim
27763 RANLIB!$RANLIB$ac_delim
27764 STRIP!$STRIP$ac_delim
27765 STRIP_STATIC_LIB!$STRIP_STATIC_LIB$ac_delim
27766 STRIP_SHARED_LIB!$STRIP_SHARED_LIB$ac_delim
27767 AR!$AR$ac_delim
27768 DLLTOOL!$DLLTOOL$ac_delim
27769 DLLWRAP!$DLLWRAP$ac_delim
27770 WINDRES!$WINDRES$ac_delim
27771 TAR!$TAR$ac_delim
27772 LN_S!$LN_S$ac_delim
27773 AWK!$AWK$ac_delim
27774 BISON!$BISON$ac_delim
27775 BISONFLAGS!$BISONFLAGS$ac_delim
27776 FLEX!$FLEX$ac_delim
27777 FLEXFLAGS!$FLEXFLAGS$ac_delim
27778 PERL!$PERL$ac_delim
27779 perl_archlibexp!$perl_archlibexp$ac_delim
27780 perl_privlibexp!$perl_privlibexp$ac_delim
27781 perl_useshrplib!$perl_useshrplib$ac_delim
27782 perl_embed_ldflags!$perl_embed_ldflags$ac_delim
27783 PYTHON!$PYTHON$ac_delim
27784 python_version!$python_version$ac_delim
27785 python_configdir!$python_configdir$ac_delim
27786 python_includespec!$python_includespec$ac_delim
27787 python_libdir!$python_libdir$ac_delim
27788 python_libspec!$python_libspec$ac_delim
27789 python_additional_libs!$python_additional_libs$ac_delim
27790 ZIC!$ZIC$ac_delim
27791 OSSP_UUID_LIBS!$OSSP_UUID_LIBS$ac_delim
27792 HAVE_IPV6!$HAVE_IPV6$ac_delim
27793 LIBOBJS!$LIBOBJS$ac_delim
27794 acx_pthread_config!$acx_pthread_config$ac_delim
27795 PTHREAD_CC!$PTHREAD_CC$ac_delim
27796 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
27797 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
27798 LDAP_LIBS_FE!$LDAP_LIBS_FE$ac_delim
27799 LDAP_LIBS_BE!$LDAP_LIBS_BE$ac_delim
27800 HAVE_POSIX_SIGNALS!$HAVE_POSIX_SIGNALS$ac_delim
27801 MSGFMT!$MSGFMT$ac_delim
27802 MSGMERGE!$MSGMERGE$ac_delim
27803 XGETTEXT!$XGETTEXT$ac_delim
27804 TCLSH!$TCLSH$ac_delim
27805 TCL_CONFIG_SH!$TCL_CONFIG_SH$ac_delim
27806 TCL_INCLUDE_SPEC!$TCL_INCLUDE_SPEC$ac_delim
27807 TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim
27808 TCL_LIBS!$TCL_LIBS$ac_delim
27809 TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim
27810 TCL_SHARED_BUILD!$TCL_SHARED_BUILD$ac_delim
27811 TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim
27812 NSGMLS!$NSGMLS$ac_delim
27813 JADE!$JADE$ac_delim
27814 have_docbook!$have_docbook$ac_delim
27815 DOCBOOKSTYLE!$DOCBOOKSTYLE$ac_delim
27816 COLLATEINDEX!$COLLATEINDEX$ac_delim
27817 SGMLSPL!$SGMLSPL$ac_delim
27818 DOCBOOK2MAN!$DOCBOOK2MAN$ac_delim
27819 vpath_build!$vpath_build$ac_delim
27820 LTLIBOBJS!$LTLIBOBJS$ac_delim
27821 _ACEOF
27823 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 60; then
27824 break
27825 elif $ac_last_try; then
27826 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27827 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27828 { (exit 1); exit 1; }; }
27829 else
27830 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27832 done
27834 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27835 if test -n "$ac_eof"; then
27836 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27837 ac_eof=`expr $ac_eof + 1`
27840 cat >>$CONFIG_STATUS <<_ACEOF
27841 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27842 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27843 _ACEOF
27844 sed '
27845 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27846 s/^/s,@/; s/!/@,|#_!!_#|/
27849 s/'"$ac_delim"'$/,g/; t
27850 s/$/\\/; p
27851 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27852 ' >>$CONFIG_STATUS <conf$$subs.sed
27853 rm -f conf$$subs.sed
27854 cat >>$CONFIG_STATUS <<_ACEOF
27855 :end
27856 s/|#_!!_#|//g
27857 CEOF$ac_eof
27858 _ACEOF
27861 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27862 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27863 # trailing colons and then remove the whole line if VPATH becomes empty
27864 # (actually we leave an empty line to preserve line numbers).
27865 if test "x$srcdir" = x.; then
27866 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27867 s/:*\$(srcdir):*/:/
27868 s/:*\${srcdir}:*/:/
27869 s/:*@srcdir@:*/:/
27870 s/^\([^=]*=[ ]*\):*/\1/
27871 s/:*$//
27872 s/^[^=]*=[ ]*$//
27876 cat >>$CONFIG_STATUS <<\_ACEOF
27877 fi # test -n "$CONFIG_FILES"
27880 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS
27882 case $ac_tag in
27883 :[FHLC]) ac_mode=$ac_tag; continue;;
27884 esac
27885 case $ac_mode$ac_tag in
27886 :[FHL]*:*);;
27887 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27888 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27889 { (exit 1); exit 1; }; };;
27890 :[FH]-) ac_tag=-:-;;
27891 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27892 esac
27893 ac_save_IFS=$IFS
27894 IFS=:
27895 set x $ac_tag
27896 IFS=$ac_save_IFS
27897 shift
27898 ac_file=$1
27899 shift
27901 case $ac_mode in
27902 :L) ac_source=$1;;
27903 :[FH])
27904 ac_file_inputs=
27905 for ac_f
27907 case $ac_f in
27908 -) ac_f="$tmp/stdin";;
27909 *) # Look for the file first in the build tree, then in the source tree
27910 # (if the path is not absolute). The absolute path cannot be DOS-style,
27911 # because $ac_f cannot contain `:'.
27912 test -f "$ac_f" ||
27913 case $ac_f in
27914 [\\/$]*) false;;
27915 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27916 esac ||
27917 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27918 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27919 { (exit 1); exit 1; }; };;
27920 esac
27921 ac_file_inputs="$ac_file_inputs $ac_f"
27922 done
27924 # Let's still pretend it is `configure' which instantiates (i.e., don't
27925 # use $as_me), people would be surprised to read:
27926 # /* config.h. Generated by config.status. */
27927 configure_input="Generated from "`IFS=:
27928 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27929 if test x"$ac_file" != x-; then
27930 configure_input="$ac_file. $configure_input"
27931 { echo "$as_me:$LINENO: creating $ac_file" >&5
27932 echo "$as_me: creating $ac_file" >&6;}
27935 case $ac_tag in
27936 *:-:* | *:-) cat >"$tmp/stdin";;
27937 esac
27939 esac
27941 ac_dir=`$as_dirname -- "$ac_file" ||
27942 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27943 X"$ac_file" : 'X\(//\)[^/]' \| \
27944 X"$ac_file" : 'X\(//\)$' \| \
27945 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27946 echo X"$ac_file" |
27947 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27948 s//\1/
27951 /^X\(\/\/\)[^/].*/{
27952 s//\1/
27955 /^X\(\/\/\)$/{
27956 s//\1/
27959 /^X\(\/\).*/{
27960 s//\1/
27963 s/.*/./; q'`
27964 { as_dir="$ac_dir"
27965 case $as_dir in #(
27966 -*) as_dir=./$as_dir;;
27967 esac
27968 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27969 as_dirs=
27970 while :; do
27971 case $as_dir in #(
27972 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27973 *) as_qdir=$as_dir;;
27974 esac
27975 as_dirs="'$as_qdir' $as_dirs"
27976 as_dir=`$as_dirname -- "$as_dir" ||
27977 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27978 X"$as_dir" : 'X\(//\)[^/]' \| \
27979 X"$as_dir" : 'X\(//\)$' \| \
27980 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27981 echo X"$as_dir" |
27982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27983 s//\1/
27986 /^X\(\/\/\)[^/].*/{
27987 s//\1/
27990 /^X\(\/\/\)$/{
27991 s//\1/
27994 /^X\(\/\).*/{
27995 s//\1/
27998 s/.*/./; q'`
27999 test -d "$as_dir" && break
28000 done
28001 test -z "$as_dirs" || eval "mkdir $as_dirs"
28002 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28003 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28004 { (exit 1); exit 1; }; }; }
28005 ac_builddir=.
28007 case "$ac_dir" in
28008 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28010 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28011 # A ".." for each directory in $ac_dir_suffix.
28012 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
28013 case $ac_top_builddir_sub in
28014 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28015 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28016 esac ;;
28017 esac
28018 ac_abs_top_builddir=$ac_pwd
28019 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28020 # for backward compatibility:
28021 ac_top_builddir=$ac_top_build_prefix
28023 case $srcdir in
28024 .) # We are building in place.
28025 ac_srcdir=.
28026 ac_top_srcdir=$ac_top_builddir_sub
28027 ac_abs_top_srcdir=$ac_pwd ;;
28028 [\\/]* | ?:[\\/]* ) # Absolute name.
28029 ac_srcdir=$srcdir$ac_dir_suffix;
28030 ac_top_srcdir=$srcdir
28031 ac_abs_top_srcdir=$srcdir ;;
28032 *) # Relative name.
28033 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28034 ac_top_srcdir=$ac_top_build_prefix$srcdir
28035 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28036 esac
28037 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28040 case $ac_mode in
28043 # CONFIG_FILE
28046 _ACEOF
28048 cat >>$CONFIG_STATUS <<\_ACEOF
28049 # If the template does not know about datarootdir, expand it.
28050 # FIXME: This hack should be removed a few years after 2.60.
28051 ac_datarootdir_hack=; ac_datarootdir_seen=
28053 case `sed -n '/datarootdir/ {
28057 /@datadir@/p
28058 /@docdir@/p
28059 /@infodir@/p
28060 /@localedir@/p
28061 /@mandir@/p
28062 ' $ac_file_inputs` in
28063 *datarootdir*) ac_datarootdir_seen=yes;;
28064 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28065 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28066 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28067 _ACEOF
28068 cat >>$CONFIG_STATUS <<_ACEOF
28069 ac_datarootdir_hack='
28070 s&@datadir@&$datadir&g
28071 s&@docdir@&$docdir&g
28072 s&@infodir@&$infodir&g
28073 s&@localedir@&$localedir&g
28074 s&@mandir@&$mandir&g
28075 s&\\\${datarootdir}&$datarootdir&g' ;;
28076 esac
28077 _ACEOF
28079 # Neutralize VPATH when `$srcdir' = `.'.
28080 # Shell code in configure.ac might set extrasub.
28081 # FIXME: do we really want to maintain this feature?
28082 cat >>$CONFIG_STATUS <<_ACEOF
28083 sed "$ac_vpsub
28084 $extrasub
28085 _ACEOF
28086 cat >>$CONFIG_STATUS <<\_ACEOF
28088 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28089 s&@configure_input@&$configure_input&;t t
28090 s&@top_builddir@&$ac_top_builddir_sub&;t t
28091 s&@srcdir@&$ac_srcdir&;t t
28092 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28093 s&@top_srcdir@&$ac_top_srcdir&;t t
28094 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28095 s&@builddir@&$ac_builddir&;t t
28096 s&@abs_builddir@&$ac_abs_builddir&;t t
28097 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28098 $ac_datarootdir_hack
28099 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
28101 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28102 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28103 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28104 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28105 which seems to be undefined. Please make sure it is defined." >&5
28106 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28107 which seems to be undefined. Please make sure it is defined." >&2;}
28109 rm -f "$tmp/stdin"
28110 case $ac_file in
28111 -) cat "$tmp/out"; rm -f "$tmp/out";;
28112 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
28113 esac
28117 # CONFIG_HEADER
28119 _ACEOF
28121 # Transform confdefs.h into a sed script `conftest.defines', that
28122 # substitutes the proper values into config.h.in to produce config.h.
28123 rm -f conftest.defines conftest.tail
28124 # First, append a space to every undef/define line, to ease matching.
28125 echo 's/$/ /' >conftest.defines
28126 # Then, protect against being on the right side of a sed subst, or in
28127 # an unquoted here document, in config.status. If some macros were
28128 # called several times there might be several #defines for the same
28129 # symbol, which is useless. But do not sort them, since the last
28130 # AC_DEFINE must be honored.
28131 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28132 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
28133 # NAME is the cpp macro being defined, VALUE is the value it is being given.
28134 # PARAMS is the parameter list in the macro definition--in most cases, it's
28135 # just an empty string.
28136 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
28137 ac_dB='\\)[ (].*,\\1define\\2'
28138 ac_dC=' '
28139 ac_dD=' ,'
28141 uniq confdefs.h |
28142 sed -n '
28143 t rset
28144 :rset
28145 s/^[ ]*#[ ]*define[ ][ ]*//
28146 t ok
28149 s/[\\&,]/\\&/g
28150 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
28151 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
28152 ' >>conftest.defines
28154 # Remove the space that was appended to ease matching.
28155 # Then replace #undef with comments. This is necessary, for
28156 # example, in the case of _POSIX_SOURCE, which is predefined and required
28157 # on some systems where configure will not decide to define it.
28158 # (The regexp can be short, since the line contains either #define or #undef.)
28159 echo 's/ $//
28160 s,^[ #]*u.*,/* & */,' >>conftest.defines
28162 # Break up conftest.defines:
28163 ac_max_sed_lines=50
28165 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
28166 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
28167 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
28168 # et cetera.
28169 ac_in='$ac_file_inputs'
28170 ac_out='"$tmp/out1"'
28171 ac_nxt='"$tmp/out2"'
28173 while :
28175 # Write a here document:
28176 cat >>$CONFIG_STATUS <<_ACEOF
28177 # First, check the format of the line:
28178 cat >"\$tmp/defines.sed" <<\\CEOF
28179 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
28180 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
28182 :def
28183 _ACEOF
28184 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
28185 echo 'CEOF
28186 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
28187 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
28188 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
28189 grep . conftest.tail >/dev/null || break
28190 rm -f conftest.defines
28191 mv conftest.tail conftest.defines
28192 done
28193 rm -f conftest.defines conftest.tail
28195 echo "ac_result=$ac_in" >>$CONFIG_STATUS
28196 cat >>$CONFIG_STATUS <<\_ACEOF
28197 if test x"$ac_file" != x-; then
28198 echo "/* $configure_input */" >"$tmp/config.h"
28199 cat "$ac_result" >>"$tmp/config.h"
28200 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
28201 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28202 echo "$as_me: $ac_file is unchanged" >&6;}
28203 else
28204 rm -f $ac_file
28205 mv "$tmp/config.h" $ac_file
28207 else
28208 echo "/* $configure_input */"
28209 cat "$ac_result"
28211 rm -f "$tmp/out12"
28215 # CONFIG_LINK
28218 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
28219 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
28221 if test ! -r "$srcdir/$ac_source"; then
28222 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
28223 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
28224 { (exit 1); exit 1; }; }
28226 rm -f "$ac_file"
28228 # Try a relative symlink, then a hard link, then a copy.
28229 case $srcdir in
28230 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
28231 *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;;
28232 esac
28233 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
28234 ln "$srcdir/$ac_source" "$ac_file" 2>/dev/null ||
28235 cp -p "$srcdir/$ac_source" "$ac_file" ||
28236 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
28237 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
28238 { (exit 1); exit 1; }; }
28240 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
28241 echo "$as_me: executing $ac_file commands" >&6;}
28243 esac
28246 case $ac_file$ac_mode in
28247 "check_win32_symlinks":C)
28248 # Links sometimes fail undetected on Mingw -
28249 # so here we detect it and warn the user
28250 for FILE in $CONFIG_LINKS
28252 # test -e works for symlinks in the MinGW console
28253 test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
28254 echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
28255 done
28257 "src/include/pg_config.h":H)
28258 # Update timestamp for pg_config.h (see Makefile.global)
28259 echo >src/include/stamp-h
28262 esac
28263 done # for ac_tag
28266 { (exit 0); exit 0; }
28267 _ACEOF
28268 chmod +x $CONFIG_STATUS
28269 ac_clean_files=$ac_clean_files_save
28272 # configure is writing to config.log, and then calls config.status.
28273 # config.status does its own redirection, appending to config.log.
28274 # Unfortunately, on DOS this fails, as config.log is still kept open
28275 # by configure, so config.status won't be able to write to it; its
28276 # output is simply discarded. So we exec the FD to /dev/null,
28277 # effectively closing config.log, so it can be properly (re)opened and
28278 # appended to by config.status. When coming back to configure, we
28279 # need to make the FD available again.
28280 if test "$no_create" != yes; then
28281 ac_cs_success=:
28282 ac_config_status_args=
28283 test "$silent" = yes &&
28284 ac_config_status_args="$ac_config_status_args --quiet"
28285 exec 5>/dev/null
28286 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28287 exec 5>>config.log
28288 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28289 # would make configure fail if this is the last instruction.
28290 $ac_cs_success || { (exit 1); exit 1; }
28294 # Warn about unknown options
28295 for pgac_var in `set | sed 's/=.*//' | $EGREP 'with_|enable_'`; do
28296 for pgac_arg in $pgac_args with_gnu_ld; do
28297 if test "$pgac_var" = "$pgac_arg"; then
28298 continue 2
28300 done
28301 pgac_txt=`echo $pgac_var | sed 's/_/-/g'`
28302 { echo "$as_me:$LINENO: WARNING: option ignored: --$pgac_txt" >&5
28303 echo "$as_me: WARNING: option ignored: --$pgac_txt" >&2;}
28304 done