Properly wrap new pg_dump doc text.
[PostgreSQL.git] / configure
blob5924db003b91b8d86ee77f9beadfc393a45dd9a5
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 # Required for thread_test.c on Solaris 2.5:
7747 # Other ports use it too (HP-UX) so test unconditionally
7748 { echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
7749 echo $ECHO_N "checking for library containing gethostbyname_r... $ECHO_C" >&6; }
7750 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7751 echo $ECHO_N "(cached) $ECHO_C" >&6
7752 else
7753 ac_func_search_save_LIBS=$LIBS
7754 cat >conftest.$ac_ext <<_ACEOF
7755 /* confdefs.h. */
7756 _ACEOF
7757 cat confdefs.h >>conftest.$ac_ext
7758 cat >>conftest.$ac_ext <<_ACEOF
7759 /* end confdefs.h. */
7761 /* Override any GCC internal prototype to avoid an error.
7762 Use char because int might match the return type of a GCC
7763 builtin and then its argument prototype would still apply. */
7764 #ifdef __cplusplus
7765 extern "C"
7766 #endif
7767 char gethostbyname_r ();
7769 main ()
7771 return gethostbyname_r ();
7773 return 0;
7775 _ACEOF
7776 for ac_lib in '' nsl; do
7777 if test -z "$ac_lib"; then
7778 ac_res="none required"
7779 else
7780 ac_res=-l$ac_lib
7781 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7783 rm -f conftest.$ac_objext conftest$ac_exeext
7784 if { (ac_try="$ac_link"
7785 case "(($ac_try" in
7786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7787 *) ac_try_echo=$ac_try;;
7788 esac
7789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7790 (eval "$ac_link") 2>conftest.er1
7791 ac_status=$?
7792 grep -v '^ *+' conftest.er1 >conftest.err
7793 rm -f conftest.er1
7794 cat conftest.err >&5
7795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796 (exit $ac_status); } && {
7797 test -z "$ac_c_werror_flag" ||
7798 test ! -s conftest.err
7799 } && test -s conftest$ac_exeext &&
7800 $as_test_x conftest$ac_exeext; then
7801 ac_cv_search_gethostbyname_r=$ac_res
7802 else
7803 echo "$as_me: failed program was:" >&5
7804 sed 's/^/| /' conftest.$ac_ext >&5
7809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7810 conftest$ac_exeext
7811 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7812 break
7814 done
7815 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7817 else
7818 ac_cv_search_gethostbyname_r=no
7820 rm conftest.$ac_ext
7821 LIBS=$ac_func_search_save_LIBS
7823 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
7824 echo "${ECHO_T}$ac_cv_search_gethostbyname_r" >&6; }
7825 ac_res=$ac_cv_search_gethostbyname_r
7826 if test "$ac_res" != no; then
7827 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7831 # Cygwin:
7832 { echo "$as_me:$LINENO: checking for library containing shmget" >&5
7833 echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6; }
7834 if test "${ac_cv_search_shmget+set}" = set; then
7835 echo $ECHO_N "(cached) $ECHO_C" >&6
7836 else
7837 ac_func_search_save_LIBS=$LIBS
7838 cat >conftest.$ac_ext <<_ACEOF
7839 /* confdefs.h. */
7840 _ACEOF
7841 cat confdefs.h >>conftest.$ac_ext
7842 cat >>conftest.$ac_ext <<_ACEOF
7843 /* end confdefs.h. */
7845 /* Override any GCC internal prototype to avoid an error.
7846 Use char because int might match the return type of a GCC
7847 builtin and then its argument prototype would still apply. */
7848 #ifdef __cplusplus
7849 extern "C"
7850 #endif
7851 char shmget ();
7853 main ()
7855 return shmget ();
7857 return 0;
7859 _ACEOF
7860 for ac_lib in '' cygipc; do
7861 if test -z "$ac_lib"; then
7862 ac_res="none required"
7863 else
7864 ac_res=-l$ac_lib
7865 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7867 rm -f conftest.$ac_objext conftest$ac_exeext
7868 if { (ac_try="$ac_link"
7869 case "(($ac_try" in
7870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7871 *) ac_try_echo=$ac_try;;
7872 esac
7873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7874 (eval "$ac_link") 2>conftest.er1
7875 ac_status=$?
7876 grep -v '^ *+' conftest.er1 >conftest.err
7877 rm -f conftest.er1
7878 cat conftest.err >&5
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); } && {
7881 test -z "$ac_c_werror_flag" ||
7882 test ! -s conftest.err
7883 } && test -s conftest$ac_exeext &&
7884 $as_test_x conftest$ac_exeext; then
7885 ac_cv_search_shmget=$ac_res
7886 else
7887 echo "$as_me: failed program was:" >&5
7888 sed 's/^/| /' conftest.$ac_ext >&5
7893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7894 conftest$ac_exeext
7895 if test "${ac_cv_search_shmget+set}" = set; then
7896 break
7898 done
7899 if test "${ac_cv_search_shmget+set}" = set; then
7901 else
7902 ac_cv_search_shmget=no
7904 rm conftest.$ac_ext
7905 LIBS=$ac_func_search_save_LIBS
7907 { echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
7908 echo "${ECHO_T}$ac_cv_search_shmget" >&6; }
7909 ac_res=$ac_cv_search_shmget
7910 if test "$ac_res" != no; then
7911 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7916 if test "$with_readline" = yes; then
7919 if test "${pgac_cv_check_readline+set}" = set; then
7920 echo $ECHO_N "(cached) $ECHO_C" >&6
7921 else
7922 pgac_cv_check_readline=no
7923 pgac_save_LIBS=$LIBS
7924 if test x"$with_libedit_preferred" != x"yes"
7925 then READLINE_ORDER="-lreadline -ledit"
7926 else READLINE_ORDER="-ledit -lreadline"
7928 for pgac_rllib in $READLINE_ORDER ; do
7929 { echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
7930 echo $ECHO_N "checking for ${pgac_rllib}... $ECHO_C" >&6; }
7931 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
7932 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
7933 cat >conftest.$ac_ext <<_ACEOF
7934 /* confdefs.h. */
7935 _ACEOF
7936 cat confdefs.h >>conftest.$ac_ext
7937 cat >>conftest.$ac_ext <<_ACEOF
7938 /* end confdefs.h. */
7940 /* Override any GCC internal prototype to avoid an error.
7941 Use char because int might match the return type of a GCC
7942 builtin and then its argument prototype would still apply. */
7943 #ifdef __cplusplus
7944 extern "C"
7945 #endif
7946 char readline ();
7948 main ()
7950 return readline ();
7952 return 0;
7954 _ACEOF
7955 rm -f conftest.$ac_objext conftest$ac_exeext
7956 if { (ac_try="$ac_link"
7957 case "(($ac_try" in
7958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7959 *) ac_try_echo=$ac_try;;
7960 esac
7961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7962 (eval "$ac_link") 2>conftest.er1
7963 ac_status=$?
7964 grep -v '^ *+' conftest.er1 >conftest.err
7965 rm -f conftest.er1
7966 cat conftest.err >&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); } && {
7969 test -z "$ac_c_werror_flag" ||
7970 test ! -s conftest.err
7971 } && test -s conftest$ac_exeext &&
7972 $as_test_x conftest$ac_exeext; then
7974 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
7975 # recognize dependent libraries; assume curses is needed if we didn't
7976 # find any dependency.
7977 case $host_os in
7978 netbsd* | openbsd* | irix*)
7979 if test x"$pgac_lib" = x"" ; then
7980 pgac_lib=" -lcurses"
7981 fi ;;
7982 esac
7984 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
7985 break
7987 else
7988 echo "$as_me: failed program was:" >&5
7989 sed 's/^/| /' conftest.$ac_ext >&5
7994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7995 conftest$ac_exeext conftest.$ac_ext
7996 done
7997 if test "$pgac_cv_check_readline" != no ; then
7998 { echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
7999 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6; }
8000 break
8001 else
8002 { echo "$as_me:$LINENO: result: no" >&5
8003 echo "${ECHO_T}no" >&6; }
8005 done
8006 LIBS=$pgac_save_LIBS
8010 if test "$pgac_cv_check_readline" != no ; then
8011 LIBS="$pgac_cv_check_readline $LIBS"
8013 cat >>confdefs.h <<\_ACEOF
8014 #define HAVE_LIBREADLINE 1
8015 _ACEOF
8020 if test x"$pgac_cv_check_readline" = x"no"; then
8021 { { echo "$as_me:$LINENO: error: readline library not found
8022 If you have readline already installed, see config.log for details on the
8023 failure. It is possible the compiler isn't looking in the proper directory.
8024 Use --without-readline to disable readline support." >&5
8025 echo "$as_me: error: readline library not found
8026 If you have readline already installed, see config.log for details on the
8027 failure. It is possible the compiler isn't looking in the proper directory.
8028 Use --without-readline to disable readline support." >&2;}
8029 { (exit 1); exit 1; }; }
8033 if test "$with_zlib" = yes; then
8035 { echo "$as_me:$LINENO: checking for inflate in -lz" >&5
8036 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6; }
8037 if test "${ac_cv_lib_z_inflate+set}" = set; then
8038 echo $ECHO_N "(cached) $ECHO_C" >&6
8039 else
8040 ac_check_lib_save_LIBS=$LIBS
8041 LIBS="-lz $LIBS"
8042 cat >conftest.$ac_ext <<_ACEOF
8043 /* confdefs.h. */
8044 _ACEOF
8045 cat confdefs.h >>conftest.$ac_ext
8046 cat >>conftest.$ac_ext <<_ACEOF
8047 /* end confdefs.h. */
8049 /* Override any GCC internal prototype to avoid an error.
8050 Use char because int might match the return type of a GCC
8051 builtin and then its argument prototype would still apply. */
8052 #ifdef __cplusplus
8053 extern "C"
8054 #endif
8055 char inflate ();
8057 main ()
8059 return inflate ();
8061 return 0;
8063 _ACEOF
8064 rm -f conftest.$ac_objext conftest$ac_exeext
8065 if { (ac_try="$ac_link"
8066 case "(($ac_try" in
8067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8068 *) ac_try_echo=$ac_try;;
8069 esac
8070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8071 (eval "$ac_link") 2>conftest.er1
8072 ac_status=$?
8073 grep -v '^ *+' conftest.er1 >conftest.err
8074 rm -f conftest.er1
8075 cat conftest.err >&5
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); } && {
8078 test -z "$ac_c_werror_flag" ||
8079 test ! -s conftest.err
8080 } && test -s conftest$ac_exeext &&
8081 $as_test_x conftest$ac_exeext; then
8082 ac_cv_lib_z_inflate=yes
8083 else
8084 echo "$as_me: failed program was:" >&5
8085 sed 's/^/| /' conftest.$ac_ext >&5
8087 ac_cv_lib_z_inflate=no
8090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8091 conftest$ac_exeext conftest.$ac_ext
8092 LIBS=$ac_check_lib_save_LIBS
8094 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
8095 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6; }
8096 if test $ac_cv_lib_z_inflate = yes; then
8097 cat >>confdefs.h <<_ACEOF
8098 #define HAVE_LIBZ 1
8099 _ACEOF
8101 LIBS="-lz $LIBS"
8103 else
8104 { { echo "$as_me:$LINENO: error: zlib library not found
8105 If you have zlib already installed, see config.log for details on the
8106 failure. It is possible the compiler isn't looking in the proper directory.
8107 Use --without-zlib to disable zlib support." >&5
8108 echo "$as_me: error: zlib library not found
8109 If you have zlib already installed, see config.log for details on the
8110 failure. It is possible the compiler isn't looking in the proper directory.
8111 Use --without-zlib to disable zlib support." >&2;}
8112 { (exit 1); exit 1; }; }
8117 if test "$enable_spinlocks" = yes; then
8119 cat >>confdefs.h <<\_ACEOF
8120 #define HAVE_SPINLOCKS 1
8121 _ACEOF
8123 else
8124 { echo "$as_me:$LINENO: WARNING:
8125 *** Not using spinlocks will cause poor performance." >&5
8126 echo "$as_me: WARNING:
8127 *** Not using spinlocks will cause poor performance." >&2;}
8130 if test "$with_gssapi" = yes ; then
8131 if test "$PORTNAME" != "win32"; then
8132 { echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
8133 echo $ECHO_N "checking for library containing gss_init_sec_context... $ECHO_C" >&6; }
8134 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8135 echo $ECHO_N "(cached) $ECHO_C" >&6
8136 else
8137 ac_func_search_save_LIBS=$LIBS
8138 cat >conftest.$ac_ext <<_ACEOF
8139 /* confdefs.h. */
8140 _ACEOF
8141 cat confdefs.h >>conftest.$ac_ext
8142 cat >>conftest.$ac_ext <<_ACEOF
8143 /* end confdefs.h. */
8145 /* Override any GCC internal prototype to avoid an error.
8146 Use char because int might match the return type of a GCC
8147 builtin and then its argument prototype would still apply. */
8148 #ifdef __cplusplus
8149 extern "C"
8150 #endif
8151 char gss_init_sec_context ();
8153 main ()
8155 return gss_init_sec_context ();
8157 return 0;
8159 _ACEOF
8160 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
8161 if test -z "$ac_lib"; then
8162 ac_res="none required"
8163 else
8164 ac_res=-l$ac_lib
8165 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8167 rm -f conftest.$ac_objext conftest$ac_exeext
8168 if { (ac_try="$ac_link"
8169 case "(($ac_try" in
8170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8171 *) ac_try_echo=$ac_try;;
8172 esac
8173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8174 (eval "$ac_link") 2>conftest.er1
8175 ac_status=$?
8176 grep -v '^ *+' conftest.er1 >conftest.err
8177 rm -f conftest.er1
8178 cat conftest.err >&5
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 (exit $ac_status); } && {
8181 test -z "$ac_c_werror_flag" ||
8182 test ! -s conftest.err
8183 } && test -s conftest$ac_exeext &&
8184 $as_test_x conftest$ac_exeext; then
8185 ac_cv_search_gss_init_sec_context=$ac_res
8186 else
8187 echo "$as_me: failed program was:" >&5
8188 sed 's/^/| /' conftest.$ac_ext >&5
8193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8194 conftest$ac_exeext
8195 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8196 break
8198 done
8199 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8201 else
8202 ac_cv_search_gss_init_sec_context=no
8204 rm conftest.$ac_ext
8205 LIBS=$ac_func_search_save_LIBS
8207 { echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
8208 echo "${ECHO_T}$ac_cv_search_gss_init_sec_context" >&6; }
8209 ac_res=$ac_cv_search_gss_init_sec_context
8210 if test "$ac_res" != no; then
8211 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8213 else
8214 { { echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
8215 echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
8216 { (exit 1); exit 1; }; }
8219 else
8220 LIBS="$LIBS -lgssapi32"
8224 if test "$with_krb5" = yes ; then
8225 if test "$PORTNAME" != "win32"; then
8226 { echo "$as_me:$LINENO: checking for library containing com_err" >&5
8227 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
8228 if test "${ac_cv_search_com_err+set}" = set; then
8229 echo $ECHO_N "(cached) $ECHO_C" >&6
8230 else
8231 ac_func_search_save_LIBS=$LIBS
8232 cat >conftest.$ac_ext <<_ACEOF
8233 /* confdefs.h. */
8234 _ACEOF
8235 cat confdefs.h >>conftest.$ac_ext
8236 cat >>conftest.$ac_ext <<_ACEOF
8237 /* end confdefs.h. */
8239 /* Override any GCC internal prototype to avoid an error.
8240 Use char because int might match the return type of a GCC
8241 builtin and then its argument prototype would still apply. */
8242 #ifdef __cplusplus
8243 extern "C"
8244 #endif
8245 char com_err ();
8247 main ()
8249 return com_err ();
8251 return 0;
8253 _ACEOF
8254 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err; do
8255 if test -z "$ac_lib"; then
8256 ac_res="none required"
8257 else
8258 ac_res=-l$ac_lib
8259 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8261 rm -f conftest.$ac_objext conftest$ac_exeext
8262 if { (ac_try="$ac_link"
8263 case "(($ac_try" in
8264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8265 *) ac_try_echo=$ac_try;;
8266 esac
8267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8268 (eval "$ac_link") 2>conftest.er1
8269 ac_status=$?
8270 grep -v '^ *+' conftest.er1 >conftest.err
8271 rm -f conftest.er1
8272 cat conftest.err >&5
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); } && {
8275 test -z "$ac_c_werror_flag" ||
8276 test ! -s conftest.err
8277 } && test -s conftest$ac_exeext &&
8278 $as_test_x conftest$ac_exeext; then
8279 ac_cv_search_com_err=$ac_res
8280 else
8281 echo "$as_me: failed program was:" >&5
8282 sed 's/^/| /' conftest.$ac_ext >&5
8287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8288 conftest$ac_exeext
8289 if test "${ac_cv_search_com_err+set}" = set; then
8290 break
8292 done
8293 if test "${ac_cv_search_com_err+set}" = set; then
8295 else
8296 ac_cv_search_com_err=no
8298 rm conftest.$ac_ext
8299 LIBS=$ac_func_search_save_LIBS
8301 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8302 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
8303 ac_res=$ac_cv_search_com_err
8304 if test "$ac_res" != no; then
8305 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8307 else
8308 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8309 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8310 { (exit 1); exit 1; }; }
8313 { echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
8314 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6; }
8315 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8316 echo $ECHO_N "(cached) $ECHO_C" >&6
8317 else
8318 ac_func_search_save_LIBS=$LIBS
8319 cat >conftest.$ac_ext <<_ACEOF
8320 /* confdefs.h. */
8321 _ACEOF
8322 cat confdefs.h >>conftest.$ac_ext
8323 cat >>conftest.$ac_ext <<_ACEOF
8324 /* end confdefs.h. */
8326 /* Override any GCC internal prototype to avoid an error.
8327 Use char because int might match the return type of a GCC
8328 builtin and then its argument prototype would still apply. */
8329 #ifdef __cplusplus
8330 extern "C"
8331 #endif
8332 char krb5_sendauth ();
8334 main ()
8336 return krb5_sendauth ();
8338 return 0;
8340 _ACEOF
8341 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
8342 if test -z "$ac_lib"; then
8343 ac_res="none required"
8344 else
8345 ac_res=-l$ac_lib
8346 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8348 rm -f conftest.$ac_objext conftest$ac_exeext
8349 if { (ac_try="$ac_link"
8350 case "(($ac_try" in
8351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8352 *) ac_try_echo=$ac_try;;
8353 esac
8354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8355 (eval "$ac_link") 2>conftest.er1
8356 ac_status=$?
8357 grep -v '^ *+' conftest.er1 >conftest.err
8358 rm -f conftest.er1
8359 cat conftest.err >&5
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); } && {
8362 test -z "$ac_c_werror_flag" ||
8363 test ! -s conftest.err
8364 } && test -s conftest$ac_exeext &&
8365 $as_test_x conftest$ac_exeext; then
8366 ac_cv_search_krb5_sendauth=$ac_res
8367 else
8368 echo "$as_me: failed program was:" >&5
8369 sed 's/^/| /' conftest.$ac_ext >&5
8374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8375 conftest$ac_exeext
8376 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8377 break
8379 done
8380 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8382 else
8383 ac_cv_search_krb5_sendauth=no
8385 rm conftest.$ac_ext
8386 LIBS=$ac_func_search_save_LIBS
8388 { echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
8389 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6; }
8390 ac_res=$ac_cv_search_krb5_sendauth
8391 if test "$ac_res" != no; then
8392 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8394 else
8395 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
8396 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
8397 { (exit 1); exit 1; }; }
8400 else
8401 { echo "$as_me:$LINENO: checking for library containing com_err" >&5
8402 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
8403 if test "${ac_cv_search_com_err+set}" = set; then
8404 echo $ECHO_N "(cached) $ECHO_C" >&6
8405 else
8406 ac_func_search_save_LIBS=$LIBS
8407 cat >conftest.$ac_ext <<_ACEOF
8408 /* confdefs.h. */
8409 _ACEOF
8410 cat confdefs.h >>conftest.$ac_ext
8411 cat >>conftest.$ac_ext <<_ACEOF
8412 /* end confdefs.h. */
8414 /* Override any GCC internal prototype to avoid an error.
8415 Use char because int might match the return type of a GCC
8416 builtin and then its argument prototype would still apply. */
8417 #ifdef __cplusplus
8418 extern "C"
8419 #endif
8420 char com_err ();
8422 main ()
8424 return com_err ();
8426 return 0;
8428 _ACEOF
8429 for ac_lib in '' 'comerr32 -lkrb5_32'; do
8430 if test -z "$ac_lib"; then
8431 ac_res="none required"
8432 else
8433 ac_res=-l$ac_lib
8434 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8436 rm -f conftest.$ac_objext conftest$ac_exeext
8437 if { (ac_try="$ac_link"
8438 case "(($ac_try" in
8439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8440 *) ac_try_echo=$ac_try;;
8441 esac
8442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8443 (eval "$ac_link") 2>conftest.er1
8444 ac_status=$?
8445 grep -v '^ *+' conftest.er1 >conftest.err
8446 rm -f conftest.er1
8447 cat conftest.err >&5
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); } && {
8450 test -z "$ac_c_werror_flag" ||
8451 test ! -s conftest.err
8452 } && test -s conftest$ac_exeext &&
8453 $as_test_x conftest$ac_exeext; then
8454 ac_cv_search_com_err=$ac_res
8455 else
8456 echo "$as_me: failed program was:" >&5
8457 sed 's/^/| /' conftest.$ac_ext >&5
8462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8463 conftest$ac_exeext
8464 if test "${ac_cv_search_com_err+set}" = set; then
8465 break
8467 done
8468 if test "${ac_cv_search_com_err+set}" = set; then
8470 else
8471 ac_cv_search_com_err=no
8473 rm conftest.$ac_ext
8474 LIBS=$ac_func_search_save_LIBS
8476 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8477 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
8478 ac_res=$ac_cv_search_com_err
8479 if test "$ac_res" != no; then
8480 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8482 else
8483 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8484 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8485 { (exit 1); exit 1; }; }
8491 if test "$with_openssl" = yes ; then
8492 if test "$PORTNAME" != "win32"; then
8494 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
8495 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6; }
8496 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
8497 echo $ECHO_N "(cached) $ECHO_C" >&6
8498 else
8499 ac_check_lib_save_LIBS=$LIBS
8500 LIBS="-lcrypto $LIBS"
8501 cat >conftest.$ac_ext <<_ACEOF
8502 /* confdefs.h. */
8503 _ACEOF
8504 cat confdefs.h >>conftest.$ac_ext
8505 cat >>conftest.$ac_ext <<_ACEOF
8506 /* end confdefs.h. */
8508 /* Override any GCC internal prototype to avoid an error.
8509 Use char because int might match the return type of a GCC
8510 builtin and then its argument prototype would still apply. */
8511 #ifdef __cplusplus
8512 extern "C"
8513 #endif
8514 char CRYPTO_new_ex_data ();
8516 main ()
8518 return CRYPTO_new_ex_data ();
8520 return 0;
8522 _ACEOF
8523 rm -f conftest.$ac_objext conftest$ac_exeext
8524 if { (ac_try="$ac_link"
8525 case "(($ac_try" in
8526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8527 *) ac_try_echo=$ac_try;;
8528 esac
8529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8530 (eval "$ac_link") 2>conftest.er1
8531 ac_status=$?
8532 grep -v '^ *+' conftest.er1 >conftest.err
8533 rm -f conftest.er1
8534 cat conftest.err >&5
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); } && {
8537 test -z "$ac_c_werror_flag" ||
8538 test ! -s conftest.err
8539 } && test -s conftest$ac_exeext &&
8540 $as_test_x conftest$ac_exeext; then
8541 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
8542 else
8543 echo "$as_me: failed program was:" >&5
8544 sed 's/^/| /' conftest.$ac_ext >&5
8546 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
8549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8550 conftest$ac_exeext conftest.$ac_ext
8551 LIBS=$ac_check_lib_save_LIBS
8553 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
8554 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
8555 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
8556 cat >>confdefs.h <<_ACEOF
8557 #define HAVE_LIBCRYPTO 1
8558 _ACEOF
8560 LIBS="-lcrypto $LIBS"
8562 else
8563 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
8564 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
8565 { (exit 1); exit 1; }; }
8569 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
8570 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
8571 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
8572 echo $ECHO_N "(cached) $ECHO_C" >&6
8573 else
8574 ac_check_lib_save_LIBS=$LIBS
8575 LIBS="-lssl $LIBS"
8576 cat >conftest.$ac_ext <<_ACEOF
8577 /* confdefs.h. */
8578 _ACEOF
8579 cat confdefs.h >>conftest.$ac_ext
8580 cat >>conftest.$ac_ext <<_ACEOF
8581 /* end confdefs.h. */
8583 /* Override any GCC internal prototype to avoid an error.
8584 Use char because int might match the return type of a GCC
8585 builtin and then its argument prototype would still apply. */
8586 #ifdef __cplusplus
8587 extern "C"
8588 #endif
8589 char SSL_library_init ();
8591 main ()
8593 return SSL_library_init ();
8595 return 0;
8597 _ACEOF
8598 rm -f conftest.$ac_objext conftest$ac_exeext
8599 if { (ac_try="$ac_link"
8600 case "(($ac_try" in
8601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8602 *) ac_try_echo=$ac_try;;
8603 esac
8604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8605 (eval "$ac_link") 2>conftest.er1
8606 ac_status=$?
8607 grep -v '^ *+' conftest.er1 >conftest.err
8608 rm -f conftest.er1
8609 cat conftest.err >&5
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); } && {
8612 test -z "$ac_c_werror_flag" ||
8613 test ! -s conftest.err
8614 } && test -s conftest$ac_exeext &&
8615 $as_test_x conftest$ac_exeext; then
8616 ac_cv_lib_ssl_SSL_library_init=yes
8617 else
8618 echo "$as_me: failed program was:" >&5
8619 sed 's/^/| /' conftest.$ac_ext >&5
8621 ac_cv_lib_ssl_SSL_library_init=no
8624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8625 conftest$ac_exeext conftest.$ac_ext
8626 LIBS=$ac_check_lib_save_LIBS
8628 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
8629 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
8630 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
8631 cat >>confdefs.h <<_ACEOF
8632 #define HAVE_LIBSSL 1
8633 _ACEOF
8635 LIBS="-lssl $LIBS"
8637 else
8638 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
8639 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
8640 { (exit 1); exit 1; }; }
8643 else
8645 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
8646 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6; }
8647 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
8648 echo $ECHO_N "(cached) $ECHO_C" >&6
8649 else
8650 ac_check_lib_save_LIBS=$LIBS
8651 LIBS="-leay32 $LIBS"
8652 cat >conftest.$ac_ext <<_ACEOF
8653 /* confdefs.h. */
8654 _ACEOF
8655 cat confdefs.h >>conftest.$ac_ext
8656 cat >>conftest.$ac_ext <<_ACEOF
8657 /* end confdefs.h. */
8659 /* Override any GCC internal prototype to avoid an error.
8660 Use char because int might match the return type of a GCC
8661 builtin and then its argument prototype would still apply. */
8662 #ifdef __cplusplus
8663 extern "C"
8664 #endif
8665 char CRYPTO_new_ex_data ();
8667 main ()
8669 return CRYPTO_new_ex_data ();
8671 return 0;
8673 _ACEOF
8674 rm -f conftest.$ac_objext conftest$ac_exeext
8675 if { (ac_try="$ac_link"
8676 case "(($ac_try" in
8677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8678 *) ac_try_echo=$ac_try;;
8679 esac
8680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8681 (eval "$ac_link") 2>conftest.er1
8682 ac_status=$?
8683 grep -v '^ *+' conftest.er1 >conftest.err
8684 rm -f conftest.er1
8685 cat conftest.err >&5
8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); } && {
8688 test -z "$ac_c_werror_flag" ||
8689 test ! -s conftest.err
8690 } && test -s conftest$ac_exeext &&
8691 $as_test_x conftest$ac_exeext; then
8692 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
8693 else
8694 echo "$as_me: failed program was:" >&5
8695 sed 's/^/| /' conftest.$ac_ext >&5
8697 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
8700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8701 conftest$ac_exeext conftest.$ac_ext
8702 LIBS=$ac_check_lib_save_LIBS
8704 { echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
8705 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
8706 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
8707 cat >>confdefs.h <<_ACEOF
8708 #define HAVE_LIBEAY32 1
8709 _ACEOF
8711 LIBS="-leay32 $LIBS"
8713 else
8714 { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
8715 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
8716 { (exit 1); exit 1; }; }
8720 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
8721 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6; }
8722 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
8723 echo $ECHO_N "(cached) $ECHO_C" >&6
8724 else
8725 ac_check_lib_save_LIBS=$LIBS
8726 LIBS="-lssleay32 $LIBS"
8727 cat >conftest.$ac_ext <<_ACEOF
8728 /* confdefs.h. */
8729 _ACEOF
8730 cat confdefs.h >>conftest.$ac_ext
8731 cat >>conftest.$ac_ext <<_ACEOF
8732 /* end confdefs.h. */
8734 /* Override any GCC internal prototype to avoid an error.
8735 Use char because int might match the return type of a GCC
8736 builtin and then its argument prototype would still apply. */
8737 #ifdef __cplusplus
8738 extern "C"
8739 #endif
8740 char SSL_library_init ();
8742 main ()
8744 return SSL_library_init ();
8746 return 0;
8748 _ACEOF
8749 rm -f conftest.$ac_objext conftest$ac_exeext
8750 if { (ac_try="$ac_link"
8751 case "(($ac_try" in
8752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8753 *) ac_try_echo=$ac_try;;
8754 esac
8755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8756 (eval "$ac_link") 2>conftest.er1
8757 ac_status=$?
8758 grep -v '^ *+' conftest.er1 >conftest.err
8759 rm -f conftest.er1
8760 cat conftest.err >&5
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); } && {
8763 test -z "$ac_c_werror_flag" ||
8764 test ! -s conftest.err
8765 } && test -s conftest$ac_exeext &&
8766 $as_test_x conftest$ac_exeext; then
8767 ac_cv_lib_ssleay32_SSL_library_init=yes
8768 else
8769 echo "$as_me: failed program was:" >&5
8770 sed 's/^/| /' conftest.$ac_ext >&5
8772 ac_cv_lib_ssleay32_SSL_library_init=no
8775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8776 conftest$ac_exeext conftest.$ac_ext
8777 LIBS=$ac_check_lib_save_LIBS
8779 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
8780 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
8781 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
8782 cat >>confdefs.h <<_ACEOF
8783 #define HAVE_LIBSSLEAY32 1
8784 _ACEOF
8786 LIBS="-lssleay32 $LIBS"
8788 else
8789 { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
8790 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
8791 { (exit 1); exit 1; }; }
8797 if test "$with_pam" = yes ; then
8799 { echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
8800 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6; }
8801 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
8802 echo $ECHO_N "(cached) $ECHO_C" >&6
8803 else
8804 ac_check_lib_save_LIBS=$LIBS
8805 LIBS="-lpam $LIBS"
8806 cat >conftest.$ac_ext <<_ACEOF
8807 /* confdefs.h. */
8808 _ACEOF
8809 cat confdefs.h >>conftest.$ac_ext
8810 cat >>conftest.$ac_ext <<_ACEOF
8811 /* end confdefs.h. */
8813 /* Override any GCC internal prototype to avoid an error.
8814 Use char because int might match the return type of a GCC
8815 builtin and then its argument prototype would still apply. */
8816 #ifdef __cplusplus
8817 extern "C"
8818 #endif
8819 char pam_start ();
8821 main ()
8823 return pam_start ();
8825 return 0;
8827 _ACEOF
8828 rm -f conftest.$ac_objext conftest$ac_exeext
8829 if { (ac_try="$ac_link"
8830 case "(($ac_try" in
8831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8832 *) ac_try_echo=$ac_try;;
8833 esac
8834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8835 (eval "$ac_link") 2>conftest.er1
8836 ac_status=$?
8837 grep -v '^ *+' conftest.er1 >conftest.err
8838 rm -f conftest.er1
8839 cat conftest.err >&5
8840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841 (exit $ac_status); } && {
8842 test -z "$ac_c_werror_flag" ||
8843 test ! -s conftest.err
8844 } && test -s conftest$ac_exeext &&
8845 $as_test_x conftest$ac_exeext; then
8846 ac_cv_lib_pam_pam_start=yes
8847 else
8848 echo "$as_me: failed program was:" >&5
8849 sed 's/^/| /' conftest.$ac_ext >&5
8851 ac_cv_lib_pam_pam_start=no
8854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8855 conftest$ac_exeext conftest.$ac_ext
8856 LIBS=$ac_check_lib_save_LIBS
8858 { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
8859 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6; }
8860 if test $ac_cv_lib_pam_pam_start = yes; then
8861 cat >>confdefs.h <<_ACEOF
8862 #define HAVE_LIBPAM 1
8863 _ACEOF
8865 LIBS="-lpam $LIBS"
8867 else
8868 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
8869 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
8870 { (exit 1); exit 1; }; }
8875 if test "$with_libxml" = yes ; then
8877 { echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
8878 echo $ECHO_N "checking for xmlSaveToBuffer in -lxml2... $ECHO_C" >&6; }
8879 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
8880 echo $ECHO_N "(cached) $ECHO_C" >&6
8881 else
8882 ac_check_lib_save_LIBS=$LIBS
8883 LIBS="-lxml2 $LIBS"
8884 cat >conftest.$ac_ext <<_ACEOF
8885 /* confdefs.h. */
8886 _ACEOF
8887 cat confdefs.h >>conftest.$ac_ext
8888 cat >>conftest.$ac_ext <<_ACEOF
8889 /* end confdefs.h. */
8891 /* Override any GCC internal prototype to avoid an error.
8892 Use char because int might match the return type of a GCC
8893 builtin and then its argument prototype would still apply. */
8894 #ifdef __cplusplus
8895 extern "C"
8896 #endif
8897 char xmlSaveToBuffer ();
8899 main ()
8901 return xmlSaveToBuffer ();
8903 return 0;
8905 _ACEOF
8906 rm -f conftest.$ac_objext conftest$ac_exeext
8907 if { (ac_try="$ac_link"
8908 case "(($ac_try" in
8909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8910 *) ac_try_echo=$ac_try;;
8911 esac
8912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8913 (eval "$ac_link") 2>conftest.er1
8914 ac_status=$?
8915 grep -v '^ *+' conftest.er1 >conftest.err
8916 rm -f conftest.er1
8917 cat conftest.err >&5
8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 (exit $ac_status); } && {
8920 test -z "$ac_c_werror_flag" ||
8921 test ! -s conftest.err
8922 } && test -s conftest$ac_exeext &&
8923 $as_test_x conftest$ac_exeext; then
8924 ac_cv_lib_xml2_xmlSaveToBuffer=yes
8925 else
8926 echo "$as_me: failed program was:" >&5
8927 sed 's/^/| /' conftest.$ac_ext >&5
8929 ac_cv_lib_xml2_xmlSaveToBuffer=no
8932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8933 conftest$ac_exeext conftest.$ac_ext
8934 LIBS=$ac_check_lib_save_LIBS
8936 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
8937 echo "${ECHO_T}$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
8938 if test $ac_cv_lib_xml2_xmlSaveToBuffer = yes; then
8939 cat >>confdefs.h <<_ACEOF
8940 #define HAVE_LIBXML2 1
8941 _ACEOF
8943 LIBS="-lxml2 $LIBS"
8945 else
8946 { { echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
8947 echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
8948 { (exit 1); exit 1; }; }
8953 if test "$with_libxslt" = yes ; then
8955 { echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
8956 echo $ECHO_N "checking for xsltCleanupGlobals in -lxslt... $ECHO_C" >&6; }
8957 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
8958 echo $ECHO_N "(cached) $ECHO_C" >&6
8959 else
8960 ac_check_lib_save_LIBS=$LIBS
8961 LIBS="-lxslt $LIBS"
8962 cat >conftest.$ac_ext <<_ACEOF
8963 /* confdefs.h. */
8964 _ACEOF
8965 cat confdefs.h >>conftest.$ac_ext
8966 cat >>conftest.$ac_ext <<_ACEOF
8967 /* end confdefs.h. */
8969 /* Override any GCC internal prototype to avoid an error.
8970 Use char because int might match the return type of a GCC
8971 builtin and then its argument prototype would still apply. */
8972 #ifdef __cplusplus
8973 extern "C"
8974 #endif
8975 char xsltCleanupGlobals ();
8977 main ()
8979 return xsltCleanupGlobals ();
8981 return 0;
8983 _ACEOF
8984 rm -f conftest.$ac_objext conftest$ac_exeext
8985 if { (ac_try="$ac_link"
8986 case "(($ac_try" in
8987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8988 *) ac_try_echo=$ac_try;;
8989 esac
8990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8991 (eval "$ac_link") 2>conftest.er1
8992 ac_status=$?
8993 grep -v '^ *+' conftest.er1 >conftest.err
8994 rm -f conftest.er1
8995 cat conftest.err >&5
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); } && {
8998 test -z "$ac_c_werror_flag" ||
8999 test ! -s conftest.err
9000 } && test -s conftest$ac_exeext &&
9001 $as_test_x conftest$ac_exeext; then
9002 ac_cv_lib_xslt_xsltCleanupGlobals=yes
9003 else
9004 echo "$as_me: failed program was:" >&5
9005 sed 's/^/| /' conftest.$ac_ext >&5
9007 ac_cv_lib_xslt_xsltCleanupGlobals=no
9010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9011 conftest$ac_exeext conftest.$ac_ext
9012 LIBS=$ac_check_lib_save_LIBS
9014 { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9015 echo "${ECHO_T}$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
9016 if test $ac_cv_lib_xslt_xsltCleanupGlobals = yes; then
9017 cat >>confdefs.h <<_ACEOF
9018 #define HAVE_LIBXSLT 1
9019 _ACEOF
9021 LIBS="-lxslt $LIBS"
9023 else
9024 { { echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
9025 echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
9026 { (exit 1); exit 1; }; }
9031 # for contrib/uuid-ossp
9032 if test "$with_ossp_uuid" = yes ; then
9033 { echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
9034 echo $ECHO_N "checking for uuid_export in -lossp-uuid... $ECHO_C" >&6; }
9035 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
9036 echo $ECHO_N "(cached) $ECHO_C" >&6
9037 else
9038 ac_check_lib_save_LIBS=$LIBS
9039 LIBS="-lossp-uuid $LIBS"
9040 cat >conftest.$ac_ext <<_ACEOF
9041 /* confdefs.h. */
9042 _ACEOF
9043 cat confdefs.h >>conftest.$ac_ext
9044 cat >>conftest.$ac_ext <<_ACEOF
9045 /* end confdefs.h. */
9047 /* Override any GCC internal prototype to avoid an error.
9048 Use char because int might match the return type of a GCC
9049 builtin and then its argument prototype would still apply. */
9050 #ifdef __cplusplus
9051 extern "C"
9052 #endif
9053 char uuid_export ();
9055 main ()
9057 return uuid_export ();
9059 return 0;
9061 _ACEOF
9062 rm -f conftest.$ac_objext conftest$ac_exeext
9063 if { (ac_try="$ac_link"
9064 case "(($ac_try" in
9065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9066 *) ac_try_echo=$ac_try;;
9067 esac
9068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9069 (eval "$ac_link") 2>conftest.er1
9070 ac_status=$?
9071 grep -v '^ *+' conftest.er1 >conftest.err
9072 rm -f conftest.er1
9073 cat conftest.err >&5
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 (exit $ac_status); } && {
9076 test -z "$ac_c_werror_flag" ||
9077 test ! -s conftest.err
9078 } && test -s conftest$ac_exeext &&
9079 $as_test_x conftest$ac_exeext; then
9080 ac_cv_lib_ossp_uuid_uuid_export=yes
9081 else
9082 echo "$as_me: failed program was:" >&5
9083 sed 's/^/| /' conftest.$ac_ext >&5
9085 ac_cv_lib_ossp_uuid_uuid_export=no
9088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9089 conftest$ac_exeext conftest.$ac_ext
9090 LIBS=$ac_check_lib_save_LIBS
9092 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
9093 echo "${ECHO_T}$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
9094 if test $ac_cv_lib_ossp_uuid_uuid_export = yes; then
9095 OSSP_UUID_LIBS="-lossp-uuid"
9096 else
9097 { echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
9098 echo $ECHO_N "checking for uuid_export in -luuid... $ECHO_C" >&6; }
9099 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
9100 echo $ECHO_N "(cached) $ECHO_C" >&6
9101 else
9102 ac_check_lib_save_LIBS=$LIBS
9103 LIBS="-luuid $LIBS"
9104 cat >conftest.$ac_ext <<_ACEOF
9105 /* confdefs.h. */
9106 _ACEOF
9107 cat confdefs.h >>conftest.$ac_ext
9108 cat >>conftest.$ac_ext <<_ACEOF
9109 /* end confdefs.h. */
9111 /* Override any GCC internal prototype to avoid an error.
9112 Use char because int might match the return type of a GCC
9113 builtin and then its argument prototype would still apply. */
9114 #ifdef __cplusplus
9115 extern "C"
9116 #endif
9117 char uuid_export ();
9119 main ()
9121 return uuid_export ();
9123 return 0;
9125 _ACEOF
9126 rm -f conftest.$ac_objext conftest$ac_exeext
9127 if { (ac_try="$ac_link"
9128 case "(($ac_try" in
9129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9130 *) ac_try_echo=$ac_try;;
9131 esac
9132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9133 (eval "$ac_link") 2>conftest.er1
9134 ac_status=$?
9135 grep -v '^ *+' conftest.er1 >conftest.err
9136 rm -f conftest.er1
9137 cat conftest.err >&5
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); } && {
9140 test -z "$ac_c_werror_flag" ||
9141 test ! -s conftest.err
9142 } && test -s conftest$ac_exeext &&
9143 $as_test_x conftest$ac_exeext; then
9144 ac_cv_lib_uuid_uuid_export=yes
9145 else
9146 echo "$as_me: failed program was:" >&5
9147 sed 's/^/| /' conftest.$ac_ext >&5
9149 ac_cv_lib_uuid_uuid_export=no
9152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9153 conftest$ac_exeext conftest.$ac_ext
9154 LIBS=$ac_check_lib_save_LIBS
9156 { echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
9157 echo "${ECHO_T}$ac_cv_lib_uuid_uuid_export" >&6; }
9158 if test $ac_cv_lib_uuid_uuid_export = yes; then
9159 OSSP_UUID_LIBS="-luuid"
9160 else
9161 { { echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
9162 echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
9163 { (exit 1); exit 1; }; }
9173 ## Header files
9176 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9177 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
9178 if test "${ac_cv_header_stdc+set}" = set; then
9179 echo $ECHO_N "(cached) $ECHO_C" >&6
9180 else
9181 cat >conftest.$ac_ext <<_ACEOF
9182 /* confdefs.h. */
9183 _ACEOF
9184 cat confdefs.h >>conftest.$ac_ext
9185 cat >>conftest.$ac_ext <<_ACEOF
9186 /* end confdefs.h. */
9187 #include <stdlib.h>
9188 #include <stdarg.h>
9189 #include <string.h>
9190 #include <float.h>
9193 main ()
9197 return 0;
9199 _ACEOF
9200 rm -f conftest.$ac_objext
9201 if { (ac_try="$ac_compile"
9202 case "(($ac_try" in
9203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9204 *) ac_try_echo=$ac_try;;
9205 esac
9206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9207 (eval "$ac_compile") 2>conftest.er1
9208 ac_status=$?
9209 grep -v '^ *+' conftest.er1 >conftest.err
9210 rm -f conftest.er1
9211 cat conftest.err >&5
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); } && {
9214 test -z "$ac_c_werror_flag" ||
9215 test ! -s conftest.err
9216 } && test -s conftest.$ac_objext; then
9217 ac_cv_header_stdc=yes
9218 else
9219 echo "$as_me: failed program was:" >&5
9220 sed 's/^/| /' conftest.$ac_ext >&5
9222 ac_cv_header_stdc=no
9225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9227 if test $ac_cv_header_stdc = yes; then
9228 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9229 cat >conftest.$ac_ext <<_ACEOF
9230 /* confdefs.h. */
9231 _ACEOF
9232 cat confdefs.h >>conftest.$ac_ext
9233 cat >>conftest.$ac_ext <<_ACEOF
9234 /* end confdefs.h. */
9235 #include <string.h>
9237 _ACEOF
9238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9239 $EGREP "memchr" >/dev/null 2>&1; then
9241 else
9242 ac_cv_header_stdc=no
9244 rm -f conftest*
9248 if test $ac_cv_header_stdc = yes; then
9249 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9250 cat >conftest.$ac_ext <<_ACEOF
9251 /* confdefs.h. */
9252 _ACEOF
9253 cat confdefs.h >>conftest.$ac_ext
9254 cat >>conftest.$ac_ext <<_ACEOF
9255 /* end confdefs.h. */
9256 #include <stdlib.h>
9258 _ACEOF
9259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9260 $EGREP "free" >/dev/null 2>&1; then
9262 else
9263 ac_cv_header_stdc=no
9265 rm -f conftest*
9269 if test $ac_cv_header_stdc = yes; then
9270 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9271 if test "$cross_compiling" = yes; then
9273 else
9274 cat >conftest.$ac_ext <<_ACEOF
9275 /* confdefs.h. */
9276 _ACEOF
9277 cat confdefs.h >>conftest.$ac_ext
9278 cat >>conftest.$ac_ext <<_ACEOF
9279 /* end confdefs.h. */
9280 #include <ctype.h>
9281 #include <stdlib.h>
9282 #if ((' ' & 0x0FF) == 0x020)
9283 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9284 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9285 #else
9286 # define ISLOWER(c) \
9287 (('a' <= (c) && (c) <= 'i') \
9288 || ('j' <= (c) && (c) <= 'r') \
9289 || ('s' <= (c) && (c) <= 'z'))
9290 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9291 #endif
9293 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9295 main ()
9297 int i;
9298 for (i = 0; i < 256; i++)
9299 if (XOR (islower (i), ISLOWER (i))
9300 || toupper (i) != TOUPPER (i))
9301 return 2;
9302 return 0;
9304 _ACEOF
9305 rm -f conftest$ac_exeext
9306 if { (ac_try="$ac_link"
9307 case "(($ac_try" in
9308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9309 *) ac_try_echo=$ac_try;;
9310 esac
9311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9312 (eval "$ac_link") 2>&5
9313 ac_status=$?
9314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9316 { (case "(($ac_try" in
9317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9318 *) ac_try_echo=$ac_try;;
9319 esac
9320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9321 (eval "$ac_try") 2>&5
9322 ac_status=$?
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); }; }; then
9326 else
9327 echo "$as_me: program exited with status $ac_status" >&5
9328 echo "$as_me: failed program was:" >&5
9329 sed 's/^/| /' conftest.$ac_ext >&5
9331 ( exit $ac_status )
9332 ac_cv_header_stdc=no
9334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9340 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9341 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
9342 if test $ac_cv_header_stdc = yes; then
9344 cat >>confdefs.h <<\_ACEOF
9345 #define STDC_HEADERS 1
9346 _ACEOF
9350 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9360 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9361 inttypes.h stdint.h unistd.h
9363 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9364 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9367 echo $ECHO_N "(cached) $ECHO_C" >&6
9368 else
9369 cat >conftest.$ac_ext <<_ACEOF
9370 /* confdefs.h. */
9371 _ACEOF
9372 cat confdefs.h >>conftest.$ac_ext
9373 cat >>conftest.$ac_ext <<_ACEOF
9374 /* end confdefs.h. */
9375 $ac_includes_default
9377 #include <$ac_header>
9378 _ACEOF
9379 rm -f conftest.$ac_objext
9380 if { (ac_try="$ac_compile"
9381 case "(($ac_try" in
9382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9383 *) ac_try_echo=$ac_try;;
9384 esac
9385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9386 (eval "$ac_compile") 2>conftest.er1
9387 ac_status=$?
9388 grep -v '^ *+' conftest.er1 >conftest.err
9389 rm -f conftest.er1
9390 cat conftest.err >&5
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); } && {
9393 test -z "$ac_c_werror_flag" ||
9394 test ! -s conftest.err
9395 } && test -s conftest.$ac_objext; then
9396 eval "$as_ac_Header=yes"
9397 else
9398 echo "$as_me: failed program was:" >&5
9399 sed 's/^/| /' conftest.$ac_ext >&5
9401 eval "$as_ac_Header=no"
9404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9406 ac_res=`eval echo '${'$as_ac_Header'}'`
9407 { echo "$as_me:$LINENO: result: $ac_res" >&5
9408 echo "${ECHO_T}$ac_res" >&6; }
9409 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9410 cat >>confdefs.h <<_ACEOF
9411 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9412 _ACEOF
9416 done
9446 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
9448 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9450 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9453 echo $ECHO_N "(cached) $ECHO_C" >&6
9455 ac_res=`eval echo '${'$as_ac_Header'}'`
9456 { echo "$as_me:$LINENO: result: $ac_res" >&5
9457 echo "${ECHO_T}$ac_res" >&6; }
9458 else
9459 # Is the header compilable?
9460 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9461 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9462 cat >conftest.$ac_ext <<_ACEOF
9463 /* confdefs.h. */
9464 _ACEOF
9465 cat confdefs.h >>conftest.$ac_ext
9466 cat >>conftest.$ac_ext <<_ACEOF
9467 /* end confdefs.h. */
9468 $ac_includes_default
9469 #include <$ac_header>
9470 _ACEOF
9471 rm -f conftest.$ac_objext
9472 if { (ac_try="$ac_compile"
9473 case "(($ac_try" in
9474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9475 *) ac_try_echo=$ac_try;;
9476 esac
9477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9478 (eval "$ac_compile") 2>conftest.er1
9479 ac_status=$?
9480 grep -v '^ *+' conftest.er1 >conftest.err
9481 rm -f conftest.er1
9482 cat conftest.err >&5
9483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484 (exit $ac_status); } && {
9485 test -z "$ac_c_werror_flag" ||
9486 test ! -s conftest.err
9487 } && test -s conftest.$ac_objext; then
9488 ac_header_compiler=yes
9489 else
9490 echo "$as_me: failed program was:" >&5
9491 sed 's/^/| /' conftest.$ac_ext >&5
9493 ac_header_compiler=no
9496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9497 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9498 echo "${ECHO_T}$ac_header_compiler" >&6; }
9500 # Is the header present?
9501 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9502 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9503 cat >conftest.$ac_ext <<_ACEOF
9504 /* confdefs.h. */
9505 _ACEOF
9506 cat confdefs.h >>conftest.$ac_ext
9507 cat >>conftest.$ac_ext <<_ACEOF
9508 /* end confdefs.h. */
9509 #include <$ac_header>
9510 _ACEOF
9511 if { (ac_try="$ac_cpp conftest.$ac_ext"
9512 case "(($ac_try" in
9513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9514 *) ac_try_echo=$ac_try;;
9515 esac
9516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9517 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9518 ac_status=$?
9519 grep -v '^ *+' conftest.er1 >conftest.err
9520 rm -f conftest.er1
9521 cat conftest.err >&5
9522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523 (exit $ac_status); } >/dev/null && {
9524 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9525 test ! -s conftest.err
9526 }; then
9527 ac_header_preproc=yes
9528 else
9529 echo "$as_me: failed program was:" >&5
9530 sed 's/^/| /' conftest.$ac_ext >&5
9532 ac_header_preproc=no
9535 rm -f conftest.err conftest.$ac_ext
9536 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9537 echo "${ECHO_T}$ac_header_preproc" >&6; }
9539 # So? What about this header?
9540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9541 yes:no: )
9542 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9543 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9545 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9546 ac_header_preproc=yes
9548 no:yes:* )
9549 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9550 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9551 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9552 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9553 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9554 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9555 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9556 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9558 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9559 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9560 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9561 ( cat <<\_ASBOX
9562 ## ---------------------------------------- ##
9563 ## Report this to pgsql-bugs@postgresql.org ##
9564 ## ---------------------------------------- ##
9565 _ASBOX
9566 ) | sed "s/^/$as_me: WARNING: /" >&2
9568 esac
9569 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9572 echo $ECHO_N "(cached) $ECHO_C" >&6
9573 else
9574 eval "$as_ac_Header=\$ac_header_preproc"
9576 ac_res=`eval echo '${'$as_ac_Header'}'`
9577 { echo "$as_me:$LINENO: result: $ac_res" >&5
9578 echo "${ECHO_T}$ac_res" >&6; }
9581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9582 cat >>confdefs.h <<_ACEOF
9583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9584 _ACEOF
9588 done
9591 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
9592 # netinet/in.h is included first.
9594 for ac_header in netinet/in.h
9596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9601 echo $ECHO_N "(cached) $ECHO_C" >&6
9603 ac_res=`eval echo '${'$as_ac_Header'}'`
9604 { echo "$as_me:$LINENO: result: $ac_res" >&5
9605 echo "${ECHO_T}$ac_res" >&6; }
9606 else
9607 # Is the header compilable?
9608 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9609 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9610 cat >conftest.$ac_ext <<_ACEOF
9611 /* confdefs.h. */
9612 _ACEOF
9613 cat confdefs.h >>conftest.$ac_ext
9614 cat >>conftest.$ac_ext <<_ACEOF
9615 /* end confdefs.h. */
9616 $ac_includes_default
9617 #include <$ac_header>
9618 _ACEOF
9619 rm -f conftest.$ac_objext
9620 if { (ac_try="$ac_compile"
9621 case "(($ac_try" in
9622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9623 *) ac_try_echo=$ac_try;;
9624 esac
9625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9626 (eval "$ac_compile") 2>conftest.er1
9627 ac_status=$?
9628 grep -v '^ *+' conftest.er1 >conftest.err
9629 rm -f conftest.er1
9630 cat conftest.err >&5
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); } && {
9633 test -z "$ac_c_werror_flag" ||
9634 test ! -s conftest.err
9635 } && test -s conftest.$ac_objext; then
9636 ac_header_compiler=yes
9637 else
9638 echo "$as_me: failed program was:" >&5
9639 sed 's/^/| /' conftest.$ac_ext >&5
9641 ac_header_compiler=no
9644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9645 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9646 echo "${ECHO_T}$ac_header_compiler" >&6; }
9648 # Is the header present?
9649 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9651 cat >conftest.$ac_ext <<_ACEOF
9652 /* confdefs.h. */
9653 _ACEOF
9654 cat confdefs.h >>conftest.$ac_ext
9655 cat >>conftest.$ac_ext <<_ACEOF
9656 /* end confdefs.h. */
9657 #include <$ac_header>
9658 _ACEOF
9659 if { (ac_try="$ac_cpp conftest.$ac_ext"
9660 case "(($ac_try" in
9661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9662 *) ac_try_echo=$ac_try;;
9663 esac
9664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9666 ac_status=$?
9667 grep -v '^ *+' conftest.er1 >conftest.err
9668 rm -f conftest.er1
9669 cat conftest.err >&5
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); } >/dev/null && {
9672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9673 test ! -s conftest.err
9674 }; then
9675 ac_header_preproc=yes
9676 else
9677 echo "$as_me: failed program was:" >&5
9678 sed 's/^/| /' conftest.$ac_ext >&5
9680 ac_header_preproc=no
9683 rm -f conftest.err conftest.$ac_ext
9684 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9685 echo "${ECHO_T}$ac_header_preproc" >&6; }
9687 # So? What about this header?
9688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9689 yes:no: )
9690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9694 ac_header_preproc=yes
9696 no:yes:* )
9697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9704 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9709 ( cat <<\_ASBOX
9710 ## ---------------------------------------- ##
9711 ## Report this to pgsql-bugs@postgresql.org ##
9712 ## ---------------------------------------- ##
9713 _ASBOX
9714 ) | sed "s/^/$as_me: WARNING: /" >&2
9716 esac
9717 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9720 echo $ECHO_N "(cached) $ECHO_C" >&6
9721 else
9722 eval "$as_ac_Header=\$ac_header_preproc"
9724 ac_res=`eval echo '${'$as_ac_Header'}'`
9725 { echo "$as_me:$LINENO: result: $ac_res" >&5
9726 echo "${ECHO_T}$ac_res" >&6; }
9729 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9730 cat >>confdefs.h <<_ACEOF
9731 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9732 _ACEOF
9736 done
9739 for ac_header in netinet/tcp.h
9741 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9742 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9745 echo $ECHO_N "(cached) $ECHO_C" >&6
9746 else
9747 cat >conftest.$ac_ext <<_ACEOF
9748 /* confdefs.h. */
9749 _ACEOF
9750 cat confdefs.h >>conftest.$ac_ext
9751 cat >>conftest.$ac_ext <<_ACEOF
9752 /* end confdefs.h. */
9753 $ac_includes_default
9754 #ifdef HAVE_NETINET_IN_H
9755 #include <netinet/in.h>
9756 #endif
9759 #include <$ac_header>
9760 _ACEOF
9761 rm -f conftest.$ac_objext
9762 if { (ac_try="$ac_compile"
9763 case "(($ac_try" in
9764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9765 *) ac_try_echo=$ac_try;;
9766 esac
9767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9768 (eval "$ac_compile") 2>conftest.er1
9769 ac_status=$?
9770 grep -v '^ *+' conftest.er1 >conftest.err
9771 rm -f conftest.er1
9772 cat conftest.err >&5
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); } && {
9775 test -z "$ac_c_werror_flag" ||
9776 test ! -s conftest.err
9777 } && test -s conftest.$ac_objext; then
9778 eval "$as_ac_Header=yes"
9779 else
9780 echo "$as_me: failed program was:" >&5
9781 sed 's/^/| /' conftest.$ac_ext >&5
9783 eval "$as_ac_Header=no"
9786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9788 ac_res=`eval echo '${'$as_ac_Header'}'`
9789 { echo "$as_me:$LINENO: result: $ac_res" >&5
9790 echo "${ECHO_T}$ac_res" >&6; }
9791 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9792 cat >>confdefs.h <<_ACEOF
9793 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9794 _ACEOF
9798 done
9801 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
9803 for ac_header in readline/readline.h
9805 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9807 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9810 echo $ECHO_N "(cached) $ECHO_C" >&6
9812 ac_res=`eval echo '${'$as_ac_Header'}'`
9813 { echo "$as_me:$LINENO: result: $ac_res" >&5
9814 echo "${ECHO_T}$ac_res" >&6; }
9815 else
9816 # Is the header compilable?
9817 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9818 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9819 cat >conftest.$ac_ext <<_ACEOF
9820 /* confdefs.h. */
9821 _ACEOF
9822 cat confdefs.h >>conftest.$ac_ext
9823 cat >>conftest.$ac_ext <<_ACEOF
9824 /* end confdefs.h. */
9825 $ac_includes_default
9826 #include <$ac_header>
9827 _ACEOF
9828 rm -f conftest.$ac_objext
9829 if { (ac_try="$ac_compile"
9830 case "(($ac_try" in
9831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9832 *) ac_try_echo=$ac_try;;
9833 esac
9834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9835 (eval "$ac_compile") 2>conftest.er1
9836 ac_status=$?
9837 grep -v '^ *+' conftest.er1 >conftest.err
9838 rm -f conftest.er1
9839 cat conftest.err >&5
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); } && {
9842 test -z "$ac_c_werror_flag" ||
9843 test ! -s conftest.err
9844 } && test -s conftest.$ac_objext; then
9845 ac_header_compiler=yes
9846 else
9847 echo "$as_me: failed program was:" >&5
9848 sed 's/^/| /' conftest.$ac_ext >&5
9850 ac_header_compiler=no
9853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9854 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9855 echo "${ECHO_T}$ac_header_compiler" >&6; }
9857 # Is the header present?
9858 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9859 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9860 cat >conftest.$ac_ext <<_ACEOF
9861 /* confdefs.h. */
9862 _ACEOF
9863 cat confdefs.h >>conftest.$ac_ext
9864 cat >>conftest.$ac_ext <<_ACEOF
9865 /* end confdefs.h. */
9866 #include <$ac_header>
9867 _ACEOF
9868 if { (ac_try="$ac_cpp conftest.$ac_ext"
9869 case "(($ac_try" in
9870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9871 *) ac_try_echo=$ac_try;;
9872 esac
9873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9875 ac_status=$?
9876 grep -v '^ *+' conftest.er1 >conftest.err
9877 rm -f conftest.er1
9878 cat conftest.err >&5
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); } >/dev/null && {
9881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9882 test ! -s conftest.err
9883 }; then
9884 ac_header_preproc=yes
9885 else
9886 echo "$as_me: failed program was:" >&5
9887 sed 's/^/| /' conftest.$ac_ext >&5
9889 ac_header_preproc=no
9892 rm -f conftest.err conftest.$ac_ext
9893 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9894 echo "${ECHO_T}$ac_header_preproc" >&6; }
9896 # So? What about this header?
9897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9898 yes:no: )
9899 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9902 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9903 ac_header_preproc=yes
9905 no:yes:* )
9906 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9907 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9908 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9909 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9910 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9911 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9912 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9913 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9915 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9916 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9917 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9918 ( cat <<\_ASBOX
9919 ## ---------------------------------------- ##
9920 ## Report this to pgsql-bugs@postgresql.org ##
9921 ## ---------------------------------------- ##
9922 _ASBOX
9923 ) | sed "s/^/$as_me: WARNING: /" >&2
9925 esac
9926 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9928 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9929 echo $ECHO_N "(cached) $ECHO_C" >&6
9930 else
9931 eval "$as_ac_Header=\$ac_header_preproc"
9933 ac_res=`eval echo '${'$as_ac_Header'}'`
9934 { echo "$as_me:$LINENO: result: $ac_res" >&5
9935 echo "${ECHO_T}$ac_res" >&6; }
9938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9939 cat >>confdefs.h <<_ACEOF
9940 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9941 _ACEOF
9943 else
9945 for ac_header in readline.h
9947 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9948 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9949 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9952 echo $ECHO_N "(cached) $ECHO_C" >&6
9954 ac_res=`eval echo '${'$as_ac_Header'}'`
9955 { echo "$as_me:$LINENO: result: $ac_res" >&5
9956 echo "${ECHO_T}$ac_res" >&6; }
9957 else
9958 # Is the header compilable?
9959 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9960 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9961 cat >conftest.$ac_ext <<_ACEOF
9962 /* confdefs.h. */
9963 _ACEOF
9964 cat confdefs.h >>conftest.$ac_ext
9965 cat >>conftest.$ac_ext <<_ACEOF
9966 /* end confdefs.h. */
9967 $ac_includes_default
9968 #include <$ac_header>
9969 _ACEOF
9970 rm -f conftest.$ac_objext
9971 if { (ac_try="$ac_compile"
9972 case "(($ac_try" in
9973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9974 *) ac_try_echo=$ac_try;;
9975 esac
9976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9977 (eval "$ac_compile") 2>conftest.er1
9978 ac_status=$?
9979 grep -v '^ *+' conftest.er1 >conftest.err
9980 rm -f conftest.er1
9981 cat conftest.err >&5
9982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983 (exit $ac_status); } && {
9984 test -z "$ac_c_werror_flag" ||
9985 test ! -s conftest.err
9986 } && test -s conftest.$ac_objext; then
9987 ac_header_compiler=yes
9988 else
9989 echo "$as_me: failed program was:" >&5
9990 sed 's/^/| /' conftest.$ac_ext >&5
9992 ac_header_compiler=no
9995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9996 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9997 echo "${ECHO_T}$ac_header_compiler" >&6; }
9999 # Is the header present?
10000 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10001 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10002 cat >conftest.$ac_ext <<_ACEOF
10003 /* confdefs.h. */
10004 _ACEOF
10005 cat confdefs.h >>conftest.$ac_ext
10006 cat >>conftest.$ac_ext <<_ACEOF
10007 /* end confdefs.h. */
10008 #include <$ac_header>
10009 _ACEOF
10010 if { (ac_try="$ac_cpp conftest.$ac_ext"
10011 case "(($ac_try" in
10012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10013 *) ac_try_echo=$ac_try;;
10014 esac
10015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10016 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10017 ac_status=$?
10018 grep -v '^ *+' conftest.er1 >conftest.err
10019 rm -f conftest.er1
10020 cat conftest.err >&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); } >/dev/null && {
10023 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10024 test ! -s conftest.err
10025 }; then
10026 ac_header_preproc=yes
10027 else
10028 echo "$as_me: failed program was:" >&5
10029 sed 's/^/| /' conftest.$ac_ext >&5
10031 ac_header_preproc=no
10034 rm -f conftest.err conftest.$ac_ext
10035 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10036 echo "${ECHO_T}$ac_header_preproc" >&6; }
10038 # So? What about this header?
10039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10040 yes:no: )
10041 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10042 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10044 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10045 ac_header_preproc=yes
10047 no:yes:* )
10048 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10049 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10050 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10051 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10052 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10053 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10054 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10055 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10057 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10058 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10059 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10060 ( cat <<\_ASBOX
10061 ## ---------------------------------------- ##
10062 ## Report this to pgsql-bugs@postgresql.org ##
10063 ## ---------------------------------------- ##
10064 _ASBOX
10065 ) | sed "s/^/$as_me: WARNING: /" >&2
10067 esac
10068 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10071 echo $ECHO_N "(cached) $ECHO_C" >&6
10072 else
10073 eval "$as_ac_Header=\$ac_header_preproc"
10075 ac_res=`eval echo '${'$as_ac_Header'}'`
10076 { echo "$as_me:$LINENO: result: $ac_res" >&5
10077 echo "${ECHO_T}$ac_res" >&6; }
10080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10081 cat >>confdefs.h <<_ACEOF
10082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10083 _ACEOF
10085 else
10086 { { echo "$as_me:$LINENO: error: readline header not found
10087 If you have readline already installed, see config.log for details on the
10088 failure. It is possible the compiler isn't looking in the proper directory.
10089 Use --without-readline to disable readline support." >&5
10090 echo "$as_me: error: readline header not found
10091 If you have readline already installed, see config.log for details on the
10092 failure. It is possible the compiler isn't looking in the proper directory.
10093 Use --without-readline to disable readline support." >&2;}
10094 { (exit 1); exit 1; }; }
10097 done
10101 done
10104 for ac_header in readline/history.h
10106 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10108 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10111 echo $ECHO_N "(cached) $ECHO_C" >&6
10113 ac_res=`eval echo '${'$as_ac_Header'}'`
10114 { echo "$as_me:$LINENO: result: $ac_res" >&5
10115 echo "${ECHO_T}$ac_res" >&6; }
10116 else
10117 # Is the header compilable?
10118 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10119 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10120 cat >conftest.$ac_ext <<_ACEOF
10121 /* confdefs.h. */
10122 _ACEOF
10123 cat confdefs.h >>conftest.$ac_ext
10124 cat >>conftest.$ac_ext <<_ACEOF
10125 /* end confdefs.h. */
10126 $ac_includes_default
10127 #include <$ac_header>
10128 _ACEOF
10129 rm -f conftest.$ac_objext
10130 if { (ac_try="$ac_compile"
10131 case "(($ac_try" in
10132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10133 *) ac_try_echo=$ac_try;;
10134 esac
10135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10136 (eval "$ac_compile") 2>conftest.er1
10137 ac_status=$?
10138 grep -v '^ *+' conftest.er1 >conftest.err
10139 rm -f conftest.er1
10140 cat conftest.err >&5
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); } && {
10143 test -z "$ac_c_werror_flag" ||
10144 test ! -s conftest.err
10145 } && test -s conftest.$ac_objext; then
10146 ac_header_compiler=yes
10147 else
10148 echo "$as_me: failed program was:" >&5
10149 sed 's/^/| /' conftest.$ac_ext >&5
10151 ac_header_compiler=no
10154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10155 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10156 echo "${ECHO_T}$ac_header_compiler" >&6; }
10158 # Is the header present?
10159 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10160 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10161 cat >conftest.$ac_ext <<_ACEOF
10162 /* confdefs.h. */
10163 _ACEOF
10164 cat confdefs.h >>conftest.$ac_ext
10165 cat >>conftest.$ac_ext <<_ACEOF
10166 /* end confdefs.h. */
10167 #include <$ac_header>
10168 _ACEOF
10169 if { (ac_try="$ac_cpp conftest.$ac_ext"
10170 case "(($ac_try" in
10171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10172 *) ac_try_echo=$ac_try;;
10173 esac
10174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10175 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10176 ac_status=$?
10177 grep -v '^ *+' conftest.er1 >conftest.err
10178 rm -f conftest.er1
10179 cat conftest.err >&5
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); } >/dev/null && {
10182 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10183 test ! -s conftest.err
10184 }; then
10185 ac_header_preproc=yes
10186 else
10187 echo "$as_me: failed program was:" >&5
10188 sed 's/^/| /' conftest.$ac_ext >&5
10190 ac_header_preproc=no
10193 rm -f conftest.err conftest.$ac_ext
10194 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10195 echo "${ECHO_T}$ac_header_preproc" >&6; }
10197 # So? What about this header?
10198 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10199 yes:no: )
10200 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10201 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10203 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10204 ac_header_preproc=yes
10206 no:yes:* )
10207 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10208 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10209 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10210 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10211 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10212 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10213 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10214 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10216 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10217 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10218 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10219 ( cat <<\_ASBOX
10220 ## ---------------------------------------- ##
10221 ## Report this to pgsql-bugs@postgresql.org ##
10222 ## ---------------------------------------- ##
10223 _ASBOX
10224 ) | sed "s/^/$as_me: WARNING: /" >&2
10226 esac
10227 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10230 echo $ECHO_N "(cached) $ECHO_C" >&6
10231 else
10232 eval "$as_ac_Header=\$ac_header_preproc"
10234 ac_res=`eval echo '${'$as_ac_Header'}'`
10235 { echo "$as_me:$LINENO: result: $ac_res" >&5
10236 echo "${ECHO_T}$ac_res" >&6; }
10239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10240 cat >>confdefs.h <<_ACEOF
10241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10242 _ACEOF
10244 else
10246 for ac_header in history.h
10248 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10250 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10253 echo $ECHO_N "(cached) $ECHO_C" >&6
10255 ac_res=`eval echo '${'$as_ac_Header'}'`
10256 { echo "$as_me:$LINENO: result: $ac_res" >&5
10257 echo "${ECHO_T}$ac_res" >&6; }
10258 else
10259 # Is the header compilable?
10260 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10261 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10262 cat >conftest.$ac_ext <<_ACEOF
10263 /* confdefs.h. */
10264 _ACEOF
10265 cat confdefs.h >>conftest.$ac_ext
10266 cat >>conftest.$ac_ext <<_ACEOF
10267 /* end confdefs.h. */
10268 $ac_includes_default
10269 #include <$ac_header>
10270 _ACEOF
10271 rm -f conftest.$ac_objext
10272 if { (ac_try="$ac_compile"
10273 case "(($ac_try" in
10274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10275 *) ac_try_echo=$ac_try;;
10276 esac
10277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10278 (eval "$ac_compile") 2>conftest.er1
10279 ac_status=$?
10280 grep -v '^ *+' conftest.er1 >conftest.err
10281 rm -f conftest.er1
10282 cat conftest.err >&5
10283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284 (exit $ac_status); } && {
10285 test -z "$ac_c_werror_flag" ||
10286 test ! -s conftest.err
10287 } && test -s conftest.$ac_objext; then
10288 ac_header_compiler=yes
10289 else
10290 echo "$as_me: failed program was:" >&5
10291 sed 's/^/| /' conftest.$ac_ext >&5
10293 ac_header_compiler=no
10296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10297 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10298 echo "${ECHO_T}$ac_header_compiler" >&6; }
10300 # Is the header present?
10301 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10302 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10303 cat >conftest.$ac_ext <<_ACEOF
10304 /* confdefs.h. */
10305 _ACEOF
10306 cat confdefs.h >>conftest.$ac_ext
10307 cat >>conftest.$ac_ext <<_ACEOF
10308 /* end confdefs.h. */
10309 #include <$ac_header>
10310 _ACEOF
10311 if { (ac_try="$ac_cpp conftest.$ac_ext"
10312 case "(($ac_try" in
10313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10314 *) ac_try_echo=$ac_try;;
10315 esac
10316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10318 ac_status=$?
10319 grep -v '^ *+' conftest.er1 >conftest.err
10320 rm -f conftest.er1
10321 cat conftest.err >&5
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); } >/dev/null && {
10324 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10325 test ! -s conftest.err
10326 }; then
10327 ac_header_preproc=yes
10328 else
10329 echo "$as_me: failed program was:" >&5
10330 sed 's/^/| /' conftest.$ac_ext >&5
10332 ac_header_preproc=no
10335 rm -f conftest.err conftest.$ac_ext
10336 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10337 echo "${ECHO_T}$ac_header_preproc" >&6; }
10339 # So? What about this header?
10340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10341 yes:no: )
10342 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10343 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10345 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10346 ac_header_preproc=yes
10348 no:yes:* )
10349 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10350 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10351 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10352 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10353 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10354 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10355 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10356 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10358 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10359 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10360 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10361 ( cat <<\_ASBOX
10362 ## ---------------------------------------- ##
10363 ## Report this to pgsql-bugs@postgresql.org ##
10364 ## ---------------------------------------- ##
10365 _ASBOX
10366 ) | sed "s/^/$as_me: WARNING: /" >&2
10368 esac
10369 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10372 echo $ECHO_N "(cached) $ECHO_C" >&6
10373 else
10374 eval "$as_ac_Header=\$ac_header_preproc"
10376 ac_res=`eval echo '${'$as_ac_Header'}'`
10377 { echo "$as_me:$LINENO: result: $ac_res" >&5
10378 echo "${ECHO_T}$ac_res" >&6; }
10381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10382 cat >>confdefs.h <<_ACEOF
10383 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10384 _ACEOF
10386 else
10387 { { echo "$as_me:$LINENO: error: history header not found
10388 If you have readline already installed, see config.log for details on the
10389 failure. It is possible the compiler isn't looking in the proper directory.
10390 Use --without-readline to disable readline support." >&5
10391 echo "$as_me: error: history header not found
10392 If you have readline already installed, see config.log for details on the
10393 failure. It is possible the compiler isn't looking in the proper directory.
10394 Use --without-readline to disable readline support." >&2;}
10395 { (exit 1); exit 1; }; }
10398 done
10402 done
10406 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
10407 # Some installations of libedit usurp /usr/include/readline/, which seems
10408 # bad practice, since in combined installations readline will have its headers
10409 # there. We might have to resort to AC_EGREP checks to make sure we found
10410 # the proper header...
10412 for ac_header in editline/readline.h
10414 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10416 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10418 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10419 echo $ECHO_N "(cached) $ECHO_C" >&6
10421 ac_res=`eval echo '${'$as_ac_Header'}'`
10422 { echo "$as_me:$LINENO: result: $ac_res" >&5
10423 echo "${ECHO_T}$ac_res" >&6; }
10424 else
10425 # Is the header compilable?
10426 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10427 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10428 cat >conftest.$ac_ext <<_ACEOF
10429 /* confdefs.h. */
10430 _ACEOF
10431 cat confdefs.h >>conftest.$ac_ext
10432 cat >>conftest.$ac_ext <<_ACEOF
10433 /* end confdefs.h. */
10434 $ac_includes_default
10435 #include <$ac_header>
10436 _ACEOF
10437 rm -f conftest.$ac_objext
10438 if { (ac_try="$ac_compile"
10439 case "(($ac_try" in
10440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10441 *) ac_try_echo=$ac_try;;
10442 esac
10443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10444 (eval "$ac_compile") 2>conftest.er1
10445 ac_status=$?
10446 grep -v '^ *+' conftest.er1 >conftest.err
10447 rm -f conftest.er1
10448 cat conftest.err >&5
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); } && {
10451 test -z "$ac_c_werror_flag" ||
10452 test ! -s conftest.err
10453 } && test -s conftest.$ac_objext; then
10454 ac_header_compiler=yes
10455 else
10456 echo "$as_me: failed program was:" >&5
10457 sed 's/^/| /' conftest.$ac_ext >&5
10459 ac_header_compiler=no
10462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10463 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10464 echo "${ECHO_T}$ac_header_compiler" >&6; }
10466 # Is the header present?
10467 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10468 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10469 cat >conftest.$ac_ext <<_ACEOF
10470 /* confdefs.h. */
10471 _ACEOF
10472 cat confdefs.h >>conftest.$ac_ext
10473 cat >>conftest.$ac_ext <<_ACEOF
10474 /* end confdefs.h. */
10475 #include <$ac_header>
10476 _ACEOF
10477 if { (ac_try="$ac_cpp conftest.$ac_ext"
10478 case "(($ac_try" in
10479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10480 *) ac_try_echo=$ac_try;;
10481 esac
10482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10484 ac_status=$?
10485 grep -v '^ *+' conftest.er1 >conftest.err
10486 rm -f conftest.er1
10487 cat conftest.err >&5
10488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489 (exit $ac_status); } >/dev/null && {
10490 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10491 test ! -s conftest.err
10492 }; then
10493 ac_header_preproc=yes
10494 else
10495 echo "$as_me: failed program was:" >&5
10496 sed 's/^/| /' conftest.$ac_ext >&5
10498 ac_header_preproc=no
10501 rm -f conftest.err conftest.$ac_ext
10502 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10503 echo "${ECHO_T}$ac_header_preproc" >&6; }
10505 # So? What about this header?
10506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10507 yes:no: )
10508 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10509 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10511 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10512 ac_header_preproc=yes
10514 no:yes:* )
10515 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10516 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10517 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10518 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10519 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10520 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10521 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10522 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10524 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10525 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10526 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10527 ( cat <<\_ASBOX
10528 ## ---------------------------------------- ##
10529 ## Report this to pgsql-bugs@postgresql.org ##
10530 ## ---------------------------------------- ##
10531 _ASBOX
10532 ) | sed "s/^/$as_me: WARNING: /" >&2
10534 esac
10535 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10538 echo $ECHO_N "(cached) $ECHO_C" >&6
10539 else
10540 eval "$as_ac_Header=\$ac_header_preproc"
10542 ac_res=`eval echo '${'$as_ac_Header'}'`
10543 { echo "$as_me:$LINENO: result: $ac_res" >&5
10544 echo "${ECHO_T}$ac_res" >&6; }
10547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10548 cat >>confdefs.h <<_ACEOF
10549 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10550 _ACEOF
10552 else
10554 for ac_header in readline.h
10556 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10558 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10561 echo $ECHO_N "(cached) $ECHO_C" >&6
10563 ac_res=`eval echo '${'$as_ac_Header'}'`
10564 { echo "$as_me:$LINENO: result: $ac_res" >&5
10565 echo "${ECHO_T}$ac_res" >&6; }
10566 else
10567 # Is the header compilable?
10568 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10569 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10570 cat >conftest.$ac_ext <<_ACEOF
10571 /* confdefs.h. */
10572 _ACEOF
10573 cat confdefs.h >>conftest.$ac_ext
10574 cat >>conftest.$ac_ext <<_ACEOF
10575 /* end confdefs.h. */
10576 $ac_includes_default
10577 #include <$ac_header>
10578 _ACEOF
10579 rm -f conftest.$ac_objext
10580 if { (ac_try="$ac_compile"
10581 case "(($ac_try" in
10582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10583 *) ac_try_echo=$ac_try;;
10584 esac
10585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10586 (eval "$ac_compile") 2>conftest.er1
10587 ac_status=$?
10588 grep -v '^ *+' conftest.er1 >conftest.err
10589 rm -f conftest.er1
10590 cat conftest.err >&5
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); } && {
10593 test -z "$ac_c_werror_flag" ||
10594 test ! -s conftest.err
10595 } && test -s conftest.$ac_objext; then
10596 ac_header_compiler=yes
10597 else
10598 echo "$as_me: failed program was:" >&5
10599 sed 's/^/| /' conftest.$ac_ext >&5
10601 ac_header_compiler=no
10604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10605 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10606 echo "${ECHO_T}$ac_header_compiler" >&6; }
10608 # Is the header present?
10609 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10610 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10611 cat >conftest.$ac_ext <<_ACEOF
10612 /* confdefs.h. */
10613 _ACEOF
10614 cat confdefs.h >>conftest.$ac_ext
10615 cat >>conftest.$ac_ext <<_ACEOF
10616 /* end confdefs.h. */
10617 #include <$ac_header>
10618 _ACEOF
10619 if { (ac_try="$ac_cpp conftest.$ac_ext"
10620 case "(($ac_try" in
10621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10622 *) ac_try_echo=$ac_try;;
10623 esac
10624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10625 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10626 ac_status=$?
10627 grep -v '^ *+' conftest.er1 >conftest.err
10628 rm -f conftest.er1
10629 cat conftest.err >&5
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); } >/dev/null && {
10632 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10633 test ! -s conftest.err
10634 }; then
10635 ac_header_preproc=yes
10636 else
10637 echo "$as_me: failed program was:" >&5
10638 sed 's/^/| /' conftest.$ac_ext >&5
10640 ac_header_preproc=no
10643 rm -f conftest.err conftest.$ac_ext
10644 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10645 echo "${ECHO_T}$ac_header_preproc" >&6; }
10647 # So? What about this header?
10648 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10649 yes:no: )
10650 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10651 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10653 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10654 ac_header_preproc=yes
10656 no:yes:* )
10657 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10658 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10659 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10660 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10661 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10662 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10663 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10664 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10666 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10667 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10668 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10669 ( cat <<\_ASBOX
10670 ## ---------------------------------------- ##
10671 ## Report this to pgsql-bugs@postgresql.org ##
10672 ## ---------------------------------------- ##
10673 _ASBOX
10674 ) | sed "s/^/$as_me: WARNING: /" >&2
10676 esac
10677 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10680 echo $ECHO_N "(cached) $ECHO_C" >&6
10681 else
10682 eval "$as_ac_Header=\$ac_header_preproc"
10684 ac_res=`eval echo '${'$as_ac_Header'}'`
10685 { echo "$as_me:$LINENO: result: $ac_res" >&5
10686 echo "${ECHO_T}$ac_res" >&6; }
10689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10690 cat >>confdefs.h <<_ACEOF
10691 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10692 _ACEOF
10694 else
10696 for ac_header in readline/readline.h
10698 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10700 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10702 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10703 echo $ECHO_N "(cached) $ECHO_C" >&6
10705 ac_res=`eval echo '${'$as_ac_Header'}'`
10706 { echo "$as_me:$LINENO: result: $ac_res" >&5
10707 echo "${ECHO_T}$ac_res" >&6; }
10708 else
10709 # Is the header compilable?
10710 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10711 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10712 cat >conftest.$ac_ext <<_ACEOF
10713 /* confdefs.h. */
10714 _ACEOF
10715 cat confdefs.h >>conftest.$ac_ext
10716 cat >>conftest.$ac_ext <<_ACEOF
10717 /* end confdefs.h. */
10718 $ac_includes_default
10719 #include <$ac_header>
10720 _ACEOF
10721 rm -f conftest.$ac_objext
10722 if { (ac_try="$ac_compile"
10723 case "(($ac_try" in
10724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10725 *) ac_try_echo=$ac_try;;
10726 esac
10727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10728 (eval "$ac_compile") 2>conftest.er1
10729 ac_status=$?
10730 grep -v '^ *+' conftest.er1 >conftest.err
10731 rm -f conftest.er1
10732 cat conftest.err >&5
10733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734 (exit $ac_status); } && {
10735 test -z "$ac_c_werror_flag" ||
10736 test ! -s conftest.err
10737 } && test -s conftest.$ac_objext; then
10738 ac_header_compiler=yes
10739 else
10740 echo "$as_me: failed program was:" >&5
10741 sed 's/^/| /' conftest.$ac_ext >&5
10743 ac_header_compiler=no
10746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10747 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10748 echo "${ECHO_T}$ac_header_compiler" >&6; }
10750 # Is the header present?
10751 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10752 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10753 cat >conftest.$ac_ext <<_ACEOF
10754 /* confdefs.h. */
10755 _ACEOF
10756 cat confdefs.h >>conftest.$ac_ext
10757 cat >>conftest.$ac_ext <<_ACEOF
10758 /* end confdefs.h. */
10759 #include <$ac_header>
10760 _ACEOF
10761 if { (ac_try="$ac_cpp conftest.$ac_ext"
10762 case "(($ac_try" in
10763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10764 *) ac_try_echo=$ac_try;;
10765 esac
10766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10768 ac_status=$?
10769 grep -v '^ *+' conftest.er1 >conftest.err
10770 rm -f conftest.er1
10771 cat conftest.err >&5
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); } >/dev/null && {
10774 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10775 test ! -s conftest.err
10776 }; then
10777 ac_header_preproc=yes
10778 else
10779 echo "$as_me: failed program was:" >&5
10780 sed 's/^/| /' conftest.$ac_ext >&5
10782 ac_header_preproc=no
10785 rm -f conftest.err conftest.$ac_ext
10786 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10787 echo "${ECHO_T}$ac_header_preproc" >&6; }
10789 # So? What about this header?
10790 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10791 yes:no: )
10792 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10793 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10795 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10796 ac_header_preproc=yes
10798 no:yes:* )
10799 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10800 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10801 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10802 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10803 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10804 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10805 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10806 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10808 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10809 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10810 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10811 ( cat <<\_ASBOX
10812 ## ---------------------------------------- ##
10813 ## Report this to pgsql-bugs@postgresql.org ##
10814 ## ---------------------------------------- ##
10815 _ASBOX
10816 ) | sed "s/^/$as_me: WARNING: /" >&2
10818 esac
10819 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10822 echo $ECHO_N "(cached) $ECHO_C" >&6
10823 else
10824 eval "$as_ac_Header=\$ac_header_preproc"
10826 ac_res=`eval echo '${'$as_ac_Header'}'`
10827 { echo "$as_me:$LINENO: result: $ac_res" >&5
10828 echo "${ECHO_T}$ac_res" >&6; }
10831 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10832 cat >>confdefs.h <<_ACEOF
10833 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10834 _ACEOF
10836 else
10837 { { echo "$as_me:$LINENO: error: readline header not found
10838 If you have libedit already installed, see config.log for details on the
10839 failure. It is possible the compiler isn't looking in the proper directory.
10840 Use --without-readline to disable libedit support." >&5
10841 echo "$as_me: error: readline header not found
10842 If you have libedit already installed, see config.log for details on the
10843 failure. It is possible the compiler isn't looking in the proper directory.
10844 Use --without-readline to disable libedit support." >&2;}
10845 { (exit 1); exit 1; }; }
10848 done
10852 done
10856 done
10858 # Note: in a libedit installation, history.h is sometimes a dummy, and may
10859 # not be there at all. Hence, don't complain if not found. We must check
10860 # though, since in yet other versions it is an independent header.
10862 for ac_header in editline/history.h
10864 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10865 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10866 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10869 echo $ECHO_N "(cached) $ECHO_C" >&6
10871 ac_res=`eval echo '${'$as_ac_Header'}'`
10872 { echo "$as_me:$LINENO: result: $ac_res" >&5
10873 echo "${ECHO_T}$ac_res" >&6; }
10874 else
10875 # Is the header compilable?
10876 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10877 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10878 cat >conftest.$ac_ext <<_ACEOF
10879 /* confdefs.h. */
10880 _ACEOF
10881 cat confdefs.h >>conftest.$ac_ext
10882 cat >>conftest.$ac_ext <<_ACEOF
10883 /* end confdefs.h. */
10884 $ac_includes_default
10885 #include <$ac_header>
10886 _ACEOF
10887 rm -f conftest.$ac_objext
10888 if { (ac_try="$ac_compile"
10889 case "(($ac_try" in
10890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10891 *) ac_try_echo=$ac_try;;
10892 esac
10893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10894 (eval "$ac_compile") 2>conftest.er1
10895 ac_status=$?
10896 grep -v '^ *+' conftest.er1 >conftest.err
10897 rm -f conftest.er1
10898 cat conftest.err >&5
10899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); } && {
10901 test -z "$ac_c_werror_flag" ||
10902 test ! -s conftest.err
10903 } && test -s conftest.$ac_objext; then
10904 ac_header_compiler=yes
10905 else
10906 echo "$as_me: failed program was:" >&5
10907 sed 's/^/| /' conftest.$ac_ext >&5
10909 ac_header_compiler=no
10912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10913 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10914 echo "${ECHO_T}$ac_header_compiler" >&6; }
10916 # Is the header present?
10917 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10918 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10919 cat >conftest.$ac_ext <<_ACEOF
10920 /* confdefs.h. */
10921 _ACEOF
10922 cat confdefs.h >>conftest.$ac_ext
10923 cat >>conftest.$ac_ext <<_ACEOF
10924 /* end confdefs.h. */
10925 #include <$ac_header>
10926 _ACEOF
10927 if { (ac_try="$ac_cpp conftest.$ac_ext"
10928 case "(($ac_try" in
10929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10930 *) ac_try_echo=$ac_try;;
10931 esac
10932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10934 ac_status=$?
10935 grep -v '^ *+' conftest.er1 >conftest.err
10936 rm -f conftest.er1
10937 cat conftest.err >&5
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); } >/dev/null && {
10940 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10941 test ! -s conftest.err
10942 }; then
10943 ac_header_preproc=yes
10944 else
10945 echo "$as_me: failed program was:" >&5
10946 sed 's/^/| /' conftest.$ac_ext >&5
10948 ac_header_preproc=no
10951 rm -f conftest.err conftest.$ac_ext
10952 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10953 echo "${ECHO_T}$ac_header_preproc" >&6; }
10955 # So? What about this header?
10956 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10957 yes:no: )
10958 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10959 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10961 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10962 ac_header_preproc=yes
10964 no:yes:* )
10965 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10966 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10967 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10968 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10969 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10970 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10971 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10972 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10974 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10975 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10976 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10977 ( cat <<\_ASBOX
10978 ## ---------------------------------------- ##
10979 ## Report this to pgsql-bugs@postgresql.org ##
10980 ## ---------------------------------------- ##
10981 _ASBOX
10982 ) | sed "s/^/$as_me: WARNING: /" >&2
10984 esac
10985 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10988 echo $ECHO_N "(cached) $ECHO_C" >&6
10989 else
10990 eval "$as_ac_Header=\$ac_header_preproc"
10992 ac_res=`eval echo '${'$as_ac_Header'}'`
10993 { echo "$as_me:$LINENO: result: $ac_res" >&5
10994 echo "${ECHO_T}$ac_res" >&6; }
10997 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10998 cat >>confdefs.h <<_ACEOF
10999 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11000 _ACEOF
11002 else
11004 for ac_header in history.h
11006 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11008 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11011 echo $ECHO_N "(cached) $ECHO_C" >&6
11013 ac_res=`eval echo '${'$as_ac_Header'}'`
11014 { echo "$as_me:$LINENO: result: $ac_res" >&5
11015 echo "${ECHO_T}$ac_res" >&6; }
11016 else
11017 # Is the header compilable?
11018 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11019 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11020 cat >conftest.$ac_ext <<_ACEOF
11021 /* confdefs.h. */
11022 _ACEOF
11023 cat confdefs.h >>conftest.$ac_ext
11024 cat >>conftest.$ac_ext <<_ACEOF
11025 /* end confdefs.h. */
11026 $ac_includes_default
11027 #include <$ac_header>
11028 _ACEOF
11029 rm -f conftest.$ac_objext
11030 if { (ac_try="$ac_compile"
11031 case "(($ac_try" in
11032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11033 *) ac_try_echo=$ac_try;;
11034 esac
11035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11036 (eval "$ac_compile") 2>conftest.er1
11037 ac_status=$?
11038 grep -v '^ *+' conftest.er1 >conftest.err
11039 rm -f conftest.er1
11040 cat conftest.err >&5
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); } && {
11043 test -z "$ac_c_werror_flag" ||
11044 test ! -s conftest.err
11045 } && test -s conftest.$ac_objext; then
11046 ac_header_compiler=yes
11047 else
11048 echo "$as_me: failed program was:" >&5
11049 sed 's/^/| /' conftest.$ac_ext >&5
11051 ac_header_compiler=no
11054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11055 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11056 echo "${ECHO_T}$ac_header_compiler" >&6; }
11058 # Is the header present?
11059 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11060 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11061 cat >conftest.$ac_ext <<_ACEOF
11062 /* confdefs.h. */
11063 _ACEOF
11064 cat confdefs.h >>conftest.$ac_ext
11065 cat >>conftest.$ac_ext <<_ACEOF
11066 /* end confdefs.h. */
11067 #include <$ac_header>
11068 _ACEOF
11069 if { (ac_try="$ac_cpp conftest.$ac_ext"
11070 case "(($ac_try" in
11071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11072 *) ac_try_echo=$ac_try;;
11073 esac
11074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11075 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11076 ac_status=$?
11077 grep -v '^ *+' conftest.er1 >conftest.err
11078 rm -f conftest.er1
11079 cat conftest.err >&5
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); } >/dev/null && {
11082 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11083 test ! -s conftest.err
11084 }; then
11085 ac_header_preproc=yes
11086 else
11087 echo "$as_me: failed program was:" >&5
11088 sed 's/^/| /' conftest.$ac_ext >&5
11090 ac_header_preproc=no
11093 rm -f conftest.err conftest.$ac_ext
11094 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11095 echo "${ECHO_T}$ac_header_preproc" >&6; }
11097 # So? What about this header?
11098 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11099 yes:no: )
11100 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11101 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11103 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11104 ac_header_preproc=yes
11106 no:yes:* )
11107 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11108 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11109 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11110 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11111 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11112 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11113 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11114 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11116 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11117 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11118 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11119 ( cat <<\_ASBOX
11120 ## ---------------------------------------- ##
11121 ## Report this to pgsql-bugs@postgresql.org ##
11122 ## ---------------------------------------- ##
11123 _ASBOX
11124 ) | sed "s/^/$as_me: WARNING: /" >&2
11126 esac
11127 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11130 echo $ECHO_N "(cached) $ECHO_C" >&6
11131 else
11132 eval "$as_ac_Header=\$ac_header_preproc"
11134 ac_res=`eval echo '${'$as_ac_Header'}'`
11135 { echo "$as_me:$LINENO: result: $ac_res" >&5
11136 echo "${ECHO_T}$ac_res" >&6; }
11139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11140 cat >>confdefs.h <<_ACEOF
11141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11142 _ACEOF
11144 else
11146 for ac_header in readline/history.h
11148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11153 echo $ECHO_N "(cached) $ECHO_C" >&6
11155 ac_res=`eval echo '${'$as_ac_Header'}'`
11156 { echo "$as_me:$LINENO: result: $ac_res" >&5
11157 echo "${ECHO_T}$ac_res" >&6; }
11158 else
11159 # Is the header compilable?
11160 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11161 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11162 cat >conftest.$ac_ext <<_ACEOF
11163 /* confdefs.h. */
11164 _ACEOF
11165 cat confdefs.h >>conftest.$ac_ext
11166 cat >>conftest.$ac_ext <<_ACEOF
11167 /* end confdefs.h. */
11168 $ac_includes_default
11169 #include <$ac_header>
11170 _ACEOF
11171 rm -f conftest.$ac_objext
11172 if { (ac_try="$ac_compile"
11173 case "(($ac_try" in
11174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11175 *) ac_try_echo=$ac_try;;
11176 esac
11177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11178 (eval "$ac_compile") 2>conftest.er1
11179 ac_status=$?
11180 grep -v '^ *+' conftest.er1 >conftest.err
11181 rm -f conftest.er1
11182 cat conftest.err >&5
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); } && {
11185 test -z "$ac_c_werror_flag" ||
11186 test ! -s conftest.err
11187 } && test -s conftest.$ac_objext; then
11188 ac_header_compiler=yes
11189 else
11190 echo "$as_me: failed program was:" >&5
11191 sed 's/^/| /' conftest.$ac_ext >&5
11193 ac_header_compiler=no
11196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11197 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11198 echo "${ECHO_T}$ac_header_compiler" >&6; }
11200 # Is the header present?
11201 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11202 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11203 cat >conftest.$ac_ext <<_ACEOF
11204 /* confdefs.h. */
11205 _ACEOF
11206 cat confdefs.h >>conftest.$ac_ext
11207 cat >>conftest.$ac_ext <<_ACEOF
11208 /* end confdefs.h. */
11209 #include <$ac_header>
11210 _ACEOF
11211 if { (ac_try="$ac_cpp conftest.$ac_ext"
11212 case "(($ac_try" in
11213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11214 *) ac_try_echo=$ac_try;;
11215 esac
11216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11218 ac_status=$?
11219 grep -v '^ *+' conftest.er1 >conftest.err
11220 rm -f conftest.er1
11221 cat conftest.err >&5
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); } >/dev/null && {
11224 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11225 test ! -s conftest.err
11226 }; then
11227 ac_header_preproc=yes
11228 else
11229 echo "$as_me: failed program was:" >&5
11230 sed 's/^/| /' conftest.$ac_ext >&5
11232 ac_header_preproc=no
11235 rm -f conftest.err conftest.$ac_ext
11236 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11237 echo "${ECHO_T}$ac_header_preproc" >&6; }
11239 # So? What about this header?
11240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11241 yes:no: )
11242 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11243 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11245 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11246 ac_header_preproc=yes
11248 no:yes:* )
11249 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11250 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11251 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11252 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11253 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11254 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11255 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11256 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11258 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11259 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11260 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11261 ( cat <<\_ASBOX
11262 ## ---------------------------------------- ##
11263 ## Report this to pgsql-bugs@postgresql.org ##
11264 ## ---------------------------------------- ##
11265 _ASBOX
11266 ) | sed "s/^/$as_me: WARNING: /" >&2
11268 esac
11269 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11272 echo $ECHO_N "(cached) $ECHO_C" >&6
11273 else
11274 eval "$as_ac_Header=\$ac_header_preproc"
11276 ac_res=`eval echo '${'$as_ac_Header'}'`
11277 { echo "$as_me:$LINENO: result: $ac_res" >&5
11278 echo "${ECHO_T}$ac_res" >&6; }
11281 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11282 cat >>confdefs.h <<_ACEOF
11283 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11284 _ACEOF
11288 done
11292 done
11296 done
11300 if test "$with_zlib" = yes; then
11301 if test "${ac_cv_header_zlib_h+set}" = set; then
11302 { echo "$as_me:$LINENO: checking for zlib.h" >&5
11303 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
11304 if test "${ac_cv_header_zlib_h+set}" = set; then
11305 echo $ECHO_N "(cached) $ECHO_C" >&6
11307 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11308 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
11309 else
11310 # Is the header compilable?
11311 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
11312 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
11313 cat >conftest.$ac_ext <<_ACEOF
11314 /* confdefs.h. */
11315 _ACEOF
11316 cat confdefs.h >>conftest.$ac_ext
11317 cat >>conftest.$ac_ext <<_ACEOF
11318 /* end confdefs.h. */
11319 $ac_includes_default
11320 #include <zlib.h>
11321 _ACEOF
11322 rm -f conftest.$ac_objext
11323 if { (ac_try="$ac_compile"
11324 case "(($ac_try" in
11325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11326 *) ac_try_echo=$ac_try;;
11327 esac
11328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11329 (eval "$ac_compile") 2>conftest.er1
11330 ac_status=$?
11331 grep -v '^ *+' conftest.er1 >conftest.err
11332 rm -f conftest.er1
11333 cat conftest.err >&5
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); } && {
11336 test -z "$ac_c_werror_flag" ||
11337 test ! -s conftest.err
11338 } && test -s conftest.$ac_objext; then
11339 ac_header_compiler=yes
11340 else
11341 echo "$as_me: failed program was:" >&5
11342 sed 's/^/| /' conftest.$ac_ext >&5
11344 ac_header_compiler=no
11347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11348 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11349 echo "${ECHO_T}$ac_header_compiler" >&6; }
11351 # Is the header present?
11352 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
11353 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
11354 cat >conftest.$ac_ext <<_ACEOF
11355 /* confdefs.h. */
11356 _ACEOF
11357 cat confdefs.h >>conftest.$ac_ext
11358 cat >>conftest.$ac_ext <<_ACEOF
11359 /* end confdefs.h. */
11360 #include <zlib.h>
11361 _ACEOF
11362 if { (ac_try="$ac_cpp conftest.$ac_ext"
11363 case "(($ac_try" in
11364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11365 *) ac_try_echo=$ac_try;;
11366 esac
11367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11368 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11369 ac_status=$?
11370 grep -v '^ *+' conftest.er1 >conftest.err
11371 rm -f conftest.er1
11372 cat conftest.err >&5
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); } >/dev/null && {
11375 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11376 test ! -s conftest.err
11377 }; then
11378 ac_header_preproc=yes
11379 else
11380 echo "$as_me: failed program was:" >&5
11381 sed 's/^/| /' conftest.$ac_ext >&5
11383 ac_header_preproc=no
11386 rm -f conftest.err conftest.$ac_ext
11387 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11388 echo "${ECHO_T}$ac_header_preproc" >&6; }
11390 # So? What about this header?
11391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11392 yes:no: )
11393 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11394 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11395 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
11396 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
11397 ac_header_preproc=yes
11399 no:yes:* )
11400 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
11401 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
11402 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
11403 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
11404 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
11405 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
11406 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
11407 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
11408 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
11409 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
11410 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
11411 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
11412 ( cat <<\_ASBOX
11413 ## ---------------------------------------- ##
11414 ## Report this to pgsql-bugs@postgresql.org ##
11415 ## ---------------------------------------- ##
11416 _ASBOX
11417 ) | sed "s/^/$as_me: WARNING: /" >&2
11419 esac
11420 { echo "$as_me:$LINENO: checking for zlib.h" >&5
11421 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
11422 if test "${ac_cv_header_zlib_h+set}" = set; then
11423 echo $ECHO_N "(cached) $ECHO_C" >&6
11424 else
11425 ac_cv_header_zlib_h=$ac_header_preproc
11427 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11428 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
11431 if test $ac_cv_header_zlib_h = yes; then
11433 else
11434 { { echo "$as_me:$LINENO: error: zlib header not found
11435 If you have zlib already installed, see config.log for details on the
11436 failure. It is possible the compiler isn't looking in the proper directory.
11437 Use --without-zlib to disable zlib support." >&5
11438 echo "$as_me: error: zlib header not found
11439 If you have zlib already installed, see config.log for details on the
11440 failure. It is possible the compiler isn't looking in the proper directory.
11441 Use --without-zlib to disable zlib support." >&2;}
11442 { (exit 1); exit 1; }; }
11448 if test "$with_gssapi" = yes ; then
11450 for ac_header in gssapi/gssapi.h
11452 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11454 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11457 echo $ECHO_N "(cached) $ECHO_C" >&6
11459 ac_res=`eval echo '${'$as_ac_Header'}'`
11460 { echo "$as_me:$LINENO: result: $ac_res" >&5
11461 echo "${ECHO_T}$ac_res" >&6; }
11462 else
11463 # Is the header compilable?
11464 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11465 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11466 cat >conftest.$ac_ext <<_ACEOF
11467 /* confdefs.h. */
11468 _ACEOF
11469 cat confdefs.h >>conftest.$ac_ext
11470 cat >>conftest.$ac_ext <<_ACEOF
11471 /* end confdefs.h. */
11472 $ac_includes_default
11473 #include <$ac_header>
11474 _ACEOF
11475 rm -f conftest.$ac_objext
11476 if { (ac_try="$ac_compile"
11477 case "(($ac_try" in
11478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11479 *) ac_try_echo=$ac_try;;
11480 esac
11481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11482 (eval "$ac_compile") 2>conftest.er1
11483 ac_status=$?
11484 grep -v '^ *+' conftest.er1 >conftest.err
11485 rm -f conftest.er1
11486 cat conftest.err >&5
11487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488 (exit $ac_status); } && {
11489 test -z "$ac_c_werror_flag" ||
11490 test ! -s conftest.err
11491 } && test -s conftest.$ac_objext; then
11492 ac_header_compiler=yes
11493 else
11494 echo "$as_me: failed program was:" >&5
11495 sed 's/^/| /' conftest.$ac_ext >&5
11497 ac_header_compiler=no
11500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11501 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11502 echo "${ECHO_T}$ac_header_compiler" >&6; }
11504 # Is the header present?
11505 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11506 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11507 cat >conftest.$ac_ext <<_ACEOF
11508 /* confdefs.h. */
11509 _ACEOF
11510 cat confdefs.h >>conftest.$ac_ext
11511 cat >>conftest.$ac_ext <<_ACEOF
11512 /* end confdefs.h. */
11513 #include <$ac_header>
11514 _ACEOF
11515 if { (ac_try="$ac_cpp conftest.$ac_ext"
11516 case "(($ac_try" in
11517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11518 *) ac_try_echo=$ac_try;;
11519 esac
11520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11522 ac_status=$?
11523 grep -v '^ *+' conftest.er1 >conftest.err
11524 rm -f conftest.er1
11525 cat conftest.err >&5
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); } >/dev/null && {
11528 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11529 test ! -s conftest.err
11530 }; then
11531 ac_header_preproc=yes
11532 else
11533 echo "$as_me: failed program was:" >&5
11534 sed 's/^/| /' conftest.$ac_ext >&5
11536 ac_header_preproc=no
11539 rm -f conftest.err conftest.$ac_ext
11540 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11541 echo "${ECHO_T}$ac_header_preproc" >&6; }
11543 # So? What about this header?
11544 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11545 yes:no: )
11546 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11547 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11549 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11550 ac_header_preproc=yes
11552 no:yes:* )
11553 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11554 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11555 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11556 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11557 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11558 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11559 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11560 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11562 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11563 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11564 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11565 ( cat <<\_ASBOX
11566 ## ---------------------------------------- ##
11567 ## Report this to pgsql-bugs@postgresql.org ##
11568 ## ---------------------------------------- ##
11569 _ASBOX
11570 ) | sed "s/^/$as_me: WARNING: /" >&2
11572 esac
11573 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11576 echo $ECHO_N "(cached) $ECHO_C" >&6
11577 else
11578 eval "$as_ac_Header=\$ac_header_preproc"
11580 ac_res=`eval echo '${'$as_ac_Header'}'`
11581 { echo "$as_me:$LINENO: result: $ac_res" >&5
11582 echo "${ECHO_T}$ac_res" >&6; }
11585 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11586 cat >>confdefs.h <<_ACEOF
11587 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11588 _ACEOF
11590 else
11592 for ac_header in gssapi.h
11594 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11596 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11599 echo $ECHO_N "(cached) $ECHO_C" >&6
11601 ac_res=`eval echo '${'$as_ac_Header'}'`
11602 { echo "$as_me:$LINENO: result: $ac_res" >&5
11603 echo "${ECHO_T}$ac_res" >&6; }
11604 else
11605 # Is the header compilable?
11606 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11607 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11608 cat >conftest.$ac_ext <<_ACEOF
11609 /* confdefs.h. */
11610 _ACEOF
11611 cat confdefs.h >>conftest.$ac_ext
11612 cat >>conftest.$ac_ext <<_ACEOF
11613 /* end confdefs.h. */
11614 $ac_includes_default
11615 #include <$ac_header>
11616 _ACEOF
11617 rm -f conftest.$ac_objext
11618 if { (ac_try="$ac_compile"
11619 case "(($ac_try" in
11620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11621 *) ac_try_echo=$ac_try;;
11622 esac
11623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11624 (eval "$ac_compile") 2>conftest.er1
11625 ac_status=$?
11626 grep -v '^ *+' conftest.er1 >conftest.err
11627 rm -f conftest.er1
11628 cat conftest.err >&5
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); } && {
11631 test -z "$ac_c_werror_flag" ||
11632 test ! -s conftest.err
11633 } && test -s conftest.$ac_objext; then
11634 ac_header_compiler=yes
11635 else
11636 echo "$as_me: failed program was:" >&5
11637 sed 's/^/| /' conftest.$ac_ext >&5
11639 ac_header_compiler=no
11642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11643 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11644 echo "${ECHO_T}$ac_header_compiler" >&6; }
11646 # Is the header present?
11647 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11648 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11649 cat >conftest.$ac_ext <<_ACEOF
11650 /* confdefs.h. */
11651 _ACEOF
11652 cat confdefs.h >>conftest.$ac_ext
11653 cat >>conftest.$ac_ext <<_ACEOF
11654 /* end confdefs.h. */
11655 #include <$ac_header>
11656 _ACEOF
11657 if { (ac_try="$ac_cpp conftest.$ac_ext"
11658 case "(($ac_try" in
11659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11660 *) ac_try_echo=$ac_try;;
11661 esac
11662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11664 ac_status=$?
11665 grep -v '^ *+' conftest.er1 >conftest.err
11666 rm -f conftest.er1
11667 cat conftest.err >&5
11668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669 (exit $ac_status); } >/dev/null && {
11670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11671 test ! -s conftest.err
11672 }; then
11673 ac_header_preproc=yes
11674 else
11675 echo "$as_me: failed program was:" >&5
11676 sed 's/^/| /' conftest.$ac_ext >&5
11678 ac_header_preproc=no
11681 rm -f conftest.err conftest.$ac_ext
11682 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11683 echo "${ECHO_T}$ac_header_preproc" >&6; }
11685 # So? What about this header?
11686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11687 yes:no: )
11688 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11689 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11691 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11692 ac_header_preproc=yes
11694 no:yes:* )
11695 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11696 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11697 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11698 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11699 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11700 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11701 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11702 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11704 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11705 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11706 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11707 ( cat <<\_ASBOX
11708 ## ---------------------------------------- ##
11709 ## Report this to pgsql-bugs@postgresql.org ##
11710 ## ---------------------------------------- ##
11711 _ASBOX
11712 ) | sed "s/^/$as_me: WARNING: /" >&2
11714 esac
11715 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11718 echo $ECHO_N "(cached) $ECHO_C" >&6
11719 else
11720 eval "$as_ac_Header=\$ac_header_preproc"
11722 ac_res=`eval echo '${'$as_ac_Header'}'`
11723 { echo "$as_me:$LINENO: result: $ac_res" >&5
11724 echo "${ECHO_T}$ac_res" >&6; }
11727 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11728 cat >>confdefs.h <<_ACEOF
11729 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11730 _ACEOF
11732 else
11733 { { echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
11734 echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
11735 { (exit 1); exit 1; }; }
11738 done
11742 done
11746 if test "$with_krb5" = yes ; then
11747 if test "${ac_cv_header_krb5_h+set}" = set; then
11748 { echo "$as_me:$LINENO: checking for krb5.h" >&5
11749 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
11750 if test "${ac_cv_header_krb5_h+set}" = set; then
11751 echo $ECHO_N "(cached) $ECHO_C" >&6
11753 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
11754 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
11755 else
11756 # Is the header compilable?
11757 { echo "$as_me:$LINENO: checking krb5.h usability" >&5
11758 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6; }
11759 cat >conftest.$ac_ext <<_ACEOF
11760 /* confdefs.h. */
11761 _ACEOF
11762 cat confdefs.h >>conftest.$ac_ext
11763 cat >>conftest.$ac_ext <<_ACEOF
11764 /* end confdefs.h. */
11765 $ac_includes_default
11766 #include <krb5.h>
11767 _ACEOF
11768 rm -f conftest.$ac_objext
11769 if { (ac_try="$ac_compile"
11770 case "(($ac_try" in
11771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11772 *) ac_try_echo=$ac_try;;
11773 esac
11774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11775 (eval "$ac_compile") 2>conftest.er1
11776 ac_status=$?
11777 grep -v '^ *+' conftest.er1 >conftest.err
11778 rm -f conftest.er1
11779 cat conftest.err >&5
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); } && {
11782 test -z "$ac_c_werror_flag" ||
11783 test ! -s conftest.err
11784 } && test -s conftest.$ac_objext; then
11785 ac_header_compiler=yes
11786 else
11787 echo "$as_me: failed program was:" >&5
11788 sed 's/^/| /' conftest.$ac_ext >&5
11790 ac_header_compiler=no
11793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11794 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11795 echo "${ECHO_T}$ac_header_compiler" >&6; }
11797 # Is the header present?
11798 { echo "$as_me:$LINENO: checking krb5.h presence" >&5
11799 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6; }
11800 cat >conftest.$ac_ext <<_ACEOF
11801 /* confdefs.h. */
11802 _ACEOF
11803 cat confdefs.h >>conftest.$ac_ext
11804 cat >>conftest.$ac_ext <<_ACEOF
11805 /* end confdefs.h. */
11806 #include <krb5.h>
11807 _ACEOF
11808 if { (ac_try="$ac_cpp conftest.$ac_ext"
11809 case "(($ac_try" in
11810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11811 *) ac_try_echo=$ac_try;;
11812 esac
11813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11815 ac_status=$?
11816 grep -v '^ *+' conftest.er1 >conftest.err
11817 rm -f conftest.er1
11818 cat conftest.err >&5
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); } >/dev/null && {
11821 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11822 test ! -s conftest.err
11823 }; then
11824 ac_header_preproc=yes
11825 else
11826 echo "$as_me: failed program was:" >&5
11827 sed 's/^/| /' conftest.$ac_ext >&5
11829 ac_header_preproc=no
11832 rm -f conftest.err conftest.$ac_ext
11833 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11834 echo "${ECHO_T}$ac_header_preproc" >&6; }
11836 # So? What about this header?
11837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11838 yes:no: )
11839 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
11840 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11841 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
11842 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
11843 ac_header_preproc=yes
11845 no:yes:* )
11846 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
11847 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
11848 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
11849 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
11850 { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
11851 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
11852 { echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
11853 echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
11854 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
11855 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
11856 { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
11857 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
11858 ( cat <<\_ASBOX
11859 ## ---------------------------------------- ##
11860 ## Report this to pgsql-bugs@postgresql.org ##
11861 ## ---------------------------------------- ##
11862 _ASBOX
11863 ) | sed "s/^/$as_me: WARNING: /" >&2
11865 esac
11866 { echo "$as_me:$LINENO: checking for krb5.h" >&5
11867 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
11868 if test "${ac_cv_header_krb5_h+set}" = set; then
11869 echo $ECHO_N "(cached) $ECHO_C" >&6
11870 else
11871 ac_cv_header_krb5_h=$ac_header_preproc
11873 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
11874 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
11877 if test $ac_cv_header_krb5_h = yes; then
11879 else
11880 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
11881 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
11882 { (exit 1); exit 1; }; }
11888 if test "$with_openssl" = yes ; then
11889 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11890 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
11891 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
11892 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11893 echo $ECHO_N "(cached) $ECHO_C" >&6
11895 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
11896 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
11897 else
11898 # Is the header compilable?
11899 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
11900 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
11901 cat >conftest.$ac_ext <<_ACEOF
11902 /* confdefs.h. */
11903 _ACEOF
11904 cat confdefs.h >>conftest.$ac_ext
11905 cat >>conftest.$ac_ext <<_ACEOF
11906 /* end confdefs.h. */
11907 $ac_includes_default
11908 #include <openssl/ssl.h>
11909 _ACEOF
11910 rm -f conftest.$ac_objext
11911 if { (ac_try="$ac_compile"
11912 case "(($ac_try" in
11913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11914 *) ac_try_echo=$ac_try;;
11915 esac
11916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11917 (eval "$ac_compile") 2>conftest.er1
11918 ac_status=$?
11919 grep -v '^ *+' conftest.er1 >conftest.err
11920 rm -f conftest.er1
11921 cat conftest.err >&5
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); } && {
11924 test -z "$ac_c_werror_flag" ||
11925 test ! -s conftest.err
11926 } && test -s conftest.$ac_objext; then
11927 ac_header_compiler=yes
11928 else
11929 echo "$as_me: failed program was:" >&5
11930 sed 's/^/| /' conftest.$ac_ext >&5
11932 ac_header_compiler=no
11935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11936 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11937 echo "${ECHO_T}$ac_header_compiler" >&6; }
11939 # Is the header present?
11940 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
11941 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
11942 cat >conftest.$ac_ext <<_ACEOF
11943 /* confdefs.h. */
11944 _ACEOF
11945 cat confdefs.h >>conftest.$ac_ext
11946 cat >>conftest.$ac_ext <<_ACEOF
11947 /* end confdefs.h. */
11948 #include <openssl/ssl.h>
11949 _ACEOF
11950 if { (ac_try="$ac_cpp conftest.$ac_ext"
11951 case "(($ac_try" in
11952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11953 *) ac_try_echo=$ac_try;;
11954 esac
11955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11957 ac_status=$?
11958 grep -v '^ *+' conftest.er1 >conftest.err
11959 rm -f conftest.er1
11960 cat conftest.err >&5
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); } >/dev/null && {
11963 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11964 test ! -s conftest.err
11965 }; then
11966 ac_header_preproc=yes
11967 else
11968 echo "$as_me: failed program was:" >&5
11969 sed 's/^/| /' conftest.$ac_ext >&5
11971 ac_header_preproc=no
11974 rm -f conftest.err conftest.$ac_ext
11975 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11976 echo "${ECHO_T}$ac_header_preproc" >&6; }
11978 # So? What about this header?
11979 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11980 yes:no: )
11981 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
11982 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11983 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
11984 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
11985 ac_header_preproc=yes
11987 no:yes:* )
11988 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
11989 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
11990 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
11991 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
11992 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
11993 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
11994 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
11995 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
11996 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
11997 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
11998 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
11999 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12000 ( cat <<\_ASBOX
12001 ## ---------------------------------------- ##
12002 ## Report this to pgsql-bugs@postgresql.org ##
12003 ## ---------------------------------------- ##
12004 _ASBOX
12005 ) | sed "s/^/$as_me: WARNING: /" >&2
12007 esac
12008 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12009 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
12010 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12011 echo $ECHO_N "(cached) $ECHO_C" >&6
12012 else
12013 ac_cv_header_openssl_ssl_h=$ac_header_preproc
12015 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12016 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
12019 if test $ac_cv_header_openssl_ssl_h = yes; then
12021 else
12022 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
12023 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
12024 { (exit 1); exit 1; }; }
12028 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12029 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12030 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
12031 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12032 echo $ECHO_N "(cached) $ECHO_C" >&6
12034 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12035 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
12036 else
12037 # Is the header compilable?
12038 { echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
12039 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6; }
12040 cat >conftest.$ac_ext <<_ACEOF
12041 /* confdefs.h. */
12042 _ACEOF
12043 cat confdefs.h >>conftest.$ac_ext
12044 cat >>conftest.$ac_ext <<_ACEOF
12045 /* end confdefs.h. */
12046 $ac_includes_default
12047 #include <openssl/err.h>
12048 _ACEOF
12049 rm -f conftest.$ac_objext
12050 if { (ac_try="$ac_compile"
12051 case "(($ac_try" in
12052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12053 *) ac_try_echo=$ac_try;;
12054 esac
12055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12056 (eval "$ac_compile") 2>conftest.er1
12057 ac_status=$?
12058 grep -v '^ *+' conftest.er1 >conftest.err
12059 rm -f conftest.er1
12060 cat conftest.err >&5
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); } && {
12063 test -z "$ac_c_werror_flag" ||
12064 test ! -s conftest.err
12065 } && test -s conftest.$ac_objext; then
12066 ac_header_compiler=yes
12067 else
12068 echo "$as_me: failed program was:" >&5
12069 sed 's/^/| /' conftest.$ac_ext >&5
12071 ac_header_compiler=no
12074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12075 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12076 echo "${ECHO_T}$ac_header_compiler" >&6; }
12078 # Is the header present?
12079 { echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
12080 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6; }
12081 cat >conftest.$ac_ext <<_ACEOF
12082 /* confdefs.h. */
12083 _ACEOF
12084 cat confdefs.h >>conftest.$ac_ext
12085 cat >>conftest.$ac_ext <<_ACEOF
12086 /* end confdefs.h. */
12087 #include <openssl/err.h>
12088 _ACEOF
12089 if { (ac_try="$ac_cpp conftest.$ac_ext"
12090 case "(($ac_try" in
12091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12092 *) ac_try_echo=$ac_try;;
12093 esac
12094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12096 ac_status=$?
12097 grep -v '^ *+' conftest.er1 >conftest.err
12098 rm -f conftest.er1
12099 cat conftest.err >&5
12100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); } >/dev/null && {
12102 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12103 test ! -s conftest.err
12104 }; then
12105 ac_header_preproc=yes
12106 else
12107 echo "$as_me: failed program was:" >&5
12108 sed 's/^/| /' conftest.$ac_ext >&5
12110 ac_header_preproc=no
12113 rm -f conftest.err conftest.$ac_ext
12114 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12115 echo "${ECHO_T}$ac_header_preproc" >&6; }
12117 # So? What about this header?
12118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12119 yes:no: )
12120 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
12121 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12122 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
12123 echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
12124 ac_header_preproc=yes
12126 no:yes:* )
12127 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
12128 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
12129 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
12130 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
12131 { echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
12132 echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
12133 { echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
12134 echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
12135 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
12136 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
12137 { echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
12138 echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
12139 ( cat <<\_ASBOX
12140 ## ---------------------------------------- ##
12141 ## Report this to pgsql-bugs@postgresql.org ##
12142 ## ---------------------------------------- ##
12143 _ASBOX
12144 ) | sed "s/^/$as_me: WARNING: /" >&2
12146 esac
12147 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12148 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
12149 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12150 echo $ECHO_N "(cached) $ECHO_C" >&6
12151 else
12152 ac_cv_header_openssl_err_h=$ac_header_preproc
12154 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12155 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
12158 if test $ac_cv_header_openssl_err_h = yes; then
12160 else
12161 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
12162 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
12163 { (exit 1); exit 1; }; }
12168 for ac_func in ERR_set_mark
12170 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12171 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12172 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12173 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12174 echo $ECHO_N "(cached) $ECHO_C" >&6
12175 else
12176 cat >conftest.$ac_ext <<_ACEOF
12177 /* confdefs.h. */
12178 _ACEOF
12179 cat confdefs.h >>conftest.$ac_ext
12180 cat >>conftest.$ac_ext <<_ACEOF
12181 /* end confdefs.h. */
12182 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12184 #define $ac_func innocuous_$ac_func
12186 /* System header to define __stub macros and hopefully few prototypes,
12187 which can conflict with char $ac_func (); below.
12188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12189 <limits.h> exists even on freestanding compilers. */
12191 #ifdef __STDC__
12192 # include <limits.h>
12193 #else
12194 # include <assert.h>
12195 #endif
12197 #undef $ac_func
12199 /* Override any GCC internal prototype to avoid an error.
12200 Use char because int might match the return type of a GCC
12201 builtin and then its argument prototype would still apply. */
12202 #ifdef __cplusplus
12203 extern "C"
12204 #endif
12205 char $ac_func ();
12206 /* The GNU C library defines this for functions which it implements
12207 to always fail with ENOSYS. Some functions are actually named
12208 something starting with __ and the normal name is an alias. */
12209 #if defined __stub_$ac_func || defined __stub___$ac_func
12210 choke me
12211 #endif
12214 main ()
12216 return $ac_func ();
12218 return 0;
12220 _ACEOF
12221 rm -f conftest.$ac_objext conftest$ac_exeext
12222 if { (ac_try="$ac_link"
12223 case "(($ac_try" in
12224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12225 *) ac_try_echo=$ac_try;;
12226 esac
12227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12228 (eval "$ac_link") 2>conftest.er1
12229 ac_status=$?
12230 grep -v '^ *+' conftest.er1 >conftest.err
12231 rm -f conftest.er1
12232 cat conftest.err >&5
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); } && {
12235 test -z "$ac_c_werror_flag" ||
12236 test ! -s conftest.err
12237 } && test -s conftest$ac_exeext &&
12238 $as_test_x conftest$ac_exeext; then
12239 eval "$as_ac_var=yes"
12240 else
12241 echo "$as_me: failed program was:" >&5
12242 sed 's/^/| /' conftest.$ac_ext >&5
12244 eval "$as_ac_var=no"
12247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12248 conftest$ac_exeext conftest.$ac_ext
12250 ac_res=`eval echo '${'$as_ac_var'}'`
12251 { echo "$as_me:$LINENO: result: $ac_res" >&5
12252 echo "${ECHO_T}$ac_res" >&6; }
12253 if test `eval echo '${'$as_ac_var'}'` = yes; then
12254 cat >>confdefs.h <<_ACEOF
12255 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12256 _ACEOF
12259 done
12263 if test "$with_pam" = yes ; then
12265 for ac_header in security/pam_appl.h
12267 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12269 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12272 echo $ECHO_N "(cached) $ECHO_C" >&6
12274 ac_res=`eval echo '${'$as_ac_Header'}'`
12275 { echo "$as_me:$LINENO: result: $ac_res" >&5
12276 echo "${ECHO_T}$ac_res" >&6; }
12277 else
12278 # Is the header compilable?
12279 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12280 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12281 cat >conftest.$ac_ext <<_ACEOF
12282 /* confdefs.h. */
12283 _ACEOF
12284 cat confdefs.h >>conftest.$ac_ext
12285 cat >>conftest.$ac_ext <<_ACEOF
12286 /* end confdefs.h. */
12287 $ac_includes_default
12288 #include <$ac_header>
12289 _ACEOF
12290 rm -f conftest.$ac_objext
12291 if { (ac_try="$ac_compile"
12292 case "(($ac_try" in
12293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12294 *) ac_try_echo=$ac_try;;
12295 esac
12296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12297 (eval "$ac_compile") 2>conftest.er1
12298 ac_status=$?
12299 grep -v '^ *+' conftest.er1 >conftest.err
12300 rm -f conftest.er1
12301 cat conftest.err >&5
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); } && {
12304 test -z "$ac_c_werror_flag" ||
12305 test ! -s conftest.err
12306 } && test -s conftest.$ac_objext; then
12307 ac_header_compiler=yes
12308 else
12309 echo "$as_me: failed program was:" >&5
12310 sed 's/^/| /' conftest.$ac_ext >&5
12312 ac_header_compiler=no
12315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12316 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12317 echo "${ECHO_T}$ac_header_compiler" >&6; }
12319 # Is the header present?
12320 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12321 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12322 cat >conftest.$ac_ext <<_ACEOF
12323 /* confdefs.h. */
12324 _ACEOF
12325 cat confdefs.h >>conftest.$ac_ext
12326 cat >>conftest.$ac_ext <<_ACEOF
12327 /* end confdefs.h. */
12328 #include <$ac_header>
12329 _ACEOF
12330 if { (ac_try="$ac_cpp conftest.$ac_ext"
12331 case "(($ac_try" in
12332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12333 *) ac_try_echo=$ac_try;;
12334 esac
12335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12336 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12337 ac_status=$?
12338 grep -v '^ *+' conftest.er1 >conftest.err
12339 rm -f conftest.er1
12340 cat conftest.err >&5
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); } >/dev/null && {
12343 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12344 test ! -s conftest.err
12345 }; then
12346 ac_header_preproc=yes
12347 else
12348 echo "$as_me: failed program was:" >&5
12349 sed 's/^/| /' conftest.$ac_ext >&5
12351 ac_header_preproc=no
12354 rm -f conftest.err conftest.$ac_ext
12355 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12356 echo "${ECHO_T}$ac_header_preproc" >&6; }
12358 # So? What about this header?
12359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12360 yes:no: )
12361 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12362 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12364 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12365 ac_header_preproc=yes
12367 no:yes:* )
12368 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12369 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12370 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12371 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12372 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12373 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12374 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12375 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12377 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12378 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12379 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12380 ( cat <<\_ASBOX
12381 ## ---------------------------------------- ##
12382 ## Report this to pgsql-bugs@postgresql.org ##
12383 ## ---------------------------------------- ##
12384 _ASBOX
12385 ) | sed "s/^/$as_me: WARNING: /" >&2
12387 esac
12388 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12391 echo $ECHO_N "(cached) $ECHO_C" >&6
12392 else
12393 eval "$as_ac_Header=\$ac_header_preproc"
12395 ac_res=`eval echo '${'$as_ac_Header'}'`
12396 { echo "$as_me:$LINENO: result: $ac_res" >&5
12397 echo "${ECHO_T}$ac_res" >&6; }
12400 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12401 cat >>confdefs.h <<_ACEOF
12402 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12403 _ACEOF
12405 else
12407 for ac_header in pam/pam_appl.h
12409 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12411 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12414 echo $ECHO_N "(cached) $ECHO_C" >&6
12416 ac_res=`eval echo '${'$as_ac_Header'}'`
12417 { echo "$as_me:$LINENO: result: $ac_res" >&5
12418 echo "${ECHO_T}$ac_res" >&6; }
12419 else
12420 # Is the header compilable?
12421 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12422 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12423 cat >conftest.$ac_ext <<_ACEOF
12424 /* confdefs.h. */
12425 _ACEOF
12426 cat confdefs.h >>conftest.$ac_ext
12427 cat >>conftest.$ac_ext <<_ACEOF
12428 /* end confdefs.h. */
12429 $ac_includes_default
12430 #include <$ac_header>
12431 _ACEOF
12432 rm -f conftest.$ac_objext
12433 if { (ac_try="$ac_compile"
12434 case "(($ac_try" in
12435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12436 *) ac_try_echo=$ac_try;;
12437 esac
12438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12439 (eval "$ac_compile") 2>conftest.er1
12440 ac_status=$?
12441 grep -v '^ *+' conftest.er1 >conftest.err
12442 rm -f conftest.er1
12443 cat conftest.err >&5
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); } && {
12446 test -z "$ac_c_werror_flag" ||
12447 test ! -s conftest.err
12448 } && test -s conftest.$ac_objext; then
12449 ac_header_compiler=yes
12450 else
12451 echo "$as_me: failed program was:" >&5
12452 sed 's/^/| /' conftest.$ac_ext >&5
12454 ac_header_compiler=no
12457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12458 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12459 echo "${ECHO_T}$ac_header_compiler" >&6; }
12461 # Is the header present?
12462 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12463 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12464 cat >conftest.$ac_ext <<_ACEOF
12465 /* confdefs.h. */
12466 _ACEOF
12467 cat confdefs.h >>conftest.$ac_ext
12468 cat >>conftest.$ac_ext <<_ACEOF
12469 /* end confdefs.h. */
12470 #include <$ac_header>
12471 _ACEOF
12472 if { (ac_try="$ac_cpp conftest.$ac_ext"
12473 case "(($ac_try" in
12474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12475 *) ac_try_echo=$ac_try;;
12476 esac
12477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12478 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12479 ac_status=$?
12480 grep -v '^ *+' conftest.er1 >conftest.err
12481 rm -f conftest.er1
12482 cat conftest.err >&5
12483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484 (exit $ac_status); } >/dev/null && {
12485 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12486 test ! -s conftest.err
12487 }; then
12488 ac_header_preproc=yes
12489 else
12490 echo "$as_me: failed program was:" >&5
12491 sed 's/^/| /' conftest.$ac_ext >&5
12493 ac_header_preproc=no
12496 rm -f conftest.err conftest.$ac_ext
12497 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12498 echo "${ECHO_T}$ac_header_preproc" >&6; }
12500 # So? What about this header?
12501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12502 yes:no: )
12503 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12504 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12506 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12507 ac_header_preproc=yes
12509 no:yes:* )
12510 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12511 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12512 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12513 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12514 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12515 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12516 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12517 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12519 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12520 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12521 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12522 ( cat <<\_ASBOX
12523 ## ---------------------------------------- ##
12524 ## Report this to pgsql-bugs@postgresql.org ##
12525 ## ---------------------------------------- ##
12526 _ASBOX
12527 ) | sed "s/^/$as_me: WARNING: /" >&2
12529 esac
12530 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12531 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12533 echo $ECHO_N "(cached) $ECHO_C" >&6
12534 else
12535 eval "$as_ac_Header=\$ac_header_preproc"
12537 ac_res=`eval echo '${'$as_ac_Header'}'`
12538 { echo "$as_me:$LINENO: result: $ac_res" >&5
12539 echo "${ECHO_T}$ac_res" >&6; }
12542 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12543 cat >>confdefs.h <<_ACEOF
12544 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12545 _ACEOF
12547 else
12548 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
12549 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
12550 { (exit 1); exit 1; }; }
12553 done
12557 done
12561 if test "$with_libxml" = yes ; then
12562 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12563 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12564 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
12565 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12566 echo $ECHO_N "(cached) $ECHO_C" >&6
12568 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12569 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
12570 else
12571 # Is the header compilable?
12572 { echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
12573 echo $ECHO_N "checking libxml/parser.h usability... $ECHO_C" >&6; }
12574 cat >conftest.$ac_ext <<_ACEOF
12575 /* confdefs.h. */
12576 _ACEOF
12577 cat confdefs.h >>conftest.$ac_ext
12578 cat >>conftest.$ac_ext <<_ACEOF
12579 /* end confdefs.h. */
12580 $ac_includes_default
12581 #include <libxml/parser.h>
12582 _ACEOF
12583 rm -f conftest.$ac_objext
12584 if { (ac_try="$ac_compile"
12585 case "(($ac_try" in
12586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12587 *) ac_try_echo=$ac_try;;
12588 esac
12589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12590 (eval "$ac_compile") 2>conftest.er1
12591 ac_status=$?
12592 grep -v '^ *+' conftest.er1 >conftest.err
12593 rm -f conftest.er1
12594 cat conftest.err >&5
12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); } && {
12597 test -z "$ac_c_werror_flag" ||
12598 test ! -s conftest.err
12599 } && test -s conftest.$ac_objext; then
12600 ac_header_compiler=yes
12601 else
12602 echo "$as_me: failed program was:" >&5
12603 sed 's/^/| /' conftest.$ac_ext >&5
12605 ac_header_compiler=no
12608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12609 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12610 echo "${ECHO_T}$ac_header_compiler" >&6; }
12612 # Is the header present?
12613 { echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
12614 echo $ECHO_N "checking libxml/parser.h presence... $ECHO_C" >&6; }
12615 cat >conftest.$ac_ext <<_ACEOF
12616 /* confdefs.h. */
12617 _ACEOF
12618 cat confdefs.h >>conftest.$ac_ext
12619 cat >>conftest.$ac_ext <<_ACEOF
12620 /* end confdefs.h. */
12621 #include <libxml/parser.h>
12622 _ACEOF
12623 if { (ac_try="$ac_cpp conftest.$ac_ext"
12624 case "(($ac_try" in
12625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12626 *) ac_try_echo=$ac_try;;
12627 esac
12628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12630 ac_status=$?
12631 grep -v '^ *+' conftest.er1 >conftest.err
12632 rm -f conftest.er1
12633 cat conftest.err >&5
12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); } >/dev/null && {
12636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12637 test ! -s conftest.err
12638 }; then
12639 ac_header_preproc=yes
12640 else
12641 echo "$as_me: failed program was:" >&5
12642 sed 's/^/| /' conftest.$ac_ext >&5
12644 ac_header_preproc=no
12647 rm -f conftest.err conftest.$ac_ext
12648 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12649 echo "${ECHO_T}$ac_header_preproc" >&6; }
12651 # So? What about this header?
12652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12653 yes:no: )
12654 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
12655 echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12656 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
12657 echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
12658 ac_header_preproc=yes
12660 no:yes:* )
12661 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
12662 echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
12663 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
12664 echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
12665 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
12666 echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
12667 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
12668 echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
12669 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
12670 echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
12671 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
12672 echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
12673 ( cat <<\_ASBOX
12674 ## ---------------------------------------- ##
12675 ## Report this to pgsql-bugs@postgresql.org ##
12676 ## ---------------------------------------- ##
12677 _ASBOX
12678 ) | sed "s/^/$as_me: WARNING: /" >&2
12680 esac
12681 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12682 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
12683 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12684 echo $ECHO_N "(cached) $ECHO_C" >&6
12685 else
12686 ac_cv_header_libxml_parser_h=$ac_header_preproc
12688 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12689 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
12692 if test $ac_cv_header_libxml_parser_h = yes; then
12694 else
12695 { { echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
12696 echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
12697 { (exit 1); exit 1; }; }
12703 if test "$with_libxslt" = yes ; then
12704 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12705 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
12706 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
12707 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12708 echo $ECHO_N "(cached) $ECHO_C" >&6
12710 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
12711 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
12712 else
12713 # Is the header compilable?
12714 { echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
12715 echo $ECHO_N "checking libxslt/xslt.h usability... $ECHO_C" >&6; }
12716 cat >conftest.$ac_ext <<_ACEOF
12717 /* confdefs.h. */
12718 _ACEOF
12719 cat confdefs.h >>conftest.$ac_ext
12720 cat >>conftest.$ac_ext <<_ACEOF
12721 /* end confdefs.h. */
12722 $ac_includes_default
12723 #include <libxslt/xslt.h>
12724 _ACEOF
12725 rm -f conftest.$ac_objext
12726 if { (ac_try="$ac_compile"
12727 case "(($ac_try" in
12728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12729 *) ac_try_echo=$ac_try;;
12730 esac
12731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12732 (eval "$ac_compile") 2>conftest.er1
12733 ac_status=$?
12734 grep -v '^ *+' conftest.er1 >conftest.err
12735 rm -f conftest.er1
12736 cat conftest.err >&5
12737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738 (exit $ac_status); } && {
12739 test -z "$ac_c_werror_flag" ||
12740 test ! -s conftest.err
12741 } && test -s conftest.$ac_objext; then
12742 ac_header_compiler=yes
12743 else
12744 echo "$as_me: failed program was:" >&5
12745 sed 's/^/| /' conftest.$ac_ext >&5
12747 ac_header_compiler=no
12750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12751 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12752 echo "${ECHO_T}$ac_header_compiler" >&6; }
12754 # Is the header present?
12755 { echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
12756 echo $ECHO_N "checking libxslt/xslt.h presence... $ECHO_C" >&6; }
12757 cat >conftest.$ac_ext <<_ACEOF
12758 /* confdefs.h. */
12759 _ACEOF
12760 cat confdefs.h >>conftest.$ac_ext
12761 cat >>conftest.$ac_ext <<_ACEOF
12762 /* end confdefs.h. */
12763 #include <libxslt/xslt.h>
12764 _ACEOF
12765 if { (ac_try="$ac_cpp conftest.$ac_ext"
12766 case "(($ac_try" in
12767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12768 *) ac_try_echo=$ac_try;;
12769 esac
12770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12772 ac_status=$?
12773 grep -v '^ *+' conftest.er1 >conftest.err
12774 rm -f conftest.er1
12775 cat conftest.err >&5
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); } >/dev/null && {
12778 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12779 test ! -s conftest.err
12780 }; then
12781 ac_header_preproc=yes
12782 else
12783 echo "$as_me: failed program was:" >&5
12784 sed 's/^/| /' conftest.$ac_ext >&5
12786 ac_header_preproc=no
12789 rm -f conftest.err conftest.$ac_ext
12790 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12791 echo "${ECHO_T}$ac_header_preproc" >&6; }
12793 # So? What about this header?
12794 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12795 yes:no: )
12796 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
12797 echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12798 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
12799 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
12800 ac_header_preproc=yes
12802 no:yes:* )
12803 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
12804 echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
12805 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
12806 echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
12807 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
12808 echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
12809 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
12810 echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
12811 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
12812 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
12813 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
12814 echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
12815 ( cat <<\_ASBOX
12816 ## ---------------------------------------- ##
12817 ## Report this to pgsql-bugs@postgresql.org ##
12818 ## ---------------------------------------- ##
12819 _ASBOX
12820 ) | sed "s/^/$as_me: WARNING: /" >&2
12822 esac
12823 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
12824 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
12825 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12826 echo $ECHO_N "(cached) $ECHO_C" >&6
12827 else
12828 ac_cv_header_libxslt_xslt_h=$ac_header_preproc
12830 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
12831 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
12834 if test $ac_cv_header_libxslt_xslt_h = yes; then
12836 else
12837 { { echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
12838 echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
12839 { (exit 1); exit 1; }; }
12845 if test "$with_ldap" = yes ; then
12846 if test "$PORTNAME" != "win32"; then
12848 for ac_header in ldap.h
12850 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12852 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12855 echo $ECHO_N "(cached) $ECHO_C" >&6
12857 ac_res=`eval echo '${'$as_ac_Header'}'`
12858 { echo "$as_me:$LINENO: result: $ac_res" >&5
12859 echo "${ECHO_T}$ac_res" >&6; }
12860 else
12861 # Is the header compilable?
12862 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12863 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12864 cat >conftest.$ac_ext <<_ACEOF
12865 /* confdefs.h. */
12866 _ACEOF
12867 cat confdefs.h >>conftest.$ac_ext
12868 cat >>conftest.$ac_ext <<_ACEOF
12869 /* end confdefs.h. */
12870 $ac_includes_default
12871 #include <$ac_header>
12872 _ACEOF
12873 rm -f conftest.$ac_objext
12874 if { (ac_try="$ac_compile"
12875 case "(($ac_try" in
12876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12877 *) ac_try_echo=$ac_try;;
12878 esac
12879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12880 (eval "$ac_compile") 2>conftest.er1
12881 ac_status=$?
12882 grep -v '^ *+' conftest.er1 >conftest.err
12883 rm -f conftest.er1
12884 cat conftest.err >&5
12885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886 (exit $ac_status); } && {
12887 test -z "$ac_c_werror_flag" ||
12888 test ! -s conftest.err
12889 } && test -s conftest.$ac_objext; then
12890 ac_header_compiler=yes
12891 else
12892 echo "$as_me: failed program was:" >&5
12893 sed 's/^/| /' conftest.$ac_ext >&5
12895 ac_header_compiler=no
12898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12899 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12900 echo "${ECHO_T}$ac_header_compiler" >&6; }
12902 # Is the header present?
12903 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12904 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12905 cat >conftest.$ac_ext <<_ACEOF
12906 /* confdefs.h. */
12907 _ACEOF
12908 cat confdefs.h >>conftest.$ac_ext
12909 cat >>conftest.$ac_ext <<_ACEOF
12910 /* end confdefs.h. */
12911 #include <$ac_header>
12912 _ACEOF
12913 if { (ac_try="$ac_cpp conftest.$ac_ext"
12914 case "(($ac_try" in
12915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12916 *) ac_try_echo=$ac_try;;
12917 esac
12918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12919 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12920 ac_status=$?
12921 grep -v '^ *+' conftest.er1 >conftest.err
12922 rm -f conftest.er1
12923 cat conftest.err >&5
12924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925 (exit $ac_status); } >/dev/null && {
12926 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12927 test ! -s conftest.err
12928 }; then
12929 ac_header_preproc=yes
12930 else
12931 echo "$as_me: failed program was:" >&5
12932 sed 's/^/| /' conftest.$ac_ext >&5
12934 ac_header_preproc=no
12937 rm -f conftest.err conftest.$ac_ext
12938 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12939 echo "${ECHO_T}$ac_header_preproc" >&6; }
12941 # So? What about this header?
12942 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12943 yes:no: )
12944 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12945 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12947 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12948 ac_header_preproc=yes
12950 no:yes:* )
12951 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12952 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12953 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12954 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12955 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12956 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12957 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12958 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12959 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12960 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12961 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12962 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12963 ( cat <<\_ASBOX
12964 ## ---------------------------------------- ##
12965 ## Report this to pgsql-bugs@postgresql.org ##
12966 ## ---------------------------------------- ##
12967 _ASBOX
12968 ) | sed "s/^/$as_me: WARNING: /" >&2
12970 esac
12971 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12973 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12974 echo $ECHO_N "(cached) $ECHO_C" >&6
12975 else
12976 eval "$as_ac_Header=\$ac_header_preproc"
12978 ac_res=`eval echo '${'$as_ac_Header'}'`
12979 { echo "$as_me:$LINENO: result: $ac_res" >&5
12980 echo "${ECHO_T}$ac_res" >&6; }
12983 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12984 cat >>confdefs.h <<_ACEOF
12985 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12986 _ACEOF
12988 else
12989 { { echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
12990 echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
12991 { (exit 1); exit 1; }; }
12994 done
12996 else
12998 for ac_header in winldap.h
13000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13001 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13004 echo $ECHO_N "(cached) $ECHO_C" >&6
13005 else
13006 cat >conftest.$ac_ext <<_ACEOF
13007 /* confdefs.h. */
13008 _ACEOF
13009 cat confdefs.h >>conftest.$ac_ext
13010 cat >>conftest.$ac_ext <<_ACEOF
13011 /* end confdefs.h. */
13012 $ac_includes_default
13013 #include <windows.h>
13016 #include <$ac_header>
13017 _ACEOF
13018 rm -f conftest.$ac_objext
13019 if { (ac_try="$ac_compile"
13020 case "(($ac_try" in
13021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13022 *) ac_try_echo=$ac_try;;
13023 esac
13024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13025 (eval "$ac_compile") 2>conftest.er1
13026 ac_status=$?
13027 grep -v '^ *+' conftest.er1 >conftest.err
13028 rm -f conftest.er1
13029 cat conftest.err >&5
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); } && {
13032 test -z "$ac_c_werror_flag" ||
13033 test ! -s conftest.err
13034 } && test -s conftest.$ac_objext; then
13035 eval "$as_ac_Header=yes"
13036 else
13037 echo "$as_me: failed program was:" >&5
13038 sed 's/^/| /' conftest.$ac_ext >&5
13040 eval "$as_ac_Header=no"
13043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13045 ac_res=`eval echo '${'$as_ac_Header'}'`
13046 { echo "$as_me:$LINENO: result: $ac_res" >&5
13047 echo "${ECHO_T}$ac_res" >&6; }
13048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13049 cat >>confdefs.h <<_ACEOF
13050 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13051 _ACEOF
13053 else
13054 { { echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
13055 echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
13056 { (exit 1); exit 1; }; }
13059 done
13064 if test "$with_bonjour" = yes ; then
13065 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
13066 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
13067 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
13068 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
13069 echo $ECHO_N "(cached) $ECHO_C" >&6
13071 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
13072 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
13073 else
13074 # Is the header compilable?
13075 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
13076 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6; }
13077 cat >conftest.$ac_ext <<_ACEOF
13078 /* confdefs.h. */
13079 _ACEOF
13080 cat confdefs.h >>conftest.$ac_ext
13081 cat >>conftest.$ac_ext <<_ACEOF
13082 /* end confdefs.h. */
13083 $ac_includes_default
13084 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
13085 _ACEOF
13086 rm -f conftest.$ac_objext
13087 if { (ac_try="$ac_compile"
13088 case "(($ac_try" in
13089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13090 *) ac_try_echo=$ac_try;;
13091 esac
13092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13093 (eval "$ac_compile") 2>conftest.er1
13094 ac_status=$?
13095 grep -v '^ *+' conftest.er1 >conftest.err
13096 rm -f conftest.er1
13097 cat conftest.err >&5
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); } && {
13100 test -z "$ac_c_werror_flag" ||
13101 test ! -s conftest.err
13102 } && test -s conftest.$ac_objext; then
13103 ac_header_compiler=yes
13104 else
13105 echo "$as_me: failed program was:" >&5
13106 sed 's/^/| /' conftest.$ac_ext >&5
13108 ac_header_compiler=no
13111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13112 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13113 echo "${ECHO_T}$ac_header_compiler" >&6; }
13115 # Is the header present?
13116 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
13117 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6; }
13118 cat >conftest.$ac_ext <<_ACEOF
13119 /* confdefs.h. */
13120 _ACEOF
13121 cat confdefs.h >>conftest.$ac_ext
13122 cat >>conftest.$ac_ext <<_ACEOF
13123 /* end confdefs.h. */
13124 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
13125 _ACEOF
13126 if { (ac_try="$ac_cpp conftest.$ac_ext"
13127 case "(($ac_try" in
13128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13129 *) ac_try_echo=$ac_try;;
13130 esac
13131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13133 ac_status=$?
13134 grep -v '^ *+' conftest.er1 >conftest.err
13135 rm -f conftest.er1
13136 cat conftest.err >&5
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); } >/dev/null && {
13139 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13140 test ! -s conftest.err
13141 }; then
13142 ac_header_preproc=yes
13143 else
13144 echo "$as_me: failed program was:" >&5
13145 sed 's/^/| /' conftest.$ac_ext >&5
13147 ac_header_preproc=no
13150 rm -f conftest.err conftest.$ac_ext
13151 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13152 echo "${ECHO_T}$ac_header_preproc" >&6; }
13154 # So? What about this header?
13155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13156 yes:no: )
13157 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
13158 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13159 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
13160 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
13161 ac_header_preproc=yes
13163 no:yes:* )
13164 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
13165 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
13166 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
13167 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
13168 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
13169 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
13170 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&5
13171 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&2;}
13172 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
13173 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
13174 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
13175 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
13176 ( cat <<\_ASBOX
13177 ## ---------------------------------------- ##
13178 ## Report this to pgsql-bugs@postgresql.org ##
13179 ## ---------------------------------------- ##
13180 _ASBOX
13181 ) | sed "s/^/$as_me: WARNING: /" >&2
13183 esac
13184 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
13185 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
13186 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
13187 echo $ECHO_N "(cached) $ECHO_C" >&6
13188 else
13189 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
13191 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
13192 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
13195 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
13197 else
13198 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
13199 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
13200 { (exit 1); exit 1; }; }
13206 # for contrib/uuid-ossp
13207 if test "$with_ossp_uuid" = yes ; then
13209 for ac_header in ossp/uuid.h
13211 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13213 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13215 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13216 echo $ECHO_N "(cached) $ECHO_C" >&6
13218 ac_res=`eval echo '${'$as_ac_Header'}'`
13219 { echo "$as_me:$LINENO: result: $ac_res" >&5
13220 echo "${ECHO_T}$ac_res" >&6; }
13221 else
13222 # Is the header compilable?
13223 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13224 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13225 cat >conftest.$ac_ext <<_ACEOF
13226 /* confdefs.h. */
13227 _ACEOF
13228 cat confdefs.h >>conftest.$ac_ext
13229 cat >>conftest.$ac_ext <<_ACEOF
13230 /* end confdefs.h. */
13231 $ac_includes_default
13232 #include <$ac_header>
13233 _ACEOF
13234 rm -f conftest.$ac_objext
13235 if { (ac_try="$ac_compile"
13236 case "(($ac_try" in
13237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13238 *) ac_try_echo=$ac_try;;
13239 esac
13240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13241 (eval "$ac_compile") 2>conftest.er1
13242 ac_status=$?
13243 grep -v '^ *+' conftest.er1 >conftest.err
13244 rm -f conftest.er1
13245 cat conftest.err >&5
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); } && {
13248 test -z "$ac_c_werror_flag" ||
13249 test ! -s conftest.err
13250 } && test -s conftest.$ac_objext; then
13251 ac_header_compiler=yes
13252 else
13253 echo "$as_me: failed program was:" >&5
13254 sed 's/^/| /' conftest.$ac_ext >&5
13256 ac_header_compiler=no
13259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13260 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13261 echo "${ECHO_T}$ac_header_compiler" >&6; }
13263 # Is the header present?
13264 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13265 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13266 cat >conftest.$ac_ext <<_ACEOF
13267 /* confdefs.h. */
13268 _ACEOF
13269 cat confdefs.h >>conftest.$ac_ext
13270 cat >>conftest.$ac_ext <<_ACEOF
13271 /* end confdefs.h. */
13272 #include <$ac_header>
13273 _ACEOF
13274 if { (ac_try="$ac_cpp conftest.$ac_ext"
13275 case "(($ac_try" in
13276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13277 *) ac_try_echo=$ac_try;;
13278 esac
13279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13281 ac_status=$?
13282 grep -v '^ *+' conftest.er1 >conftest.err
13283 rm -f conftest.er1
13284 cat conftest.err >&5
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); } >/dev/null && {
13287 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13288 test ! -s conftest.err
13289 }; then
13290 ac_header_preproc=yes
13291 else
13292 echo "$as_me: failed program was:" >&5
13293 sed 's/^/| /' conftest.$ac_ext >&5
13295 ac_header_preproc=no
13298 rm -f conftest.err conftest.$ac_ext
13299 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13300 echo "${ECHO_T}$ac_header_preproc" >&6; }
13302 # So? What about this header?
13303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13304 yes:no: )
13305 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13306 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13308 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13309 ac_header_preproc=yes
13311 no:yes:* )
13312 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13313 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13314 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13315 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13316 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13317 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13318 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13319 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13321 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13322 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13323 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13324 ( cat <<\_ASBOX
13325 ## ---------------------------------------- ##
13326 ## Report this to pgsql-bugs@postgresql.org ##
13327 ## ---------------------------------------- ##
13328 _ASBOX
13329 ) | sed "s/^/$as_me: WARNING: /" >&2
13331 esac
13332 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13335 echo $ECHO_N "(cached) $ECHO_C" >&6
13336 else
13337 eval "$as_ac_Header=\$ac_header_preproc"
13339 ac_res=`eval echo '${'$as_ac_Header'}'`
13340 { echo "$as_me:$LINENO: result: $ac_res" >&5
13341 echo "${ECHO_T}$ac_res" >&6; }
13344 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13345 cat >>confdefs.h <<_ACEOF
13346 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13347 _ACEOF
13349 else
13352 for ac_header in uuid.h
13354 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13356 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13359 echo $ECHO_N "(cached) $ECHO_C" >&6
13361 ac_res=`eval echo '${'$as_ac_Header'}'`
13362 { echo "$as_me:$LINENO: result: $ac_res" >&5
13363 echo "${ECHO_T}$ac_res" >&6; }
13364 else
13365 # Is the header compilable?
13366 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13367 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13368 cat >conftest.$ac_ext <<_ACEOF
13369 /* confdefs.h. */
13370 _ACEOF
13371 cat confdefs.h >>conftest.$ac_ext
13372 cat >>conftest.$ac_ext <<_ACEOF
13373 /* end confdefs.h. */
13374 $ac_includes_default
13375 #include <$ac_header>
13376 _ACEOF
13377 rm -f conftest.$ac_objext
13378 if { (ac_try="$ac_compile"
13379 case "(($ac_try" in
13380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13381 *) ac_try_echo=$ac_try;;
13382 esac
13383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13384 (eval "$ac_compile") 2>conftest.er1
13385 ac_status=$?
13386 grep -v '^ *+' conftest.er1 >conftest.err
13387 rm -f conftest.er1
13388 cat conftest.err >&5
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); } && {
13391 test -z "$ac_c_werror_flag" ||
13392 test ! -s conftest.err
13393 } && test -s conftest.$ac_objext; then
13394 ac_header_compiler=yes
13395 else
13396 echo "$as_me: failed program was:" >&5
13397 sed 's/^/| /' conftest.$ac_ext >&5
13399 ac_header_compiler=no
13402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13403 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13404 echo "${ECHO_T}$ac_header_compiler" >&6; }
13406 # Is the header present?
13407 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13408 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13409 cat >conftest.$ac_ext <<_ACEOF
13410 /* confdefs.h. */
13411 _ACEOF
13412 cat confdefs.h >>conftest.$ac_ext
13413 cat >>conftest.$ac_ext <<_ACEOF
13414 /* end confdefs.h. */
13415 #include <$ac_header>
13416 _ACEOF
13417 if { (ac_try="$ac_cpp conftest.$ac_ext"
13418 case "(($ac_try" in
13419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13420 *) ac_try_echo=$ac_try;;
13421 esac
13422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13423 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13424 ac_status=$?
13425 grep -v '^ *+' conftest.er1 >conftest.err
13426 rm -f conftest.er1
13427 cat conftest.err >&5
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); } >/dev/null && {
13430 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13431 test ! -s conftest.err
13432 }; then
13433 ac_header_preproc=yes
13434 else
13435 echo "$as_me: failed program was:" >&5
13436 sed 's/^/| /' conftest.$ac_ext >&5
13438 ac_header_preproc=no
13441 rm -f conftest.err conftest.$ac_ext
13442 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13443 echo "${ECHO_T}$ac_header_preproc" >&6; }
13445 # So? What about this header?
13446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13447 yes:no: )
13448 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13451 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13452 ac_header_preproc=yes
13454 no:yes:* )
13455 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13457 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13458 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13459 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13460 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13461 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13462 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13465 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13466 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13467 ( cat <<\_ASBOX
13468 ## ---------------------------------------- ##
13469 ## Report this to pgsql-bugs@postgresql.org ##
13470 ## ---------------------------------------- ##
13471 _ASBOX
13472 ) | sed "s/^/$as_me: WARNING: /" >&2
13474 esac
13475 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13478 echo $ECHO_N "(cached) $ECHO_C" >&6
13479 else
13480 eval "$as_ac_Header=\$ac_header_preproc"
13482 ac_res=`eval echo '${'$as_ac_Header'}'`
13483 { echo "$as_me:$LINENO: result: $ac_res" >&5
13484 echo "${ECHO_T}$ac_res" >&6; }
13487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13488 cat >>confdefs.h <<_ACEOF
13489 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13490 _ACEOF
13492 else
13493 { { echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
13494 echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
13495 { (exit 1); exit 1; }; }
13498 done
13502 done
13508 ## Types, structures, compiler characteristics
13511 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13512 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
13513 if test "${ac_cv_c_bigendian+set}" = set; then
13514 echo $ECHO_N "(cached) $ECHO_C" >&6
13515 else
13516 # See if sys/param.h defines the BYTE_ORDER macro.
13517 cat >conftest.$ac_ext <<_ACEOF
13518 /* confdefs.h. */
13519 _ACEOF
13520 cat confdefs.h >>conftest.$ac_ext
13521 cat >>conftest.$ac_ext <<_ACEOF
13522 /* end confdefs.h. */
13523 #include <sys/types.h>
13524 #include <sys/param.h>
13527 main ()
13529 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
13530 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
13531 bogus endian macros
13532 #endif
13535 return 0;
13537 _ACEOF
13538 rm -f conftest.$ac_objext
13539 if { (ac_try="$ac_compile"
13540 case "(($ac_try" in
13541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13542 *) ac_try_echo=$ac_try;;
13543 esac
13544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13545 (eval "$ac_compile") 2>conftest.er1
13546 ac_status=$?
13547 grep -v '^ *+' conftest.er1 >conftest.err
13548 rm -f conftest.er1
13549 cat conftest.err >&5
13550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551 (exit $ac_status); } && {
13552 test -z "$ac_c_werror_flag" ||
13553 test ! -s conftest.err
13554 } && test -s conftest.$ac_objext; then
13555 # It does; now see whether it defined to BIG_ENDIAN or not.
13556 cat >conftest.$ac_ext <<_ACEOF
13557 /* confdefs.h. */
13558 _ACEOF
13559 cat confdefs.h >>conftest.$ac_ext
13560 cat >>conftest.$ac_ext <<_ACEOF
13561 /* end confdefs.h. */
13562 #include <sys/types.h>
13563 #include <sys/param.h>
13566 main ()
13568 #if BYTE_ORDER != BIG_ENDIAN
13569 not big endian
13570 #endif
13573 return 0;
13575 _ACEOF
13576 rm -f conftest.$ac_objext
13577 if { (ac_try="$ac_compile"
13578 case "(($ac_try" in
13579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13580 *) ac_try_echo=$ac_try;;
13581 esac
13582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13583 (eval "$ac_compile") 2>conftest.er1
13584 ac_status=$?
13585 grep -v '^ *+' conftest.er1 >conftest.err
13586 rm -f conftest.er1
13587 cat conftest.err >&5
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); } && {
13590 test -z "$ac_c_werror_flag" ||
13591 test ! -s conftest.err
13592 } && test -s conftest.$ac_objext; then
13593 ac_cv_c_bigendian=yes
13594 else
13595 echo "$as_me: failed program was:" >&5
13596 sed 's/^/| /' conftest.$ac_ext >&5
13598 ac_cv_c_bigendian=no
13601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13602 else
13603 echo "$as_me: failed program was:" >&5
13604 sed 's/^/| /' conftest.$ac_ext >&5
13606 # It does not; compile a test program.
13607 if test "$cross_compiling" = yes; then
13608 # try to guess the endianness by grepping values into an object file
13609 ac_cv_c_bigendian=unknown
13610 cat >conftest.$ac_ext <<_ACEOF
13611 /* confdefs.h. */
13612 _ACEOF
13613 cat confdefs.h >>conftest.$ac_ext
13614 cat >>conftest.$ac_ext <<_ACEOF
13615 /* end confdefs.h. */
13616 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13617 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13618 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
13619 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13620 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13621 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
13623 main ()
13625 _ascii (); _ebcdic ();
13627 return 0;
13629 _ACEOF
13630 rm -f conftest.$ac_objext
13631 if { (ac_try="$ac_compile"
13632 case "(($ac_try" in
13633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13634 *) ac_try_echo=$ac_try;;
13635 esac
13636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13637 (eval "$ac_compile") 2>conftest.er1
13638 ac_status=$?
13639 grep -v '^ *+' conftest.er1 >conftest.err
13640 rm -f conftest.er1
13641 cat conftest.err >&5
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); } && {
13644 test -z "$ac_c_werror_flag" ||
13645 test ! -s conftest.err
13646 } && test -s conftest.$ac_objext; then
13647 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
13648 ac_cv_c_bigendian=yes
13650 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13651 if test "$ac_cv_c_bigendian" = unknown; then
13652 ac_cv_c_bigendian=no
13653 else
13654 # finding both strings is unlikely to happen, but who knows?
13655 ac_cv_c_bigendian=unknown
13658 else
13659 echo "$as_me: failed program was:" >&5
13660 sed 's/^/| /' conftest.$ac_ext >&5
13665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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. */
13673 $ac_includes_default
13675 main ()
13678 /* Are we little or big endian? From Harbison&Steele. */
13679 union
13681 long int l;
13682 char c[sizeof (long int)];
13683 } u;
13684 u.l = 1;
13685 return u.c[sizeof (long int) - 1] == 1;
13688 return 0;
13690 _ACEOF
13691 rm -f conftest$ac_exeext
13692 if { (ac_try="$ac_link"
13693 case "(($ac_try" in
13694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13695 *) ac_try_echo=$ac_try;;
13696 esac
13697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13698 (eval "$ac_link") 2>&5
13699 ac_status=$?
13700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13701 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13702 { (case "(($ac_try" in
13703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13704 *) ac_try_echo=$ac_try;;
13705 esac
13706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13707 (eval "$ac_try") 2>&5
13708 ac_status=$?
13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); }; }; then
13711 ac_cv_c_bigendian=no
13712 else
13713 echo "$as_me: program exited with status $ac_status" >&5
13714 echo "$as_me: failed program was:" >&5
13715 sed 's/^/| /' conftest.$ac_ext >&5
13717 ( exit $ac_status )
13718 ac_cv_c_bigendian=yes
13720 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13728 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13729 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
13730 case $ac_cv_c_bigendian in
13731 yes)
13733 cat >>confdefs.h <<\_ACEOF
13734 #define WORDS_BIGENDIAN 1
13735 _ACEOF
13740 { { echo "$as_me:$LINENO: error: unknown endianness
13741 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
13742 echo "$as_me: error: unknown endianness
13743 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
13744 { (exit 1); exit 1; }; } ;;
13745 esac
13747 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13748 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
13749 if test "${ac_cv_c_const+set}" = set; then
13750 echo $ECHO_N "(cached) $ECHO_C" >&6
13751 else
13752 cat >conftest.$ac_ext <<_ACEOF
13753 /* confdefs.h. */
13754 _ACEOF
13755 cat confdefs.h >>conftest.$ac_ext
13756 cat >>conftest.$ac_ext <<_ACEOF
13757 /* end confdefs.h. */
13760 main ()
13762 /* FIXME: Include the comments suggested by Paul. */
13763 #ifndef __cplusplus
13764 /* Ultrix mips cc rejects this. */
13765 typedef int charset[2];
13766 const charset cs;
13767 /* SunOS 4.1.1 cc rejects this. */
13768 char const *const *pcpcc;
13769 char **ppc;
13770 /* NEC SVR4.0.2 mips cc rejects this. */
13771 struct point {int x, y;};
13772 static struct point const zero = {0,0};
13773 /* AIX XL C 1.02.0.0 rejects this.
13774 It does not let you subtract one const X* pointer from another in
13775 an arm of an if-expression whose if-part is not a constant
13776 expression */
13777 const char *g = "string";
13778 pcpcc = &g + (g ? g-g : 0);
13779 /* HPUX 7.0 cc rejects these. */
13780 ++pcpcc;
13781 ppc = (char**) pcpcc;
13782 pcpcc = (char const *const *) ppc;
13783 { /* SCO 3.2v4 cc rejects this. */
13784 char *t;
13785 char const *s = 0 ? (char *) 0 : (char const *) 0;
13787 *t++ = 0;
13788 if (s) return 0;
13790 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13791 int x[] = {25, 17};
13792 const int *foo = &x[0];
13793 ++foo;
13795 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13796 typedef const int *iptr;
13797 iptr p = 0;
13798 ++p;
13800 { /* AIX XL C 1.02.0.0 rejects this saying
13801 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13802 struct s { int j; const int *ap[3]; };
13803 struct s *b; b->j = 5;
13805 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13806 const int foo = 10;
13807 if (!foo) return 0;
13809 return !cs[0] && !zero.x;
13810 #endif
13813 return 0;
13815 _ACEOF
13816 rm -f conftest.$ac_objext
13817 if { (ac_try="$ac_compile"
13818 case "(($ac_try" in
13819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13820 *) ac_try_echo=$ac_try;;
13821 esac
13822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13823 (eval "$ac_compile") 2>conftest.er1
13824 ac_status=$?
13825 grep -v '^ *+' conftest.er1 >conftest.err
13826 rm -f conftest.er1
13827 cat conftest.err >&5
13828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829 (exit $ac_status); } && {
13830 test -z "$ac_c_werror_flag" ||
13831 test ! -s conftest.err
13832 } && test -s conftest.$ac_objext; then
13833 ac_cv_c_const=yes
13834 else
13835 echo "$as_me: failed program was:" >&5
13836 sed 's/^/| /' conftest.$ac_ext >&5
13838 ac_cv_c_const=no
13841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13843 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13844 echo "${ECHO_T}$ac_cv_c_const" >&6; }
13845 if test $ac_cv_c_const = no; then
13847 cat >>confdefs.h <<\_ACEOF
13848 #define const
13849 _ACEOF
13853 { echo "$as_me:$LINENO: checking for inline" >&5
13854 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
13855 if test "${ac_cv_c_inline+set}" = set; then
13856 echo $ECHO_N "(cached) $ECHO_C" >&6
13857 else
13858 ac_cv_c_inline=no
13859 for ac_kw in inline __inline__ __inline; do
13860 cat >conftest.$ac_ext <<_ACEOF
13861 /* confdefs.h. */
13862 _ACEOF
13863 cat confdefs.h >>conftest.$ac_ext
13864 cat >>conftest.$ac_ext <<_ACEOF
13865 /* end confdefs.h. */
13866 #ifndef __cplusplus
13867 typedef int foo_t;
13868 static $ac_kw foo_t static_foo () {return 0; }
13869 $ac_kw foo_t foo () {return 0; }
13870 #endif
13872 _ACEOF
13873 rm -f conftest.$ac_objext
13874 if { (ac_try="$ac_compile"
13875 case "(($ac_try" in
13876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13877 *) ac_try_echo=$ac_try;;
13878 esac
13879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13880 (eval "$ac_compile") 2>conftest.er1
13881 ac_status=$?
13882 grep -v '^ *+' conftest.er1 >conftest.err
13883 rm -f conftest.er1
13884 cat conftest.err >&5
13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); } && {
13887 test -z "$ac_c_werror_flag" ||
13888 test ! -s conftest.err
13889 } && test -s conftest.$ac_objext; then
13890 ac_cv_c_inline=$ac_kw
13891 else
13892 echo "$as_me: failed program was:" >&5
13893 sed 's/^/| /' conftest.$ac_ext >&5
13898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13899 test "$ac_cv_c_inline" != no && break
13900 done
13903 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13904 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
13907 case $ac_cv_c_inline in
13908 inline | yes) ;;
13910 case $ac_cv_c_inline in
13911 no) ac_val=;;
13912 *) ac_val=$ac_cv_c_inline;;
13913 esac
13914 cat >>confdefs.h <<_ACEOF
13915 #ifndef __cplusplus
13916 #define inline $ac_val
13917 #endif
13918 _ACEOF
13920 esac
13922 { echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
13923 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6; }
13924 if test "${ac_cv_c_stringize+set}" = set; then
13925 echo $ECHO_N "(cached) $ECHO_C" >&6
13926 else
13927 cat >conftest.$ac_ext <<_ACEOF
13928 /* confdefs.h. */
13929 _ACEOF
13930 cat confdefs.h >>conftest.$ac_ext
13931 cat >>conftest.$ac_ext <<_ACEOF
13932 /* end confdefs.h. */
13933 #define x(y) #y
13935 char *s = x(teststring);
13936 _ACEOF
13937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13938 $EGREP "#teststring" >/dev/null 2>&1; then
13939 ac_cv_c_stringize=no
13940 else
13941 ac_cv_c_stringize=yes
13943 rm -f conftest*
13946 { echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
13947 echo "${ECHO_T}$ac_cv_c_stringize" >&6; }
13948 if test $ac_cv_c_stringize = yes; then
13950 cat >>confdefs.h <<\_ACEOF
13951 #define HAVE_STRINGIZE 1
13952 _ACEOF
13956 { echo "$as_me:$LINENO: checking for signed types" >&5
13957 echo $ECHO_N "checking for signed types... $ECHO_C" >&6; }
13958 if test "${pgac_cv_c_signed+set}" = set; then
13959 echo $ECHO_N "(cached) $ECHO_C" >&6
13960 else
13961 cat >conftest.$ac_ext <<_ACEOF
13962 /* confdefs.h. */
13963 _ACEOF
13964 cat confdefs.h >>conftest.$ac_ext
13965 cat >>conftest.$ac_ext <<_ACEOF
13966 /* end confdefs.h. */
13969 main ()
13971 signed char c; signed short s; signed int i;
13973 return 0;
13975 _ACEOF
13976 rm -f conftest.$ac_objext
13977 if { (ac_try="$ac_compile"
13978 case "(($ac_try" in
13979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13980 *) ac_try_echo=$ac_try;;
13981 esac
13982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13983 (eval "$ac_compile") 2>conftest.er1
13984 ac_status=$?
13985 grep -v '^ *+' conftest.er1 >conftest.err
13986 rm -f conftest.er1
13987 cat conftest.err >&5
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); } && {
13990 test -z "$ac_c_werror_flag" ||
13991 test ! -s conftest.err
13992 } && test -s conftest.$ac_objext; then
13993 pgac_cv_c_signed=yes
13994 else
13995 echo "$as_me: failed program was:" >&5
13996 sed 's/^/| /' conftest.$ac_ext >&5
13998 pgac_cv_c_signed=no
14001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14003 { echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
14004 echo "${ECHO_T}$pgac_cv_c_signed" >&6; }
14005 if test x"$pgac_cv_c_signed" = xno ; then
14007 cat >>confdefs.h <<\_ACEOF
14008 #define signed
14009 _ACEOF
14012 { echo "$as_me:$LINENO: checking for working volatile" >&5
14013 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
14014 if test "${ac_cv_c_volatile+set}" = set; then
14015 echo $ECHO_N "(cached) $ECHO_C" >&6
14016 else
14017 cat >conftest.$ac_ext <<_ACEOF
14018 /* confdefs.h. */
14019 _ACEOF
14020 cat confdefs.h >>conftest.$ac_ext
14021 cat >>conftest.$ac_ext <<_ACEOF
14022 /* end confdefs.h. */
14025 main ()
14028 volatile int x;
14029 int * volatile y = (int *) 0;
14030 return !x && !y;
14032 return 0;
14034 _ACEOF
14035 rm -f conftest.$ac_objext
14036 if { (ac_try="$ac_compile"
14037 case "(($ac_try" in
14038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14039 *) ac_try_echo=$ac_try;;
14040 esac
14041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14042 (eval "$ac_compile") 2>conftest.er1
14043 ac_status=$?
14044 grep -v '^ *+' conftest.er1 >conftest.err
14045 rm -f conftest.er1
14046 cat conftest.err >&5
14047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048 (exit $ac_status); } && {
14049 test -z "$ac_c_werror_flag" ||
14050 test ! -s conftest.err
14051 } && test -s conftest.$ac_objext; then
14052 ac_cv_c_volatile=yes
14053 else
14054 echo "$as_me: failed program was:" >&5
14055 sed 's/^/| /' conftest.$ac_ext >&5
14057 ac_cv_c_volatile=no
14060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14062 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
14063 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
14064 if test $ac_cv_c_volatile = no; then
14066 cat >>confdefs.h <<\_ACEOF
14067 #define volatile
14068 _ACEOF
14072 { echo "$as_me:$LINENO: checking for __func__" >&5
14073 echo $ECHO_N "checking for __func__... $ECHO_C" >&6; }
14074 if test "${pgac_cv_funcname_func_support+set}" = set; then
14075 echo $ECHO_N "(cached) $ECHO_C" >&6
14076 else
14077 cat >conftest.$ac_ext <<_ACEOF
14078 /* confdefs.h. */
14079 _ACEOF
14080 cat confdefs.h >>conftest.$ac_ext
14081 cat >>conftest.$ac_ext <<_ACEOF
14082 /* end confdefs.h. */
14083 #include <stdio.h>
14085 main ()
14087 printf("%s\n", __func__);
14089 return 0;
14091 _ACEOF
14092 rm -f conftest.$ac_objext
14093 if { (ac_try="$ac_compile"
14094 case "(($ac_try" in
14095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14096 *) ac_try_echo=$ac_try;;
14097 esac
14098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14099 (eval "$ac_compile") 2>conftest.er1
14100 ac_status=$?
14101 grep -v '^ *+' conftest.er1 >conftest.err
14102 rm -f conftest.er1
14103 cat conftest.err >&5
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); } && {
14106 test -z "$ac_c_werror_flag" ||
14107 test ! -s conftest.err
14108 } && test -s conftest.$ac_objext; then
14109 pgac_cv_funcname_func_support=yes
14110 else
14111 echo "$as_me: failed program was:" >&5
14112 sed 's/^/| /' conftest.$ac_ext >&5
14114 pgac_cv_funcname_func_support=no
14117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14119 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
14120 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6; }
14121 if test x"$pgac_cv_funcname_func_support" = xyes ; then
14123 cat >>confdefs.h <<\_ACEOF
14124 #define HAVE_FUNCNAME__FUNC 1
14125 _ACEOF
14127 else
14128 { echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
14129 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6; }
14130 if test "${pgac_cv_funcname_function_support+set}" = set; then
14131 echo $ECHO_N "(cached) $ECHO_C" >&6
14132 else
14133 cat >conftest.$ac_ext <<_ACEOF
14134 /* confdefs.h. */
14135 _ACEOF
14136 cat confdefs.h >>conftest.$ac_ext
14137 cat >>conftest.$ac_ext <<_ACEOF
14138 /* end confdefs.h. */
14139 #include <stdio.h>
14141 main ()
14143 printf("%s\n", __FUNCTION__);
14145 return 0;
14147 _ACEOF
14148 rm -f conftest.$ac_objext
14149 if { (ac_try="$ac_compile"
14150 case "(($ac_try" in
14151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14152 *) ac_try_echo=$ac_try;;
14153 esac
14154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14155 (eval "$ac_compile") 2>conftest.er1
14156 ac_status=$?
14157 grep -v '^ *+' conftest.er1 >conftest.err
14158 rm -f conftest.er1
14159 cat conftest.err >&5
14160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); } && {
14162 test -z "$ac_c_werror_flag" ||
14163 test ! -s conftest.err
14164 } && test -s conftest.$ac_objext; then
14165 pgac_cv_funcname_function_support=yes
14166 else
14167 echo "$as_me: failed program was:" >&5
14168 sed 's/^/| /' conftest.$ac_ext >&5
14170 pgac_cv_funcname_function_support=no
14173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14175 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
14176 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6; }
14177 if test x"$pgac_cv_funcname_function_support" = xyes ; then
14179 cat >>confdefs.h <<\_ACEOF
14180 #define HAVE_FUNCNAME__FUNCTION 1
14181 _ACEOF
14185 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14186 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
14187 if test "${ac_cv_struct_tm+set}" = set; then
14188 echo $ECHO_N "(cached) $ECHO_C" >&6
14189 else
14190 cat >conftest.$ac_ext <<_ACEOF
14191 /* confdefs.h. */
14192 _ACEOF
14193 cat confdefs.h >>conftest.$ac_ext
14194 cat >>conftest.$ac_ext <<_ACEOF
14195 /* end confdefs.h. */
14196 #include <sys/types.h>
14197 #include <time.h>
14200 main ()
14202 struct tm tm;
14203 int *p = &tm.tm_sec;
14204 return !p;
14206 return 0;
14208 _ACEOF
14209 rm -f conftest.$ac_objext
14210 if { (ac_try="$ac_compile"
14211 case "(($ac_try" in
14212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14213 *) ac_try_echo=$ac_try;;
14214 esac
14215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14216 (eval "$ac_compile") 2>conftest.er1
14217 ac_status=$?
14218 grep -v '^ *+' conftest.er1 >conftest.err
14219 rm -f conftest.er1
14220 cat conftest.err >&5
14221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 (exit $ac_status); } && {
14223 test -z "$ac_c_werror_flag" ||
14224 test ! -s conftest.err
14225 } && test -s conftest.$ac_objext; then
14226 ac_cv_struct_tm=time.h
14227 else
14228 echo "$as_me: failed program was:" >&5
14229 sed 's/^/| /' conftest.$ac_ext >&5
14231 ac_cv_struct_tm=sys/time.h
14234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14236 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14237 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
14238 if test $ac_cv_struct_tm = sys/time.h; then
14240 cat >>confdefs.h <<\_ACEOF
14241 #define TM_IN_SYS_TIME 1
14242 _ACEOF
14246 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
14247 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
14248 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
14249 echo $ECHO_N "(cached) $ECHO_C" >&6
14250 else
14251 cat >conftest.$ac_ext <<_ACEOF
14252 /* confdefs.h. */
14253 _ACEOF
14254 cat confdefs.h >>conftest.$ac_ext
14255 cat >>conftest.$ac_ext <<_ACEOF
14256 /* end confdefs.h. */
14257 #include <sys/types.h>
14258 #include <$ac_cv_struct_tm>
14262 main ()
14264 static struct tm ac_aggr;
14265 if (ac_aggr.tm_zone)
14266 return 0;
14268 return 0;
14270 _ACEOF
14271 rm -f conftest.$ac_objext
14272 if { (ac_try="$ac_compile"
14273 case "(($ac_try" in
14274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14275 *) ac_try_echo=$ac_try;;
14276 esac
14277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14278 (eval "$ac_compile") 2>conftest.er1
14279 ac_status=$?
14280 grep -v '^ *+' conftest.er1 >conftest.err
14281 rm -f conftest.er1
14282 cat conftest.err >&5
14283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284 (exit $ac_status); } && {
14285 test -z "$ac_c_werror_flag" ||
14286 test ! -s conftest.err
14287 } && test -s conftest.$ac_objext; then
14288 ac_cv_member_struct_tm_tm_zone=yes
14289 else
14290 echo "$as_me: failed program was:" >&5
14291 sed 's/^/| /' conftest.$ac_ext >&5
14293 cat >conftest.$ac_ext <<_ACEOF
14294 /* confdefs.h. */
14295 _ACEOF
14296 cat confdefs.h >>conftest.$ac_ext
14297 cat >>conftest.$ac_ext <<_ACEOF
14298 /* end confdefs.h. */
14299 #include <sys/types.h>
14300 #include <$ac_cv_struct_tm>
14304 main ()
14306 static struct tm ac_aggr;
14307 if (sizeof ac_aggr.tm_zone)
14308 return 0;
14310 return 0;
14312 _ACEOF
14313 rm -f conftest.$ac_objext
14314 if { (ac_try="$ac_compile"
14315 case "(($ac_try" in
14316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14317 *) ac_try_echo=$ac_try;;
14318 esac
14319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14320 (eval "$ac_compile") 2>conftest.er1
14321 ac_status=$?
14322 grep -v '^ *+' conftest.er1 >conftest.err
14323 rm -f conftest.er1
14324 cat conftest.err >&5
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); } && {
14327 test -z "$ac_c_werror_flag" ||
14328 test ! -s conftest.err
14329 } && test -s conftest.$ac_objext; then
14330 ac_cv_member_struct_tm_tm_zone=yes
14331 else
14332 echo "$as_me: failed program was:" >&5
14333 sed 's/^/| /' conftest.$ac_ext >&5
14335 ac_cv_member_struct_tm_tm_zone=no
14338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14343 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
14344 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
14345 if test $ac_cv_member_struct_tm_tm_zone = yes; then
14347 cat >>confdefs.h <<_ACEOF
14348 #define HAVE_STRUCT_TM_TM_ZONE 1
14349 _ACEOF
14354 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
14356 cat >>confdefs.h <<\_ACEOF
14357 #define HAVE_TM_ZONE 1
14358 _ACEOF
14361 { echo "$as_me:$LINENO: checking for tzname" >&5
14362 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
14363 if test "${ac_cv_var_tzname+set}" = set; then
14364 echo $ECHO_N "(cached) $ECHO_C" >&6
14365 else
14366 cat >conftest.$ac_ext <<_ACEOF
14367 /* confdefs.h. */
14368 _ACEOF
14369 cat confdefs.h >>conftest.$ac_ext
14370 cat >>conftest.$ac_ext <<_ACEOF
14371 /* end confdefs.h. */
14372 #include <time.h>
14373 #ifndef tzname /* For SGI. */
14374 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
14375 #endif
14378 main ()
14380 atoi(*tzname);
14382 return 0;
14384 _ACEOF
14385 rm -f conftest.$ac_objext conftest$ac_exeext
14386 if { (ac_try="$ac_link"
14387 case "(($ac_try" in
14388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14389 *) ac_try_echo=$ac_try;;
14390 esac
14391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14392 (eval "$ac_link") 2>conftest.er1
14393 ac_status=$?
14394 grep -v '^ *+' conftest.er1 >conftest.err
14395 rm -f conftest.er1
14396 cat conftest.err >&5
14397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398 (exit $ac_status); } && {
14399 test -z "$ac_c_werror_flag" ||
14400 test ! -s conftest.err
14401 } && test -s conftest$ac_exeext &&
14402 $as_test_x conftest$ac_exeext; then
14403 ac_cv_var_tzname=yes
14404 else
14405 echo "$as_me: failed program was:" >&5
14406 sed 's/^/| /' conftest.$ac_ext >&5
14408 ac_cv_var_tzname=no
14411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14412 conftest$ac_exeext conftest.$ac_ext
14414 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
14415 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
14416 if test $ac_cv_var_tzname = yes; then
14418 cat >>confdefs.h <<\_ACEOF
14419 #define HAVE_TZNAME 1
14420 _ACEOF
14424 { echo "$as_me:$LINENO: checking for union semun" >&5
14425 echo $ECHO_N "checking for union semun... $ECHO_C" >&6; }
14426 if test "${ac_cv_type_union_semun+set}" = set; then
14427 echo $ECHO_N "(cached) $ECHO_C" >&6
14428 else
14429 cat >conftest.$ac_ext <<_ACEOF
14430 /* confdefs.h. */
14431 _ACEOF
14432 cat confdefs.h >>conftest.$ac_ext
14433 cat >>conftest.$ac_ext <<_ACEOF
14434 /* end confdefs.h. */
14435 #include <sys/types.h>
14436 #include <sys/ipc.h>
14437 #include <sys/sem.h>
14439 typedef union semun ac__type_new_;
14441 main ()
14443 if ((ac__type_new_ *) 0)
14444 return 0;
14445 if (sizeof (ac__type_new_))
14446 return 0;
14448 return 0;
14450 _ACEOF
14451 rm -f conftest.$ac_objext
14452 if { (ac_try="$ac_compile"
14453 case "(($ac_try" in
14454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14455 *) ac_try_echo=$ac_try;;
14456 esac
14457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14458 (eval "$ac_compile") 2>conftest.er1
14459 ac_status=$?
14460 grep -v '^ *+' conftest.er1 >conftest.err
14461 rm -f conftest.er1
14462 cat conftest.err >&5
14463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 (exit $ac_status); } && {
14465 test -z "$ac_c_werror_flag" ||
14466 test ! -s conftest.err
14467 } && test -s conftest.$ac_objext; then
14468 ac_cv_type_union_semun=yes
14469 else
14470 echo "$as_me: failed program was:" >&5
14471 sed 's/^/| /' conftest.$ac_ext >&5
14473 ac_cv_type_union_semun=no
14476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14478 { echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
14479 echo "${ECHO_T}$ac_cv_type_union_semun" >&6; }
14480 if test $ac_cv_type_union_semun = yes; then
14482 cat >>confdefs.h <<_ACEOF
14483 #define HAVE_UNION_SEMUN 1
14484 _ACEOF
14489 { echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
14490 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6; }
14491 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
14492 echo $ECHO_N "(cached) $ECHO_C" >&6
14493 else
14494 cat >conftest.$ac_ext <<_ACEOF
14495 /* confdefs.h. */
14496 _ACEOF
14497 cat confdefs.h >>conftest.$ac_ext
14498 cat >>conftest.$ac_ext <<_ACEOF
14499 /* end confdefs.h. */
14500 #include <sys/types.h>
14501 #ifdef HAVE_SYS_UN_H
14502 #include <sys/un.h>
14503 #endif
14506 typedef struct sockaddr_un ac__type_new_;
14508 main ()
14510 if ((ac__type_new_ *) 0)
14511 return 0;
14512 if (sizeof (ac__type_new_))
14513 return 0;
14515 return 0;
14517 _ACEOF
14518 rm -f conftest.$ac_objext
14519 if { (ac_try="$ac_compile"
14520 case "(($ac_try" in
14521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14522 *) ac_try_echo=$ac_try;;
14523 esac
14524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14525 (eval "$ac_compile") 2>conftest.er1
14526 ac_status=$?
14527 grep -v '^ *+' conftest.er1 >conftest.err
14528 rm -f conftest.er1
14529 cat conftest.err >&5
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); } && {
14532 test -z "$ac_c_werror_flag" ||
14533 test ! -s conftest.err
14534 } && test -s conftest.$ac_objext; then
14535 ac_cv_type_struct_sockaddr_un=yes
14536 else
14537 echo "$as_me: failed program was:" >&5
14538 sed 's/^/| /' conftest.$ac_ext >&5
14540 ac_cv_type_struct_sockaddr_un=no
14543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14545 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
14546 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6; }
14547 if test $ac_cv_type_struct_sockaddr_un = yes; then
14549 cat >>confdefs.h <<_ACEOF
14550 #define HAVE_STRUCT_SOCKADDR_UN 1
14551 _ACEOF
14554 cat >>confdefs.h <<\_ACEOF
14555 #define HAVE_UNIX_SOCKETS 1
14556 _ACEOF
14560 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
14561 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
14562 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
14563 echo $ECHO_N "(cached) $ECHO_C" >&6
14564 else
14565 cat >conftest.$ac_ext <<_ACEOF
14566 /* confdefs.h. */
14567 _ACEOF
14568 cat confdefs.h >>conftest.$ac_ext
14569 cat >>conftest.$ac_ext <<_ACEOF
14570 /* end confdefs.h. */
14571 #include <sys/types.h>
14572 #ifdef HAVE_SYS_SOCKET_H
14573 #include <sys/socket.h>
14574 #endif
14577 typedef struct sockaddr_storage ac__type_new_;
14579 main ()
14581 if ((ac__type_new_ *) 0)
14582 return 0;
14583 if (sizeof (ac__type_new_))
14584 return 0;
14586 return 0;
14588 _ACEOF
14589 rm -f conftest.$ac_objext
14590 if { (ac_try="$ac_compile"
14591 case "(($ac_try" in
14592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14593 *) ac_try_echo=$ac_try;;
14594 esac
14595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14596 (eval "$ac_compile") 2>conftest.er1
14597 ac_status=$?
14598 grep -v '^ *+' conftest.er1 >conftest.err
14599 rm -f conftest.er1
14600 cat conftest.err >&5
14601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602 (exit $ac_status); } && {
14603 test -z "$ac_c_werror_flag" ||
14604 test ! -s conftest.err
14605 } && test -s conftest.$ac_objext; then
14606 ac_cv_type_struct_sockaddr_storage=yes
14607 else
14608 echo "$as_me: failed program was:" >&5
14609 sed 's/^/| /' conftest.$ac_ext >&5
14611 ac_cv_type_struct_sockaddr_storage=no
14614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14616 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
14617 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
14618 if test $ac_cv_type_struct_sockaddr_storage = yes; then
14620 cat >>confdefs.h <<_ACEOF
14621 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
14622 _ACEOF
14627 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
14628 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6; }
14629 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
14630 echo $ECHO_N "(cached) $ECHO_C" >&6
14631 else
14632 cat >conftest.$ac_ext <<_ACEOF
14633 /* confdefs.h. */
14634 _ACEOF
14635 cat confdefs.h >>conftest.$ac_ext
14636 cat >>conftest.$ac_ext <<_ACEOF
14637 /* end confdefs.h. */
14638 #include <sys/types.h>
14639 #ifdef HAVE_SYS_SOCKET_H
14640 #include <sys/socket.h>
14641 #endif
14645 main ()
14647 static struct sockaddr_storage ac_aggr;
14648 if (ac_aggr.ss_family)
14649 return 0;
14651 return 0;
14653 _ACEOF
14654 rm -f conftest.$ac_objext
14655 if { (ac_try="$ac_compile"
14656 case "(($ac_try" in
14657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14658 *) ac_try_echo=$ac_try;;
14659 esac
14660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14661 (eval "$ac_compile") 2>conftest.er1
14662 ac_status=$?
14663 grep -v '^ *+' conftest.er1 >conftest.err
14664 rm -f conftest.er1
14665 cat conftest.err >&5
14666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667 (exit $ac_status); } && {
14668 test -z "$ac_c_werror_flag" ||
14669 test ! -s conftest.err
14670 } && test -s conftest.$ac_objext; then
14671 ac_cv_member_struct_sockaddr_storage_ss_family=yes
14672 else
14673 echo "$as_me: failed program was:" >&5
14674 sed 's/^/| /' conftest.$ac_ext >&5
14676 cat >conftest.$ac_ext <<_ACEOF
14677 /* confdefs.h. */
14678 _ACEOF
14679 cat confdefs.h >>conftest.$ac_ext
14680 cat >>conftest.$ac_ext <<_ACEOF
14681 /* end confdefs.h. */
14682 #include <sys/types.h>
14683 #ifdef HAVE_SYS_SOCKET_H
14684 #include <sys/socket.h>
14685 #endif
14689 main ()
14691 static struct sockaddr_storage ac_aggr;
14692 if (sizeof ac_aggr.ss_family)
14693 return 0;
14695 return 0;
14697 _ACEOF
14698 rm -f conftest.$ac_objext
14699 if { (ac_try="$ac_compile"
14700 case "(($ac_try" in
14701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14702 *) ac_try_echo=$ac_try;;
14703 esac
14704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14705 (eval "$ac_compile") 2>conftest.er1
14706 ac_status=$?
14707 grep -v '^ *+' conftest.er1 >conftest.err
14708 rm -f conftest.er1
14709 cat conftest.err >&5
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); } && {
14712 test -z "$ac_c_werror_flag" ||
14713 test ! -s conftest.err
14714 } && test -s conftest.$ac_objext; then
14715 ac_cv_member_struct_sockaddr_storage_ss_family=yes
14716 else
14717 echo "$as_me: failed program was:" >&5
14718 sed 's/^/| /' conftest.$ac_ext >&5
14720 ac_cv_member_struct_sockaddr_storage_ss_family=no
14723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14728 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
14729 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
14730 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
14732 cat >>confdefs.h <<_ACEOF
14733 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
14734 _ACEOF
14738 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
14739 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6; }
14740 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
14741 echo $ECHO_N "(cached) $ECHO_C" >&6
14742 else
14743 cat >conftest.$ac_ext <<_ACEOF
14744 /* confdefs.h. */
14745 _ACEOF
14746 cat confdefs.h >>conftest.$ac_ext
14747 cat >>conftest.$ac_ext <<_ACEOF
14748 /* end confdefs.h. */
14749 #include <sys/types.h>
14750 #ifdef HAVE_SYS_SOCKET_H
14751 #include <sys/socket.h>
14752 #endif
14756 main ()
14758 static struct sockaddr_storage ac_aggr;
14759 if (ac_aggr.__ss_family)
14760 return 0;
14762 return 0;
14764 _ACEOF
14765 rm -f conftest.$ac_objext
14766 if { (ac_try="$ac_compile"
14767 case "(($ac_try" in
14768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14769 *) ac_try_echo=$ac_try;;
14770 esac
14771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14772 (eval "$ac_compile") 2>conftest.er1
14773 ac_status=$?
14774 grep -v '^ *+' conftest.er1 >conftest.err
14775 rm -f conftest.er1
14776 cat conftest.err >&5
14777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14778 (exit $ac_status); } && {
14779 test -z "$ac_c_werror_flag" ||
14780 test ! -s conftest.err
14781 } && test -s conftest.$ac_objext; then
14782 ac_cv_member_struct_sockaddr_storage___ss_family=yes
14783 else
14784 echo "$as_me: failed program was:" >&5
14785 sed 's/^/| /' conftest.$ac_ext >&5
14787 cat >conftest.$ac_ext <<_ACEOF
14788 /* confdefs.h. */
14789 _ACEOF
14790 cat confdefs.h >>conftest.$ac_ext
14791 cat >>conftest.$ac_ext <<_ACEOF
14792 /* end confdefs.h. */
14793 #include <sys/types.h>
14794 #ifdef HAVE_SYS_SOCKET_H
14795 #include <sys/socket.h>
14796 #endif
14800 main ()
14802 static struct sockaddr_storage ac_aggr;
14803 if (sizeof ac_aggr.__ss_family)
14804 return 0;
14806 return 0;
14808 _ACEOF
14809 rm -f conftest.$ac_objext
14810 if { (ac_try="$ac_compile"
14811 case "(($ac_try" in
14812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14813 *) ac_try_echo=$ac_try;;
14814 esac
14815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14816 (eval "$ac_compile") 2>conftest.er1
14817 ac_status=$?
14818 grep -v '^ *+' conftest.er1 >conftest.err
14819 rm -f conftest.er1
14820 cat conftest.err >&5
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); } && {
14823 test -z "$ac_c_werror_flag" ||
14824 test ! -s conftest.err
14825 } && test -s conftest.$ac_objext; then
14826 ac_cv_member_struct_sockaddr_storage___ss_family=yes
14827 else
14828 echo "$as_me: failed program was:" >&5
14829 sed 's/^/| /' conftest.$ac_ext >&5
14831 ac_cv_member_struct_sockaddr_storage___ss_family=no
14834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14839 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
14840 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
14841 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
14843 cat >>confdefs.h <<_ACEOF
14844 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
14845 _ACEOF
14849 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
14850 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6; }
14851 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
14852 echo $ECHO_N "(cached) $ECHO_C" >&6
14853 else
14854 cat >conftest.$ac_ext <<_ACEOF
14855 /* confdefs.h. */
14856 _ACEOF
14857 cat confdefs.h >>conftest.$ac_ext
14858 cat >>conftest.$ac_ext <<_ACEOF
14859 /* end confdefs.h. */
14860 #include <sys/types.h>
14861 #ifdef HAVE_SYS_SOCKET_H
14862 #include <sys/socket.h>
14863 #endif
14867 main ()
14869 static struct sockaddr_storage ac_aggr;
14870 if (ac_aggr.ss_len)
14871 return 0;
14873 return 0;
14875 _ACEOF
14876 rm -f conftest.$ac_objext
14877 if { (ac_try="$ac_compile"
14878 case "(($ac_try" in
14879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14880 *) ac_try_echo=$ac_try;;
14881 esac
14882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14883 (eval "$ac_compile") 2>conftest.er1
14884 ac_status=$?
14885 grep -v '^ *+' conftest.er1 >conftest.err
14886 rm -f conftest.er1
14887 cat conftest.err >&5
14888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889 (exit $ac_status); } && {
14890 test -z "$ac_c_werror_flag" ||
14891 test ! -s conftest.err
14892 } && test -s conftest.$ac_objext; then
14893 ac_cv_member_struct_sockaddr_storage_ss_len=yes
14894 else
14895 echo "$as_me: failed program was:" >&5
14896 sed 's/^/| /' conftest.$ac_ext >&5
14898 cat >conftest.$ac_ext <<_ACEOF
14899 /* confdefs.h. */
14900 _ACEOF
14901 cat confdefs.h >>conftest.$ac_ext
14902 cat >>conftest.$ac_ext <<_ACEOF
14903 /* end confdefs.h. */
14904 #include <sys/types.h>
14905 #ifdef HAVE_SYS_SOCKET_H
14906 #include <sys/socket.h>
14907 #endif
14911 main ()
14913 static struct sockaddr_storage ac_aggr;
14914 if (sizeof ac_aggr.ss_len)
14915 return 0;
14917 return 0;
14919 _ACEOF
14920 rm -f conftest.$ac_objext
14921 if { (ac_try="$ac_compile"
14922 case "(($ac_try" in
14923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14924 *) ac_try_echo=$ac_try;;
14925 esac
14926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14927 (eval "$ac_compile") 2>conftest.er1
14928 ac_status=$?
14929 grep -v '^ *+' conftest.er1 >conftest.err
14930 rm -f conftest.er1
14931 cat conftest.err >&5
14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); } && {
14934 test -z "$ac_c_werror_flag" ||
14935 test ! -s conftest.err
14936 } && test -s conftest.$ac_objext; then
14937 ac_cv_member_struct_sockaddr_storage_ss_len=yes
14938 else
14939 echo "$as_me: failed program was:" >&5
14940 sed 's/^/| /' conftest.$ac_ext >&5
14942 ac_cv_member_struct_sockaddr_storage_ss_len=no
14945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14950 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
14951 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
14952 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
14954 cat >>confdefs.h <<_ACEOF
14955 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
14956 _ACEOF
14960 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
14961 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6; }
14962 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
14963 echo $ECHO_N "(cached) $ECHO_C" >&6
14964 else
14965 cat >conftest.$ac_ext <<_ACEOF
14966 /* confdefs.h. */
14967 _ACEOF
14968 cat confdefs.h >>conftest.$ac_ext
14969 cat >>conftest.$ac_ext <<_ACEOF
14970 /* end confdefs.h. */
14971 #include <sys/types.h>
14972 #ifdef HAVE_SYS_SOCKET_H
14973 #include <sys/socket.h>
14974 #endif
14978 main ()
14980 static struct sockaddr_storage ac_aggr;
14981 if (ac_aggr.__ss_len)
14982 return 0;
14984 return 0;
14986 _ACEOF
14987 rm -f conftest.$ac_objext
14988 if { (ac_try="$ac_compile"
14989 case "(($ac_try" in
14990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14991 *) ac_try_echo=$ac_try;;
14992 esac
14993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14994 (eval "$ac_compile") 2>conftest.er1
14995 ac_status=$?
14996 grep -v '^ *+' conftest.er1 >conftest.err
14997 rm -f conftest.er1
14998 cat conftest.err >&5
14999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000 (exit $ac_status); } && {
15001 test -z "$ac_c_werror_flag" ||
15002 test ! -s conftest.err
15003 } && test -s conftest.$ac_objext; then
15004 ac_cv_member_struct_sockaddr_storage___ss_len=yes
15005 else
15006 echo "$as_me: failed program was:" >&5
15007 sed 's/^/| /' conftest.$ac_ext >&5
15009 cat >conftest.$ac_ext <<_ACEOF
15010 /* confdefs.h. */
15011 _ACEOF
15012 cat confdefs.h >>conftest.$ac_ext
15013 cat >>conftest.$ac_ext <<_ACEOF
15014 /* end confdefs.h. */
15015 #include <sys/types.h>
15016 #ifdef HAVE_SYS_SOCKET_H
15017 #include <sys/socket.h>
15018 #endif
15022 main ()
15024 static struct sockaddr_storage ac_aggr;
15025 if (sizeof ac_aggr.__ss_len)
15026 return 0;
15028 return 0;
15030 _ACEOF
15031 rm -f conftest.$ac_objext
15032 if { (ac_try="$ac_compile"
15033 case "(($ac_try" in
15034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15035 *) ac_try_echo=$ac_try;;
15036 esac
15037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15038 (eval "$ac_compile") 2>conftest.er1
15039 ac_status=$?
15040 grep -v '^ *+' conftest.er1 >conftest.err
15041 rm -f conftest.er1
15042 cat conftest.err >&5
15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); } && {
15045 test -z "$ac_c_werror_flag" ||
15046 test ! -s conftest.err
15047 } && test -s conftest.$ac_objext; then
15048 ac_cv_member_struct_sockaddr_storage___ss_len=yes
15049 else
15050 echo "$as_me: failed program was:" >&5
15051 sed 's/^/| /' conftest.$ac_ext >&5
15053 ac_cv_member_struct_sockaddr_storage___ss_len=no
15056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15061 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
15062 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
15063 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
15065 cat >>confdefs.h <<_ACEOF
15066 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
15067 _ACEOF
15071 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
15072 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
15073 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
15074 echo $ECHO_N "(cached) $ECHO_C" >&6
15075 else
15076 cat >conftest.$ac_ext <<_ACEOF
15077 /* confdefs.h. */
15078 _ACEOF
15079 cat confdefs.h >>conftest.$ac_ext
15080 cat >>conftest.$ac_ext <<_ACEOF
15081 /* end confdefs.h. */
15082 #include <sys/types.h>
15083 #ifdef HAVE_SYS_SOCKET_H
15084 #include <sys/socket.h>
15085 #endif
15089 main ()
15091 static struct sockaddr ac_aggr;
15092 if (ac_aggr.sa_len)
15093 return 0;
15095 return 0;
15097 _ACEOF
15098 rm -f conftest.$ac_objext
15099 if { (ac_try="$ac_compile"
15100 case "(($ac_try" in
15101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15102 *) ac_try_echo=$ac_try;;
15103 esac
15104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15105 (eval "$ac_compile") 2>conftest.er1
15106 ac_status=$?
15107 grep -v '^ *+' conftest.er1 >conftest.err
15108 rm -f conftest.er1
15109 cat conftest.err >&5
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); } && {
15112 test -z "$ac_c_werror_flag" ||
15113 test ! -s conftest.err
15114 } && test -s conftest.$ac_objext; then
15115 ac_cv_member_struct_sockaddr_sa_len=yes
15116 else
15117 echo "$as_me: failed program was:" >&5
15118 sed 's/^/| /' conftest.$ac_ext >&5
15120 cat >conftest.$ac_ext <<_ACEOF
15121 /* confdefs.h. */
15122 _ACEOF
15123 cat confdefs.h >>conftest.$ac_ext
15124 cat >>conftest.$ac_ext <<_ACEOF
15125 /* end confdefs.h. */
15126 #include <sys/types.h>
15127 #ifdef HAVE_SYS_SOCKET_H
15128 #include <sys/socket.h>
15129 #endif
15133 main ()
15135 static struct sockaddr ac_aggr;
15136 if (sizeof ac_aggr.sa_len)
15137 return 0;
15139 return 0;
15141 _ACEOF
15142 rm -f conftest.$ac_objext
15143 if { (ac_try="$ac_compile"
15144 case "(($ac_try" in
15145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15146 *) ac_try_echo=$ac_try;;
15147 esac
15148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15149 (eval "$ac_compile") 2>conftest.er1
15150 ac_status=$?
15151 grep -v '^ *+' conftest.er1 >conftest.err
15152 rm -f conftest.er1
15153 cat conftest.err >&5
15154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155 (exit $ac_status); } && {
15156 test -z "$ac_c_werror_flag" ||
15157 test ! -s conftest.err
15158 } && test -s conftest.$ac_objext; then
15159 ac_cv_member_struct_sockaddr_sa_len=yes
15160 else
15161 echo "$as_me: failed program was:" >&5
15162 sed 's/^/| /' conftest.$ac_ext >&5
15164 ac_cv_member_struct_sockaddr_sa_len=no
15167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15172 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
15173 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
15174 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
15176 cat >>confdefs.h <<_ACEOF
15177 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
15178 _ACEOF
15183 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
15184 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
15185 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
15186 echo $ECHO_N "(cached) $ECHO_C" >&6
15187 else
15188 cat >conftest.$ac_ext <<_ACEOF
15189 /* confdefs.h. */
15190 _ACEOF
15191 cat confdefs.h >>conftest.$ac_ext
15192 cat >>conftest.$ac_ext <<_ACEOF
15193 /* end confdefs.h. */
15194 #include <sys/types.h>
15195 #include <sys/socket.h>
15196 #include <netdb.h>
15199 typedef struct addrinfo ac__type_new_;
15201 main ()
15203 if ((ac__type_new_ *) 0)
15204 return 0;
15205 if (sizeof (ac__type_new_))
15206 return 0;
15208 return 0;
15210 _ACEOF
15211 rm -f conftest.$ac_objext
15212 if { (ac_try="$ac_compile"
15213 case "(($ac_try" in
15214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15215 *) ac_try_echo=$ac_try;;
15216 esac
15217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15218 (eval "$ac_compile") 2>conftest.er1
15219 ac_status=$?
15220 grep -v '^ *+' conftest.er1 >conftest.err
15221 rm -f conftest.er1
15222 cat conftest.err >&5
15223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224 (exit $ac_status); } && {
15225 test -z "$ac_c_werror_flag" ||
15226 test ! -s conftest.err
15227 } && test -s conftest.$ac_objext; then
15228 ac_cv_type_struct_addrinfo=yes
15229 else
15230 echo "$as_me: failed program was:" >&5
15231 sed 's/^/| /' conftest.$ac_ext >&5
15233 ac_cv_type_struct_addrinfo=no
15236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15238 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
15239 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
15240 if test $ac_cv_type_struct_addrinfo = yes; then
15242 cat >>confdefs.h <<_ACEOF
15243 #define HAVE_STRUCT_ADDRINFO 1
15244 _ACEOF
15250 { echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
15251 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6; }
15252 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
15253 echo $ECHO_N "(cached) $ECHO_C" >&6
15254 else
15255 cat >conftest.$ac_ext <<_ACEOF
15256 /* confdefs.h. */
15257 _ACEOF
15258 cat confdefs.h >>conftest.$ac_ext
15259 cat >>conftest.$ac_ext <<_ACEOF
15260 /* end confdefs.h. */
15261 #include <sys/param.h>
15262 #include <sys/types.h>
15263 #include <sys/socket.h>
15264 #include <sys/ucred.h>
15266 typedef struct cmsgcred ac__type_new_;
15268 main ()
15270 if ((ac__type_new_ *) 0)
15271 return 0;
15272 if (sizeof (ac__type_new_))
15273 return 0;
15275 return 0;
15277 _ACEOF
15278 rm -f conftest.$ac_objext
15279 if { (ac_try="$ac_compile"
15280 case "(($ac_try" in
15281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15282 *) ac_try_echo=$ac_try;;
15283 esac
15284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15285 (eval "$ac_compile") 2>conftest.er1
15286 ac_status=$?
15287 grep -v '^ *+' conftest.er1 >conftest.err
15288 rm -f conftest.er1
15289 cat conftest.err >&5
15290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291 (exit $ac_status); } && {
15292 test -z "$ac_c_werror_flag" ||
15293 test ! -s conftest.err
15294 } && test -s conftest.$ac_objext; then
15295 ac_cv_type_struct_cmsgcred=yes
15296 else
15297 echo "$as_me: failed program was:" >&5
15298 sed 's/^/| /' conftest.$ac_ext >&5
15300 ac_cv_type_struct_cmsgcred=no
15303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15305 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
15306 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6; }
15307 if test $ac_cv_type_struct_cmsgcred = yes; then
15309 cat >>confdefs.h <<_ACEOF
15310 #define HAVE_STRUCT_CMSGCRED 1
15311 _ACEOF
15315 { echo "$as_me:$LINENO: checking for struct fcred" >&5
15316 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6; }
15317 if test "${ac_cv_type_struct_fcred+set}" = set; then
15318 echo $ECHO_N "(cached) $ECHO_C" >&6
15319 else
15320 cat >conftest.$ac_ext <<_ACEOF
15321 /* confdefs.h. */
15322 _ACEOF
15323 cat confdefs.h >>conftest.$ac_ext
15324 cat >>conftest.$ac_ext <<_ACEOF
15325 /* end confdefs.h. */
15326 #include <sys/param.h>
15327 #include <sys/types.h>
15328 #include <sys/socket.h>
15329 #include <sys/ucred.h>
15331 typedef struct fcred ac__type_new_;
15333 main ()
15335 if ((ac__type_new_ *) 0)
15336 return 0;
15337 if (sizeof (ac__type_new_))
15338 return 0;
15340 return 0;
15342 _ACEOF
15343 rm -f conftest.$ac_objext
15344 if { (ac_try="$ac_compile"
15345 case "(($ac_try" in
15346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15347 *) ac_try_echo=$ac_try;;
15348 esac
15349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15350 (eval "$ac_compile") 2>conftest.er1
15351 ac_status=$?
15352 grep -v '^ *+' conftest.er1 >conftest.err
15353 rm -f conftest.er1
15354 cat conftest.err >&5
15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); } && {
15357 test -z "$ac_c_werror_flag" ||
15358 test ! -s conftest.err
15359 } && test -s conftest.$ac_objext; then
15360 ac_cv_type_struct_fcred=yes
15361 else
15362 echo "$as_me: failed program was:" >&5
15363 sed 's/^/| /' conftest.$ac_ext >&5
15365 ac_cv_type_struct_fcred=no
15368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15370 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
15371 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6; }
15372 if test $ac_cv_type_struct_fcred = yes; then
15374 cat >>confdefs.h <<_ACEOF
15375 #define HAVE_STRUCT_FCRED 1
15376 _ACEOF
15380 { echo "$as_me:$LINENO: checking for struct sockcred" >&5
15381 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6; }
15382 if test "${ac_cv_type_struct_sockcred+set}" = set; then
15383 echo $ECHO_N "(cached) $ECHO_C" >&6
15384 else
15385 cat >conftest.$ac_ext <<_ACEOF
15386 /* confdefs.h. */
15387 _ACEOF
15388 cat confdefs.h >>conftest.$ac_ext
15389 cat >>conftest.$ac_ext <<_ACEOF
15390 /* end confdefs.h. */
15391 #include <sys/param.h>
15392 #include <sys/types.h>
15393 #include <sys/socket.h>
15394 #include <sys/ucred.h>
15396 typedef struct sockcred ac__type_new_;
15398 main ()
15400 if ((ac__type_new_ *) 0)
15401 return 0;
15402 if (sizeof (ac__type_new_))
15403 return 0;
15405 return 0;
15407 _ACEOF
15408 rm -f conftest.$ac_objext
15409 if { (ac_try="$ac_compile"
15410 case "(($ac_try" in
15411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15412 *) ac_try_echo=$ac_try;;
15413 esac
15414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15415 (eval "$ac_compile") 2>conftest.er1
15416 ac_status=$?
15417 grep -v '^ *+' conftest.er1 >conftest.err
15418 rm -f conftest.er1
15419 cat conftest.err >&5
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); } && {
15422 test -z "$ac_c_werror_flag" ||
15423 test ! -s conftest.err
15424 } && test -s conftest.$ac_objext; then
15425 ac_cv_type_struct_sockcred=yes
15426 else
15427 echo "$as_me: failed program was:" >&5
15428 sed 's/^/| /' conftest.$ac_ext >&5
15430 ac_cv_type_struct_sockcred=no
15433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15435 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
15436 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6; }
15437 if test $ac_cv_type_struct_sockcred = yes; then
15439 cat >>confdefs.h <<_ACEOF
15440 #define HAVE_STRUCT_SOCKCRED 1
15441 _ACEOF
15447 { echo "$as_me:$LINENO: checking for struct option" >&5
15448 echo $ECHO_N "checking for struct option... $ECHO_C" >&6; }
15449 if test "${ac_cv_type_struct_option+set}" = set; then
15450 echo $ECHO_N "(cached) $ECHO_C" >&6
15451 else
15452 cat >conftest.$ac_ext <<_ACEOF
15453 /* confdefs.h. */
15454 _ACEOF
15455 cat confdefs.h >>conftest.$ac_ext
15456 cat >>conftest.$ac_ext <<_ACEOF
15457 /* end confdefs.h. */
15458 #ifdef HAVE_GETOPT_H
15459 #include <getopt.h>
15460 #endif
15462 typedef struct option ac__type_new_;
15464 main ()
15466 if ((ac__type_new_ *) 0)
15467 return 0;
15468 if (sizeof (ac__type_new_))
15469 return 0;
15471 return 0;
15473 _ACEOF
15474 rm -f conftest.$ac_objext
15475 if { (ac_try="$ac_compile"
15476 case "(($ac_try" in
15477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15478 *) ac_try_echo=$ac_try;;
15479 esac
15480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15481 (eval "$ac_compile") 2>conftest.er1
15482 ac_status=$?
15483 grep -v '^ *+' conftest.er1 >conftest.err
15484 rm -f conftest.er1
15485 cat conftest.err >&5
15486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487 (exit $ac_status); } && {
15488 test -z "$ac_c_werror_flag" ||
15489 test ! -s conftest.err
15490 } && test -s conftest.$ac_objext; then
15491 ac_cv_type_struct_option=yes
15492 else
15493 echo "$as_me: failed program was:" >&5
15494 sed 's/^/| /' conftest.$ac_ext >&5
15496 ac_cv_type_struct_option=no
15499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15501 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
15502 echo "${ECHO_T}$ac_cv_type_struct_option" >&6; }
15503 if test $ac_cv_type_struct_option = yes; then
15505 cat >>confdefs.h <<_ACEOF
15506 #define HAVE_STRUCT_OPTION 1
15507 _ACEOF
15513 if test "$with_zlib" = yes; then
15514 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
15515 # did not). While we could work around the lack of z_streamp, it
15516 # seems unwise to encourage people to use such old zlib versions...
15517 { echo "$as_me:$LINENO: checking for z_streamp" >&5
15518 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6; }
15519 if test "${ac_cv_type_z_streamp+set}" = set; then
15520 echo $ECHO_N "(cached) $ECHO_C" >&6
15521 else
15522 cat >conftest.$ac_ext <<_ACEOF
15523 /* confdefs.h. */
15524 _ACEOF
15525 cat confdefs.h >>conftest.$ac_ext
15526 cat >>conftest.$ac_ext <<_ACEOF
15527 /* end confdefs.h. */
15528 #include <zlib.h>
15530 typedef z_streamp ac__type_new_;
15532 main ()
15534 if ((ac__type_new_ *) 0)
15535 return 0;
15536 if (sizeof (ac__type_new_))
15537 return 0;
15539 return 0;
15541 _ACEOF
15542 rm -f conftest.$ac_objext
15543 if { (ac_try="$ac_compile"
15544 case "(($ac_try" in
15545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15546 *) ac_try_echo=$ac_try;;
15547 esac
15548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15549 (eval "$ac_compile") 2>conftest.er1
15550 ac_status=$?
15551 grep -v '^ *+' conftest.er1 >conftest.err
15552 rm -f conftest.er1
15553 cat conftest.err >&5
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); } && {
15556 test -z "$ac_c_werror_flag" ||
15557 test ! -s conftest.err
15558 } && test -s conftest.$ac_objext; then
15559 ac_cv_type_z_streamp=yes
15560 else
15561 echo "$as_me: failed program was:" >&5
15562 sed 's/^/| /' conftest.$ac_ext >&5
15564 ac_cv_type_z_streamp=no
15567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15569 { echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
15570 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6; }
15571 if test $ac_cv_type_z_streamp = yes; then
15573 else
15574 { { echo "$as_me:$LINENO: error: zlib version is too old
15575 Use --without-zlib to disable zlib support." >&5
15576 echo "$as_me: error: zlib version is too old
15577 Use --without-zlib to disable zlib support." >&2;}
15578 { (exit 1); exit 1; }; }
15583 if test "$with_krb5" = yes; then
15584 # Check for differences between MIT and Heimdal (KTH) releases
15585 { echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
15586 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6; }
15587 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
15588 echo $ECHO_N "(cached) $ECHO_C" >&6
15589 else
15590 cat >conftest.$ac_ext <<_ACEOF
15591 /* confdefs.h. */
15592 _ACEOF
15593 cat confdefs.h >>conftest.$ac_ext
15594 cat >>conftest.$ac_ext <<_ACEOF
15595 /* end confdefs.h. */
15596 #include <krb5.h>
15599 main ()
15601 static krb5_ticket ac_aggr;
15602 if (ac_aggr.enc_part2)
15603 return 0;
15605 return 0;
15607 _ACEOF
15608 rm -f conftest.$ac_objext
15609 if { (ac_try="$ac_compile"
15610 case "(($ac_try" in
15611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15612 *) ac_try_echo=$ac_try;;
15613 esac
15614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15615 (eval "$ac_compile") 2>conftest.er1
15616 ac_status=$?
15617 grep -v '^ *+' conftest.er1 >conftest.err
15618 rm -f conftest.er1
15619 cat conftest.err >&5
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); } && {
15622 test -z "$ac_c_werror_flag" ||
15623 test ! -s conftest.err
15624 } && test -s conftest.$ac_objext; then
15625 ac_cv_member_krb5_ticket_enc_part2=yes
15626 else
15627 echo "$as_me: failed program was:" >&5
15628 sed 's/^/| /' conftest.$ac_ext >&5
15630 cat >conftest.$ac_ext <<_ACEOF
15631 /* confdefs.h. */
15632 _ACEOF
15633 cat confdefs.h >>conftest.$ac_ext
15634 cat >>conftest.$ac_ext <<_ACEOF
15635 /* end confdefs.h. */
15636 #include <krb5.h>
15639 main ()
15641 static krb5_ticket ac_aggr;
15642 if (sizeof ac_aggr.enc_part2)
15643 return 0;
15645 return 0;
15647 _ACEOF
15648 rm -f conftest.$ac_objext
15649 if { (ac_try="$ac_compile"
15650 case "(($ac_try" in
15651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15652 *) ac_try_echo=$ac_try;;
15653 esac
15654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15655 (eval "$ac_compile") 2>conftest.er1
15656 ac_status=$?
15657 grep -v '^ *+' conftest.er1 >conftest.err
15658 rm -f conftest.er1
15659 cat conftest.err >&5
15660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661 (exit $ac_status); } && {
15662 test -z "$ac_c_werror_flag" ||
15663 test ! -s conftest.err
15664 } && test -s conftest.$ac_objext; then
15665 ac_cv_member_krb5_ticket_enc_part2=yes
15666 else
15667 echo "$as_me: failed program was:" >&5
15668 sed 's/^/| /' conftest.$ac_ext >&5
15670 ac_cv_member_krb5_ticket_enc_part2=no
15673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15678 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
15679 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6; }
15680 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
15682 cat >>confdefs.h <<_ACEOF
15683 #define HAVE_KRB5_TICKET_ENC_PART2 1
15684 _ACEOF
15687 else
15688 { echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
15689 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6; }
15690 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
15691 echo $ECHO_N "(cached) $ECHO_C" >&6
15692 else
15693 cat >conftest.$ac_ext <<_ACEOF
15694 /* confdefs.h. */
15695 _ACEOF
15696 cat confdefs.h >>conftest.$ac_ext
15697 cat >>conftest.$ac_ext <<_ACEOF
15698 /* end confdefs.h. */
15699 #include <krb5.h>
15702 main ()
15704 static krb5_ticket ac_aggr;
15705 if (ac_aggr.client)
15706 return 0;
15708 return 0;
15710 _ACEOF
15711 rm -f conftest.$ac_objext
15712 if { (ac_try="$ac_compile"
15713 case "(($ac_try" in
15714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15715 *) ac_try_echo=$ac_try;;
15716 esac
15717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15718 (eval "$ac_compile") 2>conftest.er1
15719 ac_status=$?
15720 grep -v '^ *+' conftest.er1 >conftest.err
15721 rm -f conftest.er1
15722 cat conftest.err >&5
15723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); } && {
15725 test -z "$ac_c_werror_flag" ||
15726 test ! -s conftest.err
15727 } && test -s conftest.$ac_objext; then
15728 ac_cv_member_krb5_ticket_client=yes
15729 else
15730 echo "$as_me: failed program was:" >&5
15731 sed 's/^/| /' conftest.$ac_ext >&5
15733 cat >conftest.$ac_ext <<_ACEOF
15734 /* confdefs.h. */
15735 _ACEOF
15736 cat confdefs.h >>conftest.$ac_ext
15737 cat >>conftest.$ac_ext <<_ACEOF
15738 /* end confdefs.h. */
15739 #include <krb5.h>
15742 main ()
15744 static krb5_ticket ac_aggr;
15745 if (sizeof ac_aggr.client)
15746 return 0;
15748 return 0;
15750 _ACEOF
15751 rm -f conftest.$ac_objext
15752 if { (ac_try="$ac_compile"
15753 case "(($ac_try" in
15754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15755 *) ac_try_echo=$ac_try;;
15756 esac
15757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15758 (eval "$ac_compile") 2>conftest.er1
15759 ac_status=$?
15760 grep -v '^ *+' conftest.er1 >conftest.err
15761 rm -f conftest.er1
15762 cat conftest.err >&5
15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); } && {
15765 test -z "$ac_c_werror_flag" ||
15766 test ! -s conftest.err
15767 } && test -s conftest.$ac_objext; then
15768 ac_cv_member_krb5_ticket_client=yes
15769 else
15770 echo "$as_me: failed program was:" >&5
15771 sed 's/^/| /' conftest.$ac_ext >&5
15773 ac_cv_member_krb5_ticket_client=no
15776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15781 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
15782 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6; }
15783 if test $ac_cv_member_krb5_ticket_client = yes; then
15785 cat >>confdefs.h <<_ACEOF
15786 #define HAVE_KRB5_TICKET_CLIENT 1
15787 _ACEOF
15790 else
15791 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
15792 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
15793 { (exit 1); exit 1; }; }
15798 { echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
15799 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6; }
15800 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
15801 echo $ECHO_N "(cached) $ECHO_C" >&6
15802 else
15803 cat >conftest.$ac_ext <<_ACEOF
15804 /* confdefs.h. */
15805 _ACEOF
15806 cat confdefs.h >>conftest.$ac_ext
15807 cat >>conftest.$ac_ext <<_ACEOF
15808 /* end confdefs.h. */
15809 #include <krb5.h>
15812 main ()
15814 static krb5_error ac_aggr;
15815 if (ac_aggr.text.data)
15816 return 0;
15818 return 0;
15820 _ACEOF
15821 rm -f conftest.$ac_objext
15822 if { (ac_try="$ac_compile"
15823 case "(($ac_try" in
15824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15825 *) ac_try_echo=$ac_try;;
15826 esac
15827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15828 (eval "$ac_compile") 2>conftest.er1
15829 ac_status=$?
15830 grep -v '^ *+' conftest.er1 >conftest.err
15831 rm -f conftest.er1
15832 cat conftest.err >&5
15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 (exit $ac_status); } && {
15835 test -z "$ac_c_werror_flag" ||
15836 test ! -s conftest.err
15837 } && test -s conftest.$ac_objext; then
15838 ac_cv_member_krb5_error_text_data=yes
15839 else
15840 echo "$as_me: failed program was:" >&5
15841 sed 's/^/| /' conftest.$ac_ext >&5
15843 cat >conftest.$ac_ext <<_ACEOF
15844 /* confdefs.h. */
15845 _ACEOF
15846 cat confdefs.h >>conftest.$ac_ext
15847 cat >>conftest.$ac_ext <<_ACEOF
15848 /* end confdefs.h. */
15849 #include <krb5.h>
15852 main ()
15854 static krb5_error ac_aggr;
15855 if (sizeof ac_aggr.text.data)
15856 return 0;
15858 return 0;
15860 _ACEOF
15861 rm -f conftest.$ac_objext
15862 if { (ac_try="$ac_compile"
15863 case "(($ac_try" in
15864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15865 *) ac_try_echo=$ac_try;;
15866 esac
15867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15868 (eval "$ac_compile") 2>conftest.er1
15869 ac_status=$?
15870 grep -v '^ *+' conftest.er1 >conftest.err
15871 rm -f conftest.er1
15872 cat conftest.err >&5
15873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874 (exit $ac_status); } && {
15875 test -z "$ac_c_werror_flag" ||
15876 test ! -s conftest.err
15877 } && test -s conftest.$ac_objext; then
15878 ac_cv_member_krb5_error_text_data=yes
15879 else
15880 echo "$as_me: failed program was:" >&5
15881 sed 's/^/| /' conftest.$ac_ext >&5
15883 ac_cv_member_krb5_error_text_data=no
15886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15891 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
15892 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6; }
15893 if test $ac_cv_member_krb5_error_text_data = yes; then
15895 cat >>confdefs.h <<_ACEOF
15896 #define HAVE_KRB5_ERROR_TEXT_DATA 1
15897 _ACEOF
15900 else
15901 { echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
15902 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6; }
15903 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
15904 echo $ECHO_N "(cached) $ECHO_C" >&6
15905 else
15906 cat >conftest.$ac_ext <<_ACEOF
15907 /* confdefs.h. */
15908 _ACEOF
15909 cat confdefs.h >>conftest.$ac_ext
15910 cat >>conftest.$ac_ext <<_ACEOF
15911 /* end confdefs.h. */
15912 #include <krb5.h>
15915 main ()
15917 static krb5_error ac_aggr;
15918 if (ac_aggr.e_data)
15919 return 0;
15921 return 0;
15923 _ACEOF
15924 rm -f conftest.$ac_objext
15925 if { (ac_try="$ac_compile"
15926 case "(($ac_try" in
15927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15928 *) ac_try_echo=$ac_try;;
15929 esac
15930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15931 (eval "$ac_compile") 2>conftest.er1
15932 ac_status=$?
15933 grep -v '^ *+' conftest.er1 >conftest.err
15934 rm -f conftest.er1
15935 cat conftest.err >&5
15936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 (exit $ac_status); } && {
15938 test -z "$ac_c_werror_flag" ||
15939 test ! -s conftest.err
15940 } && test -s conftest.$ac_objext; then
15941 ac_cv_member_krb5_error_e_data=yes
15942 else
15943 echo "$as_me: failed program was:" >&5
15944 sed 's/^/| /' conftest.$ac_ext >&5
15946 cat >conftest.$ac_ext <<_ACEOF
15947 /* confdefs.h. */
15948 _ACEOF
15949 cat confdefs.h >>conftest.$ac_ext
15950 cat >>conftest.$ac_ext <<_ACEOF
15951 /* end confdefs.h. */
15952 #include <krb5.h>
15955 main ()
15957 static krb5_error ac_aggr;
15958 if (sizeof ac_aggr.e_data)
15959 return 0;
15961 return 0;
15963 _ACEOF
15964 rm -f conftest.$ac_objext
15965 if { (ac_try="$ac_compile"
15966 case "(($ac_try" in
15967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15968 *) ac_try_echo=$ac_try;;
15969 esac
15970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15971 (eval "$ac_compile") 2>conftest.er1
15972 ac_status=$?
15973 grep -v '^ *+' conftest.er1 >conftest.err
15974 rm -f conftest.er1
15975 cat conftest.err >&5
15976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977 (exit $ac_status); } && {
15978 test -z "$ac_c_werror_flag" ||
15979 test ! -s conftest.err
15980 } && test -s conftest.$ac_objext; then
15981 ac_cv_member_krb5_error_e_data=yes
15982 else
15983 echo "$as_me: failed program was:" >&5
15984 sed 's/^/| /' conftest.$ac_ext >&5
15986 ac_cv_member_krb5_error_e_data=no
15989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15994 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
15995 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6; }
15996 if test $ac_cv_member_krb5_error_e_data = yes; then
15998 cat >>confdefs.h <<_ACEOF
15999 #define HAVE_KRB5_ERROR_E_DATA 1
16000 _ACEOF
16003 else
16004 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
16005 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
16006 { (exit 1); exit 1; }; }
16012 # Win32 requires headers to be loaded for __stdcall, so can't use
16013 # AC_CHECK_FUNCS here.
16014 { echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
16015 echo $ECHO_N "checking for krb5_free_unparsed_name... $ECHO_C" >&6; }
16016 cat >conftest.$ac_ext <<_ACEOF
16017 /* confdefs.h. */
16018 _ACEOF
16019 cat confdefs.h >>conftest.$ac_ext
16020 cat >>conftest.$ac_ext <<_ACEOF
16021 /* end confdefs.h. */
16022 #include <krb5.h>
16024 main ()
16026 krb5_free_unparsed_name(NULL,NULL);
16028 return 0;
16030 _ACEOF
16031 rm -f conftest.$ac_objext conftest$ac_exeext
16032 if { (ac_try="$ac_link"
16033 case "(($ac_try" in
16034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16035 *) ac_try_echo=$ac_try;;
16036 esac
16037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16038 (eval "$ac_link") 2>conftest.er1
16039 ac_status=$?
16040 grep -v '^ *+' conftest.er1 >conftest.err
16041 rm -f conftest.er1
16042 cat conftest.err >&5
16043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044 (exit $ac_status); } && {
16045 test -z "$ac_c_werror_flag" ||
16046 test ! -s conftest.err
16047 } && test -s conftest$ac_exeext &&
16048 $as_test_x conftest$ac_exeext; then
16050 cat >>confdefs.h <<\_ACEOF
16051 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
16052 _ACEOF
16054 { echo "$as_me:$LINENO: result: yes" >&5
16055 echo "${ECHO_T}yes" >&6; }
16056 else
16057 echo "$as_me: failed program was:" >&5
16058 sed 's/^/| /' conftest.$ac_ext >&5
16060 { echo "$as_me:$LINENO: result: no" >&5
16061 echo "${ECHO_T}no" >&6; }
16064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16065 conftest$ac_exeext conftest.$ac_ext
16070 ## Functions, global variables
16073 { echo "$as_me:$LINENO: checking for int timezone" >&5
16074 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6; }
16075 if test "${pgac_cv_var_int_timezone+set}" = set; then
16076 echo $ECHO_N "(cached) $ECHO_C" >&6
16077 else
16078 cat >conftest.$ac_ext <<_ACEOF
16079 /* confdefs.h. */
16080 _ACEOF
16081 cat confdefs.h >>conftest.$ac_ext
16082 cat >>conftest.$ac_ext <<_ACEOF
16083 /* end confdefs.h. */
16084 #include <time.h>
16085 int res;
16087 main ()
16089 #ifndef __CYGWIN__
16090 res = timezone / 60;
16091 #else
16092 res = _timezone / 60;
16093 #endif
16095 return 0;
16097 _ACEOF
16098 rm -f conftest.$ac_objext conftest$ac_exeext
16099 if { (ac_try="$ac_link"
16100 case "(($ac_try" in
16101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16102 *) ac_try_echo=$ac_try;;
16103 esac
16104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16105 (eval "$ac_link") 2>conftest.er1
16106 ac_status=$?
16107 grep -v '^ *+' conftest.er1 >conftest.err
16108 rm -f conftest.er1
16109 cat conftest.err >&5
16110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111 (exit $ac_status); } && {
16112 test -z "$ac_c_werror_flag" ||
16113 test ! -s conftest.err
16114 } && test -s conftest$ac_exeext &&
16115 $as_test_x conftest$ac_exeext; then
16116 pgac_cv_var_int_timezone=yes
16117 else
16118 echo "$as_me: failed program was:" >&5
16119 sed 's/^/| /' conftest.$ac_ext >&5
16121 pgac_cv_var_int_timezone=no
16124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16125 conftest$ac_exeext conftest.$ac_ext
16127 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
16128 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6; }
16129 if test x"$pgac_cv_var_int_timezone" = xyes ; then
16131 cat >>confdefs.h <<\_ACEOF
16132 #define HAVE_INT_TIMEZONE
16133 _ACEOF
16136 { echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
16137 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6; }
16138 if test "${ac_cv_func_accept_return+set}" = set; then
16139 echo $ECHO_N "(cached) $ECHO_C" >&6
16140 else
16141 if test "${ac_cv_func_accept_arg1+set}" = set; then
16142 echo $ECHO_N "(cached) $ECHO_C" >&6
16143 else
16144 if test "${ac_cv_func_accept_arg2+set}" = set; then
16145 echo $ECHO_N "(cached) $ECHO_C" >&6
16146 else
16147 if test "${ac_cv_func_accept_arg3+set}" = set; then
16148 echo $ECHO_N "(cached) $ECHO_C" >&6
16149 else
16150 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
16151 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
16152 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
16153 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
16154 cat >conftest.$ac_ext <<_ACEOF
16155 /* confdefs.h. */
16156 _ACEOF
16157 cat confdefs.h >>conftest.$ac_ext
16158 cat >>conftest.$ac_ext <<_ACEOF
16159 /* end confdefs.h. */
16160 #ifdef HAVE_SYS_TYPES_H
16161 #include <sys/types.h>
16162 #endif
16163 #ifdef HAVE_SYS_SOCKET_H
16164 #include <sys/socket.h>
16165 #endif
16166 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
16168 main ()
16172 return 0;
16174 _ACEOF
16175 rm -f conftest.$ac_objext
16176 if { (ac_try="$ac_compile"
16177 case "(($ac_try" in
16178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16179 *) ac_try_echo=$ac_try;;
16180 esac
16181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16182 (eval "$ac_compile") 2>conftest.er1
16183 ac_status=$?
16184 grep -v '^ *+' conftest.er1 >conftest.err
16185 rm -f conftest.er1
16186 cat conftest.err >&5
16187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188 (exit $ac_status); } && {
16189 test -z "$ac_c_werror_flag" ||
16190 test ! -s conftest.err
16191 } && test -s conftest.$ac_objext; then
16192 ac_not_found=no; break 4
16193 else
16194 echo "$as_me: failed program was:" >&5
16195 sed 's/^/| /' conftest.$ac_ext >&5
16197 ac_not_found=yes
16200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16201 done
16202 done
16203 done
16204 done
16205 if test "$ac_not_found" = yes; then
16206 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
16207 echo "$as_me: error: could not determine argument types" >&2;}
16208 { (exit 1); exit 1; }; }
16210 if test "$ac_cv_func_accept_arg3" = "void"; then
16211 ac_cv_func_accept_arg3=int
16221 { 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
16222 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
16224 cat >>confdefs.h <<_ACEOF
16225 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
16226 _ACEOF
16229 cat >>confdefs.h <<_ACEOF
16230 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
16231 _ACEOF
16234 cat >>confdefs.h <<_ACEOF
16235 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
16236 _ACEOF
16239 cat >>confdefs.h <<_ACEOF
16240 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
16241 _ACEOF
16244 { echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
16245 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6; }
16246 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
16247 echo $ECHO_N "(cached) $ECHO_C" >&6
16248 else
16249 cat >conftest.$ac_ext <<_ACEOF
16250 /* confdefs.h. */
16251 _ACEOF
16252 cat confdefs.h >>conftest.$ac_ext
16253 cat >>conftest.$ac_ext <<_ACEOF
16254 /* end confdefs.h. */
16255 #include <sys/time.h>
16257 main ()
16259 struct timeval *tp;
16260 struct timezone *tzp;
16261 gettimeofday(tp,tzp);
16263 return 0;
16265 _ACEOF
16266 rm -f conftest.$ac_objext
16267 if { (ac_try="$ac_compile"
16268 case "(($ac_try" in
16269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16270 *) ac_try_echo=$ac_try;;
16271 esac
16272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16273 (eval "$ac_compile") 2>conftest.er1
16274 ac_status=$?
16275 grep -v '^ *+' conftest.er1 >conftest.err
16276 rm -f conftest.er1
16277 cat conftest.err >&5
16278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279 (exit $ac_status); } && {
16280 test -z "$ac_c_werror_flag" ||
16281 test ! -s conftest.err
16282 } && test -s conftest.$ac_objext; then
16283 pgac_cv_func_gettimeofday_1arg=no
16284 else
16285 echo "$as_me: failed program was:" >&5
16286 sed 's/^/| /' conftest.$ac_ext >&5
16288 pgac_cv_func_gettimeofday_1arg=yes
16291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16293 { echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
16294 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6; }
16295 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
16297 cat >>confdefs.h <<\_ACEOF
16298 #define GETTIMEOFDAY_1ARG
16299 _ACEOF
16327 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
16329 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16330 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16332 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16333 echo $ECHO_N "(cached) $ECHO_C" >&6
16334 else
16335 cat >conftest.$ac_ext <<_ACEOF
16336 /* confdefs.h. */
16337 _ACEOF
16338 cat confdefs.h >>conftest.$ac_ext
16339 cat >>conftest.$ac_ext <<_ACEOF
16340 /* end confdefs.h. */
16341 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16342 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16343 #define $ac_func innocuous_$ac_func
16345 /* System header to define __stub macros and hopefully few prototypes,
16346 which can conflict with char $ac_func (); below.
16347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16348 <limits.h> exists even on freestanding compilers. */
16350 #ifdef __STDC__
16351 # include <limits.h>
16352 #else
16353 # include <assert.h>
16354 #endif
16356 #undef $ac_func
16358 /* Override any GCC internal prototype to avoid an error.
16359 Use char because int might match the return type of a GCC
16360 builtin and then its argument prototype would still apply. */
16361 #ifdef __cplusplus
16362 extern "C"
16363 #endif
16364 char $ac_func ();
16365 /* The GNU C library defines this for functions which it implements
16366 to always fail with ENOSYS. Some functions are actually named
16367 something starting with __ and the normal name is an alias. */
16368 #if defined __stub_$ac_func || defined __stub___$ac_func
16369 choke me
16370 #endif
16373 main ()
16375 return $ac_func ();
16377 return 0;
16379 _ACEOF
16380 rm -f conftest.$ac_objext conftest$ac_exeext
16381 if { (ac_try="$ac_link"
16382 case "(($ac_try" in
16383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16384 *) ac_try_echo=$ac_try;;
16385 esac
16386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16387 (eval "$ac_link") 2>conftest.er1
16388 ac_status=$?
16389 grep -v '^ *+' conftest.er1 >conftest.err
16390 rm -f conftest.er1
16391 cat conftest.err >&5
16392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16393 (exit $ac_status); } && {
16394 test -z "$ac_c_werror_flag" ||
16395 test ! -s conftest.err
16396 } && test -s conftest$ac_exeext &&
16397 $as_test_x conftest$ac_exeext; then
16398 eval "$as_ac_var=yes"
16399 else
16400 echo "$as_me: failed program was:" >&5
16401 sed 's/^/| /' conftest.$ac_ext >&5
16403 eval "$as_ac_var=no"
16406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16407 conftest$ac_exeext conftest.$ac_ext
16409 ac_res=`eval echo '${'$as_ac_var'}'`
16410 { echo "$as_me:$LINENO: result: $ac_res" >&5
16411 echo "${ECHO_T}$ac_res" >&6; }
16412 if test `eval echo '${'$as_ac_var'}'` = yes; then
16413 cat >>confdefs.h <<_ACEOF
16414 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16415 _ACEOF
16418 done
16421 { echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
16422 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6; }
16423 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
16424 echo $ECHO_N "(cached) $ECHO_C" >&6
16425 else
16426 cat >conftest.$ac_ext <<_ACEOF
16427 /* confdefs.h. */
16428 _ACEOF
16429 cat confdefs.h >>conftest.$ac_ext
16430 cat >>conftest.$ac_ext <<_ACEOF
16431 /* end confdefs.h. */
16432 #include <unistd.h>
16435 main ()
16437 #ifndef fdatasync
16438 (void) fdatasync;
16439 #endif
16442 return 0;
16444 _ACEOF
16445 rm -f conftest.$ac_objext
16446 if { (ac_try="$ac_compile"
16447 case "(($ac_try" in
16448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16449 *) ac_try_echo=$ac_try;;
16450 esac
16451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16452 (eval "$ac_compile") 2>conftest.er1
16453 ac_status=$?
16454 grep -v '^ *+' conftest.er1 >conftest.err
16455 rm -f conftest.er1
16456 cat conftest.err >&5
16457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458 (exit $ac_status); } && {
16459 test -z "$ac_c_werror_flag" ||
16460 test ! -s conftest.err
16461 } && test -s conftest.$ac_objext; then
16462 ac_cv_have_decl_fdatasync=yes
16463 else
16464 echo "$as_me: failed program was:" >&5
16465 sed 's/^/| /' conftest.$ac_ext >&5
16467 ac_cv_have_decl_fdatasync=no
16470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16472 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
16473 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6; }
16474 if test $ac_cv_have_decl_fdatasync = yes; then
16476 cat >>confdefs.h <<_ACEOF
16477 #define HAVE_DECL_FDATASYNC 1
16478 _ACEOF
16481 else
16482 cat >>confdefs.h <<_ACEOF
16483 #define HAVE_DECL_FDATASYNC 0
16484 _ACEOF
16490 { echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
16491 echo $ECHO_N "checking whether posix_fadvise is declared... $ECHO_C" >&6; }
16492 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
16493 echo $ECHO_N "(cached) $ECHO_C" >&6
16494 else
16495 cat >conftest.$ac_ext <<_ACEOF
16496 /* confdefs.h. */
16497 _ACEOF
16498 cat confdefs.h >>conftest.$ac_ext
16499 cat >>conftest.$ac_ext <<_ACEOF
16500 /* end confdefs.h. */
16501 #include <fcntl.h>
16504 main ()
16506 #ifndef posix_fadvise
16507 (void) posix_fadvise;
16508 #endif
16511 return 0;
16513 _ACEOF
16514 rm -f conftest.$ac_objext
16515 if { (ac_try="$ac_compile"
16516 case "(($ac_try" in
16517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16518 *) ac_try_echo=$ac_try;;
16519 esac
16520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16521 (eval "$ac_compile") 2>conftest.er1
16522 ac_status=$?
16523 grep -v '^ *+' conftest.er1 >conftest.err
16524 rm -f conftest.er1
16525 cat conftest.err >&5
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); } && {
16528 test -z "$ac_c_werror_flag" ||
16529 test ! -s conftest.err
16530 } && test -s conftest.$ac_objext; then
16531 ac_cv_have_decl_posix_fadvise=yes
16532 else
16533 echo "$as_me: failed program was:" >&5
16534 sed 's/^/| /' conftest.$ac_ext >&5
16536 ac_cv_have_decl_posix_fadvise=no
16539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16541 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
16542 echo "${ECHO_T}$ac_cv_have_decl_posix_fadvise" >&6; }
16543 if test $ac_cv_have_decl_posix_fadvise = yes; then
16545 cat >>confdefs.h <<_ACEOF
16546 #define HAVE_DECL_POSIX_FADVISE 1
16547 _ACEOF
16550 else
16551 cat >>confdefs.h <<_ACEOF
16552 #define HAVE_DECL_POSIX_FADVISE 0
16553 _ACEOF
16559 { echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
16560 echo $ECHO_N "checking whether strlcat is declared... $ECHO_C" >&6; }
16561 if test "${ac_cv_have_decl_strlcat+set}" = set; then
16562 echo $ECHO_N "(cached) $ECHO_C" >&6
16563 else
16564 cat >conftest.$ac_ext <<_ACEOF
16565 /* confdefs.h. */
16566 _ACEOF
16567 cat confdefs.h >>conftest.$ac_ext
16568 cat >>conftest.$ac_ext <<_ACEOF
16569 /* end confdefs.h. */
16570 $ac_includes_default
16572 main ()
16574 #ifndef strlcat
16575 (void) strlcat;
16576 #endif
16579 return 0;
16581 _ACEOF
16582 rm -f conftest.$ac_objext
16583 if { (ac_try="$ac_compile"
16584 case "(($ac_try" in
16585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16586 *) ac_try_echo=$ac_try;;
16587 esac
16588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16589 (eval "$ac_compile") 2>conftest.er1
16590 ac_status=$?
16591 grep -v '^ *+' conftest.er1 >conftest.err
16592 rm -f conftest.er1
16593 cat conftest.err >&5
16594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 (exit $ac_status); } && {
16596 test -z "$ac_c_werror_flag" ||
16597 test ! -s conftest.err
16598 } && test -s conftest.$ac_objext; then
16599 ac_cv_have_decl_strlcat=yes
16600 else
16601 echo "$as_me: failed program was:" >&5
16602 sed 's/^/| /' conftest.$ac_ext >&5
16604 ac_cv_have_decl_strlcat=no
16607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16609 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
16610 echo "${ECHO_T}$ac_cv_have_decl_strlcat" >&6; }
16611 if test $ac_cv_have_decl_strlcat = yes; then
16613 cat >>confdefs.h <<_ACEOF
16614 #define HAVE_DECL_STRLCAT 1
16615 _ACEOF
16618 else
16619 cat >>confdefs.h <<_ACEOF
16620 #define HAVE_DECL_STRLCAT 0
16621 _ACEOF
16625 { echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
16626 echo $ECHO_N "checking whether strlcpy is declared... $ECHO_C" >&6; }
16627 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
16628 echo $ECHO_N "(cached) $ECHO_C" >&6
16629 else
16630 cat >conftest.$ac_ext <<_ACEOF
16631 /* confdefs.h. */
16632 _ACEOF
16633 cat confdefs.h >>conftest.$ac_ext
16634 cat >>conftest.$ac_ext <<_ACEOF
16635 /* end confdefs.h. */
16636 $ac_includes_default
16638 main ()
16640 #ifndef strlcpy
16641 (void) strlcpy;
16642 #endif
16645 return 0;
16647 _ACEOF
16648 rm -f conftest.$ac_objext
16649 if { (ac_try="$ac_compile"
16650 case "(($ac_try" in
16651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16652 *) ac_try_echo=$ac_try;;
16653 esac
16654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16655 (eval "$ac_compile") 2>conftest.er1
16656 ac_status=$?
16657 grep -v '^ *+' conftest.er1 >conftest.err
16658 rm -f conftest.er1
16659 cat conftest.err >&5
16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661 (exit $ac_status); } && {
16662 test -z "$ac_c_werror_flag" ||
16663 test ! -s conftest.err
16664 } && test -s conftest.$ac_objext; then
16665 ac_cv_have_decl_strlcpy=yes
16666 else
16667 echo "$as_me: failed program was:" >&5
16668 sed 's/^/| /' conftest.$ac_ext >&5
16670 ac_cv_have_decl_strlcpy=no
16673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16675 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
16676 echo "${ECHO_T}$ac_cv_have_decl_strlcpy" >&6; }
16677 if test $ac_cv_have_decl_strlcpy = yes; then
16679 cat >>confdefs.h <<_ACEOF
16680 #define HAVE_DECL_STRLCPY 1
16681 _ACEOF
16684 else
16685 cat >>confdefs.h <<_ACEOF
16686 #define HAVE_DECL_STRLCPY 0
16687 _ACEOF
16693 # This is probably only present on Darwin, but may as well check always
16694 { echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
16695 echo $ECHO_N "checking whether F_FULLFSYNC is declared... $ECHO_C" >&6; }
16696 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
16697 echo $ECHO_N "(cached) $ECHO_C" >&6
16698 else
16699 cat >conftest.$ac_ext <<_ACEOF
16700 /* confdefs.h. */
16701 _ACEOF
16702 cat confdefs.h >>conftest.$ac_ext
16703 cat >>conftest.$ac_ext <<_ACEOF
16704 /* end confdefs.h. */
16705 #include <fcntl.h>
16708 main ()
16710 #ifndef F_FULLFSYNC
16711 (void) F_FULLFSYNC;
16712 #endif
16715 return 0;
16717 _ACEOF
16718 rm -f conftest.$ac_objext
16719 if { (ac_try="$ac_compile"
16720 case "(($ac_try" in
16721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16722 *) ac_try_echo=$ac_try;;
16723 esac
16724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16725 (eval "$ac_compile") 2>conftest.er1
16726 ac_status=$?
16727 grep -v '^ *+' conftest.er1 >conftest.err
16728 rm -f conftest.er1
16729 cat conftest.err >&5
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); } && {
16732 test -z "$ac_c_werror_flag" ||
16733 test ! -s conftest.err
16734 } && test -s conftest.$ac_objext; then
16735 ac_cv_have_decl_F_FULLFSYNC=yes
16736 else
16737 echo "$as_me: failed program was:" >&5
16738 sed 's/^/| /' conftest.$ac_ext >&5
16740 ac_cv_have_decl_F_FULLFSYNC=no
16743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16745 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
16746 echo "${ECHO_T}$ac_cv_have_decl_F_FULLFSYNC" >&6; }
16747 if test $ac_cv_have_decl_F_FULLFSYNC = yes; then
16749 cat >>confdefs.h <<_ACEOF
16750 #define HAVE_DECL_F_FULLFSYNC 1
16751 _ACEOF
16754 else
16755 cat >>confdefs.h <<_ACEOF
16756 #define HAVE_DECL_F_FULLFSYNC 0
16757 _ACEOF
16764 HAVE_IPV6=no
16765 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
16766 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
16767 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
16768 echo $ECHO_N "(cached) $ECHO_C" >&6
16769 else
16770 cat >conftest.$ac_ext <<_ACEOF
16771 /* confdefs.h. */
16772 _ACEOF
16773 cat confdefs.h >>conftest.$ac_ext
16774 cat >>conftest.$ac_ext <<_ACEOF
16775 /* end confdefs.h. */
16776 $ac_includes_default
16777 #include <netinet/in.h>
16779 typedef struct sockaddr_in6 ac__type_new_;
16781 main ()
16783 if ((ac__type_new_ *) 0)
16784 return 0;
16785 if (sizeof (ac__type_new_))
16786 return 0;
16788 return 0;
16790 _ACEOF
16791 rm -f conftest.$ac_objext
16792 if { (ac_try="$ac_compile"
16793 case "(($ac_try" in
16794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16795 *) ac_try_echo=$ac_try;;
16796 esac
16797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16798 (eval "$ac_compile") 2>conftest.er1
16799 ac_status=$?
16800 grep -v '^ *+' conftest.er1 >conftest.err
16801 rm -f conftest.er1
16802 cat conftest.err >&5
16803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); } && {
16805 test -z "$ac_c_werror_flag" ||
16806 test ! -s conftest.err
16807 } && test -s conftest.$ac_objext; then
16808 ac_cv_type_struct_sockaddr_in6=yes
16809 else
16810 echo "$as_me: failed program was:" >&5
16811 sed 's/^/| /' conftest.$ac_ext >&5
16813 ac_cv_type_struct_sockaddr_in6=no
16816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16818 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
16819 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
16820 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
16822 cat >>confdefs.h <<\_ACEOF
16823 #define HAVE_IPV6 1
16824 _ACEOF
16826 HAVE_IPV6=yes
16831 { echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
16832 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6; }
16833 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
16834 echo $ECHO_N "(cached) $ECHO_C" >&6
16835 else
16836 cat >conftest.$ac_ext <<_ACEOF
16837 /* confdefs.h. */
16838 _ACEOF
16839 cat confdefs.h >>conftest.$ac_ext
16840 cat >>conftest.$ac_ext <<_ACEOF
16841 /* end confdefs.h. */
16842 #include <machine/vmparam.h>
16843 #include <sys/exec.h>
16846 main ()
16848 PS_STRINGS->ps_nargvstr = 1;
16849 PS_STRINGS->ps_argvstr = "foo";
16851 return 0;
16853 _ACEOF
16854 rm -f conftest.$ac_objext conftest$ac_exeext
16855 if { (ac_try="$ac_link"
16856 case "(($ac_try" in
16857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16858 *) ac_try_echo=$ac_try;;
16859 esac
16860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16861 (eval "$ac_link") 2>conftest.er1
16862 ac_status=$?
16863 grep -v '^ *+' conftest.er1 >conftest.err
16864 rm -f conftest.er1
16865 cat conftest.err >&5
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); } && {
16868 test -z "$ac_c_werror_flag" ||
16869 test ! -s conftest.err
16870 } && test -s conftest$ac_exeext &&
16871 $as_test_x conftest$ac_exeext; then
16872 pgac_cv_var_PS_STRINGS=yes
16873 else
16874 echo "$as_me: failed program was:" >&5
16875 sed 's/^/| /' conftest.$ac_ext >&5
16877 pgac_cv_var_PS_STRINGS=no
16880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16881 conftest$ac_exeext conftest.$ac_ext
16883 { echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
16884 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6; }
16885 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
16887 cat >>confdefs.h <<\_ACEOF
16888 #define HAVE_PS_STRINGS
16889 _ACEOF
16894 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
16895 # is missing. Yes, there are machines that have only one. We may
16896 # also decide to use snprintf.c if snprintf() is present but does not
16897 # have all the features we need --- see below.
16899 if test "$PORTNAME" = "win32"; then
16900 # Win32 gets snprintf.c built unconditionally.
16902 # To properly translate all NLS languages strings, we must support the
16903 # *printf() %$ format, which allows *printf() arguments to be selected
16904 # by position in the translated string.
16906 # libintl versions < 0.13 use the native *printf() functions, and Win32
16907 # *printf() doesn't understand %$, so we must use our /port versions,
16908 # which do understand %$. libintl versions >= 0.13 include their own
16909 # *printf versions on Win32. The libintl 0.13 release note text is:
16911 # C format strings with positions, as they arise when a translator
16912 # needs to reorder a sentence, are now supported on all platforms.
16913 # On those few platforms (NetBSD and Woe32) for which the native
16914 # printf()/fprintf()/... functions don't support such format
16915 # strings, replacements are provided through <libintl.h>.
16917 # We could use libintl >= 0.13's *printf() if we were sure that we had
16918 # a litint >= 0.13 at runtime, but seeing that there is no clean way
16919 # to guarantee that, it is best to just use our own, so we are sure to
16920 # get %$ support. In include/port.h we disable the *printf() macros
16921 # that might have been defined by libintl.
16923 # We do this unconditionally whether NLS is used or not so we are sure
16924 # that all Win32 libraries and binaries behave the same.
16925 pgac_need_repl_snprintf=yes
16926 else
16927 pgac_need_repl_snprintf=no
16929 for ac_func in snprintf
16931 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16932 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16933 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16934 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16935 echo $ECHO_N "(cached) $ECHO_C" >&6
16936 else
16937 cat >conftest.$ac_ext <<_ACEOF
16938 /* confdefs.h. */
16939 _ACEOF
16940 cat confdefs.h >>conftest.$ac_ext
16941 cat >>conftest.$ac_ext <<_ACEOF
16942 /* end confdefs.h. */
16943 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16945 #define $ac_func innocuous_$ac_func
16947 /* System header to define __stub macros and hopefully few prototypes,
16948 which can conflict with char $ac_func (); below.
16949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16950 <limits.h> exists even on freestanding compilers. */
16952 #ifdef __STDC__
16953 # include <limits.h>
16954 #else
16955 # include <assert.h>
16956 #endif
16958 #undef $ac_func
16960 /* Override any GCC internal prototype to avoid an error.
16961 Use char because int might match the return type of a GCC
16962 builtin and then its argument prototype would still apply. */
16963 #ifdef __cplusplus
16964 extern "C"
16965 #endif
16966 char $ac_func ();
16967 /* The GNU C library defines this for functions which it implements
16968 to always fail with ENOSYS. Some functions are actually named
16969 something starting with __ and the normal name is an alias. */
16970 #if defined __stub_$ac_func || defined __stub___$ac_func
16971 choke me
16972 #endif
16975 main ()
16977 return $ac_func ();
16979 return 0;
16981 _ACEOF
16982 rm -f conftest.$ac_objext conftest$ac_exeext
16983 if { (ac_try="$ac_link"
16984 case "(($ac_try" in
16985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16986 *) ac_try_echo=$ac_try;;
16987 esac
16988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16989 (eval "$ac_link") 2>conftest.er1
16990 ac_status=$?
16991 grep -v '^ *+' conftest.er1 >conftest.err
16992 rm -f conftest.er1
16993 cat conftest.err >&5
16994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995 (exit $ac_status); } && {
16996 test -z "$ac_c_werror_flag" ||
16997 test ! -s conftest.err
16998 } && test -s conftest$ac_exeext &&
16999 $as_test_x conftest$ac_exeext; then
17000 eval "$as_ac_var=yes"
17001 else
17002 echo "$as_me: failed program was:" >&5
17003 sed 's/^/| /' conftest.$ac_ext >&5
17005 eval "$as_ac_var=no"
17008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17009 conftest$ac_exeext conftest.$ac_ext
17011 ac_res=`eval echo '${'$as_ac_var'}'`
17012 { echo "$as_me:$LINENO: result: $ac_res" >&5
17013 echo "${ECHO_T}$ac_res" >&6; }
17014 if test `eval echo '${'$as_ac_var'}'` = yes; then
17015 cat >>confdefs.h <<_ACEOF
17016 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17017 _ACEOF
17019 else
17020 pgac_need_repl_snprintf=yes
17022 done
17025 for ac_func in vsnprintf
17027 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17028 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17029 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17030 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17031 echo $ECHO_N "(cached) $ECHO_C" >&6
17032 else
17033 cat >conftest.$ac_ext <<_ACEOF
17034 /* confdefs.h. */
17035 _ACEOF
17036 cat confdefs.h >>conftest.$ac_ext
17037 cat >>conftest.$ac_ext <<_ACEOF
17038 /* end confdefs.h. */
17039 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17040 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17041 #define $ac_func innocuous_$ac_func
17043 /* System header to define __stub macros and hopefully few prototypes,
17044 which can conflict with char $ac_func (); below.
17045 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17046 <limits.h> exists even on freestanding compilers. */
17048 #ifdef __STDC__
17049 # include <limits.h>
17050 #else
17051 # include <assert.h>
17052 #endif
17054 #undef $ac_func
17056 /* Override any GCC internal prototype to avoid an error.
17057 Use char because int might match the return type of a GCC
17058 builtin and then its argument prototype would still apply. */
17059 #ifdef __cplusplus
17060 extern "C"
17061 #endif
17062 char $ac_func ();
17063 /* The GNU C library defines this for functions which it implements
17064 to always fail with ENOSYS. Some functions are actually named
17065 something starting with __ and the normal name is an alias. */
17066 #if defined __stub_$ac_func || defined __stub___$ac_func
17067 choke me
17068 #endif
17071 main ()
17073 return $ac_func ();
17075 return 0;
17077 _ACEOF
17078 rm -f conftest.$ac_objext conftest$ac_exeext
17079 if { (ac_try="$ac_link"
17080 case "(($ac_try" in
17081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17082 *) ac_try_echo=$ac_try;;
17083 esac
17084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17085 (eval "$ac_link") 2>conftest.er1
17086 ac_status=$?
17087 grep -v '^ *+' conftest.er1 >conftest.err
17088 rm -f conftest.er1
17089 cat conftest.err >&5
17090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091 (exit $ac_status); } && {
17092 test -z "$ac_c_werror_flag" ||
17093 test ! -s conftest.err
17094 } && test -s conftest$ac_exeext &&
17095 $as_test_x conftest$ac_exeext; then
17096 eval "$as_ac_var=yes"
17097 else
17098 echo "$as_me: failed program was:" >&5
17099 sed 's/^/| /' conftest.$ac_ext >&5
17101 eval "$as_ac_var=no"
17104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17105 conftest$ac_exeext conftest.$ac_ext
17107 ac_res=`eval echo '${'$as_ac_var'}'`
17108 { echo "$as_me:$LINENO: result: $ac_res" >&5
17109 echo "${ECHO_T}$ac_res" >&6; }
17110 if test `eval echo '${'$as_ac_var'}'` = yes; then
17111 cat >>confdefs.h <<_ACEOF
17112 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17113 _ACEOF
17115 else
17116 pgac_need_repl_snprintf=yes
17118 done
17123 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
17124 # include/c.h will provide declarations. Note this is a separate test
17125 # from whether the functions exist in the C library --- there are
17126 # systems that have the functions but don't bother to declare them :-(
17128 { echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
17129 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
17130 if test "${ac_cv_have_decl_snprintf+set}" = set; then
17131 echo $ECHO_N "(cached) $ECHO_C" >&6
17132 else
17133 cat >conftest.$ac_ext <<_ACEOF
17134 /* confdefs.h. */
17135 _ACEOF
17136 cat confdefs.h >>conftest.$ac_ext
17137 cat >>conftest.$ac_ext <<_ACEOF
17138 /* end confdefs.h. */
17139 $ac_includes_default
17141 main ()
17143 #ifndef snprintf
17144 (void) snprintf;
17145 #endif
17148 return 0;
17150 _ACEOF
17151 rm -f conftest.$ac_objext
17152 if { (ac_try="$ac_compile"
17153 case "(($ac_try" in
17154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17155 *) ac_try_echo=$ac_try;;
17156 esac
17157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17158 (eval "$ac_compile") 2>conftest.er1
17159 ac_status=$?
17160 grep -v '^ *+' conftest.er1 >conftest.err
17161 rm -f conftest.er1
17162 cat conftest.err >&5
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); } && {
17165 test -z "$ac_c_werror_flag" ||
17166 test ! -s conftest.err
17167 } && test -s conftest.$ac_objext; then
17168 ac_cv_have_decl_snprintf=yes
17169 else
17170 echo "$as_me: failed program was:" >&5
17171 sed 's/^/| /' conftest.$ac_ext >&5
17173 ac_cv_have_decl_snprintf=no
17176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17178 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
17179 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
17180 if test $ac_cv_have_decl_snprintf = yes; then
17182 cat >>confdefs.h <<_ACEOF
17183 #define HAVE_DECL_SNPRINTF 1
17184 _ACEOF
17187 else
17188 cat >>confdefs.h <<_ACEOF
17189 #define HAVE_DECL_SNPRINTF 0
17190 _ACEOF
17194 { echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
17195 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
17196 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
17197 echo $ECHO_N "(cached) $ECHO_C" >&6
17198 else
17199 cat >conftest.$ac_ext <<_ACEOF
17200 /* confdefs.h. */
17201 _ACEOF
17202 cat confdefs.h >>conftest.$ac_ext
17203 cat >>conftest.$ac_ext <<_ACEOF
17204 /* end confdefs.h. */
17205 $ac_includes_default
17207 main ()
17209 #ifndef vsnprintf
17210 (void) vsnprintf;
17211 #endif
17214 return 0;
17216 _ACEOF
17217 rm -f conftest.$ac_objext
17218 if { (ac_try="$ac_compile"
17219 case "(($ac_try" in
17220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17221 *) ac_try_echo=$ac_try;;
17222 esac
17223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17224 (eval "$ac_compile") 2>conftest.er1
17225 ac_status=$?
17226 grep -v '^ *+' conftest.er1 >conftest.err
17227 rm -f conftest.er1
17228 cat conftest.err >&5
17229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230 (exit $ac_status); } && {
17231 test -z "$ac_c_werror_flag" ||
17232 test ! -s conftest.err
17233 } && test -s conftest.$ac_objext; then
17234 ac_cv_have_decl_vsnprintf=yes
17235 else
17236 echo "$as_me: failed program was:" >&5
17237 sed 's/^/| /' conftest.$ac_ext >&5
17239 ac_cv_have_decl_vsnprintf=no
17242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17244 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
17245 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
17246 if test $ac_cv_have_decl_vsnprintf = yes; then
17248 cat >>confdefs.h <<_ACEOF
17249 #define HAVE_DECL_VSNPRINTF 1
17250 _ACEOF
17253 else
17254 cat >>confdefs.h <<_ACEOF
17255 #define HAVE_DECL_VSNPRINTF 0
17256 _ACEOF
17264 { echo "$as_me:$LINENO: checking for isinf" >&5
17265 echo $ECHO_N "checking for isinf... $ECHO_C" >&6; }
17266 if test "${ac_cv_func_isinf+set}" = set; then
17267 echo $ECHO_N "(cached) $ECHO_C" >&6
17268 else
17269 cat >conftest.$ac_ext <<_ACEOF
17270 /* confdefs.h. */
17271 _ACEOF
17272 cat confdefs.h >>conftest.$ac_ext
17273 cat >>conftest.$ac_ext <<_ACEOF
17274 /* end confdefs.h. */
17276 #include <math.h>
17277 double glob_double;
17280 main ()
17282 return isinf(glob_double) ? 0 : 1;
17284 return 0;
17286 _ACEOF
17287 rm -f conftest.$ac_objext conftest$ac_exeext
17288 if { (ac_try="$ac_link"
17289 case "(($ac_try" in
17290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17291 *) ac_try_echo=$ac_try;;
17292 esac
17293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17294 (eval "$ac_link") 2>conftest.er1
17295 ac_status=$?
17296 grep -v '^ *+' conftest.er1 >conftest.err
17297 rm -f conftest.er1
17298 cat conftest.err >&5
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); } && {
17301 test -z "$ac_c_werror_flag" ||
17302 test ! -s conftest.err
17303 } && test -s conftest$ac_exeext &&
17304 $as_test_x conftest$ac_exeext; then
17305 ac_cv_func_isinf=yes
17306 else
17307 echo "$as_me: failed program was:" >&5
17308 sed 's/^/| /' conftest.$ac_ext >&5
17310 ac_cv_func_isinf=no
17313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17314 conftest$ac_exeext conftest.$ac_ext
17316 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
17317 echo "${ECHO_T}$ac_cv_func_isinf" >&6; }
17319 if test $ac_cv_func_isinf = yes ; then
17321 cat >>confdefs.h <<\_ACEOF
17322 #define HAVE_ISINF 1
17323 _ACEOF
17325 else
17326 case " $LIBOBJS " in
17327 *" isinf.$ac_objext "* ) ;;
17328 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
17330 esac
17332 # Look for a way to implement a substitute for isinf()
17337 for ac_func in fpclass fp_class fp_class_d class
17339 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17340 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17341 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17342 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17343 echo $ECHO_N "(cached) $ECHO_C" >&6
17344 else
17345 cat >conftest.$ac_ext <<_ACEOF
17346 /* confdefs.h. */
17347 _ACEOF
17348 cat confdefs.h >>conftest.$ac_ext
17349 cat >>conftest.$ac_ext <<_ACEOF
17350 /* end confdefs.h. */
17351 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17352 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17353 #define $ac_func innocuous_$ac_func
17355 /* System header to define __stub macros and hopefully few prototypes,
17356 which can conflict with char $ac_func (); below.
17357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17358 <limits.h> exists even on freestanding compilers. */
17360 #ifdef __STDC__
17361 # include <limits.h>
17362 #else
17363 # include <assert.h>
17364 #endif
17366 #undef $ac_func
17368 /* Override any GCC internal prototype to avoid an error.
17369 Use char because int might match the return type of a GCC
17370 builtin and then its argument prototype would still apply. */
17371 #ifdef __cplusplus
17372 extern "C"
17373 #endif
17374 char $ac_func ();
17375 /* The GNU C library defines this for functions which it implements
17376 to always fail with ENOSYS. Some functions are actually named
17377 something starting with __ and the normal name is an alias. */
17378 #if defined __stub_$ac_func || defined __stub___$ac_func
17379 choke me
17380 #endif
17383 main ()
17385 return $ac_func ();
17387 return 0;
17389 _ACEOF
17390 rm -f conftest.$ac_objext conftest$ac_exeext
17391 if { (ac_try="$ac_link"
17392 case "(($ac_try" in
17393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17394 *) ac_try_echo=$ac_try;;
17395 esac
17396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17397 (eval "$ac_link") 2>conftest.er1
17398 ac_status=$?
17399 grep -v '^ *+' conftest.er1 >conftest.err
17400 rm -f conftest.er1
17401 cat conftest.err >&5
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); } && {
17404 test -z "$ac_c_werror_flag" ||
17405 test ! -s conftest.err
17406 } && test -s conftest$ac_exeext &&
17407 $as_test_x conftest$ac_exeext; then
17408 eval "$as_ac_var=yes"
17409 else
17410 echo "$as_me: failed program was:" >&5
17411 sed 's/^/| /' conftest.$ac_ext >&5
17413 eval "$as_ac_var=no"
17416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17417 conftest$ac_exeext conftest.$ac_ext
17419 ac_res=`eval echo '${'$as_ac_var'}'`
17420 { echo "$as_me:$LINENO: result: $ac_res" >&5
17421 echo "${ECHO_T}$ac_res" >&6; }
17422 if test `eval echo '${'$as_ac_var'}'` = yes; then
17423 cat >>confdefs.h <<_ACEOF
17424 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17425 _ACEOF
17426 break
17428 done
17432 # Some versions of libedit contain strlcpy(); so disregard that library while
17433 # checking for these standard libc functions.
17434 pgac_save_LIBS="$LIBS"
17435 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
17451 for ac_func in crypt getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul unsetenv
17453 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17454 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17455 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17456 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17457 echo $ECHO_N "(cached) $ECHO_C" >&6
17458 else
17459 cat >conftest.$ac_ext <<_ACEOF
17460 /* confdefs.h. */
17461 _ACEOF
17462 cat confdefs.h >>conftest.$ac_ext
17463 cat >>conftest.$ac_ext <<_ACEOF
17464 /* end confdefs.h. */
17465 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17467 #define $ac_func innocuous_$ac_func
17469 /* System header to define __stub macros and hopefully few prototypes,
17470 which can conflict with char $ac_func (); below.
17471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17472 <limits.h> exists even on freestanding compilers. */
17474 #ifdef __STDC__
17475 # include <limits.h>
17476 #else
17477 # include <assert.h>
17478 #endif
17480 #undef $ac_func
17482 /* Override any GCC internal prototype to avoid an error.
17483 Use char because int might match the return type of a GCC
17484 builtin and then its argument prototype would still apply. */
17485 #ifdef __cplusplus
17486 extern "C"
17487 #endif
17488 char $ac_func ();
17489 /* The GNU C library defines this for functions which it implements
17490 to always fail with ENOSYS. Some functions are actually named
17491 something starting with __ and the normal name is an alias. */
17492 #if defined __stub_$ac_func || defined __stub___$ac_func
17493 choke me
17494 #endif
17497 main ()
17499 return $ac_func ();
17501 return 0;
17503 _ACEOF
17504 rm -f conftest.$ac_objext conftest$ac_exeext
17505 if { (ac_try="$ac_link"
17506 case "(($ac_try" in
17507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17508 *) ac_try_echo=$ac_try;;
17509 esac
17510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17511 (eval "$ac_link") 2>conftest.er1
17512 ac_status=$?
17513 grep -v '^ *+' conftest.er1 >conftest.err
17514 rm -f conftest.er1
17515 cat conftest.err >&5
17516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517 (exit $ac_status); } && {
17518 test -z "$ac_c_werror_flag" ||
17519 test ! -s conftest.err
17520 } && test -s conftest$ac_exeext &&
17521 $as_test_x conftest$ac_exeext; then
17522 eval "$as_ac_var=yes"
17523 else
17524 echo "$as_me: failed program was:" >&5
17525 sed 's/^/| /' conftest.$ac_ext >&5
17527 eval "$as_ac_var=no"
17530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17531 conftest$ac_exeext conftest.$ac_ext
17533 ac_res=`eval echo '${'$as_ac_var'}'`
17534 { echo "$as_me:$LINENO: result: $ac_res" >&5
17535 echo "${ECHO_T}$ac_res" >&6; }
17536 if test `eval echo '${'$as_ac_var'}'` = yes; then
17537 cat >>confdefs.h <<_ACEOF
17538 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17539 _ACEOF
17541 else
17542 case " $LIBOBJS " in
17543 *" $ac_func.$ac_objext "* ) ;;
17544 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17546 esac
17549 done
17553 LIBS="$pgac_save_LIBS"
17555 # System's version of getaddrinfo(), if any, may be used only if we found
17556 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
17557 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
17558 # versions of getaddrinfo don't follow normal C call protocol. This is OK
17559 # because we want to use our own getaddrinfo.c on Windows anyway.)
17560 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
17562 for ac_func in getaddrinfo
17564 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17565 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17566 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17567 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17568 echo $ECHO_N "(cached) $ECHO_C" >&6
17569 else
17570 cat >conftest.$ac_ext <<_ACEOF
17571 /* confdefs.h. */
17572 _ACEOF
17573 cat confdefs.h >>conftest.$ac_ext
17574 cat >>conftest.$ac_ext <<_ACEOF
17575 /* end confdefs.h. */
17576 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17578 #define $ac_func innocuous_$ac_func
17580 /* System header to define __stub macros and hopefully few prototypes,
17581 which can conflict with char $ac_func (); below.
17582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17583 <limits.h> exists even on freestanding compilers. */
17585 #ifdef __STDC__
17586 # include <limits.h>
17587 #else
17588 # include <assert.h>
17589 #endif
17591 #undef $ac_func
17593 /* Override any GCC internal prototype to avoid an error.
17594 Use char because int might match the return type of a GCC
17595 builtin and then its argument prototype would still apply. */
17596 #ifdef __cplusplus
17597 extern "C"
17598 #endif
17599 char $ac_func ();
17600 /* The GNU C library defines this for functions which it implements
17601 to always fail with ENOSYS. Some functions are actually named
17602 something starting with __ and the normal name is an alias. */
17603 #if defined __stub_$ac_func || defined __stub___$ac_func
17604 choke me
17605 #endif
17608 main ()
17610 return $ac_func ();
17612 return 0;
17614 _ACEOF
17615 rm -f conftest.$ac_objext conftest$ac_exeext
17616 if { (ac_try="$ac_link"
17617 case "(($ac_try" in
17618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17619 *) ac_try_echo=$ac_try;;
17620 esac
17621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17622 (eval "$ac_link") 2>conftest.er1
17623 ac_status=$?
17624 grep -v '^ *+' conftest.er1 >conftest.err
17625 rm -f conftest.er1
17626 cat conftest.err >&5
17627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628 (exit $ac_status); } && {
17629 test -z "$ac_c_werror_flag" ||
17630 test ! -s conftest.err
17631 } && test -s conftest$ac_exeext &&
17632 $as_test_x conftest$ac_exeext; then
17633 eval "$as_ac_var=yes"
17634 else
17635 echo "$as_me: failed program was:" >&5
17636 sed 's/^/| /' conftest.$ac_ext >&5
17638 eval "$as_ac_var=no"
17641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17642 conftest$ac_exeext conftest.$ac_ext
17644 ac_res=`eval echo '${'$as_ac_var'}'`
17645 { echo "$as_me:$LINENO: result: $ac_res" >&5
17646 echo "${ECHO_T}$ac_res" >&6; }
17647 if test `eval echo '${'$as_ac_var'}'` = yes; then
17648 cat >>confdefs.h <<_ACEOF
17649 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17650 _ACEOF
17652 else
17653 case " $LIBOBJS " in
17654 *" $ac_func.$ac_objext "* ) ;;
17655 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17657 esac
17660 done
17663 else
17664 case " $LIBOBJS " in
17665 *" getaddrinfo.$ac_objext "* ) ;;
17666 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
17668 esac
17672 # Similarly, use system's getopt_long() only if system provides struct option.
17673 # Solaris' getopt() doesn't do what we want for long options, so always use
17674 # our versions on that platform.
17675 if test "$PORTNAME" = "solaris"; then
17676 case " $LIBOBJS " in
17677 *" getopt.$ac_objext "* ) ;;
17678 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
17680 esac
17682 case " $LIBOBJS " in
17683 *" getopt_long.$ac_objext "* ) ;;
17684 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
17686 esac
17688 elif test x"$ac_cv_type_struct_option" = xyes ; then
17690 for ac_func in getopt_long
17692 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17693 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17694 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17695 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17696 echo $ECHO_N "(cached) $ECHO_C" >&6
17697 else
17698 cat >conftest.$ac_ext <<_ACEOF
17699 /* confdefs.h. */
17700 _ACEOF
17701 cat confdefs.h >>conftest.$ac_ext
17702 cat >>conftest.$ac_ext <<_ACEOF
17703 /* end confdefs.h. */
17704 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17706 #define $ac_func innocuous_$ac_func
17708 /* System header to define __stub macros and hopefully few prototypes,
17709 which can conflict with char $ac_func (); below.
17710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17711 <limits.h> exists even on freestanding compilers. */
17713 #ifdef __STDC__
17714 # include <limits.h>
17715 #else
17716 # include <assert.h>
17717 #endif
17719 #undef $ac_func
17721 /* Override any GCC internal prototype to avoid an error.
17722 Use char because int might match the return type of a GCC
17723 builtin and then its argument prototype would still apply. */
17724 #ifdef __cplusplus
17725 extern "C"
17726 #endif
17727 char $ac_func ();
17728 /* The GNU C library defines this for functions which it implements
17729 to always fail with ENOSYS. Some functions are actually named
17730 something starting with __ and the normal name is an alias. */
17731 #if defined __stub_$ac_func || defined __stub___$ac_func
17732 choke me
17733 #endif
17736 main ()
17738 return $ac_func ();
17740 return 0;
17742 _ACEOF
17743 rm -f conftest.$ac_objext conftest$ac_exeext
17744 if { (ac_try="$ac_link"
17745 case "(($ac_try" in
17746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17747 *) ac_try_echo=$ac_try;;
17748 esac
17749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17750 (eval "$ac_link") 2>conftest.er1
17751 ac_status=$?
17752 grep -v '^ *+' conftest.er1 >conftest.err
17753 rm -f conftest.er1
17754 cat conftest.err >&5
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); } && {
17757 test -z "$ac_c_werror_flag" ||
17758 test ! -s conftest.err
17759 } && test -s conftest$ac_exeext &&
17760 $as_test_x conftest$ac_exeext; then
17761 eval "$as_ac_var=yes"
17762 else
17763 echo "$as_me: failed program was:" >&5
17764 sed 's/^/| /' conftest.$ac_ext >&5
17766 eval "$as_ac_var=no"
17769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17770 conftest$ac_exeext conftest.$ac_ext
17772 ac_res=`eval echo '${'$as_ac_var'}'`
17773 { echo "$as_me:$LINENO: result: $ac_res" >&5
17774 echo "${ECHO_T}$ac_res" >&6; }
17775 if test `eval echo '${'$as_ac_var'}'` = yes; then
17776 cat >>confdefs.h <<_ACEOF
17777 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17778 _ACEOF
17780 else
17781 case " $LIBOBJS " in
17782 *" $ac_func.$ac_objext "* ) ;;
17783 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17785 esac
17788 done
17791 else
17792 case " $LIBOBJS " in
17793 *" getopt_long.$ac_objext "* ) ;;
17794 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
17796 esac
17800 # Win32 support
17801 if test "$PORTNAME" = "win32"; then
17803 for ac_func in gettimeofday
17805 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17806 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17807 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17808 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17809 echo $ECHO_N "(cached) $ECHO_C" >&6
17810 else
17811 cat >conftest.$ac_ext <<_ACEOF
17812 /* confdefs.h. */
17813 _ACEOF
17814 cat confdefs.h >>conftest.$ac_ext
17815 cat >>conftest.$ac_ext <<_ACEOF
17816 /* end confdefs.h. */
17817 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17819 #define $ac_func innocuous_$ac_func
17821 /* System header to define __stub macros and hopefully few prototypes,
17822 which can conflict with char $ac_func (); below.
17823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17824 <limits.h> exists even on freestanding compilers. */
17826 #ifdef __STDC__
17827 # include <limits.h>
17828 #else
17829 # include <assert.h>
17830 #endif
17832 #undef $ac_func
17834 /* Override any GCC internal prototype to avoid an error.
17835 Use char because int might match the return type of a GCC
17836 builtin and then its argument prototype would still apply. */
17837 #ifdef __cplusplus
17838 extern "C"
17839 #endif
17840 char $ac_func ();
17841 /* The GNU C library defines this for functions which it implements
17842 to always fail with ENOSYS. Some functions are actually named
17843 something starting with __ and the normal name is an alias. */
17844 #if defined __stub_$ac_func || defined __stub___$ac_func
17845 choke me
17846 #endif
17849 main ()
17851 return $ac_func ();
17853 return 0;
17855 _ACEOF
17856 rm -f conftest.$ac_objext conftest$ac_exeext
17857 if { (ac_try="$ac_link"
17858 case "(($ac_try" in
17859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17860 *) ac_try_echo=$ac_try;;
17861 esac
17862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17863 (eval "$ac_link") 2>conftest.er1
17864 ac_status=$?
17865 grep -v '^ *+' conftest.er1 >conftest.err
17866 rm -f conftest.er1
17867 cat conftest.err >&5
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); } && {
17870 test -z "$ac_c_werror_flag" ||
17871 test ! -s conftest.err
17872 } && test -s conftest$ac_exeext &&
17873 $as_test_x conftest$ac_exeext; then
17874 eval "$as_ac_var=yes"
17875 else
17876 echo "$as_me: failed program was:" >&5
17877 sed 's/^/| /' conftest.$ac_ext >&5
17879 eval "$as_ac_var=no"
17882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17883 conftest$ac_exeext conftest.$ac_ext
17885 ac_res=`eval echo '${'$as_ac_var'}'`
17886 { echo "$as_me:$LINENO: result: $ac_res" >&5
17887 echo "${ECHO_T}$ac_res" >&6; }
17888 if test `eval echo '${'$as_ac_var'}'` = yes; then
17889 cat >>confdefs.h <<_ACEOF
17890 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17891 _ACEOF
17893 else
17894 case " $LIBOBJS " in
17895 *" $ac_func.$ac_objext "* ) ;;
17896 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17898 esac
17901 done
17904 case " $LIBOBJS " in
17905 *" kill.$ac_objext "* ) ;;
17906 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
17908 esac
17910 case " $LIBOBJS " in
17911 *" open.$ac_objext "* ) ;;
17912 *) LIBOBJS="$LIBOBJS open.$ac_objext"
17914 esac
17916 case " $LIBOBJS " in
17917 *" rand.$ac_objext "* ) ;;
17918 *) LIBOBJS="$LIBOBJS rand.$ac_objext"
17920 esac
17922 case " $LIBOBJS " in
17923 *" win32env.$ac_objext "* ) ;;
17924 *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
17926 esac
17928 case " $LIBOBJS " in
17929 *" win32error.$ac_objext "* ) ;;
17930 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
17932 esac
17935 cat >>confdefs.h <<\_ACEOF
17936 #define HAVE_SYMLINK 1
17937 _ACEOF
17941 if test "$with_readline" = yes; then
17942 { echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
17943 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6; }
17944 cat >conftest.$ac_ext <<_ACEOF
17945 /* confdefs.h. */
17946 _ACEOF
17947 cat confdefs.h >>conftest.$ac_ext
17948 cat >>conftest.$ac_ext <<_ACEOF
17949 /* end confdefs.h. */
17950 #include <stdio.h>
17951 #ifdef HAVE_READLINE_READLINE_H
17952 # include <readline/readline.h>
17953 #elif defined(HAVE_READLINE_H)
17954 # include <readline.h>
17955 #endif
17958 main ()
17960 rl_completion_append_character = 'x';
17962 return 0;
17964 _ACEOF
17965 rm -f conftest.$ac_objext conftest$ac_exeext
17966 if { (ac_try="$ac_link"
17967 case "(($ac_try" in
17968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17969 *) ac_try_echo=$ac_try;;
17970 esac
17971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17972 (eval "$ac_link") 2>conftest.er1
17973 ac_status=$?
17974 grep -v '^ *+' conftest.er1 >conftest.err
17975 rm -f conftest.er1
17976 cat conftest.err >&5
17977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978 (exit $ac_status); } && {
17979 test -z "$ac_c_werror_flag" ||
17980 test ! -s conftest.err
17981 } && test -s conftest$ac_exeext &&
17982 $as_test_x conftest$ac_exeext; then
17983 { echo "$as_me:$LINENO: result: yes" >&5
17984 echo "${ECHO_T}yes" >&6; }
17986 cat >>confdefs.h <<\_ACEOF
17987 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
17988 _ACEOF
17990 else
17991 echo "$as_me: failed program was:" >&5
17992 sed 's/^/| /' conftest.$ac_ext >&5
17994 { echo "$as_me:$LINENO: result: no" >&5
17995 echo "${ECHO_T}no" >&6; }
17998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17999 conftest$ac_exeext conftest.$ac_ext
18002 for ac_func in rl_completion_matches rl_filename_completion_function
18004 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18005 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18006 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18007 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18008 echo $ECHO_N "(cached) $ECHO_C" >&6
18009 else
18010 cat >conftest.$ac_ext <<_ACEOF
18011 /* confdefs.h. */
18012 _ACEOF
18013 cat confdefs.h >>conftest.$ac_ext
18014 cat >>conftest.$ac_ext <<_ACEOF
18015 /* end confdefs.h. */
18016 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18018 #define $ac_func innocuous_$ac_func
18020 /* System header to define __stub macros and hopefully few prototypes,
18021 which can conflict with char $ac_func (); below.
18022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18023 <limits.h> exists even on freestanding compilers. */
18025 #ifdef __STDC__
18026 # include <limits.h>
18027 #else
18028 # include <assert.h>
18029 #endif
18031 #undef $ac_func
18033 /* Override any GCC internal prototype to avoid an error.
18034 Use char because int might match the return type of a GCC
18035 builtin and then its argument prototype would still apply. */
18036 #ifdef __cplusplus
18037 extern "C"
18038 #endif
18039 char $ac_func ();
18040 /* The GNU C library defines this for functions which it implements
18041 to always fail with ENOSYS. Some functions are actually named
18042 something starting with __ and the normal name is an alias. */
18043 #if defined __stub_$ac_func || defined __stub___$ac_func
18044 choke me
18045 #endif
18048 main ()
18050 return $ac_func ();
18052 return 0;
18054 _ACEOF
18055 rm -f conftest.$ac_objext conftest$ac_exeext
18056 if { (ac_try="$ac_link"
18057 case "(($ac_try" in
18058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18059 *) ac_try_echo=$ac_try;;
18060 esac
18061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18062 (eval "$ac_link") 2>conftest.er1
18063 ac_status=$?
18064 grep -v '^ *+' conftest.er1 >conftest.err
18065 rm -f conftest.er1
18066 cat conftest.err >&5
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); } && {
18069 test -z "$ac_c_werror_flag" ||
18070 test ! -s conftest.err
18071 } && test -s conftest$ac_exeext &&
18072 $as_test_x conftest$ac_exeext; then
18073 eval "$as_ac_var=yes"
18074 else
18075 echo "$as_me: failed program was:" >&5
18076 sed 's/^/| /' conftest.$ac_ext >&5
18078 eval "$as_ac_var=no"
18081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18082 conftest$ac_exeext conftest.$ac_ext
18084 ac_res=`eval echo '${'$as_ac_var'}'`
18085 { echo "$as_me:$LINENO: result: $ac_res" >&5
18086 echo "${ECHO_T}$ac_res" >&6; }
18087 if test `eval echo '${'$as_ac_var'}'` = yes; then
18088 cat >>confdefs.h <<_ACEOF
18089 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18090 _ACEOF
18093 done
18096 for ac_func in replace_history_entry
18098 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18099 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18100 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18101 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18102 echo $ECHO_N "(cached) $ECHO_C" >&6
18103 else
18104 cat >conftest.$ac_ext <<_ACEOF
18105 /* confdefs.h. */
18106 _ACEOF
18107 cat confdefs.h >>conftest.$ac_ext
18108 cat >>conftest.$ac_ext <<_ACEOF
18109 /* end confdefs.h. */
18110 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18112 #define $ac_func innocuous_$ac_func
18114 /* System header to define __stub macros and hopefully few prototypes,
18115 which can conflict with char $ac_func (); below.
18116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18117 <limits.h> exists even on freestanding compilers. */
18119 #ifdef __STDC__
18120 # include <limits.h>
18121 #else
18122 # include <assert.h>
18123 #endif
18125 #undef $ac_func
18127 /* Override any GCC internal prototype to avoid an error.
18128 Use char because int might match the return type of a GCC
18129 builtin and then its argument prototype would still apply. */
18130 #ifdef __cplusplus
18131 extern "C"
18132 #endif
18133 char $ac_func ();
18134 /* The GNU C library defines this for functions which it implements
18135 to always fail with ENOSYS. Some functions are actually named
18136 something starting with __ and the normal name is an alias. */
18137 #if defined __stub_$ac_func || defined __stub___$ac_func
18138 choke me
18139 #endif
18142 main ()
18144 return $ac_func ();
18146 return 0;
18148 _ACEOF
18149 rm -f conftest.$ac_objext conftest$ac_exeext
18150 if { (ac_try="$ac_link"
18151 case "(($ac_try" in
18152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18153 *) ac_try_echo=$ac_try;;
18154 esac
18155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18156 (eval "$ac_link") 2>conftest.er1
18157 ac_status=$?
18158 grep -v '^ *+' conftest.er1 >conftest.err
18159 rm -f conftest.er1
18160 cat conftest.err >&5
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); } && {
18163 test -z "$ac_c_werror_flag" ||
18164 test ! -s conftest.err
18165 } && test -s conftest$ac_exeext &&
18166 $as_test_x conftest$ac_exeext; then
18167 eval "$as_ac_var=yes"
18168 else
18169 echo "$as_me: failed program was:" >&5
18170 sed 's/^/| /' conftest.$ac_ext >&5
18172 eval "$as_ac_var=no"
18175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18176 conftest$ac_exeext conftest.$ac_ext
18178 ac_res=`eval echo '${'$as_ac_var'}'`
18179 { echo "$as_me:$LINENO: result: $ac_res" >&5
18180 echo "${ECHO_T}$ac_res" >&6; }
18181 if test `eval echo '${'$as_ac_var'}'` = yes; then
18182 cat >>confdefs.h <<_ACEOF
18183 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18184 _ACEOF
18187 done
18192 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
18193 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
18194 cat >conftest.$ac_ext <<_ACEOF
18195 /* confdefs.h. */
18196 _ACEOF
18197 cat confdefs.h >>conftest.$ac_ext
18198 cat >>conftest.$ac_ext <<_ACEOF
18199 /* end confdefs.h. */
18200 #include <setjmp.h>
18202 main ()
18204 sigjmp_buf x; sigsetjmp(x, 1);
18206 return 0;
18208 _ACEOF
18209 rm -f conftest.$ac_objext conftest$ac_exeext
18210 if { (ac_try="$ac_link"
18211 case "(($ac_try" in
18212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18213 *) ac_try_echo=$ac_try;;
18214 esac
18215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18216 (eval "$ac_link") 2>conftest.er1
18217 ac_status=$?
18218 grep -v '^ *+' conftest.er1 >conftest.err
18219 rm -f conftest.er1
18220 cat conftest.err >&5
18221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222 (exit $ac_status); } && {
18223 test -z "$ac_c_werror_flag" ||
18224 test ! -s conftest.err
18225 } && test -s conftest$ac_exeext &&
18226 $as_test_x conftest$ac_exeext; then
18228 cat >>confdefs.h <<\_ACEOF
18229 #define HAVE_SIGSETJMP 1
18230 _ACEOF
18232 { echo "$as_me:$LINENO: result: yes" >&5
18233 echo "${ECHO_T}yes" >&6; }
18234 else
18235 echo "$as_me: failed program was:" >&5
18236 sed 's/^/| /' conftest.$ac_ext >&5
18238 { echo "$as_me:$LINENO: result: no" >&5
18239 echo "${ECHO_T}no" >&6; }
18242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18243 conftest$ac_exeext conftest.$ac_ext
18245 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
18246 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
18247 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
18248 echo $ECHO_N "(cached) $ECHO_C" >&6
18249 else
18250 cat >conftest.$ac_ext <<_ACEOF
18251 /* confdefs.h. */
18252 _ACEOF
18253 cat confdefs.h >>conftest.$ac_ext
18254 cat >>conftest.$ac_ext <<_ACEOF
18255 /* end confdefs.h. */
18256 #include <signal.h>
18257 /* NetBSD declares sys_siglist in unistd.h. */
18258 #ifdef HAVE_UNISTD_H
18259 # include <unistd.h>
18260 #endif
18264 main ()
18266 #ifndef sys_siglist
18267 (void) sys_siglist;
18268 #endif
18271 return 0;
18273 _ACEOF
18274 rm -f conftest.$ac_objext
18275 if { (ac_try="$ac_compile"
18276 case "(($ac_try" in
18277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18278 *) ac_try_echo=$ac_try;;
18279 esac
18280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18281 (eval "$ac_compile") 2>conftest.er1
18282 ac_status=$?
18283 grep -v '^ *+' conftest.er1 >conftest.err
18284 rm -f conftest.er1
18285 cat conftest.err >&5
18286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287 (exit $ac_status); } && {
18288 test -z "$ac_c_werror_flag" ||
18289 test ! -s conftest.err
18290 } && test -s conftest.$ac_objext; then
18291 ac_cv_have_decl_sys_siglist=yes
18292 else
18293 echo "$as_me: failed program was:" >&5
18294 sed 's/^/| /' conftest.$ac_ext >&5
18296 ac_cv_have_decl_sys_siglist=no
18299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18301 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
18302 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
18303 if test $ac_cv_have_decl_sys_siglist = yes; then
18305 cat >>confdefs.h <<_ACEOF
18306 #define HAVE_DECL_SYS_SIGLIST 1
18307 _ACEOF
18310 else
18311 cat >>confdefs.h <<_ACEOF
18312 #define HAVE_DECL_SYS_SIGLIST 0
18313 _ACEOF
18321 { echo "$as_me:$LINENO: checking for syslog" >&5
18322 echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
18323 if test "${ac_cv_func_syslog+set}" = set; then
18324 echo $ECHO_N "(cached) $ECHO_C" >&6
18325 else
18326 cat >conftest.$ac_ext <<_ACEOF
18327 /* confdefs.h. */
18328 _ACEOF
18329 cat confdefs.h >>conftest.$ac_ext
18330 cat >>conftest.$ac_ext <<_ACEOF
18331 /* end confdefs.h. */
18332 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
18333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18334 #define syslog innocuous_syslog
18336 /* System header to define __stub macros and hopefully few prototypes,
18337 which can conflict with char syslog (); below.
18338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18339 <limits.h> exists even on freestanding compilers. */
18341 #ifdef __STDC__
18342 # include <limits.h>
18343 #else
18344 # include <assert.h>
18345 #endif
18347 #undef syslog
18349 /* Override any GCC internal prototype to avoid an error.
18350 Use char because int might match the return type of a GCC
18351 builtin and then its argument prototype would still apply. */
18352 #ifdef __cplusplus
18353 extern "C"
18354 #endif
18355 char syslog ();
18356 /* The GNU C library defines this for functions which it implements
18357 to always fail with ENOSYS. Some functions are actually named
18358 something starting with __ and the normal name is an alias. */
18359 #if defined __stub_syslog || defined __stub___syslog
18360 choke me
18361 #endif
18364 main ()
18366 return syslog ();
18368 return 0;
18370 _ACEOF
18371 rm -f conftest.$ac_objext conftest$ac_exeext
18372 if { (ac_try="$ac_link"
18373 case "(($ac_try" in
18374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18375 *) ac_try_echo=$ac_try;;
18376 esac
18377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18378 (eval "$ac_link") 2>conftest.er1
18379 ac_status=$?
18380 grep -v '^ *+' conftest.er1 >conftest.err
18381 rm -f conftest.er1
18382 cat conftest.err >&5
18383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18384 (exit $ac_status); } && {
18385 test -z "$ac_c_werror_flag" ||
18386 test ! -s conftest.err
18387 } && test -s conftest$ac_exeext &&
18388 $as_test_x conftest$ac_exeext; then
18389 ac_cv_func_syslog=yes
18390 else
18391 echo "$as_me: failed program was:" >&5
18392 sed 's/^/| /' conftest.$ac_ext >&5
18394 ac_cv_func_syslog=no
18397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18398 conftest$ac_exeext conftest.$ac_ext
18400 { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
18401 echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
18402 if test $ac_cv_func_syslog = yes; then
18403 if test "${ac_cv_header_syslog_h+set}" = set; then
18404 { echo "$as_me:$LINENO: checking for syslog.h" >&5
18405 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
18406 if test "${ac_cv_header_syslog_h+set}" = set; then
18407 echo $ECHO_N "(cached) $ECHO_C" >&6
18409 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
18410 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
18411 else
18412 # Is the header compilable?
18413 { echo "$as_me:$LINENO: checking syslog.h usability" >&5
18414 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6; }
18415 cat >conftest.$ac_ext <<_ACEOF
18416 /* confdefs.h. */
18417 _ACEOF
18418 cat confdefs.h >>conftest.$ac_ext
18419 cat >>conftest.$ac_ext <<_ACEOF
18420 /* end confdefs.h. */
18421 $ac_includes_default
18422 #include <syslog.h>
18423 _ACEOF
18424 rm -f conftest.$ac_objext
18425 if { (ac_try="$ac_compile"
18426 case "(($ac_try" in
18427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18428 *) ac_try_echo=$ac_try;;
18429 esac
18430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18431 (eval "$ac_compile") 2>conftest.er1
18432 ac_status=$?
18433 grep -v '^ *+' conftest.er1 >conftest.err
18434 rm -f conftest.er1
18435 cat conftest.err >&5
18436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437 (exit $ac_status); } && {
18438 test -z "$ac_c_werror_flag" ||
18439 test ! -s conftest.err
18440 } && test -s conftest.$ac_objext; then
18441 ac_header_compiler=yes
18442 else
18443 echo "$as_me: failed program was:" >&5
18444 sed 's/^/| /' conftest.$ac_ext >&5
18446 ac_header_compiler=no
18449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18450 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18451 echo "${ECHO_T}$ac_header_compiler" >&6; }
18453 # Is the header present?
18454 { echo "$as_me:$LINENO: checking syslog.h presence" >&5
18455 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6; }
18456 cat >conftest.$ac_ext <<_ACEOF
18457 /* confdefs.h. */
18458 _ACEOF
18459 cat confdefs.h >>conftest.$ac_ext
18460 cat >>conftest.$ac_ext <<_ACEOF
18461 /* end confdefs.h. */
18462 #include <syslog.h>
18463 _ACEOF
18464 if { (ac_try="$ac_cpp conftest.$ac_ext"
18465 case "(($ac_try" in
18466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18467 *) ac_try_echo=$ac_try;;
18468 esac
18469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18470 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18471 ac_status=$?
18472 grep -v '^ *+' conftest.er1 >conftest.err
18473 rm -f conftest.er1
18474 cat conftest.err >&5
18475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476 (exit $ac_status); } >/dev/null && {
18477 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18478 test ! -s conftest.err
18479 }; then
18480 ac_header_preproc=yes
18481 else
18482 echo "$as_me: failed program was:" >&5
18483 sed 's/^/| /' conftest.$ac_ext >&5
18485 ac_header_preproc=no
18488 rm -f conftest.err conftest.$ac_ext
18489 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18490 echo "${ECHO_T}$ac_header_preproc" >&6; }
18492 # So? What about this header?
18493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18494 yes:no: )
18495 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
18496 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18497 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
18498 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
18499 ac_header_preproc=yes
18501 no:yes:* )
18502 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
18503 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
18504 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
18505 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
18506 { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
18507 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
18508 { echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
18509 echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
18510 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
18511 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
18512 { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
18513 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
18514 ( cat <<\_ASBOX
18515 ## ---------------------------------------- ##
18516 ## Report this to pgsql-bugs@postgresql.org ##
18517 ## ---------------------------------------- ##
18518 _ASBOX
18519 ) | sed "s/^/$as_me: WARNING: /" >&2
18521 esac
18522 { echo "$as_me:$LINENO: checking for syslog.h" >&5
18523 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
18524 if test "${ac_cv_header_syslog_h+set}" = set; then
18525 echo $ECHO_N "(cached) $ECHO_C" >&6
18526 else
18527 ac_cv_header_syslog_h=$ac_header_preproc
18529 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
18530 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
18533 if test $ac_cv_header_syslog_h = yes; then
18535 cat >>confdefs.h <<\_ACEOF
18536 #define HAVE_SYSLOG 1
18537 _ACEOF
18545 { echo "$as_me:$LINENO: checking for optreset" >&5
18546 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
18547 if test "${pgac_cv_var_int_optreset+set}" = set; then
18548 echo $ECHO_N "(cached) $ECHO_C" >&6
18549 else
18550 cat >conftest.$ac_ext <<_ACEOF
18551 /* confdefs.h. */
18552 _ACEOF
18553 cat confdefs.h >>conftest.$ac_ext
18554 cat >>conftest.$ac_ext <<_ACEOF
18555 /* end confdefs.h. */
18556 #include <unistd.h>
18558 main ()
18560 extern int optreset; optreset = 1;
18562 return 0;
18564 _ACEOF
18565 rm -f conftest.$ac_objext conftest$ac_exeext
18566 if { (ac_try="$ac_link"
18567 case "(($ac_try" in
18568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18569 *) ac_try_echo=$ac_try;;
18570 esac
18571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18572 (eval "$ac_link") 2>conftest.er1
18573 ac_status=$?
18574 grep -v '^ *+' conftest.er1 >conftest.err
18575 rm -f conftest.er1
18576 cat conftest.err >&5
18577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578 (exit $ac_status); } && {
18579 test -z "$ac_c_werror_flag" ||
18580 test ! -s conftest.err
18581 } && test -s conftest$ac_exeext &&
18582 $as_test_x conftest$ac_exeext; then
18583 pgac_cv_var_int_optreset=yes
18584 else
18585 echo "$as_me: failed program was:" >&5
18586 sed 's/^/| /' conftest.$ac_ext >&5
18588 pgac_cv_var_int_optreset=no
18591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18592 conftest$ac_exeext conftest.$ac_ext
18594 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
18595 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6; }
18596 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
18598 cat >>confdefs.h <<\_ACEOF
18599 #define HAVE_INT_OPTRESET 1
18600 _ACEOF
18606 for ac_func in strtoll strtoq
18608 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18609 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18610 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18611 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18612 echo $ECHO_N "(cached) $ECHO_C" >&6
18613 else
18614 cat >conftest.$ac_ext <<_ACEOF
18615 /* confdefs.h. */
18616 _ACEOF
18617 cat confdefs.h >>conftest.$ac_ext
18618 cat >>conftest.$ac_ext <<_ACEOF
18619 /* end confdefs.h. */
18620 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18622 #define $ac_func innocuous_$ac_func
18624 /* System header to define __stub macros and hopefully few prototypes,
18625 which can conflict with char $ac_func (); below.
18626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18627 <limits.h> exists even on freestanding compilers. */
18629 #ifdef __STDC__
18630 # include <limits.h>
18631 #else
18632 # include <assert.h>
18633 #endif
18635 #undef $ac_func
18637 /* Override any GCC internal prototype to avoid an error.
18638 Use char because int might match the return type of a GCC
18639 builtin and then its argument prototype would still apply. */
18640 #ifdef __cplusplus
18641 extern "C"
18642 #endif
18643 char $ac_func ();
18644 /* The GNU C library defines this for functions which it implements
18645 to always fail with ENOSYS. Some functions are actually named
18646 something starting with __ and the normal name is an alias. */
18647 #if defined __stub_$ac_func || defined __stub___$ac_func
18648 choke me
18649 #endif
18652 main ()
18654 return $ac_func ();
18656 return 0;
18658 _ACEOF
18659 rm -f conftest.$ac_objext conftest$ac_exeext
18660 if { (ac_try="$ac_link"
18661 case "(($ac_try" in
18662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18663 *) ac_try_echo=$ac_try;;
18664 esac
18665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18666 (eval "$ac_link") 2>conftest.er1
18667 ac_status=$?
18668 grep -v '^ *+' conftest.er1 >conftest.err
18669 rm -f conftest.er1
18670 cat conftest.err >&5
18671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18672 (exit $ac_status); } && {
18673 test -z "$ac_c_werror_flag" ||
18674 test ! -s conftest.err
18675 } && test -s conftest$ac_exeext &&
18676 $as_test_x conftest$ac_exeext; then
18677 eval "$as_ac_var=yes"
18678 else
18679 echo "$as_me: failed program was:" >&5
18680 sed 's/^/| /' conftest.$ac_ext >&5
18682 eval "$as_ac_var=no"
18685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18686 conftest$ac_exeext conftest.$ac_ext
18688 ac_res=`eval echo '${'$as_ac_var'}'`
18689 { echo "$as_me:$LINENO: result: $ac_res" >&5
18690 echo "${ECHO_T}$ac_res" >&6; }
18691 if test `eval echo '${'$as_ac_var'}'` = yes; then
18692 cat >>confdefs.h <<_ACEOF
18693 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18694 _ACEOF
18695 break
18697 done
18701 for ac_func in strtoull strtouq
18703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18704 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18706 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18707 echo $ECHO_N "(cached) $ECHO_C" >&6
18708 else
18709 cat >conftest.$ac_ext <<_ACEOF
18710 /* confdefs.h. */
18711 _ACEOF
18712 cat confdefs.h >>conftest.$ac_ext
18713 cat >>conftest.$ac_ext <<_ACEOF
18714 /* end confdefs.h. */
18715 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18717 #define $ac_func innocuous_$ac_func
18719 /* System header to define __stub macros and hopefully few prototypes,
18720 which can conflict with char $ac_func (); below.
18721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18722 <limits.h> exists even on freestanding compilers. */
18724 #ifdef __STDC__
18725 # include <limits.h>
18726 #else
18727 # include <assert.h>
18728 #endif
18730 #undef $ac_func
18732 /* Override any GCC internal prototype to avoid an error.
18733 Use char because int might match the return type of a GCC
18734 builtin and then its argument prototype would still apply. */
18735 #ifdef __cplusplus
18736 extern "C"
18737 #endif
18738 char $ac_func ();
18739 /* The GNU C library defines this for functions which it implements
18740 to always fail with ENOSYS. Some functions are actually named
18741 something starting with __ and the normal name is an alias. */
18742 #if defined __stub_$ac_func || defined __stub___$ac_func
18743 choke me
18744 #endif
18747 main ()
18749 return $ac_func ();
18751 return 0;
18753 _ACEOF
18754 rm -f conftest.$ac_objext conftest$ac_exeext
18755 if { (ac_try="$ac_link"
18756 case "(($ac_try" in
18757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18758 *) ac_try_echo=$ac_try;;
18759 esac
18760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18761 (eval "$ac_link") 2>conftest.er1
18762 ac_status=$?
18763 grep -v '^ *+' conftest.er1 >conftest.err
18764 rm -f conftest.er1
18765 cat conftest.err >&5
18766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18767 (exit $ac_status); } && {
18768 test -z "$ac_c_werror_flag" ||
18769 test ! -s conftest.err
18770 } && test -s conftest$ac_exeext &&
18771 $as_test_x conftest$ac_exeext; then
18772 eval "$as_ac_var=yes"
18773 else
18774 echo "$as_me: failed program was:" >&5
18775 sed 's/^/| /' conftest.$ac_ext >&5
18777 eval "$as_ac_var=no"
18780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18781 conftest$ac_exeext conftest.$ac_ext
18783 ac_res=`eval echo '${'$as_ac_var'}'`
18784 { echo "$as_me:$LINENO: result: $ac_res" >&5
18785 echo "${ECHO_T}$ac_res" >&6; }
18786 if test `eval echo '${'$as_ac_var'}'` = yes; then
18787 cat >>confdefs.h <<_ACEOF
18788 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18789 _ACEOF
18790 break
18792 done
18795 # Check for one of atexit() or on_exit()
18797 for ac_func in atexit
18799 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18800 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18801 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18802 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18803 echo $ECHO_N "(cached) $ECHO_C" >&6
18804 else
18805 cat >conftest.$ac_ext <<_ACEOF
18806 /* confdefs.h. */
18807 _ACEOF
18808 cat confdefs.h >>conftest.$ac_ext
18809 cat >>conftest.$ac_ext <<_ACEOF
18810 /* end confdefs.h. */
18811 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18813 #define $ac_func innocuous_$ac_func
18815 /* System header to define __stub macros and hopefully few prototypes,
18816 which can conflict with char $ac_func (); below.
18817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18818 <limits.h> exists even on freestanding compilers. */
18820 #ifdef __STDC__
18821 # include <limits.h>
18822 #else
18823 # include <assert.h>
18824 #endif
18826 #undef $ac_func
18828 /* Override any GCC internal prototype to avoid an error.
18829 Use char because int might match the return type of a GCC
18830 builtin and then its argument prototype would still apply. */
18831 #ifdef __cplusplus
18832 extern "C"
18833 #endif
18834 char $ac_func ();
18835 /* The GNU C library defines this for functions which it implements
18836 to always fail with ENOSYS. Some functions are actually named
18837 something starting with __ and the normal name is an alias. */
18838 #if defined __stub_$ac_func || defined __stub___$ac_func
18839 choke me
18840 #endif
18843 main ()
18845 return $ac_func ();
18847 return 0;
18849 _ACEOF
18850 rm -f conftest.$ac_objext conftest$ac_exeext
18851 if { (ac_try="$ac_link"
18852 case "(($ac_try" in
18853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18854 *) ac_try_echo=$ac_try;;
18855 esac
18856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18857 (eval "$ac_link") 2>conftest.er1
18858 ac_status=$?
18859 grep -v '^ *+' conftest.er1 >conftest.err
18860 rm -f conftest.er1
18861 cat conftest.err >&5
18862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18863 (exit $ac_status); } && {
18864 test -z "$ac_c_werror_flag" ||
18865 test ! -s conftest.err
18866 } && test -s conftest$ac_exeext &&
18867 $as_test_x conftest$ac_exeext; then
18868 eval "$as_ac_var=yes"
18869 else
18870 echo "$as_me: failed program was:" >&5
18871 sed 's/^/| /' conftest.$ac_ext >&5
18873 eval "$as_ac_var=no"
18876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18877 conftest$ac_exeext conftest.$ac_ext
18879 ac_res=`eval echo '${'$as_ac_var'}'`
18880 { echo "$as_me:$LINENO: result: $ac_res" >&5
18881 echo "${ECHO_T}$ac_res" >&6; }
18882 if test `eval echo '${'$as_ac_var'}'` = yes; then
18883 cat >>confdefs.h <<_ACEOF
18884 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18885 _ACEOF
18887 else
18889 for ac_func in on_exit
18891 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18892 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18894 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18895 echo $ECHO_N "(cached) $ECHO_C" >&6
18896 else
18897 cat >conftest.$ac_ext <<_ACEOF
18898 /* confdefs.h. */
18899 _ACEOF
18900 cat confdefs.h >>conftest.$ac_ext
18901 cat >>conftest.$ac_ext <<_ACEOF
18902 /* end confdefs.h. */
18903 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18905 #define $ac_func innocuous_$ac_func
18907 /* System header to define __stub macros and hopefully few prototypes,
18908 which can conflict with char $ac_func (); below.
18909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18910 <limits.h> exists even on freestanding compilers. */
18912 #ifdef __STDC__
18913 # include <limits.h>
18914 #else
18915 # include <assert.h>
18916 #endif
18918 #undef $ac_func
18920 /* Override any GCC internal prototype to avoid an error.
18921 Use char because int might match the return type of a GCC
18922 builtin and then its argument prototype would still apply. */
18923 #ifdef __cplusplus
18924 extern "C"
18925 #endif
18926 char $ac_func ();
18927 /* The GNU C library defines this for functions which it implements
18928 to always fail with ENOSYS. Some functions are actually named
18929 something starting with __ and the normal name is an alias. */
18930 #if defined __stub_$ac_func || defined __stub___$ac_func
18931 choke me
18932 #endif
18935 main ()
18937 return $ac_func ();
18939 return 0;
18941 _ACEOF
18942 rm -f conftest.$ac_objext conftest$ac_exeext
18943 if { (ac_try="$ac_link"
18944 case "(($ac_try" in
18945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18946 *) ac_try_echo=$ac_try;;
18947 esac
18948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18949 (eval "$ac_link") 2>conftest.er1
18950 ac_status=$?
18951 grep -v '^ *+' conftest.er1 >conftest.err
18952 rm -f conftest.er1
18953 cat conftest.err >&5
18954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955 (exit $ac_status); } && {
18956 test -z "$ac_c_werror_flag" ||
18957 test ! -s conftest.err
18958 } && test -s conftest$ac_exeext &&
18959 $as_test_x conftest$ac_exeext; then
18960 eval "$as_ac_var=yes"
18961 else
18962 echo "$as_me: failed program was:" >&5
18963 sed 's/^/| /' conftest.$ac_ext >&5
18965 eval "$as_ac_var=no"
18968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18969 conftest$ac_exeext conftest.$ac_ext
18971 ac_res=`eval echo '${'$as_ac_var'}'`
18972 { echo "$as_me:$LINENO: result: $ac_res" >&5
18973 echo "${ECHO_T}$ac_res" >&6; }
18974 if test `eval echo '${'$as_ac_var'}'` = yes; then
18975 cat >>confdefs.h <<_ACEOF
18976 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18977 _ACEOF
18979 else
18980 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
18981 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
18982 { (exit 1); exit 1; }; }
18984 done
18987 done
18991 for ac_func in fseeko
18993 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18994 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18995 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18996 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18997 echo $ECHO_N "(cached) $ECHO_C" >&6
18998 else
18999 cat >conftest.$ac_ext <<_ACEOF
19000 /* confdefs.h. */
19001 _ACEOF
19002 cat confdefs.h >>conftest.$ac_ext
19003 cat >>conftest.$ac_ext <<_ACEOF
19004 /* end confdefs.h. */
19005 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19006 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19007 #define $ac_func innocuous_$ac_func
19009 /* System header to define __stub macros and hopefully few prototypes,
19010 which can conflict with char $ac_func (); below.
19011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19012 <limits.h> exists even on freestanding compilers. */
19014 #ifdef __STDC__
19015 # include <limits.h>
19016 #else
19017 # include <assert.h>
19018 #endif
19020 #undef $ac_func
19022 /* Override any GCC internal prototype to avoid an error.
19023 Use char because int might match the return type of a GCC
19024 builtin and then its argument prototype would still apply. */
19025 #ifdef __cplusplus
19026 extern "C"
19027 #endif
19028 char $ac_func ();
19029 /* The GNU C library defines this for functions which it implements
19030 to always fail with ENOSYS. Some functions are actually named
19031 something starting with __ and the normal name is an alias. */
19032 #if defined __stub_$ac_func || defined __stub___$ac_func
19033 choke me
19034 #endif
19037 main ()
19039 return $ac_func ();
19041 return 0;
19043 _ACEOF
19044 rm -f conftest.$ac_objext conftest$ac_exeext
19045 if { (ac_try="$ac_link"
19046 case "(($ac_try" in
19047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19048 *) ac_try_echo=$ac_try;;
19049 esac
19050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19051 (eval "$ac_link") 2>conftest.er1
19052 ac_status=$?
19053 grep -v '^ *+' conftest.er1 >conftest.err
19054 rm -f conftest.er1
19055 cat conftest.err >&5
19056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057 (exit $ac_status); } && {
19058 test -z "$ac_c_werror_flag" ||
19059 test ! -s conftest.err
19060 } && test -s conftest$ac_exeext &&
19061 $as_test_x conftest$ac_exeext; then
19062 eval "$as_ac_var=yes"
19063 else
19064 echo "$as_me: failed program was:" >&5
19065 sed 's/^/| /' conftest.$ac_ext >&5
19067 eval "$as_ac_var=no"
19070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19071 conftest$ac_exeext conftest.$ac_ext
19073 ac_res=`eval echo '${'$as_ac_var'}'`
19074 { echo "$as_me:$LINENO: result: $ac_res" >&5
19075 echo "${ECHO_T}$ac_res" >&6; }
19076 if test `eval echo '${'$as_ac_var'}'` = yes; then
19077 cat >>confdefs.h <<_ACEOF
19078 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19079 _ACEOF
19081 else
19082 case " $LIBOBJS " in
19083 *" $ac_func.$ac_objext "* ) ;;
19084 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19086 esac
19089 done
19092 case $host_os in
19093 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
19094 # Mingw uses macros to access Win32 API calls
19095 bsdi*|netbsd*|mingw*)
19097 cat >>confdefs.h <<\_ACEOF
19098 #define HAVE_FSEEKO 1
19099 _ACEOF
19101 ac_cv_func_fseeko=yes;;
19103 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19104 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
19105 if test "${ac_cv_sys_largefile_source+set}" = set; then
19106 echo $ECHO_N "(cached) $ECHO_C" >&6
19107 else
19108 while :; do
19109 cat >conftest.$ac_ext <<_ACEOF
19110 /* confdefs.h. */
19111 _ACEOF
19112 cat confdefs.h >>conftest.$ac_ext
19113 cat >>conftest.$ac_ext <<_ACEOF
19114 /* end confdefs.h. */
19115 #include <sys/types.h> /* for off_t */
19116 #include <stdio.h>
19118 main ()
19120 int (*fp) (FILE *, off_t, int) = fseeko;
19121 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19123 return 0;
19125 _ACEOF
19126 rm -f conftest.$ac_objext conftest$ac_exeext
19127 if { (ac_try="$ac_link"
19128 case "(($ac_try" in
19129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19130 *) ac_try_echo=$ac_try;;
19131 esac
19132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19133 (eval "$ac_link") 2>conftest.er1
19134 ac_status=$?
19135 grep -v '^ *+' conftest.er1 >conftest.err
19136 rm -f conftest.er1
19137 cat conftest.err >&5
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); } && {
19140 test -z "$ac_c_werror_flag" ||
19141 test ! -s conftest.err
19142 } && test -s conftest$ac_exeext &&
19143 $as_test_x conftest$ac_exeext; then
19144 ac_cv_sys_largefile_source=no; break
19145 else
19146 echo "$as_me: failed program was:" >&5
19147 sed 's/^/| /' conftest.$ac_ext >&5
19152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19153 conftest$ac_exeext conftest.$ac_ext
19154 cat >conftest.$ac_ext <<_ACEOF
19155 /* confdefs.h. */
19156 _ACEOF
19157 cat confdefs.h >>conftest.$ac_ext
19158 cat >>conftest.$ac_ext <<_ACEOF
19159 /* end confdefs.h. */
19160 #define _LARGEFILE_SOURCE 1
19161 #include <sys/types.h> /* for off_t */
19162 #include <stdio.h>
19164 main ()
19166 int (*fp) (FILE *, off_t, int) = fseeko;
19167 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19169 return 0;
19171 _ACEOF
19172 rm -f conftest.$ac_objext conftest$ac_exeext
19173 if { (ac_try="$ac_link"
19174 case "(($ac_try" in
19175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19176 *) ac_try_echo=$ac_try;;
19177 esac
19178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19179 (eval "$ac_link") 2>conftest.er1
19180 ac_status=$?
19181 grep -v '^ *+' conftest.er1 >conftest.err
19182 rm -f conftest.er1
19183 cat conftest.err >&5
19184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185 (exit $ac_status); } && {
19186 test -z "$ac_c_werror_flag" ||
19187 test ! -s conftest.err
19188 } && test -s conftest$ac_exeext &&
19189 $as_test_x conftest$ac_exeext; then
19190 ac_cv_sys_largefile_source=1; break
19191 else
19192 echo "$as_me: failed program was:" >&5
19193 sed 's/^/| /' conftest.$ac_ext >&5
19198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19199 conftest$ac_exeext conftest.$ac_ext
19200 ac_cv_sys_largefile_source=unknown
19201 break
19202 done
19204 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19205 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
19206 case $ac_cv_sys_largefile_source in #(
19207 no | unknown) ;;
19209 cat >>confdefs.h <<_ACEOF
19210 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19211 _ACEOF
19213 esac
19214 rm -f conftest*
19216 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19217 # in glibc 2.1.3, but that breaks too many other things.
19218 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19219 if test $ac_cv_sys_largefile_source != unknown; then
19221 cat >>confdefs.h <<\_ACEOF
19222 #define HAVE_FSEEKO 1
19223 _ACEOF
19227 esac
19231 # Pthreads
19233 # For each platform, we need to know about any special compile and link
19234 # libraries, and whether the normal C function names are thread-safe.
19235 # See the comment at the top of src/port/thread.c for more information.
19236 # WIN32 doesn't need the pthread tests; it always uses threads
19237 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
19241 ac_ext=c
19242 ac_cpp='$CPP $CPPFLAGS'
19243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19247 acx_pthread_ok=no
19249 # We used to check for pthread.h first, but this fails if pthread.h
19250 # requires special compiler flags (e.g. on True64 or Sequent).
19251 # It gets checked for in the link test anyway.
19253 # First of all, check if the user has set any of the PTHREAD_LIBS,
19254 # etcetera environment variables, and if threads linking works using
19255 # them:
19256 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
19257 save_CFLAGS="$CFLAGS"
19258 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19259 save_LIBS="$LIBS"
19260 LIBS="$PTHREAD_LIBS $LIBS"
19261 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
19262 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
19263 cat >conftest.$ac_ext <<_ACEOF
19264 /* confdefs.h. */
19265 _ACEOF
19266 cat confdefs.h >>conftest.$ac_ext
19267 cat >>conftest.$ac_ext <<_ACEOF
19268 /* end confdefs.h. */
19270 /* Override any GCC internal prototype to avoid an error.
19271 Use char because int might match the return type of a GCC
19272 builtin and then its argument prototype would still apply. */
19273 #ifdef __cplusplus
19274 extern "C"
19275 #endif
19276 char pthread_join ();
19278 main ()
19280 return pthread_join ();
19282 return 0;
19284 _ACEOF
19285 rm -f conftest.$ac_objext conftest$ac_exeext
19286 if { (ac_try="$ac_link"
19287 case "(($ac_try" in
19288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19289 *) ac_try_echo=$ac_try;;
19290 esac
19291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19292 (eval "$ac_link") 2>conftest.er1
19293 ac_status=$?
19294 grep -v '^ *+' conftest.er1 >conftest.err
19295 rm -f conftest.er1
19296 cat conftest.err >&5
19297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298 (exit $ac_status); } && {
19299 test -z "$ac_c_werror_flag" ||
19300 test ! -s conftest.err
19301 } && test -s conftest$ac_exeext &&
19302 $as_test_x conftest$ac_exeext; then
19303 acx_pthread_ok=yes
19304 else
19305 echo "$as_me: failed program was:" >&5
19306 sed 's/^/| /' conftest.$ac_ext >&5
19311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19312 conftest$ac_exeext conftest.$ac_ext
19313 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
19314 echo "${ECHO_T}$acx_pthread_ok" >&6; }
19315 if test x"$acx_pthread_ok" = xno; then
19316 PTHREAD_LIBS=""
19317 PTHREAD_CFLAGS=""
19319 LIBS="$save_LIBS"
19320 CFLAGS="$save_CFLAGS"
19323 # We must check for the threads library under a number of different
19324 # names; the ordering is very important because some systems
19325 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19326 # libraries is broken (non-POSIX).
19328 # Create a list of thread flags to try. Items starting with a "-" are
19329 # C compiler flags, and other items are library names, except for "none"
19330 # which indicates that we try without any flags at all, and "pthread-config"
19331 # which is a program returning the flags for the Pth emulation library.
19333 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
19335 # The ordering *is* (sometimes) important. Some notes on the
19336 # individual items follow:
19338 # pthreads: AIX (must check this before -lpthread)
19339 # none: in case threads are in libc; should be tried before -Kthread and
19340 # other compiler flags to prevent continual compiler warnings
19341 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19342 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19343 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19344 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
19345 # -pthreads: Solaris/gcc
19346 # -mthreads: Mingw32/gcc, Lynx/gcc
19347 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19348 # doesn't hurt to check since this sometimes defines pthreads too;
19349 # also defines -D_REENTRANT)
19350 # pthread: Linux, etcetera
19351 # --thread-safe: KAI C++
19352 # pthread-config: use pthread-config program (for GNU Pth library)
19354 case "${host_cpu}-${host_os}" in
19355 *solaris*)
19357 # On Solaris (at least, for some versions), libc contains stubbed
19358 # (non-functional) versions of the pthreads routines, so link-based
19359 # tests will erroneously succeed. (We need to link with -pthread or
19360 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
19361 # a function called by this macro, so we could check for that, but
19362 # who knows whether they'll stub that too in a future libc.) So,
19363 # we'll just look for -pthreads and -lpthread first:
19365 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
19367 esac
19369 if test x"$acx_pthread_ok" = xno; then
19370 for flag in $acx_pthread_flags; do
19372 tryPTHREAD_CFLAGS=""
19373 tryPTHREAD_LIBS=""
19374 case $flag in
19375 none)
19376 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
19377 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
19381 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
19382 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
19383 tryPTHREAD_CFLAGS="$flag"
19386 pthread-config)
19387 # skip this if we already have flags defined, for PostgreSQL
19388 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
19389 # Extract the first word of "pthread-config", so it can be a program name with args.
19390 set dummy pthread-config; ac_word=$2
19391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19393 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
19394 echo $ECHO_N "(cached) $ECHO_C" >&6
19395 else
19396 if test -n "$acx_pthread_config"; then
19397 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
19398 else
19399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19400 for as_dir in $PATH
19402 IFS=$as_save_IFS
19403 test -z "$as_dir" && as_dir=.
19404 for ac_exec_ext in '' $ac_executable_extensions; do
19405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19406 ac_cv_prog_acx_pthread_config="yes"
19407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19408 break 2
19410 done
19411 done
19412 IFS=$as_save_IFS
19414 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
19417 acx_pthread_config=$ac_cv_prog_acx_pthread_config
19418 if test -n "$acx_pthread_config"; then
19419 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
19420 echo "${ECHO_T}$acx_pthread_config" >&6; }
19421 else
19422 { echo "$as_me:$LINENO: result: no" >&5
19423 echo "${ECHO_T}no" >&6; }
19427 if test x"$acx_pthread_config" = xno; then continue; fi
19428 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
19429 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
19433 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
19434 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
19435 tryPTHREAD_LIBS="-l$flag"
19437 esac
19439 save_LIBS="$LIBS"
19440 save_CFLAGS="$CFLAGS"
19441 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
19442 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
19444 # Check for various functions. We must include pthread.h,
19445 # since some functions may be macros. (On the Sequent, we
19446 # need a special flag -Kthread to make this header compile.)
19447 # We check for pthread_join because it is in -lpthread on IRIX
19448 # while pthread_create is in libc. We check for pthread_attr_init
19449 # due to DEC craziness with -lpthreads. We check for
19450 # pthread_cleanup_push because it is one of the few pthread
19451 # functions on Solaris that doesn't have a non-functional libc stub.
19452 # We try pthread_create on general principles.
19453 cat >conftest.$ac_ext <<_ACEOF
19454 /* confdefs.h. */
19455 _ACEOF
19456 cat confdefs.h >>conftest.$ac_ext
19457 cat >>conftest.$ac_ext <<_ACEOF
19458 /* end confdefs.h. */
19459 #include <pthread.h>
19461 main ()
19463 pthread_t th; pthread_join(th, 0);
19464 pthread_attr_init(0); pthread_cleanup_push(0, 0);
19465 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
19467 return 0;
19469 _ACEOF
19470 rm -f conftest.$ac_objext conftest$ac_exeext
19471 if { (ac_try="$ac_link"
19472 case "(($ac_try" in
19473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19474 *) ac_try_echo=$ac_try;;
19475 esac
19476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19477 (eval "$ac_link") 2>conftest.er1
19478 ac_status=$?
19479 grep -v '^ *+' conftest.er1 >conftest.err
19480 rm -f conftest.er1
19481 cat conftest.err >&5
19482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483 (exit $ac_status); } && {
19484 test -z "$ac_c_werror_flag" ||
19485 test ! -s conftest.err
19486 } && test -s conftest$ac_exeext &&
19487 $as_test_x conftest$ac_exeext; then
19488 acx_pthread_ok=yes
19489 else
19490 echo "$as_me: failed program was:" >&5
19491 sed 's/^/| /' conftest.$ac_ext >&5
19493 acx_pthread_ok=no
19496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19497 conftest$ac_exeext conftest.$ac_ext
19499 if test "x$acx_pthread_ok" = xyes; then
19500 # Don't use options that are ignored by the compiler.
19501 # We find them by checking stderror.
19502 cat >conftest.$ac_ext <<_ACEOF
19504 main (int argc, char **argv)
19506 (void) argc;
19507 (void) argv;
19508 return 0;
19510 _ACEOF
19511 rm -f conftest.$ac_objext conftest$ac_exeext
19512 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
19513 # we continue with more flags because Linux needs -lpthread
19514 # for libpq builds on PostgreSQL. The test above only
19515 # tests for building binaries, not shared libraries.
19516 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
19517 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
19518 else acx_pthread_ok=no
19522 LIBS="$save_LIBS"
19523 CFLAGS="$save_CFLAGS"
19525 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
19526 echo "${ECHO_T}$acx_pthread_ok" >&6; }
19527 done
19530 # Various other checks:
19531 if test "x$acx_pthread_ok" = xyes; then
19532 save_LIBS="$LIBS"
19533 LIBS="$PTHREAD_LIBS $LIBS"
19534 save_CFLAGS="$CFLAGS"
19535 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19537 # Detect AIX lossage: threads are created detached by default
19538 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
19539 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
19540 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
19541 cat >conftest.$ac_ext <<_ACEOF
19542 /* confdefs.h. */
19543 _ACEOF
19544 cat confdefs.h >>conftest.$ac_ext
19545 cat >>conftest.$ac_ext <<_ACEOF
19546 /* end confdefs.h. */
19547 #include <pthread.h>
19549 main ()
19551 int attr=PTHREAD_CREATE_JOINABLE;
19553 return 0;
19555 _ACEOF
19556 rm -f conftest.$ac_objext conftest$ac_exeext
19557 if { (ac_try="$ac_link"
19558 case "(($ac_try" in
19559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19560 *) ac_try_echo=$ac_try;;
19561 esac
19562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19563 (eval "$ac_link") 2>conftest.er1
19564 ac_status=$?
19565 grep -v '^ *+' conftest.er1 >conftest.err
19566 rm -f conftest.er1
19567 cat conftest.err >&5
19568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569 (exit $ac_status); } && {
19570 test -z "$ac_c_werror_flag" ||
19571 test ! -s conftest.err
19572 } && test -s conftest$ac_exeext &&
19573 $as_test_x conftest$ac_exeext; then
19574 ok=PTHREAD_CREATE_JOINABLE
19575 else
19576 echo "$as_me: failed program was:" >&5
19577 sed 's/^/| /' conftest.$ac_ext >&5
19579 ok=unknown
19582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19583 conftest$ac_exeext conftest.$ac_ext
19584 if test x"$ok" = xunknown; then
19585 cat >conftest.$ac_ext <<_ACEOF
19586 /* confdefs.h. */
19587 _ACEOF
19588 cat confdefs.h >>conftest.$ac_ext
19589 cat >>conftest.$ac_ext <<_ACEOF
19590 /* end confdefs.h. */
19591 #include <pthread.h>
19593 main ()
19595 int attr=PTHREAD_CREATE_UNDETACHED;
19597 return 0;
19599 _ACEOF
19600 rm -f conftest.$ac_objext conftest$ac_exeext
19601 if { (ac_try="$ac_link"
19602 case "(($ac_try" in
19603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19604 *) ac_try_echo=$ac_try;;
19605 esac
19606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19607 (eval "$ac_link") 2>conftest.er1
19608 ac_status=$?
19609 grep -v '^ *+' conftest.er1 >conftest.err
19610 rm -f conftest.er1
19611 cat conftest.err >&5
19612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613 (exit $ac_status); } && {
19614 test -z "$ac_c_werror_flag" ||
19615 test ! -s conftest.err
19616 } && test -s conftest$ac_exeext &&
19617 $as_test_x conftest$ac_exeext; then
19618 ok=PTHREAD_CREATE_UNDETACHED
19619 else
19620 echo "$as_me: failed program was:" >&5
19621 sed 's/^/| /' conftest.$ac_ext >&5
19623 ok=unknown
19626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19627 conftest$ac_exeext conftest.$ac_ext
19629 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
19631 cat >>confdefs.h <<\_ACEOF
19632 #define PTHREAD_CREATE_JOINABLE $ok
19633 _ACEOF
19636 { echo "$as_me:$LINENO: result: ${ok}" >&5
19637 echo "${ECHO_T}${ok}" >&6; }
19638 if test x"$ok" = xunknown; then
19639 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
19640 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
19643 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
19644 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
19645 flag=no
19646 # We always add these in PostgreSQL
19647 # case "${host_cpu}-${host_os}" in
19648 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
19649 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
19650 # esac
19651 { echo "$as_me:$LINENO: result: ${flag}" >&5
19652 echo "${ECHO_T}${flag}" >&6; }
19653 if test "x$flag" != xno; then
19654 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
19657 LIBS="$save_LIBS"
19658 CFLAGS="$save_CFLAGS"
19660 # Supporting cc_r would require a special CC in all places that
19661 # use libpq, and that is ugly, so we don't do it. Users can still
19662 # define their compiler as cc_r to do thread builds of everything.
19663 # More AIX lossage: must compile with cc_r
19664 # Extract the first word of "cc_r", so it can be a program name with args.
19665 set dummy cc_r; ac_word=$2
19666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19668 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
19669 echo $ECHO_N "(cached) $ECHO_C" >&6
19670 else
19671 if test -n "$PTHREAD_CC"; then
19672 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19673 else
19674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19675 for as_dir in $PATH
19677 IFS=$as_save_IFS
19678 test -z "$as_dir" && as_dir=.
19679 for ac_exec_ext in '' $ac_executable_extensions; do
19680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19681 ac_cv_prog_PTHREAD_CC="cc_r"
19682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19683 break 2
19685 done
19686 done
19687 IFS=$as_save_IFS
19689 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
19692 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19693 if test -n "$PTHREAD_CC"; then
19694 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
19695 echo "${ECHO_T}$PTHREAD_CC" >&6; }
19696 else
19697 { echo "$as_me:$LINENO: result: no" >&5
19698 echo "${ECHO_T}no" >&6; }
19702 else
19703 PTHREAD_CC="$CC"
19710 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
19711 if test x"$acx_pthread_ok" = xyes; then
19713 cat >>confdefs.h <<\_ACEOF
19714 #define HAVE_PTHREAD 1
19715 _ACEOF
19718 else
19719 acx_pthread_ok=no
19722 ac_ext=c
19723 ac_cpp='$CPP $CPPFLAGS'
19724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19728 # set thread flags
19730 # Some platforms use these, so just define them. They can't hurt if they
19731 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
19732 # enables 5-arg getpwuid_r, among other things.
19733 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
19736 # At this point, we don't want to muck with the compiler name for threading.
19737 # Let's see who fails, perhaps AIX. 2004-04-23
19738 if test "$PTHREAD_CC" != "$CC"; then
19739 { { echo "$as_me:$LINENO: error:
19740 PostgreSQL does not support platforms that require a special compiler
19741 for thread safety." >&5
19742 echo "$as_me: error:
19743 PostgreSQL does not support platforms that require a special compiler
19744 for thread safety." >&2;}
19745 { (exit 1); exit 1; }; }
19748 if test "$THREAD_SUPPORT" = no; then
19749 { { echo "$as_me:$LINENO: error: cannot enable threads on this platform
19750 This platform is known to not support thread-safe programs. For details,
19751 compile and run src/bin/pg_thread_test." >&5
19752 echo "$as_me: error: cannot enable threads on this platform
19753 This platform is known to not support thread-safe programs. For details,
19754 compile and run src/bin/pg_thread_test." >&2;}
19755 { (exit 1); exit 1; }; }
19758 # Check for *_r functions
19759 _CFLAGS="$CFLAGS"
19760 _LIBS="$LIBS"
19761 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19762 LIBS="$LIBS $PTHREAD_LIBS"
19764 if test "$PORTNAME" != "win32"; then
19765 if test "${ac_cv_header_pthread_h+set}" = set; then
19766 { echo "$as_me:$LINENO: checking for pthread.h" >&5
19767 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
19768 if test "${ac_cv_header_pthread_h+set}" = set; then
19769 echo $ECHO_N "(cached) $ECHO_C" >&6
19771 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
19772 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
19773 else
19774 # Is the header compilable?
19775 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
19776 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
19777 cat >conftest.$ac_ext <<_ACEOF
19778 /* confdefs.h. */
19779 _ACEOF
19780 cat confdefs.h >>conftest.$ac_ext
19781 cat >>conftest.$ac_ext <<_ACEOF
19782 /* end confdefs.h. */
19783 $ac_includes_default
19784 #include <pthread.h>
19785 _ACEOF
19786 rm -f conftest.$ac_objext
19787 if { (ac_try="$ac_compile"
19788 case "(($ac_try" in
19789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19790 *) ac_try_echo=$ac_try;;
19791 esac
19792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19793 (eval "$ac_compile") 2>conftest.er1
19794 ac_status=$?
19795 grep -v '^ *+' conftest.er1 >conftest.err
19796 rm -f conftest.er1
19797 cat conftest.err >&5
19798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799 (exit $ac_status); } && {
19800 test -z "$ac_c_werror_flag" ||
19801 test ! -s conftest.err
19802 } && test -s conftest.$ac_objext; then
19803 ac_header_compiler=yes
19804 else
19805 echo "$as_me: failed program was:" >&5
19806 sed 's/^/| /' conftest.$ac_ext >&5
19808 ac_header_compiler=no
19811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19812 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19813 echo "${ECHO_T}$ac_header_compiler" >&6; }
19815 # Is the header present?
19816 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
19817 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
19818 cat >conftest.$ac_ext <<_ACEOF
19819 /* confdefs.h. */
19820 _ACEOF
19821 cat confdefs.h >>conftest.$ac_ext
19822 cat >>conftest.$ac_ext <<_ACEOF
19823 /* end confdefs.h. */
19824 #include <pthread.h>
19825 _ACEOF
19826 if { (ac_try="$ac_cpp conftest.$ac_ext"
19827 case "(($ac_try" in
19828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19829 *) ac_try_echo=$ac_try;;
19830 esac
19831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19833 ac_status=$?
19834 grep -v '^ *+' conftest.er1 >conftest.err
19835 rm -f conftest.er1
19836 cat conftest.err >&5
19837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838 (exit $ac_status); } >/dev/null && {
19839 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19840 test ! -s conftest.err
19841 }; then
19842 ac_header_preproc=yes
19843 else
19844 echo "$as_me: failed program was:" >&5
19845 sed 's/^/| /' conftest.$ac_ext >&5
19847 ac_header_preproc=no
19850 rm -f conftest.err conftest.$ac_ext
19851 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19852 echo "${ECHO_T}$ac_header_preproc" >&6; }
19854 # So? What about this header?
19855 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19856 yes:no: )
19857 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
19858 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19859 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
19860 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
19861 ac_header_preproc=yes
19863 no:yes:* )
19864 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
19865 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
19866 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
19867 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
19868 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
19869 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
19870 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
19871 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
19872 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
19873 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
19874 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
19875 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
19876 ( cat <<\_ASBOX
19877 ## ---------------------------------------- ##
19878 ## Report this to pgsql-bugs@postgresql.org ##
19879 ## ---------------------------------------- ##
19880 _ASBOX
19881 ) | sed "s/^/$as_me: WARNING: /" >&2
19883 esac
19884 { echo "$as_me:$LINENO: checking for pthread.h" >&5
19885 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
19886 if test "${ac_cv_header_pthread_h+set}" = set; then
19887 echo $ECHO_N "(cached) $ECHO_C" >&6
19888 else
19889 ac_cv_header_pthread_h=$ac_header_preproc
19891 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
19892 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
19895 if test $ac_cv_header_pthread_h = yes; then
19897 else
19898 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
19899 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
19900 { (exit 1); exit 1; }; }
19909 for ac_func in strerror_r getpwuid_r gethostbyname_r
19911 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19912 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19913 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19914 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19915 echo $ECHO_N "(cached) $ECHO_C" >&6
19916 else
19917 cat >conftest.$ac_ext <<_ACEOF
19918 /* confdefs.h. */
19919 _ACEOF
19920 cat confdefs.h >>conftest.$ac_ext
19921 cat >>conftest.$ac_ext <<_ACEOF
19922 /* end confdefs.h. */
19923 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19925 #define $ac_func innocuous_$ac_func
19927 /* System header to define __stub macros and hopefully few prototypes,
19928 which can conflict with char $ac_func (); below.
19929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19930 <limits.h> exists even on freestanding compilers. */
19932 #ifdef __STDC__
19933 # include <limits.h>
19934 #else
19935 # include <assert.h>
19936 #endif
19938 #undef $ac_func
19940 /* Override any GCC internal prototype to avoid an error.
19941 Use char because int might match the return type of a GCC
19942 builtin and then its argument prototype would still apply. */
19943 #ifdef __cplusplus
19944 extern "C"
19945 #endif
19946 char $ac_func ();
19947 /* The GNU C library defines this for functions which it implements
19948 to always fail with ENOSYS. Some functions are actually named
19949 something starting with __ and the normal name is an alias. */
19950 #if defined __stub_$ac_func || defined __stub___$ac_func
19951 choke me
19952 #endif
19955 main ()
19957 return $ac_func ();
19959 return 0;
19961 _ACEOF
19962 rm -f conftest.$ac_objext conftest$ac_exeext
19963 if { (ac_try="$ac_link"
19964 case "(($ac_try" in
19965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19966 *) ac_try_echo=$ac_try;;
19967 esac
19968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19969 (eval "$ac_link") 2>conftest.er1
19970 ac_status=$?
19971 grep -v '^ *+' conftest.er1 >conftest.err
19972 rm -f conftest.er1
19973 cat conftest.err >&5
19974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19975 (exit $ac_status); } && {
19976 test -z "$ac_c_werror_flag" ||
19977 test ! -s conftest.err
19978 } && test -s conftest$ac_exeext &&
19979 $as_test_x conftest$ac_exeext; then
19980 eval "$as_ac_var=yes"
19981 else
19982 echo "$as_me: failed program was:" >&5
19983 sed 's/^/| /' conftest.$ac_ext >&5
19985 eval "$as_ac_var=no"
19988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19989 conftest$ac_exeext conftest.$ac_ext
19991 ac_res=`eval echo '${'$as_ac_var'}'`
19992 { echo "$as_me:$LINENO: result: $ac_res" >&5
19993 echo "${ECHO_T}$ac_res" >&6; }
19994 if test `eval echo '${'$as_ac_var'}'` = yes; then
19995 cat >>confdefs.h <<_ACEOF
19996 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19997 _ACEOF
20000 done
20003 # Do test here with the proper thread flags
20004 { echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
20005 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6; }
20006 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
20007 echo $ECHO_N "(cached) $ECHO_C" >&6
20008 else
20009 cat >conftest.$ac_ext <<_ACEOF
20010 /* confdefs.h. */
20011 _ACEOF
20012 cat confdefs.h >>conftest.$ac_ext
20013 cat >>conftest.$ac_ext <<_ACEOF
20014 /* end confdefs.h. */
20015 #include <sys/types.h>
20016 #include <pwd.h>
20018 main ()
20020 uid_t uid;
20021 struct passwd *space;
20022 char *buf;
20023 size_t bufsize;
20024 struct passwd **result;
20025 getpwuid_r(uid, space, buf, bufsize, result);
20027 return 0;
20029 _ACEOF
20030 rm -f conftest.$ac_objext
20031 if { (ac_try="$ac_compile"
20032 case "(($ac_try" in
20033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20034 *) ac_try_echo=$ac_try;;
20035 esac
20036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20037 (eval "$ac_compile") 2>conftest.er1
20038 ac_status=$?
20039 grep -v '^ *+' conftest.er1 >conftest.err
20040 rm -f conftest.er1
20041 cat conftest.err >&5
20042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043 (exit $ac_status); } && {
20044 test -z "$ac_c_werror_flag" ||
20045 test ! -s conftest.err
20046 } && test -s conftest.$ac_objext; then
20047 pgac_cv_func_getpwuid_r_5arg=yes
20048 else
20049 echo "$as_me: failed program was:" >&5
20050 sed 's/^/| /' conftest.$ac_ext >&5
20052 pgac_cv_func_getpwuid_r_5arg=no
20055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20057 { echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
20058 echo "${ECHO_T}$pgac_cv_func_getpwuid_r_5arg" >&6; }
20059 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
20061 cat >>confdefs.h <<\_ACEOF
20062 #define GETPWUID_R_5ARG
20063 _ACEOF
20067 { echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
20068 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6; }
20069 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
20070 echo $ECHO_N "(cached) $ECHO_C" >&6
20071 else
20072 cat >conftest.$ac_ext <<_ACEOF
20073 /* confdefs.h. */
20074 _ACEOF
20075 cat confdefs.h >>conftest.$ac_ext
20076 cat >>conftest.$ac_ext <<_ACEOF
20077 /* end confdefs.h. */
20078 #include <string.h>
20080 main ()
20082 #ifndef _AIX
20083 int strerror_r(int, char *, size_t);
20084 #else
20085 /* Older AIX has 'int' for the third argument so we don't test the args. */
20086 int strerror_r();
20087 #endif
20089 return 0;
20091 _ACEOF
20092 rm -f conftest.$ac_objext
20093 if { (ac_try="$ac_compile"
20094 case "(($ac_try" in
20095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20096 *) ac_try_echo=$ac_try;;
20097 esac
20098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20099 (eval "$ac_compile") 2>conftest.er1
20100 ac_status=$?
20101 grep -v '^ *+' conftest.er1 >conftest.err
20102 rm -f conftest.er1
20103 cat conftest.err >&5
20104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20105 (exit $ac_status); } && {
20106 test -z "$ac_c_werror_flag" ||
20107 test ! -s conftest.err
20108 } && test -s conftest.$ac_objext; then
20109 pgac_cv_func_strerror_r_int=yes
20110 else
20111 echo "$as_me: failed program was:" >&5
20112 sed 's/^/| /' conftest.$ac_ext >&5
20114 pgac_cv_func_strerror_r_int=no
20117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20119 { echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
20120 echo "${ECHO_T}$pgac_cv_func_strerror_r_int" >&6; }
20121 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
20123 cat >>confdefs.h <<\_ACEOF
20124 #define STRERROR_R_INT
20125 _ACEOF
20130 CFLAGS="$_CFLAGS"
20131 LIBS="$_LIBS"
20133 else
20134 # do not use values from template file
20135 PTHREAD_CFLAGS=
20136 PTHREAD_LIBS=
20143 # We can test for libldap_r only after we know PTHREAD_LIBS
20144 if test "$with_ldap" = yes ; then
20145 _LIBS="$LIBS"
20146 if test "$PORTNAME" != "win32"; then
20148 { echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
20149 echo $ECHO_N "checking for ldap_bind in -lldap... $ECHO_C" >&6; }
20150 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
20151 echo $ECHO_N "(cached) $ECHO_C" >&6
20152 else
20153 ac_check_lib_save_LIBS=$LIBS
20154 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
20155 cat >conftest.$ac_ext <<_ACEOF
20156 /* confdefs.h. */
20157 _ACEOF
20158 cat confdefs.h >>conftest.$ac_ext
20159 cat >>conftest.$ac_ext <<_ACEOF
20160 /* end confdefs.h. */
20162 /* Override any GCC internal prototype to avoid an error.
20163 Use char because int might match the return type of a GCC
20164 builtin and then its argument prototype would still apply. */
20165 #ifdef __cplusplus
20166 extern "C"
20167 #endif
20168 char ldap_bind ();
20170 main ()
20172 return ldap_bind ();
20174 return 0;
20176 _ACEOF
20177 rm -f conftest.$ac_objext conftest$ac_exeext
20178 if { (ac_try="$ac_link"
20179 case "(($ac_try" in
20180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20181 *) ac_try_echo=$ac_try;;
20182 esac
20183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20184 (eval "$ac_link") 2>conftest.er1
20185 ac_status=$?
20186 grep -v '^ *+' conftest.er1 >conftest.err
20187 rm -f conftest.er1
20188 cat conftest.err >&5
20189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190 (exit $ac_status); } && {
20191 test -z "$ac_c_werror_flag" ||
20192 test ! -s conftest.err
20193 } && test -s conftest$ac_exeext &&
20194 $as_test_x conftest$ac_exeext; then
20195 ac_cv_lib_ldap_ldap_bind=yes
20196 else
20197 echo "$as_me: failed program was:" >&5
20198 sed 's/^/| /' conftest.$ac_ext >&5
20200 ac_cv_lib_ldap_ldap_bind=no
20203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20204 conftest$ac_exeext conftest.$ac_ext
20205 LIBS=$ac_check_lib_save_LIBS
20207 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
20208 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_bind" >&6; }
20209 if test $ac_cv_lib_ldap_ldap_bind = yes; then
20210 cat >>confdefs.h <<_ACEOF
20211 #define HAVE_LIBLDAP 1
20212 _ACEOF
20214 LIBS="-lldap $LIBS"
20216 else
20217 { { echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
20218 echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
20219 { (exit 1); exit 1; }; }
20222 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
20223 if test "$enable_thread_safety" = yes; then
20224 # on some platforms ldap_r fails to link without PTHREAD_LIBS
20226 { echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
20227 echo $ECHO_N "checking for ldap_simple_bind in -lldap_r... $ECHO_C" >&6; }
20228 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
20229 echo $ECHO_N "(cached) $ECHO_C" >&6
20230 else
20231 ac_check_lib_save_LIBS=$LIBS
20232 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
20233 cat >conftest.$ac_ext <<_ACEOF
20234 /* confdefs.h. */
20235 _ACEOF
20236 cat confdefs.h >>conftest.$ac_ext
20237 cat >>conftest.$ac_ext <<_ACEOF
20238 /* end confdefs.h. */
20240 /* Override any GCC internal prototype to avoid an error.
20241 Use char because int might match the return type of a GCC
20242 builtin and then its argument prototype would still apply. */
20243 #ifdef __cplusplus
20244 extern "C"
20245 #endif
20246 char ldap_simple_bind ();
20248 main ()
20250 return ldap_simple_bind ();
20252 return 0;
20254 _ACEOF
20255 rm -f conftest.$ac_objext conftest$ac_exeext
20256 if { (ac_try="$ac_link"
20257 case "(($ac_try" in
20258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20259 *) ac_try_echo=$ac_try;;
20260 esac
20261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20262 (eval "$ac_link") 2>conftest.er1
20263 ac_status=$?
20264 grep -v '^ *+' conftest.er1 >conftest.err
20265 rm -f conftest.er1
20266 cat conftest.err >&5
20267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20268 (exit $ac_status); } && {
20269 test -z "$ac_c_werror_flag" ||
20270 test ! -s conftest.err
20271 } && test -s conftest$ac_exeext &&
20272 $as_test_x conftest$ac_exeext; then
20273 ac_cv_lib_ldap_r_ldap_simple_bind=yes
20274 else
20275 echo "$as_me: failed program was:" >&5
20276 sed 's/^/| /' conftest.$ac_ext >&5
20278 ac_cv_lib_ldap_r_ldap_simple_bind=no
20281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20282 conftest$ac_exeext conftest.$ac_ext
20283 LIBS=$ac_check_lib_save_LIBS
20285 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
20286 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
20287 if test $ac_cv_lib_ldap_r_ldap_simple_bind = yes; then
20288 cat >>confdefs.h <<_ACEOF
20289 #define HAVE_LIBLDAP_R 1
20290 _ACEOF
20292 LIBS="-lldap_r $LIBS"
20294 else
20295 { { echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
20296 echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
20297 { (exit 1); exit 1; }; }
20300 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
20301 else
20302 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
20304 else
20306 { echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
20307 echo $ECHO_N "checking for ldap_bind in -lwldap32... $ECHO_C" >&6; }
20308 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
20309 echo $ECHO_N "(cached) $ECHO_C" >&6
20310 else
20311 ac_check_lib_save_LIBS=$LIBS
20312 LIBS="-lwldap32 $LIBS"
20313 cat >conftest.$ac_ext <<_ACEOF
20314 /* confdefs.h. */
20315 _ACEOF
20316 cat confdefs.h >>conftest.$ac_ext
20317 cat >>conftest.$ac_ext <<_ACEOF
20318 /* end confdefs.h. */
20320 /* Override any GCC internal prototype to avoid an error.
20321 Use char because int might match the return type of a GCC
20322 builtin and then its argument prototype would still apply. */
20323 #ifdef __cplusplus
20324 extern "C"
20325 #endif
20326 char ldap_bind ();
20328 main ()
20330 return ldap_bind ();
20332 return 0;
20334 _ACEOF
20335 rm -f conftest.$ac_objext conftest$ac_exeext
20336 if { (ac_try="$ac_link"
20337 case "(($ac_try" in
20338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20339 *) ac_try_echo=$ac_try;;
20340 esac
20341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20342 (eval "$ac_link") 2>conftest.er1
20343 ac_status=$?
20344 grep -v '^ *+' conftest.er1 >conftest.err
20345 rm -f conftest.er1
20346 cat conftest.err >&5
20347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348 (exit $ac_status); } && {
20349 test -z "$ac_c_werror_flag" ||
20350 test ! -s conftest.err
20351 } && test -s conftest$ac_exeext &&
20352 $as_test_x conftest$ac_exeext; then
20353 ac_cv_lib_wldap32_ldap_bind=yes
20354 else
20355 echo "$as_me: failed program was:" >&5
20356 sed 's/^/| /' conftest.$ac_ext >&5
20358 ac_cv_lib_wldap32_ldap_bind=no
20361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20362 conftest$ac_exeext conftest.$ac_ext
20363 LIBS=$ac_check_lib_save_LIBS
20365 { echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
20366 echo "${ECHO_T}$ac_cv_lib_wldap32_ldap_bind" >&6; }
20367 if test $ac_cv_lib_wldap32_ldap_bind = yes; then
20368 cat >>confdefs.h <<_ACEOF
20369 #define HAVE_LIBWLDAP32 1
20370 _ACEOF
20372 LIBS="-lwldap32 $LIBS"
20374 else
20375 { { echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
20376 echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
20377 { (exit 1); exit 1; }; }
20380 LDAP_LIBS_FE="-lwldap32"
20381 LDAP_LIBS_BE="-lwldap32"
20383 LIBS="$_LIBS"
20389 # This test makes sure that run tests work at all. Sometimes a shared
20390 # library is found by the linker, but the runtime linker can't find it.
20391 # This check should come after all modifications of compiler or linker
20392 # variables, and before any other run tests.
20393 { echo "$as_me:$LINENO: checking test program" >&5
20394 echo $ECHO_N "checking test program... $ECHO_C" >&6; }
20395 if test "$cross_compiling" = yes; then
20396 { echo "$as_me:$LINENO: result: cross-compiling" >&5
20397 echo "${ECHO_T}cross-compiling" >&6; }
20398 else
20399 cat >conftest.$ac_ext <<_ACEOF
20400 /* confdefs.h. */
20401 _ACEOF
20402 cat confdefs.h >>conftest.$ac_ext
20403 cat >>conftest.$ac_ext <<_ACEOF
20404 /* end confdefs.h. */
20405 int main() { return 0; }
20406 _ACEOF
20407 rm -f conftest$ac_exeext
20408 if { (ac_try="$ac_link"
20409 case "(($ac_try" in
20410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20411 *) ac_try_echo=$ac_try;;
20412 esac
20413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20414 (eval "$ac_link") 2>&5
20415 ac_status=$?
20416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20418 { (case "(($ac_try" in
20419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20420 *) ac_try_echo=$ac_try;;
20421 esac
20422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20423 (eval "$ac_try") 2>&5
20424 ac_status=$?
20425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); }; }; then
20427 { echo "$as_me:$LINENO: result: ok" >&5
20428 echo "${ECHO_T}ok" >&6; }
20429 else
20430 echo "$as_me: program exited with status $ac_status" >&5
20431 echo "$as_me: failed program was:" >&5
20432 sed 's/^/| /' conftest.$ac_ext >&5
20434 ( exit $ac_status )
20435 { echo "$as_me:$LINENO: result: failed" >&5
20436 echo "${ECHO_T}failed" >&6; }
20437 { { echo "$as_me:$LINENO: error:
20438 Could not execute a simple test program. This may be a problem
20439 related to locating shared libraries. Check the file 'config.log'
20440 for the exact reason." >&5
20441 echo "$as_me: error:
20442 Could not execute a simple test program. This may be a problem
20443 related to locating shared libraries. Check the file 'config.log'
20444 for the exact reason." >&2;}
20445 { (exit 1); exit 1; }; }
20447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20452 # --------------------
20453 # Run tests below here
20454 # --------------------
20456 # Force use of our snprintf if system's doesn't do arg control
20457 # See comment above at snprintf test for details.
20458 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
20459 { echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
20460 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6; }
20461 if test "${pgac_cv_printf_arg_control+set}" = set; then
20462 echo $ECHO_N "(cached) $ECHO_C" >&6
20463 else
20464 if test "$cross_compiling" = yes; then
20465 pgac_cv_printf_arg_control=cross
20466 else
20467 cat >conftest.$ac_ext <<_ACEOF
20468 /* confdefs.h. */
20469 _ACEOF
20470 cat confdefs.h >>conftest.$ac_ext
20471 cat >>conftest.$ac_ext <<_ACEOF
20472 /* end confdefs.h. */
20473 #include <stdio.h>
20474 #include <string.h>
20476 int main()
20478 char buf[100];
20480 /* can it swap arguments? */
20481 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
20482 if (strcmp(buf, "4 3") != 0)
20483 return 1;
20484 return 0;
20486 _ACEOF
20487 rm -f conftest$ac_exeext
20488 if { (ac_try="$ac_link"
20489 case "(($ac_try" in
20490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20491 *) ac_try_echo=$ac_try;;
20492 esac
20493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20494 (eval "$ac_link") 2>&5
20495 ac_status=$?
20496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20498 { (case "(($ac_try" in
20499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20500 *) ac_try_echo=$ac_try;;
20501 esac
20502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20503 (eval "$ac_try") 2>&5
20504 ac_status=$?
20505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506 (exit $ac_status); }; }; then
20507 pgac_cv_printf_arg_control=yes
20508 else
20509 echo "$as_me: program exited with status $ac_status" >&5
20510 echo "$as_me: failed program was:" >&5
20511 sed 's/^/| /' conftest.$ac_ext >&5
20513 ( exit $ac_status )
20514 pgac_cv_printf_arg_control=no
20516 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20522 { echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
20523 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6; }
20525 if test $pgac_cv_printf_arg_control != yes ; then
20526 pgac_need_repl_snprintf=yes
20532 { echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
20533 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6; }
20534 if test "${pgac_cv_type_long_int_64+set}" = set; then
20535 echo $ECHO_N "(cached) $ECHO_C" >&6
20536 else
20537 if test "$cross_compiling" = yes; then
20538 # If cross-compiling, check the size reported by the compiler and
20539 # trust that the arithmetic works.
20540 cat >conftest.$ac_ext <<_ACEOF
20541 /* confdefs.h. */
20542 _ACEOF
20543 cat confdefs.h >>conftest.$ac_ext
20544 cat >>conftest.$ac_ext <<_ACEOF
20545 /* end confdefs.h. */
20548 main ()
20550 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
20551 test_array [0] = 0
20554 return 0;
20556 _ACEOF
20557 rm -f conftest.$ac_objext
20558 if { (ac_try="$ac_compile"
20559 case "(($ac_try" in
20560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20561 *) ac_try_echo=$ac_try;;
20562 esac
20563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20564 (eval "$ac_compile") 2>conftest.er1
20565 ac_status=$?
20566 grep -v '^ *+' conftest.er1 >conftest.err
20567 rm -f conftest.er1
20568 cat conftest.err >&5
20569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570 (exit $ac_status); } && {
20571 test -z "$ac_c_werror_flag" ||
20572 test ! -s conftest.err
20573 } && test -s conftest.$ac_objext; then
20574 pgac_cv_type_long_int_64=yes
20575 else
20576 echo "$as_me: failed program was:" >&5
20577 sed 's/^/| /' conftest.$ac_ext >&5
20579 pgac_cv_type_long_int_64=no
20582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20583 else
20584 cat >conftest.$ac_ext <<_ACEOF
20585 /* confdefs.h. */
20586 _ACEOF
20587 cat confdefs.h >>conftest.$ac_ext
20588 cat >>conftest.$ac_ext <<_ACEOF
20589 /* end confdefs.h. */
20590 typedef long int ac_int64;
20593 * These are globals to discourage the compiler from folding all the
20594 * arithmetic tests down to compile-time constants.
20596 ac_int64 a = 20000001;
20597 ac_int64 b = 40000005;
20599 int does_int64_work()
20601 ac_int64 c,d;
20603 if (sizeof(ac_int64) != 8)
20604 return 0; /* definitely not the right size */
20606 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
20607 c = a * b;
20608 d = (c + b) / b;
20609 if (d != a+1)
20610 return 0;
20611 return 1;
20613 main() {
20614 exit(! does_int64_work());
20616 _ACEOF
20617 rm -f conftest$ac_exeext
20618 if { (ac_try="$ac_link"
20619 case "(($ac_try" in
20620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20621 *) ac_try_echo=$ac_try;;
20622 esac
20623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20624 (eval "$ac_link") 2>&5
20625 ac_status=$?
20626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20628 { (case "(($ac_try" in
20629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20630 *) ac_try_echo=$ac_try;;
20631 esac
20632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20633 (eval "$ac_try") 2>&5
20634 ac_status=$?
20635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636 (exit $ac_status); }; }; then
20637 pgac_cv_type_long_int_64=yes
20638 else
20639 echo "$as_me: program exited with status $ac_status" >&5
20640 echo "$as_me: failed program was:" >&5
20641 sed 's/^/| /' conftest.$ac_ext >&5
20643 ( exit $ac_status )
20644 pgac_cv_type_long_int_64=no
20646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20651 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
20652 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6; }
20654 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
20655 if test x"$pgac_cv_type_long_int_64" = xyes ; then
20657 cat >>confdefs.h <<\_ACEOF
20658 #define HAVE_LONG_INT_64 1
20659 _ACEOF
20664 if test x"$HAVE_LONG_INT_64" = x"no" ; then
20665 { echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
20666 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6; }
20667 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
20668 echo $ECHO_N "(cached) $ECHO_C" >&6
20669 else
20670 if test "$cross_compiling" = yes; then
20671 # If cross-compiling, check the size reported by the compiler and
20672 # trust that the arithmetic works.
20673 cat >conftest.$ac_ext <<_ACEOF
20674 /* confdefs.h. */
20675 _ACEOF
20676 cat confdefs.h >>conftest.$ac_ext
20677 cat >>conftest.$ac_ext <<_ACEOF
20678 /* end confdefs.h. */
20681 main ()
20683 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
20684 test_array [0] = 0
20687 return 0;
20689 _ACEOF
20690 rm -f conftest.$ac_objext
20691 if { (ac_try="$ac_compile"
20692 case "(($ac_try" in
20693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20694 *) ac_try_echo=$ac_try;;
20695 esac
20696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20697 (eval "$ac_compile") 2>conftest.er1
20698 ac_status=$?
20699 grep -v '^ *+' conftest.er1 >conftest.err
20700 rm -f conftest.er1
20701 cat conftest.err >&5
20702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20703 (exit $ac_status); } && {
20704 test -z "$ac_c_werror_flag" ||
20705 test ! -s conftest.err
20706 } && test -s conftest.$ac_objext; then
20707 pgac_cv_type_long_long_int_64=yes
20708 else
20709 echo "$as_me: failed program was:" >&5
20710 sed 's/^/| /' conftest.$ac_ext >&5
20712 pgac_cv_type_long_long_int_64=no
20715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20716 else
20717 cat >conftest.$ac_ext <<_ACEOF
20718 /* confdefs.h. */
20719 _ACEOF
20720 cat confdefs.h >>conftest.$ac_ext
20721 cat >>conftest.$ac_ext <<_ACEOF
20722 /* end confdefs.h. */
20723 typedef long long int ac_int64;
20726 * These are globals to discourage the compiler from folding all the
20727 * arithmetic tests down to compile-time constants.
20729 ac_int64 a = 20000001;
20730 ac_int64 b = 40000005;
20732 int does_int64_work()
20734 ac_int64 c,d;
20736 if (sizeof(ac_int64) != 8)
20737 return 0; /* definitely not the right size */
20739 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
20740 c = a * b;
20741 d = (c + b) / b;
20742 if (d != a+1)
20743 return 0;
20744 return 1;
20746 main() {
20747 exit(! does_int64_work());
20749 _ACEOF
20750 rm -f conftest$ac_exeext
20751 if { (ac_try="$ac_link"
20752 case "(($ac_try" in
20753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20754 *) ac_try_echo=$ac_try;;
20755 esac
20756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20757 (eval "$ac_link") 2>&5
20758 ac_status=$?
20759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20761 { (case "(($ac_try" in
20762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20763 *) ac_try_echo=$ac_try;;
20764 esac
20765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20766 (eval "$ac_try") 2>&5
20767 ac_status=$?
20768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769 (exit $ac_status); }; }; then
20770 pgac_cv_type_long_long_int_64=yes
20771 else
20772 echo "$as_me: program exited with status $ac_status" >&5
20773 echo "$as_me: failed program was:" >&5
20774 sed 's/^/| /' conftest.$ac_ext >&5
20776 ( exit $ac_status )
20777 pgac_cv_type_long_long_int_64=no
20779 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20784 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
20785 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6; }
20787 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
20788 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
20790 cat >>confdefs.h <<\_ACEOF
20791 #define HAVE_LONG_LONG_INT_64 1
20792 _ACEOF
20800 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
20801 cat >conftest.$ac_ext <<_ACEOF
20802 /* confdefs.h. */
20803 _ACEOF
20804 cat confdefs.h >>conftest.$ac_ext
20805 cat >>conftest.$ac_ext <<_ACEOF
20806 /* end confdefs.h. */
20808 #define INT64CONST(x) x##LL
20809 long long int foo = INT64CONST(0x1234567890123456);
20812 main ()
20816 return 0;
20818 _ACEOF
20819 rm -f conftest.$ac_objext
20820 if { (ac_try="$ac_compile"
20821 case "(($ac_try" in
20822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20823 *) ac_try_echo=$ac_try;;
20824 esac
20825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20826 (eval "$ac_compile") 2>conftest.er1
20827 ac_status=$?
20828 grep -v '^ *+' conftest.er1 >conftest.err
20829 rm -f conftest.er1
20830 cat conftest.err >&5
20831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20832 (exit $ac_status); } && {
20833 test -z "$ac_c_werror_flag" ||
20834 test ! -s conftest.err
20835 } && test -s conftest.$ac_objext; then
20837 cat >>confdefs.h <<\_ACEOF
20838 #define HAVE_LL_CONSTANTS 1
20839 _ACEOF
20841 else
20842 echo "$as_me: failed program was:" >&5
20843 sed 's/^/| /' conftest.$ac_ext >&5
20848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20852 # If we found "long int" is 64 bits, assume snprintf handles it. If
20853 # we found we need to use "long long int", better check. We cope with
20854 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
20855 # work, fall back to our own snprintf emulation (which we know uses %lld).
20857 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
20858 if test $pgac_need_repl_snprintf = no; then
20859 { echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
20860 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6; }
20861 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
20862 echo $ECHO_N "(cached) $ECHO_C" >&6
20863 else
20864 for pgac_format in '%lld' '%qd' '%I64d'; do
20865 if test "$cross_compiling" = yes; then
20866 pgac_cv_snprintf_long_long_int_format=cross; break
20867 else
20868 cat >conftest.$ac_ext <<_ACEOF
20869 /* confdefs.h. */
20870 _ACEOF
20871 cat confdefs.h >>conftest.$ac_ext
20872 cat >>conftest.$ac_ext <<_ACEOF
20873 /* end confdefs.h. */
20874 #include <stdio.h>
20875 typedef long long int ac_int64;
20876 #define INT64_FORMAT "$pgac_format"
20878 ac_int64 a = 20000001;
20879 ac_int64 b = 40000005;
20881 int does_int64_snprintf_work()
20883 ac_int64 c;
20884 char buf[100];
20886 if (sizeof(ac_int64) != 8)
20887 return 0; /* doesn't look like the right size */
20889 c = a * b;
20890 snprintf(buf, 100, INT64_FORMAT, c);
20891 if (strcmp(buf, "800000140000005") != 0)
20892 return 0; /* either multiply or snprintf is busted */
20893 return 1;
20895 main() {
20896 exit(! does_int64_snprintf_work());
20898 _ACEOF
20899 rm -f conftest$ac_exeext
20900 if { (ac_try="$ac_link"
20901 case "(($ac_try" in
20902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20903 *) ac_try_echo=$ac_try;;
20904 esac
20905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20906 (eval "$ac_link") 2>&5
20907 ac_status=$?
20908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20910 { (case "(($ac_try" in
20911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20912 *) ac_try_echo=$ac_try;;
20913 esac
20914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20915 (eval "$ac_try") 2>&5
20916 ac_status=$?
20917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918 (exit $ac_status); }; }; then
20919 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
20920 else
20921 echo "$as_me: program exited with status $ac_status" >&5
20922 echo "$as_me: failed program was:" >&5
20923 sed 's/^/| /' conftest.$ac_ext >&5
20926 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20930 done
20933 LONG_LONG_INT_FORMAT=''
20935 case $pgac_cv_snprintf_long_long_int_format in
20936 cross) { echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
20937 echo "${ECHO_T}cannot test (not on host machine)" >&6; };;
20938 ?*) { echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
20939 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6; }
20940 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
20941 *) { echo "$as_me:$LINENO: result: none" >&5
20942 echo "${ECHO_T}none" >&6; };;
20943 esac
20944 if test "$LONG_LONG_INT_FORMAT" = ""; then
20945 # Force usage of our own snprintf, since system snprintf is broken
20946 pgac_need_repl_snprintf=yes
20947 LONG_LONG_INT_FORMAT='%lld'
20949 else
20950 # Here if we previously decided we needed to use our own snprintf
20951 LONG_LONG_INT_FORMAT='%lld'
20953 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
20954 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
20955 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
20956 else
20957 # Here if we are not using 'long long int' at all
20958 INT64_FORMAT='"%ld"'
20959 UINT64_FORMAT='"%lu"'
20963 cat >>confdefs.h <<_ACEOF
20964 #define INT64_FORMAT $INT64_FORMAT
20965 _ACEOF
20969 cat >>confdefs.h <<_ACEOF
20970 #define UINT64_FORMAT $UINT64_FORMAT
20971 _ACEOF
20974 # Now we have checked all the reasons to replace snprintf
20975 if test $pgac_need_repl_snprintf = yes; then
20977 cat >>confdefs.h <<\_ACEOF
20978 #define USE_REPL_SNPRINTF 1
20979 _ACEOF
20981 case " $LIBOBJS " in
20982 *" snprintf.$ac_objext "* ) ;;
20983 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20985 esac
20989 # Need a #define for the size of Datum (unsigned long)
20990 { echo "$as_me:$LINENO: checking for unsigned long" >&5
20991 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
20992 if test "${ac_cv_type_unsigned_long+set}" = set; then
20993 echo $ECHO_N "(cached) $ECHO_C" >&6
20994 else
20995 cat >conftest.$ac_ext <<_ACEOF
20996 /* confdefs.h. */
20997 _ACEOF
20998 cat confdefs.h >>conftest.$ac_ext
20999 cat >>conftest.$ac_ext <<_ACEOF
21000 /* end confdefs.h. */
21001 $ac_includes_default
21002 typedef unsigned long ac__type_new_;
21004 main ()
21006 if ((ac__type_new_ *) 0)
21007 return 0;
21008 if (sizeof (ac__type_new_))
21009 return 0;
21011 return 0;
21013 _ACEOF
21014 rm -f conftest.$ac_objext
21015 if { (ac_try="$ac_compile"
21016 case "(($ac_try" in
21017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21018 *) ac_try_echo=$ac_try;;
21019 esac
21020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21021 (eval "$ac_compile") 2>conftest.er1
21022 ac_status=$?
21023 grep -v '^ *+' conftest.er1 >conftest.err
21024 rm -f conftest.er1
21025 cat conftest.err >&5
21026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027 (exit $ac_status); } && {
21028 test -z "$ac_c_werror_flag" ||
21029 test ! -s conftest.err
21030 } && test -s conftest.$ac_objext; then
21031 ac_cv_type_unsigned_long=yes
21032 else
21033 echo "$as_me: failed program was:" >&5
21034 sed 's/^/| /' conftest.$ac_ext >&5
21036 ac_cv_type_unsigned_long=no
21039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21041 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
21042 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
21044 # The cast to long int works around a bug in the HP C Compiler
21045 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21046 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21047 # This bug is HP SR number 8606223364.
21048 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
21049 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
21050 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
21051 echo $ECHO_N "(cached) $ECHO_C" >&6
21052 else
21053 if test "$cross_compiling" = yes; then
21054 # Depending upon the size, compute the lo and hi bounds.
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_lo=0 ac_mid=0
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_hi=$ac_mid; break
21128 else
21129 echo "$as_me: failed program was:" >&5
21130 sed 's/^/| /' conftest.$ac_ext >&5
21132 ac_lo=`expr $ac_mid + 1`
21133 if test $ac_lo -le $ac_mid; then
21134 ac_lo= ac_hi=
21135 break
21137 ac_mid=`expr 2 '*' $ac_mid + 1`
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 cat >conftest.$ac_ext <<_ACEOF
21147 /* confdefs.h. */
21148 _ACEOF
21149 cat confdefs.h >>conftest.$ac_ext
21150 cat >>conftest.$ac_ext <<_ACEOF
21151 /* end confdefs.h. */
21152 $ac_includes_default
21153 typedef unsigned long ac__type_sizeof_;
21155 main ()
21157 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21158 test_array [0] = 0
21161 return 0;
21163 _ACEOF
21164 rm -f conftest.$ac_objext
21165 if { (ac_try="$ac_compile"
21166 case "(($ac_try" in
21167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21168 *) ac_try_echo=$ac_try;;
21169 esac
21170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21171 (eval "$ac_compile") 2>conftest.er1
21172 ac_status=$?
21173 grep -v '^ *+' conftest.er1 >conftest.err
21174 rm -f conftest.er1
21175 cat conftest.err >&5
21176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177 (exit $ac_status); } && {
21178 test -z "$ac_c_werror_flag" ||
21179 test ! -s conftest.err
21180 } && test -s conftest.$ac_objext; then
21181 ac_hi=-1 ac_mid=-1
21182 while :; do
21183 cat >conftest.$ac_ext <<_ACEOF
21184 /* confdefs.h. */
21185 _ACEOF
21186 cat confdefs.h >>conftest.$ac_ext
21187 cat >>conftest.$ac_ext <<_ACEOF
21188 /* end confdefs.h. */
21189 $ac_includes_default
21190 typedef unsigned long ac__type_sizeof_;
21192 main ()
21194 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21195 test_array [0] = 0
21198 return 0;
21200 _ACEOF
21201 rm -f conftest.$ac_objext
21202 if { (ac_try="$ac_compile"
21203 case "(($ac_try" in
21204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21205 *) ac_try_echo=$ac_try;;
21206 esac
21207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21208 (eval "$ac_compile") 2>conftest.er1
21209 ac_status=$?
21210 grep -v '^ *+' conftest.er1 >conftest.err
21211 rm -f conftest.er1
21212 cat conftest.err >&5
21213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214 (exit $ac_status); } && {
21215 test -z "$ac_c_werror_flag" ||
21216 test ! -s conftest.err
21217 } && test -s conftest.$ac_objext; then
21218 ac_lo=$ac_mid; break
21219 else
21220 echo "$as_me: failed program was:" >&5
21221 sed 's/^/| /' conftest.$ac_ext >&5
21223 ac_hi=`expr '(' $ac_mid ')' - 1`
21224 if test $ac_mid -le $ac_hi; then
21225 ac_lo= ac_hi=
21226 break
21228 ac_mid=`expr 2 '*' $ac_mid`
21231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21232 done
21233 else
21234 echo "$as_me: failed program was:" >&5
21235 sed 's/^/| /' conftest.$ac_ext >&5
21237 ac_lo= ac_hi=
21240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21244 # Binary search between lo and hi bounds.
21245 while test "x$ac_lo" != "x$ac_hi"; do
21246 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21247 cat >conftest.$ac_ext <<_ACEOF
21248 /* confdefs.h. */
21249 _ACEOF
21250 cat confdefs.h >>conftest.$ac_ext
21251 cat >>conftest.$ac_ext <<_ACEOF
21252 /* end confdefs.h. */
21253 $ac_includes_default
21254 typedef unsigned long ac__type_sizeof_;
21256 main ()
21258 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21259 test_array [0] = 0
21262 return 0;
21264 _ACEOF
21265 rm -f conftest.$ac_objext
21266 if { (ac_try="$ac_compile"
21267 case "(($ac_try" in
21268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21269 *) ac_try_echo=$ac_try;;
21270 esac
21271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21272 (eval "$ac_compile") 2>conftest.er1
21273 ac_status=$?
21274 grep -v '^ *+' conftest.er1 >conftest.err
21275 rm -f conftest.er1
21276 cat conftest.err >&5
21277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278 (exit $ac_status); } && {
21279 test -z "$ac_c_werror_flag" ||
21280 test ! -s conftest.err
21281 } && test -s conftest.$ac_objext; then
21282 ac_hi=$ac_mid
21283 else
21284 echo "$as_me: failed program was:" >&5
21285 sed 's/^/| /' conftest.$ac_ext >&5
21287 ac_lo=`expr '(' $ac_mid ')' + 1`
21290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21291 done
21292 case $ac_lo in
21293 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
21294 '') if test "$ac_cv_type_unsigned_long" = yes; then
21295 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
21296 See \`config.log' for more details." >&5
21297 echo "$as_me: error: cannot compute sizeof (unsigned long)
21298 See \`config.log' for more details." >&2;}
21299 { (exit 77); exit 77; }; }
21300 else
21301 ac_cv_sizeof_unsigned_long=0
21302 fi ;;
21303 esac
21304 else
21305 cat >conftest.$ac_ext <<_ACEOF
21306 /* confdefs.h. */
21307 _ACEOF
21308 cat confdefs.h >>conftest.$ac_ext
21309 cat >>conftest.$ac_ext <<_ACEOF
21310 /* end confdefs.h. */
21311 $ac_includes_default
21312 typedef unsigned long ac__type_sizeof_;
21313 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21314 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21315 #include <stdio.h>
21316 #include <stdlib.h>
21318 main ()
21321 FILE *f = fopen ("conftest.val", "w");
21322 if (! f)
21323 return 1;
21324 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21326 long int i = longval ();
21327 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21328 return 1;
21329 fprintf (f, "%ld\n", i);
21331 else
21333 unsigned long int i = ulongval ();
21334 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21335 return 1;
21336 fprintf (f, "%lu\n", i);
21338 return ferror (f) || fclose (f) != 0;
21341 return 0;
21343 _ACEOF
21344 rm -f conftest$ac_exeext
21345 if { (ac_try="$ac_link"
21346 case "(($ac_try" in
21347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21348 *) ac_try_echo=$ac_try;;
21349 esac
21350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21351 (eval "$ac_link") 2>&5
21352 ac_status=$?
21353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21355 { (case "(($ac_try" in
21356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21357 *) ac_try_echo=$ac_try;;
21358 esac
21359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21360 (eval "$ac_try") 2>&5
21361 ac_status=$?
21362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363 (exit $ac_status); }; }; then
21364 ac_cv_sizeof_unsigned_long=`cat conftest.val`
21365 else
21366 echo "$as_me: program exited with status $ac_status" >&5
21367 echo "$as_me: failed program was:" >&5
21368 sed 's/^/| /' conftest.$ac_ext >&5
21370 ( exit $ac_status )
21371 if test "$ac_cv_type_unsigned_long" = yes; then
21372 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
21373 See \`config.log' for more details." >&5
21374 echo "$as_me: error: cannot compute sizeof (unsigned long)
21375 See \`config.log' for more details." >&2;}
21376 { (exit 77); exit 77; }; }
21377 else
21378 ac_cv_sizeof_unsigned_long=0
21381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21383 rm -f conftest.val
21385 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
21386 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
21390 cat >>confdefs.h <<_ACEOF
21391 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21392 _ACEOF
21396 # And check size of void *, size_t (enables tweaks for > 32bit address space)
21397 { echo "$as_me:$LINENO: checking for void *" >&5
21398 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
21399 if test "${ac_cv_type_void_p+set}" = set; then
21400 echo $ECHO_N "(cached) $ECHO_C" >&6
21401 else
21402 cat >conftest.$ac_ext <<_ACEOF
21403 /* confdefs.h. */
21404 _ACEOF
21405 cat confdefs.h >>conftest.$ac_ext
21406 cat >>conftest.$ac_ext <<_ACEOF
21407 /* end confdefs.h. */
21408 $ac_includes_default
21409 typedef void * ac__type_new_;
21411 main ()
21413 if ((ac__type_new_ *) 0)
21414 return 0;
21415 if (sizeof (ac__type_new_))
21416 return 0;
21418 return 0;
21420 _ACEOF
21421 rm -f conftest.$ac_objext
21422 if { (ac_try="$ac_compile"
21423 case "(($ac_try" in
21424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21425 *) ac_try_echo=$ac_try;;
21426 esac
21427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21428 (eval "$ac_compile") 2>conftest.er1
21429 ac_status=$?
21430 grep -v '^ *+' conftest.er1 >conftest.err
21431 rm -f conftest.er1
21432 cat conftest.err >&5
21433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434 (exit $ac_status); } && {
21435 test -z "$ac_c_werror_flag" ||
21436 test ! -s conftest.err
21437 } && test -s conftest.$ac_objext; then
21438 ac_cv_type_void_p=yes
21439 else
21440 echo "$as_me: failed program was:" >&5
21441 sed 's/^/| /' conftest.$ac_ext >&5
21443 ac_cv_type_void_p=no
21446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21448 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
21449 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
21451 # The cast to long int works around a bug in the HP C Compiler
21452 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21453 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21454 # This bug is HP SR number 8606223364.
21455 { echo "$as_me:$LINENO: checking size of void *" >&5
21456 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
21457 if test "${ac_cv_sizeof_void_p+set}" = set; then
21458 echo $ECHO_N "(cached) $ECHO_C" >&6
21459 else
21460 if test "$cross_compiling" = yes; then
21461 # Depending upon the size, compute the lo and hi bounds.
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_lo=0 ac_mid=0
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_hi=$ac_mid; break
21535 else
21536 echo "$as_me: failed program was:" >&5
21537 sed 's/^/| /' conftest.$ac_ext >&5
21539 ac_lo=`expr $ac_mid + 1`
21540 if test $ac_lo -le $ac_mid; then
21541 ac_lo= ac_hi=
21542 break
21544 ac_mid=`expr 2 '*' $ac_mid + 1`
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 cat >conftest.$ac_ext <<_ACEOF
21554 /* confdefs.h. */
21555 _ACEOF
21556 cat confdefs.h >>conftest.$ac_ext
21557 cat >>conftest.$ac_ext <<_ACEOF
21558 /* end confdefs.h. */
21559 $ac_includes_default
21560 typedef void * ac__type_sizeof_;
21562 main ()
21564 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21565 test_array [0] = 0
21568 return 0;
21570 _ACEOF
21571 rm -f conftest.$ac_objext
21572 if { (ac_try="$ac_compile"
21573 case "(($ac_try" in
21574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21575 *) ac_try_echo=$ac_try;;
21576 esac
21577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21578 (eval "$ac_compile") 2>conftest.er1
21579 ac_status=$?
21580 grep -v '^ *+' conftest.er1 >conftest.err
21581 rm -f conftest.er1
21582 cat conftest.err >&5
21583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21584 (exit $ac_status); } && {
21585 test -z "$ac_c_werror_flag" ||
21586 test ! -s conftest.err
21587 } && test -s conftest.$ac_objext; then
21588 ac_hi=-1 ac_mid=-1
21589 while :; do
21590 cat >conftest.$ac_ext <<_ACEOF
21591 /* confdefs.h. */
21592 _ACEOF
21593 cat confdefs.h >>conftest.$ac_ext
21594 cat >>conftest.$ac_ext <<_ACEOF
21595 /* end confdefs.h. */
21596 $ac_includes_default
21597 typedef void * ac__type_sizeof_;
21599 main ()
21601 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21602 test_array [0] = 0
21605 return 0;
21607 _ACEOF
21608 rm -f conftest.$ac_objext
21609 if { (ac_try="$ac_compile"
21610 case "(($ac_try" in
21611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21612 *) ac_try_echo=$ac_try;;
21613 esac
21614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21615 (eval "$ac_compile") 2>conftest.er1
21616 ac_status=$?
21617 grep -v '^ *+' conftest.er1 >conftest.err
21618 rm -f conftest.er1
21619 cat conftest.err >&5
21620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621 (exit $ac_status); } && {
21622 test -z "$ac_c_werror_flag" ||
21623 test ! -s conftest.err
21624 } && test -s conftest.$ac_objext; then
21625 ac_lo=$ac_mid; break
21626 else
21627 echo "$as_me: failed program was:" >&5
21628 sed 's/^/| /' conftest.$ac_ext >&5
21630 ac_hi=`expr '(' $ac_mid ')' - 1`
21631 if test $ac_mid -le $ac_hi; then
21632 ac_lo= ac_hi=
21633 break
21635 ac_mid=`expr 2 '*' $ac_mid`
21638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21639 done
21640 else
21641 echo "$as_me: failed program was:" >&5
21642 sed 's/^/| /' conftest.$ac_ext >&5
21644 ac_lo= ac_hi=
21647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21651 # Binary search between lo and hi bounds.
21652 while test "x$ac_lo" != "x$ac_hi"; do
21653 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21654 cat >conftest.$ac_ext <<_ACEOF
21655 /* confdefs.h. */
21656 _ACEOF
21657 cat confdefs.h >>conftest.$ac_ext
21658 cat >>conftest.$ac_ext <<_ACEOF
21659 /* end confdefs.h. */
21660 $ac_includes_default
21661 typedef void * ac__type_sizeof_;
21663 main ()
21665 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21666 test_array [0] = 0
21669 return 0;
21671 _ACEOF
21672 rm -f conftest.$ac_objext
21673 if { (ac_try="$ac_compile"
21674 case "(($ac_try" in
21675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21676 *) ac_try_echo=$ac_try;;
21677 esac
21678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21679 (eval "$ac_compile") 2>conftest.er1
21680 ac_status=$?
21681 grep -v '^ *+' conftest.er1 >conftest.err
21682 rm -f conftest.er1
21683 cat conftest.err >&5
21684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685 (exit $ac_status); } && {
21686 test -z "$ac_c_werror_flag" ||
21687 test ! -s conftest.err
21688 } && test -s conftest.$ac_objext; then
21689 ac_hi=$ac_mid
21690 else
21691 echo "$as_me: failed program was:" >&5
21692 sed 's/^/| /' conftest.$ac_ext >&5
21694 ac_lo=`expr '(' $ac_mid ')' + 1`
21697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21698 done
21699 case $ac_lo in
21700 ?*) ac_cv_sizeof_void_p=$ac_lo;;
21701 '') if test "$ac_cv_type_void_p" = yes; then
21702 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
21703 See \`config.log' for more details." >&5
21704 echo "$as_me: error: cannot compute sizeof (void *)
21705 See \`config.log' for more details." >&2;}
21706 { (exit 77); exit 77; }; }
21707 else
21708 ac_cv_sizeof_void_p=0
21709 fi ;;
21710 esac
21711 else
21712 cat >conftest.$ac_ext <<_ACEOF
21713 /* confdefs.h. */
21714 _ACEOF
21715 cat confdefs.h >>conftest.$ac_ext
21716 cat >>conftest.$ac_ext <<_ACEOF
21717 /* end confdefs.h. */
21718 $ac_includes_default
21719 typedef void * ac__type_sizeof_;
21720 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21721 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21722 #include <stdio.h>
21723 #include <stdlib.h>
21725 main ()
21728 FILE *f = fopen ("conftest.val", "w");
21729 if (! f)
21730 return 1;
21731 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21733 long int i = longval ();
21734 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21735 return 1;
21736 fprintf (f, "%ld\n", i);
21738 else
21740 unsigned long int i = ulongval ();
21741 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21742 return 1;
21743 fprintf (f, "%lu\n", i);
21745 return ferror (f) || fclose (f) != 0;
21748 return 0;
21750 _ACEOF
21751 rm -f conftest$ac_exeext
21752 if { (ac_try="$ac_link"
21753 case "(($ac_try" in
21754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21755 *) ac_try_echo=$ac_try;;
21756 esac
21757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21758 (eval "$ac_link") 2>&5
21759 ac_status=$?
21760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21761 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21762 { (case "(($ac_try" in
21763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21764 *) ac_try_echo=$ac_try;;
21765 esac
21766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21767 (eval "$ac_try") 2>&5
21768 ac_status=$?
21769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21770 (exit $ac_status); }; }; then
21771 ac_cv_sizeof_void_p=`cat conftest.val`
21772 else
21773 echo "$as_me: program exited with status $ac_status" >&5
21774 echo "$as_me: failed program was:" >&5
21775 sed 's/^/| /' conftest.$ac_ext >&5
21777 ( exit $ac_status )
21778 if test "$ac_cv_type_void_p" = yes; then
21779 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
21780 See \`config.log' for more details." >&5
21781 echo "$as_me: error: cannot compute sizeof (void *)
21782 See \`config.log' for more details." >&2;}
21783 { (exit 77); exit 77; }; }
21784 else
21785 ac_cv_sizeof_void_p=0
21788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21790 rm -f conftest.val
21792 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
21793 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
21797 cat >>confdefs.h <<_ACEOF
21798 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
21799 _ACEOF
21802 { echo "$as_me:$LINENO: checking for size_t" >&5
21803 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21804 if test "${ac_cv_type_size_t+set}" = set; then
21805 echo $ECHO_N "(cached) $ECHO_C" >&6
21806 else
21807 cat >conftest.$ac_ext <<_ACEOF
21808 /* confdefs.h. */
21809 _ACEOF
21810 cat confdefs.h >>conftest.$ac_ext
21811 cat >>conftest.$ac_ext <<_ACEOF
21812 /* end confdefs.h. */
21813 $ac_includes_default
21814 typedef size_t ac__type_new_;
21816 main ()
21818 if ((ac__type_new_ *) 0)
21819 return 0;
21820 if (sizeof (ac__type_new_))
21821 return 0;
21823 return 0;
21825 _ACEOF
21826 rm -f conftest.$ac_objext
21827 if { (ac_try="$ac_compile"
21828 case "(($ac_try" in
21829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21830 *) ac_try_echo=$ac_try;;
21831 esac
21832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21833 (eval "$ac_compile") 2>conftest.er1
21834 ac_status=$?
21835 grep -v '^ *+' conftest.er1 >conftest.err
21836 rm -f conftest.er1
21837 cat conftest.err >&5
21838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21839 (exit $ac_status); } && {
21840 test -z "$ac_c_werror_flag" ||
21841 test ! -s conftest.err
21842 } && test -s conftest.$ac_objext; then
21843 ac_cv_type_size_t=yes
21844 else
21845 echo "$as_me: failed program was:" >&5
21846 sed 's/^/| /' conftest.$ac_ext >&5
21848 ac_cv_type_size_t=no
21851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21853 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21854 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21856 # The cast to long int works around a bug in the HP C Compiler
21857 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21858 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21859 # This bug is HP SR number 8606223364.
21860 { echo "$as_me:$LINENO: checking size of size_t" >&5
21861 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
21862 if test "${ac_cv_sizeof_size_t+set}" = set; then
21863 echo $ECHO_N "(cached) $ECHO_C" >&6
21864 else
21865 if test "$cross_compiling" = yes; then
21866 # Depending upon the size, compute the lo and hi bounds.
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_lo=0 ac_mid=0
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_hi=$ac_mid; break
21940 else
21941 echo "$as_me: failed program was:" >&5
21942 sed 's/^/| /' conftest.$ac_ext >&5
21944 ac_lo=`expr $ac_mid + 1`
21945 if test $ac_lo -le $ac_mid; then
21946 ac_lo= ac_hi=
21947 break
21949 ac_mid=`expr 2 '*' $ac_mid + 1`
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 cat >conftest.$ac_ext <<_ACEOF
21959 /* confdefs.h. */
21960 _ACEOF
21961 cat confdefs.h >>conftest.$ac_ext
21962 cat >>conftest.$ac_ext <<_ACEOF
21963 /* end confdefs.h. */
21964 $ac_includes_default
21965 typedef size_t ac__type_sizeof_;
21967 main ()
21969 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21970 test_array [0] = 0
21973 return 0;
21975 _ACEOF
21976 rm -f conftest.$ac_objext
21977 if { (ac_try="$ac_compile"
21978 case "(($ac_try" in
21979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21980 *) ac_try_echo=$ac_try;;
21981 esac
21982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21983 (eval "$ac_compile") 2>conftest.er1
21984 ac_status=$?
21985 grep -v '^ *+' conftest.er1 >conftest.err
21986 rm -f conftest.er1
21987 cat conftest.err >&5
21988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989 (exit $ac_status); } && {
21990 test -z "$ac_c_werror_flag" ||
21991 test ! -s conftest.err
21992 } && test -s conftest.$ac_objext; then
21993 ac_hi=-1 ac_mid=-1
21994 while :; do
21995 cat >conftest.$ac_ext <<_ACEOF
21996 /* confdefs.h. */
21997 _ACEOF
21998 cat confdefs.h >>conftest.$ac_ext
21999 cat >>conftest.$ac_ext <<_ACEOF
22000 /* end confdefs.h. */
22001 $ac_includes_default
22002 typedef size_t ac__type_sizeof_;
22004 main ()
22006 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22007 test_array [0] = 0
22010 return 0;
22012 _ACEOF
22013 rm -f conftest.$ac_objext
22014 if { (ac_try="$ac_compile"
22015 case "(($ac_try" in
22016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22017 *) ac_try_echo=$ac_try;;
22018 esac
22019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22020 (eval "$ac_compile") 2>conftest.er1
22021 ac_status=$?
22022 grep -v '^ *+' conftest.er1 >conftest.err
22023 rm -f conftest.er1
22024 cat conftest.err >&5
22025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22026 (exit $ac_status); } && {
22027 test -z "$ac_c_werror_flag" ||
22028 test ! -s conftest.err
22029 } && test -s conftest.$ac_objext; then
22030 ac_lo=$ac_mid; break
22031 else
22032 echo "$as_me: failed program was:" >&5
22033 sed 's/^/| /' conftest.$ac_ext >&5
22035 ac_hi=`expr '(' $ac_mid ')' - 1`
22036 if test $ac_mid -le $ac_hi; then
22037 ac_lo= ac_hi=
22038 break
22040 ac_mid=`expr 2 '*' $ac_mid`
22043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22044 done
22045 else
22046 echo "$as_me: failed program was:" >&5
22047 sed 's/^/| /' conftest.$ac_ext >&5
22049 ac_lo= ac_hi=
22052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22056 # Binary search between lo and hi bounds.
22057 while test "x$ac_lo" != "x$ac_hi"; do
22058 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22059 cat >conftest.$ac_ext <<_ACEOF
22060 /* confdefs.h. */
22061 _ACEOF
22062 cat confdefs.h >>conftest.$ac_ext
22063 cat >>conftest.$ac_ext <<_ACEOF
22064 /* end confdefs.h. */
22065 $ac_includes_default
22066 typedef size_t ac__type_sizeof_;
22068 main ()
22070 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22071 test_array [0] = 0
22074 return 0;
22076 _ACEOF
22077 rm -f conftest.$ac_objext
22078 if { (ac_try="$ac_compile"
22079 case "(($ac_try" in
22080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22081 *) ac_try_echo=$ac_try;;
22082 esac
22083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22084 (eval "$ac_compile") 2>conftest.er1
22085 ac_status=$?
22086 grep -v '^ *+' conftest.er1 >conftest.err
22087 rm -f conftest.er1
22088 cat conftest.err >&5
22089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090 (exit $ac_status); } && {
22091 test -z "$ac_c_werror_flag" ||
22092 test ! -s conftest.err
22093 } && test -s conftest.$ac_objext; then
22094 ac_hi=$ac_mid
22095 else
22096 echo "$as_me: failed program was:" >&5
22097 sed 's/^/| /' conftest.$ac_ext >&5
22099 ac_lo=`expr '(' $ac_mid ')' + 1`
22102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22103 done
22104 case $ac_lo in
22105 ?*) ac_cv_sizeof_size_t=$ac_lo;;
22106 '') if test "$ac_cv_type_size_t" = yes; then
22107 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
22108 See \`config.log' for more details." >&5
22109 echo "$as_me: error: cannot compute sizeof (size_t)
22110 See \`config.log' for more details." >&2;}
22111 { (exit 77); exit 77; }; }
22112 else
22113 ac_cv_sizeof_size_t=0
22114 fi ;;
22115 esac
22116 else
22117 cat >conftest.$ac_ext <<_ACEOF
22118 /* confdefs.h. */
22119 _ACEOF
22120 cat confdefs.h >>conftest.$ac_ext
22121 cat >>conftest.$ac_ext <<_ACEOF
22122 /* end confdefs.h. */
22123 $ac_includes_default
22124 typedef size_t ac__type_sizeof_;
22125 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22126 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22127 #include <stdio.h>
22128 #include <stdlib.h>
22130 main ()
22133 FILE *f = fopen ("conftest.val", "w");
22134 if (! f)
22135 return 1;
22136 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22138 long int i = longval ();
22139 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22140 return 1;
22141 fprintf (f, "%ld\n", i);
22143 else
22145 unsigned long int i = ulongval ();
22146 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22147 return 1;
22148 fprintf (f, "%lu\n", i);
22150 return ferror (f) || fclose (f) != 0;
22153 return 0;
22155 _ACEOF
22156 rm -f conftest$ac_exeext
22157 if { (ac_try="$ac_link"
22158 case "(($ac_try" in
22159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22160 *) ac_try_echo=$ac_try;;
22161 esac
22162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22163 (eval "$ac_link") 2>&5
22164 ac_status=$?
22165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22166 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22167 { (case "(($ac_try" in
22168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22169 *) ac_try_echo=$ac_try;;
22170 esac
22171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22172 (eval "$ac_try") 2>&5
22173 ac_status=$?
22174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22175 (exit $ac_status); }; }; then
22176 ac_cv_sizeof_size_t=`cat conftest.val`
22177 else
22178 echo "$as_me: program exited with status $ac_status" >&5
22179 echo "$as_me: failed program was:" >&5
22180 sed 's/^/| /' conftest.$ac_ext >&5
22182 ( exit $ac_status )
22183 if test "$ac_cv_type_size_t" = yes; then
22184 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
22185 See \`config.log' for more details." >&5
22186 echo "$as_me: error: cannot compute sizeof (size_t)
22187 See \`config.log' for more details." >&2;}
22188 { (exit 77); exit 77; }; }
22189 else
22190 ac_cv_sizeof_size_t=0
22193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22195 rm -f conftest.val
22197 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
22198 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
22202 cat >>confdefs.h <<_ACEOF
22203 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22204 _ACEOF
22208 # Decide whether float4 is passed by value: user-selectable, enabled by default
22209 { echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
22210 echo $ECHO_N "checking whether to build with float4 passed by value... $ECHO_C" >&6; }
22212 pgac_args="$pgac_args enable_float4_byval"
22214 # Check whether --enable-float4-byval was given.
22215 if test "${enable_float4_byval+set}" = set; then
22216 enableval=$enable_float4_byval;
22217 case $enableval in
22218 yes)
22220 cat >>confdefs.h <<\_ACEOF
22221 #define USE_FLOAT4_BYVAL 1
22222 _ACEOF
22224 float4passbyval=true
22227 float4passbyval=false
22230 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
22231 echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
22232 { (exit 1); exit 1; }; }
22234 esac
22236 else
22237 enable_float4_byval=yes
22239 cat >>confdefs.h <<\_ACEOF
22240 #define USE_FLOAT4_BYVAL 1
22241 _ACEOF
22243 float4passbyval=true
22247 { echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
22248 echo "${ECHO_T}$enable_float4_byval" >&6; }
22250 cat >>confdefs.h <<_ACEOF
22251 #define FLOAT4PASSBYVAL $float4passbyval
22252 _ACEOF
22255 # Decide whether float8 is passed by value.
22256 # Note: this setting also controls int8 and related types such as timestamp.
22257 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
22258 # If not, trying to select it is an error.
22259 { echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
22260 echo $ECHO_N "checking whether to build with float8 passed by value... $ECHO_C" >&6; }
22261 if test $ac_cv_sizeof_unsigned_long -ge 8 ; then
22263 pgac_args="$pgac_args enable_float8_byval"
22265 # Check whether --enable-float8-byval was given.
22266 if test "${enable_float8_byval+set}" = set; then
22267 enableval=$enable_float8_byval;
22268 case $enableval in
22269 yes)
22276 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
22277 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
22278 { (exit 1); exit 1; }; }
22280 esac
22282 else
22283 enable_float8_byval=yes
22288 else
22290 pgac_args="$pgac_args enable_float8_byval"
22292 # Check whether --enable-float8-byval was given.
22293 if test "${enable_float8_byval+set}" = set; then
22294 enableval=$enable_float8_byval;
22295 case $enableval in
22296 yes)
22303 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
22304 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
22305 { (exit 1); exit 1; }; }
22307 esac
22309 else
22310 enable_float8_byval=no
22315 if test "$enable_float8_byval" = yes ; then
22316 { { echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
22317 echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
22318 { (exit 1); exit 1; }; }
22321 if test "$enable_float8_byval" = yes ; then
22323 cat >>confdefs.h <<\_ACEOF
22324 #define USE_FLOAT8_BYVAL 1
22325 _ACEOF
22327 float8passbyval=true
22328 else
22329 float8passbyval=false
22331 { echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
22332 echo "${ECHO_T}$enable_float8_byval" >&6; }
22334 cat >>confdefs.h <<_ACEOF
22335 #define FLOAT8PASSBYVAL $float8passbyval
22336 _ACEOF
22339 # Determine memory alignment requirements for the basic C data types.
22341 { echo "$as_me:$LINENO: checking for short" >&5
22342 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
22343 if test "${ac_cv_type_short+set}" = set; then
22344 echo $ECHO_N "(cached) $ECHO_C" >&6
22345 else
22346 cat >conftest.$ac_ext <<_ACEOF
22347 /* confdefs.h. */
22348 _ACEOF
22349 cat confdefs.h >>conftest.$ac_ext
22350 cat >>conftest.$ac_ext <<_ACEOF
22351 /* end confdefs.h. */
22352 $ac_includes_default
22353 typedef short ac__type_new_;
22355 main ()
22357 if ((ac__type_new_ *) 0)
22358 return 0;
22359 if (sizeof (ac__type_new_))
22360 return 0;
22362 return 0;
22364 _ACEOF
22365 rm -f conftest.$ac_objext
22366 if { (ac_try="$ac_compile"
22367 case "(($ac_try" in
22368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22369 *) ac_try_echo=$ac_try;;
22370 esac
22371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22372 (eval "$ac_compile") 2>conftest.er1
22373 ac_status=$?
22374 grep -v '^ *+' conftest.er1 >conftest.err
22375 rm -f conftest.er1
22376 cat conftest.err >&5
22377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22378 (exit $ac_status); } && {
22379 test -z "$ac_c_werror_flag" ||
22380 test ! -s conftest.err
22381 } && test -s conftest.$ac_objext; then
22382 ac_cv_type_short=yes
22383 else
22384 echo "$as_me: failed program was:" >&5
22385 sed 's/^/| /' conftest.$ac_ext >&5
22387 ac_cv_type_short=no
22390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22392 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
22393 echo "${ECHO_T}$ac_cv_type_short" >&6; }
22395 # The cast to long int works around a bug in the HP C Compiler,
22396 # see AC_CHECK_SIZEOF for more information.
22397 { echo "$as_me:$LINENO: checking alignment of short" >&5
22398 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6; }
22399 if test "${ac_cv_alignof_short+set}" = set; then
22400 echo $ECHO_N "(cached) $ECHO_C" >&6
22401 else
22402 if test "$cross_compiling" = yes; then
22403 # Depending upon the size, compute the lo and hi bounds.
22404 cat >conftest.$ac_ext <<_ACEOF
22405 /* confdefs.h. */
22406 _ACEOF
22407 cat confdefs.h >>conftest.$ac_ext
22408 cat >>conftest.$ac_ext <<_ACEOF
22409 /* end confdefs.h. */
22410 $ac_includes_default
22411 #ifndef offsetof
22412 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22413 #endif
22414 typedef struct { char x; short y; } ac__type_alignof_;
22416 main ()
22418 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22419 test_array [0] = 0
22422 return 0;
22424 _ACEOF
22425 rm -f conftest.$ac_objext
22426 if { (ac_try="$ac_compile"
22427 case "(($ac_try" in
22428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22429 *) ac_try_echo=$ac_try;;
22430 esac
22431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22432 (eval "$ac_compile") 2>conftest.er1
22433 ac_status=$?
22434 grep -v '^ *+' conftest.er1 >conftest.err
22435 rm -f conftest.er1
22436 cat conftest.err >&5
22437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22438 (exit $ac_status); } && {
22439 test -z "$ac_c_werror_flag" ||
22440 test ! -s conftest.err
22441 } && test -s conftest.$ac_objext; then
22442 ac_lo=0 ac_mid=0
22443 while :; do
22444 cat >conftest.$ac_ext <<_ACEOF
22445 /* confdefs.h. */
22446 _ACEOF
22447 cat confdefs.h >>conftest.$ac_ext
22448 cat >>conftest.$ac_ext <<_ACEOF
22449 /* end confdefs.h. */
22450 $ac_includes_default
22451 #ifndef offsetof
22452 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22453 #endif
22454 typedef struct { char x; short y; } ac__type_alignof_;
22456 main ()
22458 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22459 test_array [0] = 0
22462 return 0;
22464 _ACEOF
22465 rm -f conftest.$ac_objext
22466 if { (ac_try="$ac_compile"
22467 case "(($ac_try" in
22468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22469 *) ac_try_echo=$ac_try;;
22470 esac
22471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22472 (eval "$ac_compile") 2>conftest.er1
22473 ac_status=$?
22474 grep -v '^ *+' conftest.er1 >conftest.err
22475 rm -f conftest.er1
22476 cat conftest.err >&5
22477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478 (exit $ac_status); } && {
22479 test -z "$ac_c_werror_flag" ||
22480 test ! -s conftest.err
22481 } && test -s conftest.$ac_objext; then
22482 ac_hi=$ac_mid; break
22483 else
22484 echo "$as_me: failed program was:" >&5
22485 sed 's/^/| /' conftest.$ac_ext >&5
22487 ac_lo=`expr $ac_mid + 1`
22488 if test $ac_lo -le $ac_mid; then
22489 ac_lo= ac_hi=
22490 break
22492 ac_mid=`expr 2 '*' $ac_mid + 1`
22495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22496 done
22497 else
22498 echo "$as_me: failed program was:" >&5
22499 sed 's/^/| /' conftest.$ac_ext >&5
22501 cat >conftest.$ac_ext <<_ACEOF
22502 /* confdefs.h. */
22503 _ACEOF
22504 cat confdefs.h >>conftest.$ac_ext
22505 cat >>conftest.$ac_ext <<_ACEOF
22506 /* end confdefs.h. */
22507 $ac_includes_default
22508 #ifndef offsetof
22509 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22510 #endif
22511 typedef struct { char x; short y; } ac__type_alignof_;
22513 main ()
22515 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22516 test_array [0] = 0
22519 return 0;
22521 _ACEOF
22522 rm -f conftest.$ac_objext
22523 if { (ac_try="$ac_compile"
22524 case "(($ac_try" in
22525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22526 *) ac_try_echo=$ac_try;;
22527 esac
22528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22529 (eval "$ac_compile") 2>conftest.er1
22530 ac_status=$?
22531 grep -v '^ *+' conftest.er1 >conftest.err
22532 rm -f conftest.er1
22533 cat conftest.err >&5
22534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22535 (exit $ac_status); } && {
22536 test -z "$ac_c_werror_flag" ||
22537 test ! -s conftest.err
22538 } && test -s conftest.$ac_objext; then
22539 ac_hi=-1 ac_mid=-1
22540 while :; do
22541 cat >conftest.$ac_ext <<_ACEOF
22542 /* confdefs.h. */
22543 _ACEOF
22544 cat confdefs.h >>conftest.$ac_ext
22545 cat >>conftest.$ac_ext <<_ACEOF
22546 /* end confdefs.h. */
22547 $ac_includes_default
22548 #ifndef offsetof
22549 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22550 #endif
22551 typedef struct { char x; short y; } ac__type_alignof_;
22553 main ()
22555 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22556 test_array [0] = 0
22559 return 0;
22561 _ACEOF
22562 rm -f conftest.$ac_objext
22563 if { (ac_try="$ac_compile"
22564 case "(($ac_try" in
22565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22566 *) ac_try_echo=$ac_try;;
22567 esac
22568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22569 (eval "$ac_compile") 2>conftest.er1
22570 ac_status=$?
22571 grep -v '^ *+' conftest.er1 >conftest.err
22572 rm -f conftest.er1
22573 cat conftest.err >&5
22574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22575 (exit $ac_status); } && {
22576 test -z "$ac_c_werror_flag" ||
22577 test ! -s conftest.err
22578 } && test -s conftest.$ac_objext; then
22579 ac_lo=$ac_mid; break
22580 else
22581 echo "$as_me: failed program was:" >&5
22582 sed 's/^/| /' conftest.$ac_ext >&5
22584 ac_hi=`expr '(' $ac_mid ')' - 1`
22585 if test $ac_mid -le $ac_hi; then
22586 ac_lo= ac_hi=
22587 break
22589 ac_mid=`expr 2 '*' $ac_mid`
22592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22593 done
22594 else
22595 echo "$as_me: failed program was:" >&5
22596 sed 's/^/| /' conftest.$ac_ext >&5
22598 ac_lo= ac_hi=
22601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22605 # Binary search between lo and hi bounds.
22606 while test "x$ac_lo" != "x$ac_hi"; do
22607 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22608 cat >conftest.$ac_ext <<_ACEOF
22609 /* confdefs.h. */
22610 _ACEOF
22611 cat confdefs.h >>conftest.$ac_ext
22612 cat >>conftest.$ac_ext <<_ACEOF
22613 /* end confdefs.h. */
22614 $ac_includes_default
22615 #ifndef offsetof
22616 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22617 #endif
22618 typedef struct { char x; short y; } ac__type_alignof_;
22620 main ()
22622 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22623 test_array [0] = 0
22626 return 0;
22628 _ACEOF
22629 rm -f conftest.$ac_objext
22630 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
22637 ac_status=$?
22638 grep -v '^ *+' conftest.er1 >conftest.err
22639 rm -f conftest.er1
22640 cat conftest.err >&5
22641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22642 (exit $ac_status); } && {
22643 test -z "$ac_c_werror_flag" ||
22644 test ! -s conftest.err
22645 } && test -s conftest.$ac_objext; then
22646 ac_hi=$ac_mid
22647 else
22648 echo "$as_me: failed program was:" >&5
22649 sed 's/^/| /' conftest.$ac_ext >&5
22651 ac_lo=`expr '(' $ac_mid ')' + 1`
22654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22655 done
22656 case $ac_lo in
22657 ?*) ac_cv_alignof_short=$ac_lo;;
22658 '') if test "$ac_cv_type_short" = yes; then
22659 { { echo "$as_me:$LINENO: error: cannot compute alignment of short
22660 See \`config.log' for more details." >&5
22661 echo "$as_me: error: cannot compute alignment of short
22662 See \`config.log' for more details." >&2;}
22663 { (exit 77); exit 77; }; }
22664 else
22665 ac_cv_alignof_short=0
22666 fi ;;
22667 esac
22668 else
22669 cat >conftest.$ac_ext <<_ACEOF
22670 /* confdefs.h. */
22671 _ACEOF
22672 cat confdefs.h >>conftest.$ac_ext
22673 cat >>conftest.$ac_ext <<_ACEOF
22674 /* end confdefs.h. */
22675 $ac_includes_default
22676 #ifndef offsetof
22677 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22678 #endif
22679 typedef struct { char x; short y; } ac__type_alignof_;
22680 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22681 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22682 #include <stdio.h>
22683 #include <stdlib.h>
22685 main ()
22688 FILE *f = fopen ("conftest.val", "w");
22689 if (! f)
22690 return 1;
22691 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22693 long int i = longval ();
22694 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22695 return 1;
22696 fprintf (f, "%ld\n", i);
22698 else
22700 unsigned long int i = ulongval ();
22701 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22702 return 1;
22703 fprintf (f, "%lu\n", i);
22705 return ferror (f) || fclose (f) != 0;
22708 return 0;
22710 _ACEOF
22711 rm -f conftest$ac_exeext
22712 if { (ac_try="$ac_link"
22713 case "(($ac_try" in
22714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22715 *) ac_try_echo=$ac_try;;
22716 esac
22717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22718 (eval "$ac_link") 2>&5
22719 ac_status=$?
22720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22721 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22722 { (case "(($ac_try" in
22723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22724 *) ac_try_echo=$ac_try;;
22725 esac
22726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22727 (eval "$ac_try") 2>&5
22728 ac_status=$?
22729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22730 (exit $ac_status); }; }; then
22731 ac_cv_alignof_short=`cat conftest.val`
22732 else
22733 echo "$as_me: program exited with status $ac_status" >&5
22734 echo "$as_me: failed program was:" >&5
22735 sed 's/^/| /' conftest.$ac_ext >&5
22737 ( exit $ac_status )
22738 if test "$ac_cv_type_short" = yes; then
22739 { { echo "$as_me:$LINENO: error: cannot compute alignment of short
22740 See \`config.log' for more details." >&5
22741 echo "$as_me: error: cannot compute alignment of short
22742 See \`config.log' for more details." >&2;}
22743 { (exit 77); exit 77; }; }
22744 else
22745 ac_cv_alignof_short=0
22748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22750 rm -f conftest.val
22752 { echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
22753 echo "${ECHO_T}$ac_cv_alignof_short" >&6; }
22757 cat >>confdefs.h <<_ACEOF
22758 #define ALIGNOF_SHORT $ac_cv_alignof_short
22759 _ACEOF
22762 { echo "$as_me:$LINENO: checking for int" >&5
22763 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
22764 if test "${ac_cv_type_int+set}" = set; then
22765 echo $ECHO_N "(cached) $ECHO_C" >&6
22766 else
22767 cat >conftest.$ac_ext <<_ACEOF
22768 /* confdefs.h. */
22769 _ACEOF
22770 cat confdefs.h >>conftest.$ac_ext
22771 cat >>conftest.$ac_ext <<_ACEOF
22772 /* end confdefs.h. */
22773 $ac_includes_default
22774 typedef int ac__type_new_;
22776 main ()
22778 if ((ac__type_new_ *) 0)
22779 return 0;
22780 if (sizeof (ac__type_new_))
22781 return 0;
22783 return 0;
22785 _ACEOF
22786 rm -f conftest.$ac_objext
22787 if { (ac_try="$ac_compile"
22788 case "(($ac_try" in
22789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22790 *) ac_try_echo=$ac_try;;
22791 esac
22792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22793 (eval "$ac_compile") 2>conftest.er1
22794 ac_status=$?
22795 grep -v '^ *+' conftest.er1 >conftest.err
22796 rm -f conftest.er1
22797 cat conftest.err >&5
22798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22799 (exit $ac_status); } && {
22800 test -z "$ac_c_werror_flag" ||
22801 test ! -s conftest.err
22802 } && test -s conftest.$ac_objext; then
22803 ac_cv_type_int=yes
22804 else
22805 echo "$as_me: failed program was:" >&5
22806 sed 's/^/| /' conftest.$ac_ext >&5
22808 ac_cv_type_int=no
22811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22813 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
22814 echo "${ECHO_T}$ac_cv_type_int" >&6; }
22816 # The cast to long int works around a bug in the HP C Compiler,
22817 # see AC_CHECK_SIZEOF for more information.
22818 { echo "$as_me:$LINENO: checking alignment of int" >&5
22819 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6; }
22820 if test "${ac_cv_alignof_int+set}" = set; then
22821 echo $ECHO_N "(cached) $ECHO_C" >&6
22822 else
22823 if test "$cross_compiling" = yes; then
22824 # Depending upon the size, compute the lo and hi bounds.
22825 cat >conftest.$ac_ext <<_ACEOF
22826 /* confdefs.h. */
22827 _ACEOF
22828 cat confdefs.h >>conftest.$ac_ext
22829 cat >>conftest.$ac_ext <<_ACEOF
22830 /* end confdefs.h. */
22831 $ac_includes_default
22832 #ifndef offsetof
22833 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22834 #endif
22835 typedef struct { char x; int y; } ac__type_alignof_;
22837 main ()
22839 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22840 test_array [0] = 0
22843 return 0;
22845 _ACEOF
22846 rm -f conftest.$ac_objext
22847 if { (ac_try="$ac_compile"
22848 case "(($ac_try" in
22849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22850 *) ac_try_echo=$ac_try;;
22851 esac
22852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22853 (eval "$ac_compile") 2>conftest.er1
22854 ac_status=$?
22855 grep -v '^ *+' conftest.er1 >conftest.err
22856 rm -f conftest.er1
22857 cat conftest.err >&5
22858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22859 (exit $ac_status); } && {
22860 test -z "$ac_c_werror_flag" ||
22861 test ! -s conftest.err
22862 } && test -s conftest.$ac_objext; then
22863 ac_lo=0 ac_mid=0
22864 while :; do
22865 cat >conftest.$ac_ext <<_ACEOF
22866 /* confdefs.h. */
22867 _ACEOF
22868 cat confdefs.h >>conftest.$ac_ext
22869 cat >>conftest.$ac_ext <<_ACEOF
22870 /* end confdefs.h. */
22871 $ac_includes_default
22872 #ifndef offsetof
22873 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22874 #endif
22875 typedef struct { char x; int y; } ac__type_alignof_;
22877 main ()
22879 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22880 test_array [0] = 0
22883 return 0;
22885 _ACEOF
22886 rm -f conftest.$ac_objext
22887 if { (ac_try="$ac_compile"
22888 case "(($ac_try" in
22889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22890 *) ac_try_echo=$ac_try;;
22891 esac
22892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22893 (eval "$ac_compile") 2>conftest.er1
22894 ac_status=$?
22895 grep -v '^ *+' conftest.er1 >conftest.err
22896 rm -f conftest.er1
22897 cat conftest.err >&5
22898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22899 (exit $ac_status); } && {
22900 test -z "$ac_c_werror_flag" ||
22901 test ! -s conftest.err
22902 } && test -s conftest.$ac_objext; then
22903 ac_hi=$ac_mid; break
22904 else
22905 echo "$as_me: failed program was:" >&5
22906 sed 's/^/| /' conftest.$ac_ext >&5
22908 ac_lo=`expr $ac_mid + 1`
22909 if test $ac_lo -le $ac_mid; then
22910 ac_lo= ac_hi=
22911 break
22913 ac_mid=`expr 2 '*' $ac_mid + 1`
22916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22917 done
22918 else
22919 echo "$as_me: failed program was:" >&5
22920 sed 's/^/| /' conftest.$ac_ext >&5
22922 cat >conftest.$ac_ext <<_ACEOF
22923 /* confdefs.h. */
22924 _ACEOF
22925 cat confdefs.h >>conftest.$ac_ext
22926 cat >>conftest.$ac_ext <<_ACEOF
22927 /* end confdefs.h. */
22928 $ac_includes_default
22929 #ifndef offsetof
22930 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22931 #endif
22932 typedef struct { char x; int y; } ac__type_alignof_;
22934 main ()
22936 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22937 test_array [0] = 0
22940 return 0;
22942 _ACEOF
22943 rm -f conftest.$ac_objext
22944 if { (ac_try="$ac_compile"
22945 case "(($ac_try" in
22946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22947 *) ac_try_echo=$ac_try;;
22948 esac
22949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22950 (eval "$ac_compile") 2>conftest.er1
22951 ac_status=$?
22952 grep -v '^ *+' conftest.er1 >conftest.err
22953 rm -f conftest.er1
22954 cat conftest.err >&5
22955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22956 (exit $ac_status); } && {
22957 test -z "$ac_c_werror_flag" ||
22958 test ! -s conftest.err
22959 } && test -s conftest.$ac_objext; then
22960 ac_hi=-1 ac_mid=-1
22961 while :; do
22962 cat >conftest.$ac_ext <<_ACEOF
22963 /* confdefs.h. */
22964 _ACEOF
22965 cat confdefs.h >>conftest.$ac_ext
22966 cat >>conftest.$ac_ext <<_ACEOF
22967 /* end confdefs.h. */
22968 $ac_includes_default
22969 #ifndef offsetof
22970 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22971 #endif
22972 typedef struct { char x; int y; } ac__type_alignof_;
22974 main ()
22976 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22977 test_array [0] = 0
22980 return 0;
22982 _ACEOF
22983 rm -f conftest.$ac_objext
22984 if { (ac_try="$ac_compile"
22985 case "(($ac_try" in
22986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22987 *) ac_try_echo=$ac_try;;
22988 esac
22989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22990 (eval "$ac_compile") 2>conftest.er1
22991 ac_status=$?
22992 grep -v '^ *+' conftest.er1 >conftest.err
22993 rm -f conftest.er1
22994 cat conftest.err >&5
22995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22996 (exit $ac_status); } && {
22997 test -z "$ac_c_werror_flag" ||
22998 test ! -s conftest.err
22999 } && test -s conftest.$ac_objext; then
23000 ac_lo=$ac_mid; break
23001 else
23002 echo "$as_me: failed program was:" >&5
23003 sed 's/^/| /' conftest.$ac_ext >&5
23005 ac_hi=`expr '(' $ac_mid ')' - 1`
23006 if test $ac_mid -le $ac_hi; then
23007 ac_lo= ac_hi=
23008 break
23010 ac_mid=`expr 2 '*' $ac_mid`
23013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23014 done
23015 else
23016 echo "$as_me: failed program was:" >&5
23017 sed 's/^/| /' conftest.$ac_ext >&5
23019 ac_lo= ac_hi=
23022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23026 # Binary search between lo and hi bounds.
23027 while test "x$ac_lo" != "x$ac_hi"; do
23028 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23029 cat >conftest.$ac_ext <<_ACEOF
23030 /* confdefs.h. */
23031 _ACEOF
23032 cat confdefs.h >>conftest.$ac_ext
23033 cat >>conftest.$ac_ext <<_ACEOF
23034 /* end confdefs.h. */
23035 $ac_includes_default
23036 #ifndef offsetof
23037 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23038 #endif
23039 typedef struct { char x; int y; } ac__type_alignof_;
23041 main ()
23043 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23044 test_array [0] = 0
23047 return 0;
23049 _ACEOF
23050 rm -f conftest.$ac_objext
23051 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
23058 ac_status=$?
23059 grep -v '^ *+' conftest.er1 >conftest.err
23060 rm -f conftest.er1
23061 cat conftest.err >&5
23062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23063 (exit $ac_status); } && {
23064 test -z "$ac_c_werror_flag" ||
23065 test ! -s conftest.err
23066 } && test -s conftest.$ac_objext; then
23067 ac_hi=$ac_mid
23068 else
23069 echo "$as_me: failed program was:" >&5
23070 sed 's/^/| /' conftest.$ac_ext >&5
23072 ac_lo=`expr '(' $ac_mid ')' + 1`
23075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23076 done
23077 case $ac_lo in
23078 ?*) ac_cv_alignof_int=$ac_lo;;
23079 '') if test "$ac_cv_type_int" = yes; then
23080 { { echo "$as_me:$LINENO: error: cannot compute alignment of int
23081 See \`config.log' for more details." >&5
23082 echo "$as_me: error: cannot compute alignment of int
23083 See \`config.log' for more details." >&2;}
23084 { (exit 77); exit 77; }; }
23085 else
23086 ac_cv_alignof_int=0
23087 fi ;;
23088 esac
23089 else
23090 cat >conftest.$ac_ext <<_ACEOF
23091 /* confdefs.h. */
23092 _ACEOF
23093 cat confdefs.h >>conftest.$ac_ext
23094 cat >>conftest.$ac_ext <<_ACEOF
23095 /* end confdefs.h. */
23096 $ac_includes_default
23097 #ifndef offsetof
23098 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23099 #endif
23100 typedef struct { char x; int y; } ac__type_alignof_;
23101 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23102 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23103 #include <stdio.h>
23104 #include <stdlib.h>
23106 main ()
23109 FILE *f = fopen ("conftest.val", "w");
23110 if (! f)
23111 return 1;
23112 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23114 long int i = longval ();
23115 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23116 return 1;
23117 fprintf (f, "%ld\n", i);
23119 else
23121 unsigned long int i = ulongval ();
23122 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23123 return 1;
23124 fprintf (f, "%lu\n", i);
23126 return ferror (f) || fclose (f) != 0;
23129 return 0;
23131 _ACEOF
23132 rm -f conftest$ac_exeext
23133 if { (ac_try="$ac_link"
23134 case "(($ac_try" in
23135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23136 *) ac_try_echo=$ac_try;;
23137 esac
23138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23139 (eval "$ac_link") 2>&5
23140 ac_status=$?
23141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23142 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23143 { (case "(($ac_try" in
23144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23145 *) ac_try_echo=$ac_try;;
23146 esac
23147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23148 (eval "$ac_try") 2>&5
23149 ac_status=$?
23150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23151 (exit $ac_status); }; }; then
23152 ac_cv_alignof_int=`cat conftest.val`
23153 else
23154 echo "$as_me: program exited with status $ac_status" >&5
23155 echo "$as_me: failed program was:" >&5
23156 sed 's/^/| /' conftest.$ac_ext >&5
23158 ( exit $ac_status )
23159 if test "$ac_cv_type_int" = yes; then
23160 { { echo "$as_me:$LINENO: error: cannot compute alignment of int
23161 See \`config.log' for more details." >&5
23162 echo "$as_me: error: cannot compute alignment of int
23163 See \`config.log' for more details." >&2;}
23164 { (exit 77); exit 77; }; }
23165 else
23166 ac_cv_alignof_int=0
23169 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23171 rm -f conftest.val
23173 { echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
23174 echo "${ECHO_T}$ac_cv_alignof_int" >&6; }
23178 cat >>confdefs.h <<_ACEOF
23179 #define ALIGNOF_INT $ac_cv_alignof_int
23180 _ACEOF
23183 { echo "$as_me:$LINENO: checking for long" >&5
23184 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
23185 if test "${ac_cv_type_long+set}" = set; then
23186 echo $ECHO_N "(cached) $ECHO_C" >&6
23187 else
23188 cat >conftest.$ac_ext <<_ACEOF
23189 /* confdefs.h. */
23190 _ACEOF
23191 cat confdefs.h >>conftest.$ac_ext
23192 cat >>conftest.$ac_ext <<_ACEOF
23193 /* end confdefs.h. */
23194 $ac_includes_default
23195 typedef long ac__type_new_;
23197 main ()
23199 if ((ac__type_new_ *) 0)
23200 return 0;
23201 if (sizeof (ac__type_new_))
23202 return 0;
23204 return 0;
23206 _ACEOF
23207 rm -f conftest.$ac_objext
23208 if { (ac_try="$ac_compile"
23209 case "(($ac_try" in
23210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23211 *) ac_try_echo=$ac_try;;
23212 esac
23213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23214 (eval "$ac_compile") 2>conftest.er1
23215 ac_status=$?
23216 grep -v '^ *+' conftest.er1 >conftest.err
23217 rm -f conftest.er1
23218 cat conftest.err >&5
23219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23220 (exit $ac_status); } && {
23221 test -z "$ac_c_werror_flag" ||
23222 test ! -s conftest.err
23223 } && test -s conftest.$ac_objext; then
23224 ac_cv_type_long=yes
23225 else
23226 echo "$as_me: failed program was:" >&5
23227 sed 's/^/| /' conftest.$ac_ext >&5
23229 ac_cv_type_long=no
23232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23234 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
23235 echo "${ECHO_T}$ac_cv_type_long" >&6; }
23237 # The cast to long int works around a bug in the HP C Compiler,
23238 # see AC_CHECK_SIZEOF for more information.
23239 { echo "$as_me:$LINENO: checking alignment of long" >&5
23240 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6; }
23241 if test "${ac_cv_alignof_long+set}" = set; then
23242 echo $ECHO_N "(cached) $ECHO_C" >&6
23243 else
23244 if test "$cross_compiling" = yes; then
23245 # Depending upon the size, compute the lo and hi bounds.
23246 cat >conftest.$ac_ext <<_ACEOF
23247 /* confdefs.h. */
23248 _ACEOF
23249 cat confdefs.h >>conftest.$ac_ext
23250 cat >>conftest.$ac_ext <<_ACEOF
23251 /* end confdefs.h. */
23252 $ac_includes_default
23253 #ifndef offsetof
23254 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23255 #endif
23256 typedef struct { char x; long y; } ac__type_alignof_;
23258 main ()
23260 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
23261 test_array [0] = 0
23264 return 0;
23266 _ACEOF
23267 rm -f conftest.$ac_objext
23268 if { (ac_try="$ac_compile"
23269 case "(($ac_try" in
23270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23271 *) ac_try_echo=$ac_try;;
23272 esac
23273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23274 (eval "$ac_compile") 2>conftest.er1
23275 ac_status=$?
23276 grep -v '^ *+' conftest.er1 >conftest.err
23277 rm -f conftest.er1
23278 cat conftest.err >&5
23279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280 (exit $ac_status); } && {
23281 test -z "$ac_c_werror_flag" ||
23282 test ! -s conftest.err
23283 } && test -s conftest.$ac_objext; then
23284 ac_lo=0 ac_mid=0
23285 while :; do
23286 cat >conftest.$ac_ext <<_ACEOF
23287 /* confdefs.h. */
23288 _ACEOF
23289 cat confdefs.h >>conftest.$ac_ext
23290 cat >>conftest.$ac_ext <<_ACEOF
23291 /* end confdefs.h. */
23292 $ac_includes_default
23293 #ifndef offsetof
23294 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23295 #endif
23296 typedef struct { char x; long y; } ac__type_alignof_;
23298 main ()
23300 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23301 test_array [0] = 0
23304 return 0;
23306 _ACEOF
23307 rm -f conftest.$ac_objext
23308 if { (ac_try="$ac_compile"
23309 case "(($ac_try" in
23310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23311 *) ac_try_echo=$ac_try;;
23312 esac
23313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23314 (eval "$ac_compile") 2>conftest.er1
23315 ac_status=$?
23316 grep -v '^ *+' conftest.er1 >conftest.err
23317 rm -f conftest.er1
23318 cat conftest.err >&5
23319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23320 (exit $ac_status); } && {
23321 test -z "$ac_c_werror_flag" ||
23322 test ! -s conftest.err
23323 } && test -s conftest.$ac_objext; then
23324 ac_hi=$ac_mid; break
23325 else
23326 echo "$as_me: failed program was:" >&5
23327 sed 's/^/| /' conftest.$ac_ext >&5
23329 ac_lo=`expr $ac_mid + 1`
23330 if test $ac_lo -le $ac_mid; then
23331 ac_lo= ac_hi=
23332 break
23334 ac_mid=`expr 2 '*' $ac_mid + 1`
23337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23338 done
23339 else
23340 echo "$as_me: failed program was:" >&5
23341 sed 's/^/| /' conftest.$ac_ext >&5
23343 cat >conftest.$ac_ext <<_ACEOF
23344 /* confdefs.h. */
23345 _ACEOF
23346 cat confdefs.h >>conftest.$ac_ext
23347 cat >>conftest.$ac_ext <<_ACEOF
23348 /* end confdefs.h. */
23349 $ac_includes_default
23350 #ifndef offsetof
23351 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23352 #endif
23353 typedef struct { char x; long y; } ac__type_alignof_;
23355 main ()
23357 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
23358 test_array [0] = 0
23361 return 0;
23363 _ACEOF
23364 rm -f conftest.$ac_objext
23365 if { (ac_try="$ac_compile"
23366 case "(($ac_try" in
23367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23368 *) ac_try_echo=$ac_try;;
23369 esac
23370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23371 (eval "$ac_compile") 2>conftest.er1
23372 ac_status=$?
23373 grep -v '^ *+' conftest.er1 >conftest.err
23374 rm -f conftest.er1
23375 cat conftest.err >&5
23376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23377 (exit $ac_status); } && {
23378 test -z "$ac_c_werror_flag" ||
23379 test ! -s conftest.err
23380 } && test -s conftest.$ac_objext; then
23381 ac_hi=-1 ac_mid=-1
23382 while :; do
23383 cat >conftest.$ac_ext <<_ACEOF
23384 /* confdefs.h. */
23385 _ACEOF
23386 cat confdefs.h >>conftest.$ac_ext
23387 cat >>conftest.$ac_ext <<_ACEOF
23388 /* end confdefs.h. */
23389 $ac_includes_default
23390 #ifndef offsetof
23391 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23392 #endif
23393 typedef struct { char x; long y; } ac__type_alignof_;
23395 main ()
23397 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
23398 test_array [0] = 0
23401 return 0;
23403 _ACEOF
23404 rm -f conftest.$ac_objext
23405 if { (ac_try="$ac_compile"
23406 case "(($ac_try" in
23407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23408 *) ac_try_echo=$ac_try;;
23409 esac
23410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23411 (eval "$ac_compile") 2>conftest.er1
23412 ac_status=$?
23413 grep -v '^ *+' conftest.er1 >conftest.err
23414 rm -f conftest.er1
23415 cat conftest.err >&5
23416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23417 (exit $ac_status); } && {
23418 test -z "$ac_c_werror_flag" ||
23419 test ! -s conftest.err
23420 } && test -s conftest.$ac_objext; then
23421 ac_lo=$ac_mid; break
23422 else
23423 echo "$as_me: failed program was:" >&5
23424 sed 's/^/| /' conftest.$ac_ext >&5
23426 ac_hi=`expr '(' $ac_mid ')' - 1`
23427 if test $ac_mid -le $ac_hi; then
23428 ac_lo= ac_hi=
23429 break
23431 ac_mid=`expr 2 '*' $ac_mid`
23434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23435 done
23436 else
23437 echo "$as_me: failed program was:" >&5
23438 sed 's/^/| /' conftest.$ac_ext >&5
23440 ac_lo= ac_hi=
23443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23447 # Binary search between lo and hi bounds.
23448 while test "x$ac_lo" != "x$ac_hi"; do
23449 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23450 cat >conftest.$ac_ext <<_ACEOF
23451 /* confdefs.h. */
23452 _ACEOF
23453 cat confdefs.h >>conftest.$ac_ext
23454 cat >>conftest.$ac_ext <<_ACEOF
23455 /* end confdefs.h. */
23456 $ac_includes_default
23457 #ifndef offsetof
23458 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23459 #endif
23460 typedef struct { char x; long y; } ac__type_alignof_;
23462 main ()
23464 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23465 test_array [0] = 0
23468 return 0;
23470 _ACEOF
23471 rm -f conftest.$ac_objext
23472 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
23479 ac_status=$?
23480 grep -v '^ *+' conftest.er1 >conftest.err
23481 rm -f conftest.er1
23482 cat conftest.err >&5
23483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23484 (exit $ac_status); } && {
23485 test -z "$ac_c_werror_flag" ||
23486 test ! -s conftest.err
23487 } && test -s conftest.$ac_objext; then
23488 ac_hi=$ac_mid
23489 else
23490 echo "$as_me: failed program was:" >&5
23491 sed 's/^/| /' conftest.$ac_ext >&5
23493 ac_lo=`expr '(' $ac_mid ')' + 1`
23496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23497 done
23498 case $ac_lo in
23499 ?*) ac_cv_alignof_long=$ac_lo;;
23500 '') if test "$ac_cv_type_long" = yes; then
23501 { { echo "$as_me:$LINENO: error: cannot compute alignment of long
23502 See \`config.log' for more details." >&5
23503 echo "$as_me: error: cannot compute alignment of long
23504 See \`config.log' for more details." >&2;}
23505 { (exit 77); exit 77; }; }
23506 else
23507 ac_cv_alignof_long=0
23508 fi ;;
23509 esac
23510 else
23511 cat >conftest.$ac_ext <<_ACEOF
23512 /* confdefs.h. */
23513 _ACEOF
23514 cat confdefs.h >>conftest.$ac_ext
23515 cat >>conftest.$ac_ext <<_ACEOF
23516 /* end confdefs.h. */
23517 $ac_includes_default
23518 #ifndef offsetof
23519 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23520 #endif
23521 typedef struct { char x; long y; } ac__type_alignof_;
23522 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23523 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23524 #include <stdio.h>
23525 #include <stdlib.h>
23527 main ()
23530 FILE *f = fopen ("conftest.val", "w");
23531 if (! f)
23532 return 1;
23533 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23535 long int i = longval ();
23536 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23537 return 1;
23538 fprintf (f, "%ld\n", i);
23540 else
23542 unsigned long int i = ulongval ();
23543 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23544 return 1;
23545 fprintf (f, "%lu\n", i);
23547 return ferror (f) || fclose (f) != 0;
23550 return 0;
23552 _ACEOF
23553 rm -f conftest$ac_exeext
23554 if { (ac_try="$ac_link"
23555 case "(($ac_try" in
23556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23557 *) ac_try_echo=$ac_try;;
23558 esac
23559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23560 (eval "$ac_link") 2>&5
23561 ac_status=$?
23562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23563 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23564 { (case "(($ac_try" in
23565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23566 *) ac_try_echo=$ac_try;;
23567 esac
23568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23569 (eval "$ac_try") 2>&5
23570 ac_status=$?
23571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23572 (exit $ac_status); }; }; then
23573 ac_cv_alignof_long=`cat conftest.val`
23574 else
23575 echo "$as_me: program exited with status $ac_status" >&5
23576 echo "$as_me: failed program was:" >&5
23577 sed 's/^/| /' conftest.$ac_ext >&5
23579 ( exit $ac_status )
23580 if test "$ac_cv_type_long" = yes; then
23581 { { echo "$as_me:$LINENO: error: cannot compute alignment of long
23582 See \`config.log' for more details." >&5
23583 echo "$as_me: error: cannot compute alignment of long
23584 See \`config.log' for more details." >&2;}
23585 { (exit 77); exit 77; }; }
23586 else
23587 ac_cv_alignof_long=0
23590 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23592 rm -f conftest.val
23594 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
23595 echo "${ECHO_T}$ac_cv_alignof_long" >&6; }
23599 cat >>confdefs.h <<_ACEOF
23600 #define ALIGNOF_LONG $ac_cv_alignof_long
23601 _ACEOF
23604 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
23605 { echo "$as_me:$LINENO: checking for long long int" >&5
23606 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
23607 if test "${ac_cv_type_long_long_int+set}" = set; then
23608 echo $ECHO_N "(cached) $ECHO_C" >&6
23609 else
23610 cat >conftest.$ac_ext <<_ACEOF
23611 /* confdefs.h. */
23612 _ACEOF
23613 cat confdefs.h >>conftest.$ac_ext
23614 cat >>conftest.$ac_ext <<_ACEOF
23615 /* end confdefs.h. */
23616 $ac_includes_default
23617 typedef long long int ac__type_new_;
23619 main ()
23621 if ((ac__type_new_ *) 0)
23622 return 0;
23623 if (sizeof (ac__type_new_))
23624 return 0;
23626 return 0;
23628 _ACEOF
23629 rm -f conftest.$ac_objext
23630 if { (ac_try="$ac_compile"
23631 case "(($ac_try" in
23632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23633 *) ac_try_echo=$ac_try;;
23634 esac
23635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23636 (eval "$ac_compile") 2>conftest.er1
23637 ac_status=$?
23638 grep -v '^ *+' conftest.er1 >conftest.err
23639 rm -f conftest.er1
23640 cat conftest.err >&5
23641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23642 (exit $ac_status); } && {
23643 test -z "$ac_c_werror_flag" ||
23644 test ! -s conftest.err
23645 } && test -s conftest.$ac_objext; then
23646 ac_cv_type_long_long_int=yes
23647 else
23648 echo "$as_me: failed program was:" >&5
23649 sed 's/^/| /' conftest.$ac_ext >&5
23651 ac_cv_type_long_long_int=no
23654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23656 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
23657 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
23659 # The cast to long int works around a bug in the HP C Compiler,
23660 # see AC_CHECK_SIZEOF for more information.
23661 { echo "$as_me:$LINENO: checking alignment of long long int" >&5
23662 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6; }
23663 if test "${ac_cv_alignof_long_long_int+set}" = set; then
23664 echo $ECHO_N "(cached) $ECHO_C" >&6
23665 else
23666 if test "$cross_compiling" = yes; then
23667 # Depending upon the size, compute the lo and hi bounds.
23668 cat >conftest.$ac_ext <<_ACEOF
23669 /* confdefs.h. */
23670 _ACEOF
23671 cat confdefs.h >>conftest.$ac_ext
23672 cat >>conftest.$ac_ext <<_ACEOF
23673 /* end confdefs.h. */
23674 $ac_includes_default
23675 #ifndef offsetof
23676 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23677 #endif
23678 typedef struct { char x; long long int y; } ac__type_alignof_;
23680 main ()
23682 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
23683 test_array [0] = 0
23686 return 0;
23688 _ACEOF
23689 rm -f conftest.$ac_objext
23690 if { (ac_try="$ac_compile"
23691 case "(($ac_try" in
23692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23693 *) ac_try_echo=$ac_try;;
23694 esac
23695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23696 (eval "$ac_compile") 2>conftest.er1
23697 ac_status=$?
23698 grep -v '^ *+' conftest.er1 >conftest.err
23699 rm -f conftest.er1
23700 cat conftest.err >&5
23701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23702 (exit $ac_status); } && {
23703 test -z "$ac_c_werror_flag" ||
23704 test ! -s conftest.err
23705 } && test -s conftest.$ac_objext; then
23706 ac_lo=0 ac_mid=0
23707 while :; do
23708 cat >conftest.$ac_ext <<_ACEOF
23709 /* confdefs.h. */
23710 _ACEOF
23711 cat confdefs.h >>conftest.$ac_ext
23712 cat >>conftest.$ac_ext <<_ACEOF
23713 /* end confdefs.h. */
23714 $ac_includes_default
23715 #ifndef offsetof
23716 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23717 #endif
23718 typedef struct { char x; long long int y; } ac__type_alignof_;
23720 main ()
23722 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23723 test_array [0] = 0
23726 return 0;
23728 _ACEOF
23729 rm -f conftest.$ac_objext
23730 if { (ac_try="$ac_compile"
23731 case "(($ac_try" in
23732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23733 *) ac_try_echo=$ac_try;;
23734 esac
23735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23736 (eval "$ac_compile") 2>conftest.er1
23737 ac_status=$?
23738 grep -v '^ *+' conftest.er1 >conftest.err
23739 rm -f conftest.er1
23740 cat conftest.err >&5
23741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23742 (exit $ac_status); } && {
23743 test -z "$ac_c_werror_flag" ||
23744 test ! -s conftest.err
23745 } && test -s conftest.$ac_objext; then
23746 ac_hi=$ac_mid; break
23747 else
23748 echo "$as_me: failed program was:" >&5
23749 sed 's/^/| /' conftest.$ac_ext >&5
23751 ac_lo=`expr $ac_mid + 1`
23752 if test $ac_lo -le $ac_mid; then
23753 ac_lo= ac_hi=
23754 break
23756 ac_mid=`expr 2 '*' $ac_mid + 1`
23759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23760 done
23761 else
23762 echo "$as_me: failed program was:" >&5
23763 sed 's/^/| /' conftest.$ac_ext >&5
23765 cat >conftest.$ac_ext <<_ACEOF
23766 /* confdefs.h. */
23767 _ACEOF
23768 cat confdefs.h >>conftest.$ac_ext
23769 cat >>conftest.$ac_ext <<_ACEOF
23770 /* end confdefs.h. */
23771 $ac_includes_default
23772 #ifndef offsetof
23773 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23774 #endif
23775 typedef struct { char x; long long int y; } ac__type_alignof_;
23777 main ()
23779 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
23780 test_array [0] = 0
23783 return 0;
23785 _ACEOF
23786 rm -f conftest.$ac_objext
23787 if { (ac_try="$ac_compile"
23788 case "(($ac_try" in
23789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23790 *) ac_try_echo=$ac_try;;
23791 esac
23792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23793 (eval "$ac_compile") 2>conftest.er1
23794 ac_status=$?
23795 grep -v '^ *+' conftest.er1 >conftest.err
23796 rm -f conftest.er1
23797 cat conftest.err >&5
23798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23799 (exit $ac_status); } && {
23800 test -z "$ac_c_werror_flag" ||
23801 test ! -s conftest.err
23802 } && test -s conftest.$ac_objext; then
23803 ac_hi=-1 ac_mid=-1
23804 while :; do
23805 cat >conftest.$ac_ext <<_ACEOF
23806 /* confdefs.h. */
23807 _ACEOF
23808 cat confdefs.h >>conftest.$ac_ext
23809 cat >>conftest.$ac_ext <<_ACEOF
23810 /* end confdefs.h. */
23811 $ac_includes_default
23812 #ifndef offsetof
23813 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23814 #endif
23815 typedef struct { char x; long long int y; } ac__type_alignof_;
23817 main ()
23819 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
23820 test_array [0] = 0
23823 return 0;
23825 _ACEOF
23826 rm -f conftest.$ac_objext
23827 if { (ac_try="$ac_compile"
23828 case "(($ac_try" in
23829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23830 *) ac_try_echo=$ac_try;;
23831 esac
23832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23833 (eval "$ac_compile") 2>conftest.er1
23834 ac_status=$?
23835 grep -v '^ *+' conftest.er1 >conftest.err
23836 rm -f conftest.er1
23837 cat conftest.err >&5
23838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23839 (exit $ac_status); } && {
23840 test -z "$ac_c_werror_flag" ||
23841 test ! -s conftest.err
23842 } && test -s conftest.$ac_objext; then
23843 ac_lo=$ac_mid; break
23844 else
23845 echo "$as_me: failed program was:" >&5
23846 sed 's/^/| /' conftest.$ac_ext >&5
23848 ac_hi=`expr '(' $ac_mid ')' - 1`
23849 if test $ac_mid -le $ac_hi; then
23850 ac_lo= ac_hi=
23851 break
23853 ac_mid=`expr 2 '*' $ac_mid`
23856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23857 done
23858 else
23859 echo "$as_me: failed program was:" >&5
23860 sed 's/^/| /' conftest.$ac_ext >&5
23862 ac_lo= ac_hi=
23865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23869 # Binary search between lo and hi bounds.
23870 while test "x$ac_lo" != "x$ac_hi"; do
23871 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23872 cat >conftest.$ac_ext <<_ACEOF
23873 /* confdefs.h. */
23874 _ACEOF
23875 cat confdefs.h >>conftest.$ac_ext
23876 cat >>conftest.$ac_ext <<_ACEOF
23877 /* end confdefs.h. */
23878 $ac_includes_default
23879 #ifndef offsetof
23880 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23881 #endif
23882 typedef struct { char x; long long int y; } ac__type_alignof_;
23884 main ()
23886 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23887 test_array [0] = 0
23890 return 0;
23892 _ACEOF
23893 rm -f conftest.$ac_objext
23894 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
23901 ac_status=$?
23902 grep -v '^ *+' conftest.er1 >conftest.err
23903 rm -f conftest.er1
23904 cat conftest.err >&5
23905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23906 (exit $ac_status); } && {
23907 test -z "$ac_c_werror_flag" ||
23908 test ! -s conftest.err
23909 } && test -s conftest.$ac_objext; then
23910 ac_hi=$ac_mid
23911 else
23912 echo "$as_me: failed program was:" >&5
23913 sed 's/^/| /' conftest.$ac_ext >&5
23915 ac_lo=`expr '(' $ac_mid ')' + 1`
23918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23919 done
23920 case $ac_lo in
23921 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
23922 '') if test "$ac_cv_type_long_long_int" = yes; then
23923 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
23924 See \`config.log' for more details." >&5
23925 echo "$as_me: error: cannot compute alignment of long long int
23926 See \`config.log' for more details." >&2;}
23927 { (exit 77); exit 77; }; }
23928 else
23929 ac_cv_alignof_long_long_int=0
23930 fi ;;
23931 esac
23932 else
23933 cat >conftest.$ac_ext <<_ACEOF
23934 /* confdefs.h. */
23935 _ACEOF
23936 cat confdefs.h >>conftest.$ac_ext
23937 cat >>conftest.$ac_ext <<_ACEOF
23938 /* end confdefs.h. */
23939 $ac_includes_default
23940 #ifndef offsetof
23941 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23942 #endif
23943 typedef struct { char x; long long int y; } ac__type_alignof_;
23944 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23945 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23946 #include <stdio.h>
23947 #include <stdlib.h>
23949 main ()
23952 FILE *f = fopen ("conftest.val", "w");
23953 if (! f)
23954 return 1;
23955 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23957 long int i = longval ();
23958 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23959 return 1;
23960 fprintf (f, "%ld\n", i);
23962 else
23964 unsigned long int i = ulongval ();
23965 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23966 return 1;
23967 fprintf (f, "%lu\n", i);
23969 return ferror (f) || fclose (f) != 0;
23972 return 0;
23974 _ACEOF
23975 rm -f conftest$ac_exeext
23976 if { (ac_try="$ac_link"
23977 case "(($ac_try" in
23978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23979 *) ac_try_echo=$ac_try;;
23980 esac
23981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23982 (eval "$ac_link") 2>&5
23983 ac_status=$?
23984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23986 { (case "(($ac_try" in
23987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23988 *) ac_try_echo=$ac_try;;
23989 esac
23990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23991 (eval "$ac_try") 2>&5
23992 ac_status=$?
23993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23994 (exit $ac_status); }; }; then
23995 ac_cv_alignof_long_long_int=`cat conftest.val`
23996 else
23997 echo "$as_me: program exited with status $ac_status" >&5
23998 echo "$as_me: failed program was:" >&5
23999 sed 's/^/| /' conftest.$ac_ext >&5
24001 ( exit $ac_status )
24002 if test "$ac_cv_type_long_long_int" = yes; then
24003 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
24004 See \`config.log' for more details." >&5
24005 echo "$as_me: error: cannot compute alignment of long long int
24006 See \`config.log' for more details." >&2;}
24007 { (exit 77); exit 77; }; }
24008 else
24009 ac_cv_alignof_long_long_int=0
24012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24014 rm -f conftest.val
24016 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
24017 echo "${ECHO_T}$ac_cv_alignof_long_long_int" >&6; }
24021 cat >>confdefs.h <<_ACEOF
24022 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
24023 _ACEOF
24027 { echo "$as_me:$LINENO: checking for double" >&5
24028 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
24029 if test "${ac_cv_type_double+set}" = set; then
24030 echo $ECHO_N "(cached) $ECHO_C" >&6
24031 else
24032 cat >conftest.$ac_ext <<_ACEOF
24033 /* confdefs.h. */
24034 _ACEOF
24035 cat confdefs.h >>conftest.$ac_ext
24036 cat >>conftest.$ac_ext <<_ACEOF
24037 /* end confdefs.h. */
24038 $ac_includes_default
24039 typedef double ac__type_new_;
24041 main ()
24043 if ((ac__type_new_ *) 0)
24044 return 0;
24045 if (sizeof (ac__type_new_))
24046 return 0;
24048 return 0;
24050 _ACEOF
24051 rm -f conftest.$ac_objext
24052 if { (ac_try="$ac_compile"
24053 case "(($ac_try" in
24054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24055 *) ac_try_echo=$ac_try;;
24056 esac
24057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24058 (eval "$ac_compile") 2>conftest.er1
24059 ac_status=$?
24060 grep -v '^ *+' conftest.er1 >conftest.err
24061 rm -f conftest.er1
24062 cat conftest.err >&5
24063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24064 (exit $ac_status); } && {
24065 test -z "$ac_c_werror_flag" ||
24066 test ! -s conftest.err
24067 } && test -s conftest.$ac_objext; then
24068 ac_cv_type_double=yes
24069 else
24070 echo "$as_me: failed program was:" >&5
24071 sed 's/^/| /' conftest.$ac_ext >&5
24073 ac_cv_type_double=no
24076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24078 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
24079 echo "${ECHO_T}$ac_cv_type_double" >&6; }
24081 # The cast to long int works around a bug in the HP C Compiler,
24082 # see AC_CHECK_SIZEOF for more information.
24083 { echo "$as_me:$LINENO: checking alignment of double" >&5
24084 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6; }
24085 if test "${ac_cv_alignof_double+set}" = set; then
24086 echo $ECHO_N "(cached) $ECHO_C" >&6
24087 else
24088 if test "$cross_compiling" = yes; then
24089 # Depending upon the size, compute the lo and hi bounds.
24090 cat >conftest.$ac_ext <<_ACEOF
24091 /* confdefs.h. */
24092 _ACEOF
24093 cat confdefs.h >>conftest.$ac_ext
24094 cat >>conftest.$ac_ext <<_ACEOF
24095 /* end confdefs.h. */
24096 $ac_includes_default
24097 #ifndef offsetof
24098 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24099 #endif
24100 typedef struct { char x; double y; } ac__type_alignof_;
24102 main ()
24104 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
24105 test_array [0] = 0
24108 return 0;
24110 _ACEOF
24111 rm -f conftest.$ac_objext
24112 if { (ac_try="$ac_compile"
24113 case "(($ac_try" in
24114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24115 *) ac_try_echo=$ac_try;;
24116 esac
24117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24118 (eval "$ac_compile") 2>conftest.er1
24119 ac_status=$?
24120 grep -v '^ *+' conftest.er1 >conftest.err
24121 rm -f conftest.er1
24122 cat conftest.err >&5
24123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24124 (exit $ac_status); } && {
24125 test -z "$ac_c_werror_flag" ||
24126 test ! -s conftest.err
24127 } && test -s conftest.$ac_objext; then
24128 ac_lo=0 ac_mid=0
24129 while :; do
24130 cat >conftest.$ac_ext <<_ACEOF
24131 /* confdefs.h. */
24132 _ACEOF
24133 cat confdefs.h >>conftest.$ac_ext
24134 cat >>conftest.$ac_ext <<_ACEOF
24135 /* end confdefs.h. */
24136 $ac_includes_default
24137 #ifndef offsetof
24138 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24139 #endif
24140 typedef struct { char x; double y; } ac__type_alignof_;
24142 main ()
24144 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24145 test_array [0] = 0
24148 return 0;
24150 _ACEOF
24151 rm -f conftest.$ac_objext
24152 if { (ac_try="$ac_compile"
24153 case "(($ac_try" in
24154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24155 *) ac_try_echo=$ac_try;;
24156 esac
24157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24158 (eval "$ac_compile") 2>conftest.er1
24159 ac_status=$?
24160 grep -v '^ *+' conftest.er1 >conftest.err
24161 rm -f conftest.er1
24162 cat conftest.err >&5
24163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24164 (exit $ac_status); } && {
24165 test -z "$ac_c_werror_flag" ||
24166 test ! -s conftest.err
24167 } && test -s conftest.$ac_objext; then
24168 ac_hi=$ac_mid; break
24169 else
24170 echo "$as_me: failed program was:" >&5
24171 sed 's/^/| /' conftest.$ac_ext >&5
24173 ac_lo=`expr $ac_mid + 1`
24174 if test $ac_lo -le $ac_mid; then
24175 ac_lo= ac_hi=
24176 break
24178 ac_mid=`expr 2 '*' $ac_mid + 1`
24181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24182 done
24183 else
24184 echo "$as_me: failed program was:" >&5
24185 sed 's/^/| /' conftest.$ac_ext >&5
24187 cat >conftest.$ac_ext <<_ACEOF
24188 /* confdefs.h. */
24189 _ACEOF
24190 cat confdefs.h >>conftest.$ac_ext
24191 cat >>conftest.$ac_ext <<_ACEOF
24192 /* end confdefs.h. */
24193 $ac_includes_default
24194 #ifndef offsetof
24195 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24196 #endif
24197 typedef struct { char x; double y; } ac__type_alignof_;
24199 main ()
24201 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
24202 test_array [0] = 0
24205 return 0;
24207 _ACEOF
24208 rm -f conftest.$ac_objext
24209 if { (ac_try="$ac_compile"
24210 case "(($ac_try" in
24211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24212 *) ac_try_echo=$ac_try;;
24213 esac
24214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24215 (eval "$ac_compile") 2>conftest.er1
24216 ac_status=$?
24217 grep -v '^ *+' conftest.er1 >conftest.err
24218 rm -f conftest.er1
24219 cat conftest.err >&5
24220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24221 (exit $ac_status); } && {
24222 test -z "$ac_c_werror_flag" ||
24223 test ! -s conftest.err
24224 } && test -s conftest.$ac_objext; then
24225 ac_hi=-1 ac_mid=-1
24226 while :; do
24227 cat >conftest.$ac_ext <<_ACEOF
24228 /* confdefs.h. */
24229 _ACEOF
24230 cat confdefs.h >>conftest.$ac_ext
24231 cat >>conftest.$ac_ext <<_ACEOF
24232 /* end confdefs.h. */
24233 $ac_includes_default
24234 #ifndef offsetof
24235 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24236 #endif
24237 typedef struct { char x; double y; } ac__type_alignof_;
24239 main ()
24241 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
24242 test_array [0] = 0
24245 return 0;
24247 _ACEOF
24248 rm -f conftest.$ac_objext
24249 if { (ac_try="$ac_compile"
24250 case "(($ac_try" in
24251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24252 *) ac_try_echo=$ac_try;;
24253 esac
24254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24255 (eval "$ac_compile") 2>conftest.er1
24256 ac_status=$?
24257 grep -v '^ *+' conftest.er1 >conftest.err
24258 rm -f conftest.er1
24259 cat conftest.err >&5
24260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24261 (exit $ac_status); } && {
24262 test -z "$ac_c_werror_flag" ||
24263 test ! -s conftest.err
24264 } && test -s conftest.$ac_objext; then
24265 ac_lo=$ac_mid; break
24266 else
24267 echo "$as_me: failed program was:" >&5
24268 sed 's/^/| /' conftest.$ac_ext >&5
24270 ac_hi=`expr '(' $ac_mid ')' - 1`
24271 if test $ac_mid -le $ac_hi; then
24272 ac_lo= ac_hi=
24273 break
24275 ac_mid=`expr 2 '*' $ac_mid`
24278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24279 done
24280 else
24281 echo "$as_me: failed program was:" >&5
24282 sed 's/^/| /' conftest.$ac_ext >&5
24284 ac_lo= ac_hi=
24287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24291 # Binary search between lo and hi bounds.
24292 while test "x$ac_lo" != "x$ac_hi"; do
24293 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24294 cat >conftest.$ac_ext <<_ACEOF
24295 /* confdefs.h. */
24296 _ACEOF
24297 cat confdefs.h >>conftest.$ac_ext
24298 cat >>conftest.$ac_ext <<_ACEOF
24299 /* end confdefs.h. */
24300 $ac_includes_default
24301 #ifndef offsetof
24302 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24303 #endif
24304 typedef struct { char x; double y; } ac__type_alignof_;
24306 main ()
24308 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24309 test_array [0] = 0
24312 return 0;
24314 _ACEOF
24315 rm -f conftest.$ac_objext
24316 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
24323 ac_status=$?
24324 grep -v '^ *+' conftest.er1 >conftest.err
24325 rm -f conftest.er1
24326 cat conftest.err >&5
24327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24328 (exit $ac_status); } && {
24329 test -z "$ac_c_werror_flag" ||
24330 test ! -s conftest.err
24331 } && test -s conftest.$ac_objext; then
24332 ac_hi=$ac_mid
24333 else
24334 echo "$as_me: failed program was:" >&5
24335 sed 's/^/| /' conftest.$ac_ext >&5
24337 ac_lo=`expr '(' $ac_mid ')' + 1`
24340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24341 done
24342 case $ac_lo in
24343 ?*) ac_cv_alignof_double=$ac_lo;;
24344 '') if test "$ac_cv_type_double" = yes; then
24345 { { echo "$as_me:$LINENO: error: cannot compute alignment of double
24346 See \`config.log' for more details." >&5
24347 echo "$as_me: error: cannot compute alignment of double
24348 See \`config.log' for more details." >&2;}
24349 { (exit 77); exit 77; }; }
24350 else
24351 ac_cv_alignof_double=0
24352 fi ;;
24353 esac
24354 else
24355 cat >conftest.$ac_ext <<_ACEOF
24356 /* confdefs.h. */
24357 _ACEOF
24358 cat confdefs.h >>conftest.$ac_ext
24359 cat >>conftest.$ac_ext <<_ACEOF
24360 /* end confdefs.h. */
24361 $ac_includes_default
24362 #ifndef offsetof
24363 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24364 #endif
24365 typedef struct { char x; double y; } ac__type_alignof_;
24366 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
24367 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
24368 #include <stdio.h>
24369 #include <stdlib.h>
24371 main ()
24374 FILE *f = fopen ("conftest.val", "w");
24375 if (! f)
24376 return 1;
24377 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
24379 long int i = longval ();
24380 if (i != ((long int) offsetof (ac__type_alignof_, y)))
24381 return 1;
24382 fprintf (f, "%ld\n", i);
24384 else
24386 unsigned long int i = ulongval ();
24387 if (i != ((long int) offsetof (ac__type_alignof_, y)))
24388 return 1;
24389 fprintf (f, "%lu\n", i);
24391 return ferror (f) || fclose (f) != 0;
24394 return 0;
24396 _ACEOF
24397 rm -f conftest$ac_exeext
24398 if { (ac_try="$ac_link"
24399 case "(($ac_try" in
24400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24401 *) ac_try_echo=$ac_try;;
24402 esac
24403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24404 (eval "$ac_link") 2>&5
24405 ac_status=$?
24406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24407 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
24414 ac_status=$?
24415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24416 (exit $ac_status); }; }; then
24417 ac_cv_alignof_double=`cat conftest.val`
24418 else
24419 echo "$as_me: program exited with status $ac_status" >&5
24420 echo "$as_me: failed program was:" >&5
24421 sed 's/^/| /' conftest.$ac_ext >&5
24423 ( exit $ac_status )
24424 if test "$ac_cv_type_double" = yes; then
24425 { { echo "$as_me:$LINENO: error: cannot compute alignment of double
24426 See \`config.log' for more details." >&5
24427 echo "$as_me: error: cannot compute alignment of double
24428 See \`config.log' for more details." >&2;}
24429 { (exit 77); exit 77; }; }
24430 else
24431 ac_cv_alignof_double=0
24434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24436 rm -f conftest.val
24438 { echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
24439 echo "${ECHO_T}$ac_cv_alignof_double" >&6; }
24443 cat >>confdefs.h <<_ACEOF
24444 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
24445 _ACEOF
24449 # Compute maximum alignment of any basic type.
24450 # We assume long's alignment is at least as strong as char, short, or int;
24451 # but we must check long long (if it exists) and double.
24453 MAX_ALIGNOF=$ac_cv_alignof_long
24454 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
24455 MAX_ALIGNOF=$ac_cv_alignof_double
24457 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
24458 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
24461 cat >>confdefs.h <<_ACEOF
24462 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
24463 _ACEOF
24467 # Some platforms predefine the types int8, int16, etc. Only check
24468 # a (hopefully) representative subset.
24469 { echo "$as_me:$LINENO: checking for int8" >&5
24470 echo $ECHO_N "checking for int8... $ECHO_C" >&6; }
24471 if test "${ac_cv_type_int8+set}" = set; then
24472 echo $ECHO_N "(cached) $ECHO_C" >&6
24473 else
24474 cat >conftest.$ac_ext <<_ACEOF
24475 /* confdefs.h. */
24476 _ACEOF
24477 cat confdefs.h >>conftest.$ac_ext
24478 cat >>conftest.$ac_ext <<_ACEOF
24479 /* end confdefs.h. */
24480 #include <stdio.h>
24481 #ifdef HAVE_SUPPORTDEFS_H
24482 #include <SupportDefs.h>
24483 #endif
24485 typedef int8 ac__type_new_;
24487 main ()
24489 if ((ac__type_new_ *) 0)
24490 return 0;
24491 if (sizeof (ac__type_new_))
24492 return 0;
24494 return 0;
24496 _ACEOF
24497 rm -f conftest.$ac_objext
24498 if { (ac_try="$ac_compile"
24499 case "(($ac_try" in
24500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24501 *) ac_try_echo=$ac_try;;
24502 esac
24503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24504 (eval "$ac_compile") 2>conftest.er1
24505 ac_status=$?
24506 grep -v '^ *+' conftest.er1 >conftest.err
24507 rm -f conftest.er1
24508 cat conftest.err >&5
24509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24510 (exit $ac_status); } && {
24511 test -z "$ac_c_werror_flag" ||
24512 test ! -s conftest.err
24513 } && test -s conftest.$ac_objext; then
24514 ac_cv_type_int8=yes
24515 else
24516 echo "$as_me: failed program was:" >&5
24517 sed 's/^/| /' conftest.$ac_ext >&5
24519 ac_cv_type_int8=no
24522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24524 { echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
24525 echo "${ECHO_T}$ac_cv_type_int8" >&6; }
24526 if test $ac_cv_type_int8 = yes; then
24528 cat >>confdefs.h <<_ACEOF
24529 #define HAVE_INT8 1
24530 _ACEOF
24534 { echo "$as_me:$LINENO: checking for uint8" >&5
24535 echo $ECHO_N "checking for uint8... $ECHO_C" >&6; }
24536 if test "${ac_cv_type_uint8+set}" = set; then
24537 echo $ECHO_N "(cached) $ECHO_C" >&6
24538 else
24539 cat >conftest.$ac_ext <<_ACEOF
24540 /* confdefs.h. */
24541 _ACEOF
24542 cat confdefs.h >>conftest.$ac_ext
24543 cat >>conftest.$ac_ext <<_ACEOF
24544 /* end confdefs.h. */
24545 #include <stdio.h>
24546 #ifdef HAVE_SUPPORTDEFS_H
24547 #include <SupportDefs.h>
24548 #endif
24550 typedef uint8 ac__type_new_;
24552 main ()
24554 if ((ac__type_new_ *) 0)
24555 return 0;
24556 if (sizeof (ac__type_new_))
24557 return 0;
24559 return 0;
24561 _ACEOF
24562 rm -f conftest.$ac_objext
24563 if { (ac_try="$ac_compile"
24564 case "(($ac_try" in
24565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24566 *) ac_try_echo=$ac_try;;
24567 esac
24568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24569 (eval "$ac_compile") 2>conftest.er1
24570 ac_status=$?
24571 grep -v '^ *+' conftest.er1 >conftest.err
24572 rm -f conftest.er1
24573 cat conftest.err >&5
24574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24575 (exit $ac_status); } && {
24576 test -z "$ac_c_werror_flag" ||
24577 test ! -s conftest.err
24578 } && test -s conftest.$ac_objext; then
24579 ac_cv_type_uint8=yes
24580 else
24581 echo "$as_me: failed program was:" >&5
24582 sed 's/^/| /' conftest.$ac_ext >&5
24584 ac_cv_type_uint8=no
24587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24589 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
24590 echo "${ECHO_T}$ac_cv_type_uint8" >&6; }
24591 if test $ac_cv_type_uint8 = yes; then
24593 cat >>confdefs.h <<_ACEOF
24594 #define HAVE_UINT8 1
24595 _ACEOF
24599 { echo "$as_me:$LINENO: checking for int64" >&5
24600 echo $ECHO_N "checking for int64... $ECHO_C" >&6; }
24601 if test "${ac_cv_type_int64+set}" = set; then
24602 echo $ECHO_N "(cached) $ECHO_C" >&6
24603 else
24604 cat >conftest.$ac_ext <<_ACEOF
24605 /* confdefs.h. */
24606 _ACEOF
24607 cat confdefs.h >>conftest.$ac_ext
24608 cat >>conftest.$ac_ext <<_ACEOF
24609 /* end confdefs.h. */
24610 #include <stdio.h>
24611 #ifdef HAVE_SUPPORTDEFS_H
24612 #include <SupportDefs.h>
24613 #endif
24615 typedef int64 ac__type_new_;
24617 main ()
24619 if ((ac__type_new_ *) 0)
24620 return 0;
24621 if (sizeof (ac__type_new_))
24622 return 0;
24624 return 0;
24626 _ACEOF
24627 rm -f conftest.$ac_objext
24628 if { (ac_try="$ac_compile"
24629 case "(($ac_try" in
24630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24631 *) ac_try_echo=$ac_try;;
24632 esac
24633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24634 (eval "$ac_compile") 2>conftest.er1
24635 ac_status=$?
24636 grep -v '^ *+' conftest.er1 >conftest.err
24637 rm -f conftest.er1
24638 cat conftest.err >&5
24639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24640 (exit $ac_status); } && {
24641 test -z "$ac_c_werror_flag" ||
24642 test ! -s conftest.err
24643 } && test -s conftest.$ac_objext; then
24644 ac_cv_type_int64=yes
24645 else
24646 echo "$as_me: failed program was:" >&5
24647 sed 's/^/| /' conftest.$ac_ext >&5
24649 ac_cv_type_int64=no
24652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24654 { echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
24655 echo "${ECHO_T}$ac_cv_type_int64" >&6; }
24656 if test $ac_cv_type_int64 = yes; then
24658 cat >>confdefs.h <<_ACEOF
24659 #define HAVE_INT64 1
24660 _ACEOF
24664 { echo "$as_me:$LINENO: checking for uint64" >&5
24665 echo $ECHO_N "checking for uint64... $ECHO_C" >&6; }
24666 if test "${ac_cv_type_uint64+set}" = set; then
24667 echo $ECHO_N "(cached) $ECHO_C" >&6
24668 else
24669 cat >conftest.$ac_ext <<_ACEOF
24670 /* confdefs.h. */
24671 _ACEOF
24672 cat confdefs.h >>conftest.$ac_ext
24673 cat >>conftest.$ac_ext <<_ACEOF
24674 /* end confdefs.h. */
24675 #include <stdio.h>
24676 #ifdef HAVE_SUPPORTDEFS_H
24677 #include <SupportDefs.h>
24678 #endif
24680 typedef uint64 ac__type_new_;
24682 main ()
24684 if ((ac__type_new_ *) 0)
24685 return 0;
24686 if (sizeof (ac__type_new_))
24687 return 0;
24689 return 0;
24691 _ACEOF
24692 rm -f conftest.$ac_objext
24693 if { (ac_try="$ac_compile"
24694 case "(($ac_try" in
24695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24696 *) ac_try_echo=$ac_try;;
24697 esac
24698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24699 (eval "$ac_compile") 2>conftest.er1
24700 ac_status=$?
24701 grep -v '^ *+' conftest.er1 >conftest.err
24702 rm -f conftest.er1
24703 cat conftest.err >&5
24704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24705 (exit $ac_status); } && {
24706 test -z "$ac_c_werror_flag" ||
24707 test ! -s conftest.err
24708 } && test -s conftest.$ac_objext; then
24709 ac_cv_type_uint64=yes
24710 else
24711 echo "$as_me: failed program was:" >&5
24712 sed 's/^/| /' conftest.$ac_ext >&5
24714 ac_cv_type_uint64=no
24717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24719 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
24720 echo "${ECHO_T}$ac_cv_type_uint64" >&6; }
24721 if test $ac_cv_type_uint64 = yes; then
24723 cat >>confdefs.h <<_ACEOF
24724 #define HAVE_UINT64 1
24725 _ACEOF
24731 # We also check for sig_atomic_t, which *should* be defined per ANSI
24732 # C, but is missing on some old platforms.
24733 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
24734 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
24735 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
24736 echo $ECHO_N "(cached) $ECHO_C" >&6
24737 else
24738 cat >conftest.$ac_ext <<_ACEOF
24739 /* confdefs.h. */
24740 _ACEOF
24741 cat confdefs.h >>conftest.$ac_ext
24742 cat >>conftest.$ac_ext <<_ACEOF
24743 /* end confdefs.h. */
24744 #include <signal.h>
24746 typedef sig_atomic_t ac__type_new_;
24748 main ()
24750 if ((ac__type_new_ *) 0)
24751 return 0;
24752 if (sizeof (ac__type_new_))
24753 return 0;
24755 return 0;
24757 _ACEOF
24758 rm -f conftest.$ac_objext
24759 if { (ac_try="$ac_compile"
24760 case "(($ac_try" in
24761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24762 *) ac_try_echo=$ac_try;;
24763 esac
24764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24765 (eval "$ac_compile") 2>conftest.er1
24766 ac_status=$?
24767 grep -v '^ *+' conftest.er1 >conftest.err
24768 rm -f conftest.er1
24769 cat conftest.err >&5
24770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24771 (exit $ac_status); } && {
24772 test -z "$ac_c_werror_flag" ||
24773 test ! -s conftest.err
24774 } && test -s conftest.$ac_objext; then
24775 ac_cv_type_sig_atomic_t=yes
24776 else
24777 echo "$as_me: failed program was:" >&5
24778 sed 's/^/| /' conftest.$ac_ext >&5
24780 ac_cv_type_sig_atomic_t=no
24783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24785 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
24786 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
24787 if test $ac_cv_type_sig_atomic_t = yes; then
24789 cat >>confdefs.h <<_ACEOF
24790 #define HAVE_SIG_ATOMIC_T 1
24791 _ACEOF
24798 # If the user did not disable integer datetimes, check that
24799 # there is a working 64-bit integral type to use.
24800 if test x"$USE_INTEGER_DATETIMES" = x"yes" &&
24801 test x"$HAVE_LONG_INT_64" = x"no" &&
24802 test x"$HAVE_LONG_LONG_INT_64" = x"no" &&
24803 test x"$HAVE_INT64" = x"no" ; then
24804 { { echo "$as_me:$LINENO: error:
24805 Integer-based datetime support requires a 64-bit integer type,
24806 but no such type could be found. The --disable-integer-datetimes
24807 configure option can be used to disable integer-based storage
24808 of datetime values." >&5
24809 echo "$as_me: error:
24810 Integer-based datetime support requires a 64-bit integer type,
24811 but no such type could be found. The --disable-integer-datetimes
24812 configure option can be used to disable integer-based storage
24813 of datetime values." >&2;}
24814 { (exit 1); exit 1; }; }
24818 if test "$PORTNAME" != "win32"
24819 then
24820 { echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
24821 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6; }
24822 if test "${pgac_cv_func_posix_signals+set}" = set; then
24823 echo $ECHO_N "(cached) $ECHO_C" >&6
24824 else
24825 cat >conftest.$ac_ext <<_ACEOF
24826 /* confdefs.h. */
24827 _ACEOF
24828 cat confdefs.h >>conftest.$ac_ext
24829 cat >>conftest.$ac_ext <<_ACEOF
24830 /* end confdefs.h. */
24831 #include <signal.h>
24834 main ()
24836 struct sigaction act, oact;
24837 sigemptyset(&act.sa_mask);
24838 act.sa_flags = SA_RESTART;
24839 sigaction(0, &act, &oact);
24841 return 0;
24843 _ACEOF
24844 rm -f conftest.$ac_objext conftest$ac_exeext
24845 if { (ac_try="$ac_link"
24846 case "(($ac_try" in
24847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24848 *) ac_try_echo=$ac_try;;
24849 esac
24850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24851 (eval "$ac_link") 2>conftest.er1
24852 ac_status=$?
24853 grep -v '^ *+' conftest.er1 >conftest.err
24854 rm -f conftest.er1
24855 cat conftest.err >&5
24856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24857 (exit $ac_status); } && {
24858 test -z "$ac_c_werror_flag" ||
24859 test ! -s conftest.err
24860 } && test -s conftest$ac_exeext &&
24861 $as_test_x conftest$ac_exeext; then
24862 pgac_cv_func_posix_signals=yes
24863 else
24864 echo "$as_me: failed program was:" >&5
24865 sed 's/^/| /' conftest.$ac_ext >&5
24867 pgac_cv_func_posix_signals=no
24870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24871 conftest$ac_exeext conftest.$ac_ext
24873 { echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
24874 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6; }
24875 if test x"$pgac_cv_func_posix_signals" = xyes ; then
24877 cat >>confdefs.h <<\_ACEOF
24878 #define HAVE_POSIX_SIGNALS
24879 _ACEOF
24882 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
24884 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
24885 { { echo "$as_me:$LINENO: error:
24886 Thread-safety requires POSIX signals, which are not supported by this
24887 operating system." >&5
24888 echo "$as_me: error:
24889 Thread-safety requires POSIX signals, which are not supported by this
24890 operating system." >&2;}
24891 { (exit 1); exit 1; }; }
24895 if test $ac_cv_func_fseeko = yes; then
24896 # Check whether --enable-largefile was given.
24897 if test "${enable_largefile+set}" = set; then
24898 enableval=$enable_largefile;
24901 if test "$enable_largefile" != no; then
24903 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
24904 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
24905 if test "${ac_cv_sys_largefile_CC+set}" = set; then
24906 echo $ECHO_N "(cached) $ECHO_C" >&6
24907 else
24908 ac_cv_sys_largefile_CC=no
24909 if test "$GCC" != yes; then
24910 ac_save_CC=$CC
24911 while :; do
24912 # IRIX 6.2 and later do not support large files by default,
24913 # so use the C compiler's -n32 option if that helps.
24914 cat >conftest.$ac_ext <<_ACEOF
24915 /* confdefs.h. */
24916 _ACEOF
24917 cat confdefs.h >>conftest.$ac_ext
24918 cat >>conftest.$ac_ext <<_ACEOF
24919 /* end confdefs.h. */
24920 #include <sys/types.h>
24921 /* Check that off_t can represent 2**63 - 1 correctly.
24922 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24923 since some C++ compilers masquerading as C compilers
24924 incorrectly reject 9223372036854775807. */
24925 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24926 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24927 && LARGE_OFF_T % 2147483647 == 1)
24928 ? 1 : -1];
24930 main ()
24934 return 0;
24936 _ACEOF
24937 rm -f conftest.$ac_objext
24938 if { (ac_try="$ac_compile"
24939 case "(($ac_try" in
24940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24941 *) ac_try_echo=$ac_try;;
24942 esac
24943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24944 (eval "$ac_compile") 2>conftest.er1
24945 ac_status=$?
24946 grep -v '^ *+' conftest.er1 >conftest.err
24947 rm -f conftest.er1
24948 cat conftest.err >&5
24949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24950 (exit $ac_status); } && {
24951 test -z "$ac_c_werror_flag" ||
24952 test ! -s conftest.err
24953 } && test -s conftest.$ac_objext; then
24954 break
24955 else
24956 echo "$as_me: failed program was:" >&5
24957 sed 's/^/| /' conftest.$ac_ext >&5
24962 rm -f core conftest.err conftest.$ac_objext
24963 CC="$CC -n32"
24964 rm -f conftest.$ac_objext
24965 if { (ac_try="$ac_compile"
24966 case "(($ac_try" in
24967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24968 *) ac_try_echo=$ac_try;;
24969 esac
24970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24971 (eval "$ac_compile") 2>conftest.er1
24972 ac_status=$?
24973 grep -v '^ *+' conftest.er1 >conftest.err
24974 rm -f conftest.er1
24975 cat conftest.err >&5
24976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24977 (exit $ac_status); } && {
24978 test -z "$ac_c_werror_flag" ||
24979 test ! -s conftest.err
24980 } && test -s conftest.$ac_objext; then
24981 ac_cv_sys_largefile_CC=' -n32'; break
24982 else
24983 echo "$as_me: failed program was:" >&5
24984 sed 's/^/| /' conftest.$ac_ext >&5
24989 rm -f core conftest.err conftest.$ac_objext
24990 break
24991 done
24992 CC=$ac_save_CC
24993 rm -f conftest.$ac_ext
24996 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
24997 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
24998 if test "$ac_cv_sys_largefile_CC" != no; then
24999 CC=$CC$ac_cv_sys_largefile_CC
25002 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
25003 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
25004 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
25005 echo $ECHO_N "(cached) $ECHO_C" >&6
25006 else
25007 while :; do
25008 cat >conftest.$ac_ext <<_ACEOF
25009 /* confdefs.h. */
25010 _ACEOF
25011 cat confdefs.h >>conftest.$ac_ext
25012 cat >>conftest.$ac_ext <<_ACEOF
25013 /* end confdefs.h. */
25014 #include <sys/types.h>
25015 /* Check that off_t can represent 2**63 - 1 correctly.
25016 We can't simply define LARGE_OFF_T to be 9223372036854775807,
25017 since some C++ compilers masquerading as C compilers
25018 incorrectly reject 9223372036854775807. */
25019 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
25020 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
25021 && LARGE_OFF_T % 2147483647 == 1)
25022 ? 1 : -1];
25024 main ()
25028 return 0;
25030 _ACEOF
25031 rm -f conftest.$ac_objext
25032 if { (ac_try="$ac_compile"
25033 case "(($ac_try" in
25034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25035 *) ac_try_echo=$ac_try;;
25036 esac
25037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25038 (eval "$ac_compile") 2>conftest.er1
25039 ac_status=$?
25040 grep -v '^ *+' conftest.er1 >conftest.err
25041 rm -f conftest.er1
25042 cat conftest.err >&5
25043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25044 (exit $ac_status); } && {
25045 test -z "$ac_c_werror_flag" ||
25046 test ! -s conftest.err
25047 } && test -s conftest.$ac_objext; then
25048 ac_cv_sys_file_offset_bits=no; break
25049 else
25050 echo "$as_me: failed program was:" >&5
25051 sed 's/^/| /' conftest.$ac_ext >&5
25056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25057 cat >conftest.$ac_ext <<_ACEOF
25058 /* confdefs.h. */
25059 _ACEOF
25060 cat confdefs.h >>conftest.$ac_ext
25061 cat >>conftest.$ac_ext <<_ACEOF
25062 /* end confdefs.h. */
25063 #define _FILE_OFFSET_BITS 64
25064 #include <sys/types.h>
25065 /* Check that off_t can represent 2**63 - 1 correctly.
25066 We can't simply define LARGE_OFF_T to be 9223372036854775807,
25067 since some C++ compilers masquerading as C compilers
25068 incorrectly reject 9223372036854775807. */
25069 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
25070 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
25071 && LARGE_OFF_T % 2147483647 == 1)
25072 ? 1 : -1];
25074 main ()
25078 return 0;
25080 _ACEOF
25081 rm -f conftest.$ac_objext
25082 if { (ac_try="$ac_compile"
25083 case "(($ac_try" in
25084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25085 *) ac_try_echo=$ac_try;;
25086 esac
25087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25088 (eval "$ac_compile") 2>conftest.er1
25089 ac_status=$?
25090 grep -v '^ *+' conftest.er1 >conftest.err
25091 rm -f conftest.er1
25092 cat conftest.err >&5
25093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25094 (exit $ac_status); } && {
25095 test -z "$ac_c_werror_flag" ||
25096 test ! -s conftest.err
25097 } && test -s conftest.$ac_objext; then
25098 ac_cv_sys_file_offset_bits=64; break
25099 else
25100 echo "$as_me: failed program was:" >&5
25101 sed 's/^/| /' conftest.$ac_ext >&5
25106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25107 ac_cv_sys_file_offset_bits=unknown
25108 break
25109 done
25111 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
25112 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
25113 case $ac_cv_sys_file_offset_bits in #(
25114 no | unknown) ;;
25116 cat >>confdefs.h <<_ACEOF
25117 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
25118 _ACEOF
25120 esac
25121 rm -f conftest*
25122 if test $ac_cv_sys_file_offset_bits = unknown; then
25123 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
25124 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
25125 if test "${ac_cv_sys_large_files+set}" = set; then
25126 echo $ECHO_N "(cached) $ECHO_C" >&6
25127 else
25128 while :; do
25129 cat >conftest.$ac_ext <<_ACEOF
25130 /* confdefs.h. */
25131 _ACEOF
25132 cat confdefs.h >>conftest.$ac_ext
25133 cat >>conftest.$ac_ext <<_ACEOF
25134 /* end confdefs.h. */
25135 #include <sys/types.h>
25136 /* Check that off_t can represent 2**63 - 1 correctly.
25137 We can't simply define LARGE_OFF_T to be 9223372036854775807,
25138 since some C++ compilers masquerading as C compilers
25139 incorrectly reject 9223372036854775807. */
25140 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
25141 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
25142 && LARGE_OFF_T % 2147483647 == 1)
25143 ? 1 : -1];
25145 main ()
25149 return 0;
25151 _ACEOF
25152 rm -f conftest.$ac_objext
25153 if { (ac_try="$ac_compile"
25154 case "(($ac_try" in
25155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25156 *) ac_try_echo=$ac_try;;
25157 esac
25158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25159 (eval "$ac_compile") 2>conftest.er1
25160 ac_status=$?
25161 grep -v '^ *+' conftest.er1 >conftest.err
25162 rm -f conftest.er1
25163 cat conftest.err >&5
25164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25165 (exit $ac_status); } && {
25166 test -z "$ac_c_werror_flag" ||
25167 test ! -s conftest.err
25168 } && test -s conftest.$ac_objext; then
25169 ac_cv_sys_large_files=no; break
25170 else
25171 echo "$as_me: failed program was:" >&5
25172 sed 's/^/| /' conftest.$ac_ext >&5
25177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25178 cat >conftest.$ac_ext <<_ACEOF
25179 /* confdefs.h. */
25180 _ACEOF
25181 cat confdefs.h >>conftest.$ac_ext
25182 cat >>conftest.$ac_ext <<_ACEOF
25183 /* end confdefs.h. */
25184 #define _LARGE_FILES 1
25185 #include <sys/types.h>
25186 /* Check that off_t can represent 2**63 - 1 correctly.
25187 We can't simply define LARGE_OFF_T to be 9223372036854775807,
25188 since some C++ compilers masquerading as C compilers
25189 incorrectly reject 9223372036854775807. */
25190 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
25191 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
25192 && LARGE_OFF_T % 2147483647 == 1)
25193 ? 1 : -1];
25195 main ()
25199 return 0;
25201 _ACEOF
25202 rm -f conftest.$ac_objext
25203 if { (ac_try="$ac_compile"
25204 case "(($ac_try" in
25205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25206 *) ac_try_echo=$ac_try;;
25207 esac
25208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25209 (eval "$ac_compile") 2>conftest.er1
25210 ac_status=$?
25211 grep -v '^ *+' conftest.er1 >conftest.err
25212 rm -f conftest.er1
25213 cat conftest.err >&5
25214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25215 (exit $ac_status); } && {
25216 test -z "$ac_c_werror_flag" ||
25217 test ! -s conftest.err
25218 } && test -s conftest.$ac_objext; then
25219 ac_cv_sys_large_files=1; break
25220 else
25221 echo "$as_me: failed program was:" >&5
25222 sed 's/^/| /' conftest.$ac_ext >&5
25227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25228 ac_cv_sys_large_files=unknown
25229 break
25230 done
25232 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
25233 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
25234 case $ac_cv_sys_large_files in #(
25235 no | unknown) ;;
25237 cat >>confdefs.h <<_ACEOF
25238 #define _LARGE_FILES $ac_cv_sys_large_files
25239 _ACEOF
25241 esac
25242 rm -f conftest*
25248 # Check for largefile support (must be after AC_SYS_LARGEFILE)
25249 { echo "$as_me:$LINENO: checking for off_t" >&5
25250 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
25251 if test "${ac_cv_type_off_t+set}" = set; then
25252 echo $ECHO_N "(cached) $ECHO_C" >&6
25253 else
25254 cat >conftest.$ac_ext <<_ACEOF
25255 /* confdefs.h. */
25256 _ACEOF
25257 cat confdefs.h >>conftest.$ac_ext
25258 cat >>conftest.$ac_ext <<_ACEOF
25259 /* end confdefs.h. */
25260 $ac_includes_default
25261 typedef off_t ac__type_new_;
25263 main ()
25265 if ((ac__type_new_ *) 0)
25266 return 0;
25267 if (sizeof (ac__type_new_))
25268 return 0;
25270 return 0;
25272 _ACEOF
25273 rm -f conftest.$ac_objext
25274 if { (ac_try="$ac_compile"
25275 case "(($ac_try" in
25276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25277 *) ac_try_echo=$ac_try;;
25278 esac
25279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25280 (eval "$ac_compile") 2>conftest.er1
25281 ac_status=$?
25282 grep -v '^ *+' conftest.er1 >conftest.err
25283 rm -f conftest.er1
25284 cat conftest.err >&5
25285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25286 (exit $ac_status); } && {
25287 test -z "$ac_c_werror_flag" ||
25288 test ! -s conftest.err
25289 } && test -s conftest.$ac_objext; then
25290 ac_cv_type_off_t=yes
25291 else
25292 echo "$as_me: failed program was:" >&5
25293 sed 's/^/| /' conftest.$ac_ext >&5
25295 ac_cv_type_off_t=no
25298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25300 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
25301 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
25303 # The cast to long int works around a bug in the HP C Compiler
25304 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25305 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25306 # This bug is HP SR number 8606223364.
25307 { echo "$as_me:$LINENO: checking size of off_t" >&5
25308 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
25309 if test "${ac_cv_sizeof_off_t+set}" = set; then
25310 echo $ECHO_N "(cached) $ECHO_C" >&6
25311 else
25312 if test "$cross_compiling" = yes; then
25313 # Depending upon the size, compute the lo and hi bounds.
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_lo=0 ac_mid=0
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_hi=$ac_mid; break
25387 else
25388 echo "$as_me: failed program was:" >&5
25389 sed 's/^/| /' conftest.$ac_ext >&5
25391 ac_lo=`expr $ac_mid + 1`
25392 if test $ac_lo -le $ac_mid; then
25393 ac_lo= ac_hi=
25394 break
25396 ac_mid=`expr 2 '*' $ac_mid + 1`
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 cat >conftest.$ac_ext <<_ACEOF
25406 /* confdefs.h. */
25407 _ACEOF
25408 cat confdefs.h >>conftest.$ac_ext
25409 cat >>conftest.$ac_ext <<_ACEOF
25410 /* end confdefs.h. */
25411 $ac_includes_default
25412 typedef off_t ac__type_sizeof_;
25414 main ()
25416 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25417 test_array [0] = 0
25420 return 0;
25422 _ACEOF
25423 rm -f conftest.$ac_objext
25424 if { (ac_try="$ac_compile"
25425 case "(($ac_try" in
25426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25427 *) ac_try_echo=$ac_try;;
25428 esac
25429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25430 (eval "$ac_compile") 2>conftest.er1
25431 ac_status=$?
25432 grep -v '^ *+' conftest.er1 >conftest.err
25433 rm -f conftest.er1
25434 cat conftest.err >&5
25435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25436 (exit $ac_status); } && {
25437 test -z "$ac_c_werror_flag" ||
25438 test ! -s conftest.err
25439 } && test -s conftest.$ac_objext; then
25440 ac_hi=-1 ac_mid=-1
25441 while :; do
25442 cat >conftest.$ac_ext <<_ACEOF
25443 /* confdefs.h. */
25444 _ACEOF
25445 cat confdefs.h >>conftest.$ac_ext
25446 cat >>conftest.$ac_ext <<_ACEOF
25447 /* end confdefs.h. */
25448 $ac_includes_default
25449 typedef off_t ac__type_sizeof_;
25451 main ()
25453 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25454 test_array [0] = 0
25457 return 0;
25459 _ACEOF
25460 rm -f conftest.$ac_objext
25461 if { (ac_try="$ac_compile"
25462 case "(($ac_try" in
25463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25464 *) ac_try_echo=$ac_try;;
25465 esac
25466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25467 (eval "$ac_compile") 2>conftest.er1
25468 ac_status=$?
25469 grep -v '^ *+' conftest.er1 >conftest.err
25470 rm -f conftest.er1
25471 cat conftest.err >&5
25472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25473 (exit $ac_status); } && {
25474 test -z "$ac_c_werror_flag" ||
25475 test ! -s conftest.err
25476 } && test -s conftest.$ac_objext; then
25477 ac_lo=$ac_mid; break
25478 else
25479 echo "$as_me: failed program was:" >&5
25480 sed 's/^/| /' conftest.$ac_ext >&5
25482 ac_hi=`expr '(' $ac_mid ')' - 1`
25483 if test $ac_mid -le $ac_hi; then
25484 ac_lo= ac_hi=
25485 break
25487 ac_mid=`expr 2 '*' $ac_mid`
25490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25491 done
25492 else
25493 echo "$as_me: failed program was:" >&5
25494 sed 's/^/| /' conftest.$ac_ext >&5
25496 ac_lo= ac_hi=
25499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25503 # Binary search between lo and hi bounds.
25504 while test "x$ac_lo" != "x$ac_hi"; do
25505 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25506 cat >conftest.$ac_ext <<_ACEOF
25507 /* confdefs.h. */
25508 _ACEOF
25509 cat confdefs.h >>conftest.$ac_ext
25510 cat >>conftest.$ac_ext <<_ACEOF
25511 /* end confdefs.h. */
25512 $ac_includes_default
25513 typedef off_t ac__type_sizeof_;
25515 main ()
25517 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25518 test_array [0] = 0
25521 return 0;
25523 _ACEOF
25524 rm -f conftest.$ac_objext
25525 if { (ac_try="$ac_compile"
25526 case "(($ac_try" in
25527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25528 *) ac_try_echo=$ac_try;;
25529 esac
25530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25531 (eval "$ac_compile") 2>conftest.er1
25532 ac_status=$?
25533 grep -v '^ *+' conftest.er1 >conftest.err
25534 rm -f conftest.er1
25535 cat conftest.err >&5
25536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25537 (exit $ac_status); } && {
25538 test -z "$ac_c_werror_flag" ||
25539 test ! -s conftest.err
25540 } && test -s conftest.$ac_objext; then
25541 ac_hi=$ac_mid
25542 else
25543 echo "$as_me: failed program was:" >&5
25544 sed 's/^/| /' conftest.$ac_ext >&5
25546 ac_lo=`expr '(' $ac_mid ')' + 1`
25549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25550 done
25551 case $ac_lo in
25552 ?*) ac_cv_sizeof_off_t=$ac_lo;;
25553 '') if test "$ac_cv_type_off_t" = yes; then
25554 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
25555 See \`config.log' for more details." >&5
25556 echo "$as_me: error: cannot compute sizeof (off_t)
25557 See \`config.log' for more details." >&2;}
25558 { (exit 77); exit 77; }; }
25559 else
25560 ac_cv_sizeof_off_t=0
25561 fi ;;
25562 esac
25563 else
25564 cat >conftest.$ac_ext <<_ACEOF
25565 /* confdefs.h. */
25566 _ACEOF
25567 cat confdefs.h >>conftest.$ac_ext
25568 cat >>conftest.$ac_ext <<_ACEOF
25569 /* end confdefs.h. */
25570 $ac_includes_default
25571 typedef off_t ac__type_sizeof_;
25572 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25573 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25574 #include <stdio.h>
25575 #include <stdlib.h>
25577 main ()
25580 FILE *f = fopen ("conftest.val", "w");
25581 if (! f)
25582 return 1;
25583 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25585 long int i = longval ();
25586 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25587 return 1;
25588 fprintf (f, "%ld\n", i);
25590 else
25592 unsigned long int i = ulongval ();
25593 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25594 return 1;
25595 fprintf (f, "%lu\n", i);
25597 return ferror (f) || fclose (f) != 0;
25600 return 0;
25602 _ACEOF
25603 rm -f conftest$ac_exeext
25604 if { (ac_try="$ac_link"
25605 case "(($ac_try" in
25606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25607 *) ac_try_echo=$ac_try;;
25608 esac
25609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25610 (eval "$ac_link") 2>&5
25611 ac_status=$?
25612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25614 { (case "(($ac_try" in
25615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25616 *) ac_try_echo=$ac_try;;
25617 esac
25618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25619 (eval "$ac_try") 2>&5
25620 ac_status=$?
25621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25622 (exit $ac_status); }; }; then
25623 ac_cv_sizeof_off_t=`cat conftest.val`
25624 else
25625 echo "$as_me: program exited with status $ac_status" >&5
25626 echo "$as_me: failed program was:" >&5
25627 sed 's/^/| /' conftest.$ac_ext >&5
25629 ( exit $ac_status )
25630 if test "$ac_cv_type_off_t" = yes; then
25631 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
25632 See \`config.log' for more details." >&5
25633 echo "$as_me: error: cannot compute sizeof (off_t)
25634 See \`config.log' for more details." >&2;}
25635 { (exit 77); exit 77; }; }
25636 else
25637 ac_cv_sizeof_off_t=0
25640 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25642 rm -f conftest.val
25644 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
25645 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
25649 cat >>confdefs.h <<_ACEOF
25650 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
25651 _ACEOF
25655 # If we don't have largefile support, can't handle segsize >= 2GB.
25656 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
25657 { { echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
25658 echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
25659 { (exit 1); exit 1; }; }
25662 # SunOS doesn't handle negative byte comparisons properly with +/- return
25663 { echo "$as_me:$LINENO: checking for working memcmp" >&5
25664 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
25665 if test "${ac_cv_func_memcmp_working+set}" = set; then
25666 echo $ECHO_N "(cached) $ECHO_C" >&6
25667 else
25668 if test "$cross_compiling" = yes; then
25669 ac_cv_func_memcmp_working=no
25670 else
25671 cat >conftest.$ac_ext <<_ACEOF
25672 /* confdefs.h. */
25673 _ACEOF
25674 cat confdefs.h >>conftest.$ac_ext
25675 cat >>conftest.$ac_ext <<_ACEOF
25676 /* end confdefs.h. */
25677 $ac_includes_default
25679 main ()
25682 /* Some versions of memcmp are not 8-bit clean. */
25683 char c0 = '\100', c1 = '\200', c2 = '\201';
25684 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25685 return 1;
25687 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25688 or more and with at least one buffer not starting on a 4-byte boundary.
25689 William Lewis provided this test program. */
25691 char foo[21];
25692 char bar[21];
25693 int i;
25694 for (i = 0; i < 4; i++)
25696 char *a = foo + i;
25697 char *b = bar + i;
25698 strcpy (a, "--------01111111");
25699 strcpy (b, "--------10000000");
25700 if (memcmp (a, b, 16) >= 0)
25701 return 1;
25703 return 0;
25707 return 0;
25709 _ACEOF
25710 rm -f conftest$ac_exeext
25711 if { (ac_try="$ac_link"
25712 case "(($ac_try" in
25713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25714 *) ac_try_echo=$ac_try;;
25715 esac
25716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25717 (eval "$ac_link") 2>&5
25718 ac_status=$?
25719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25721 { (case "(($ac_try" in
25722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25723 *) ac_try_echo=$ac_try;;
25724 esac
25725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25726 (eval "$ac_try") 2>&5
25727 ac_status=$?
25728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25729 (exit $ac_status); }; }; then
25730 ac_cv_func_memcmp_working=yes
25731 else
25732 echo "$as_me: program exited with status $ac_status" >&5
25733 echo "$as_me: failed program was:" >&5
25734 sed 's/^/| /' conftest.$ac_ext >&5
25736 ( exit $ac_status )
25737 ac_cv_func_memcmp_working=no
25739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25744 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
25745 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
25746 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
25747 *" memcmp.$ac_objext "* ) ;;
25748 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
25750 esac
25755 # Select semaphore implementation type.
25756 if test "$PORTNAME" != "win32"; then
25757 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
25759 cat >>confdefs.h <<\_ACEOF
25760 #define USE_NAMED_POSIX_SEMAPHORES 1
25761 _ACEOF
25763 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
25764 else
25765 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
25767 cat >>confdefs.h <<\_ACEOF
25768 #define USE_UNNAMED_POSIX_SEMAPHORES 1
25769 _ACEOF
25771 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
25772 else
25774 cat >>confdefs.h <<\_ACEOF
25775 #define USE_SYSV_SEMAPHORES 1
25776 _ACEOF
25778 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
25781 else
25783 cat >>confdefs.h <<\_ACEOF
25784 #define USE_WIN32_SEMAPHORES 1
25785 _ACEOF
25787 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
25791 # Select shared-memory implementation type.
25792 if test "$PORTNAME" != "win32"; then
25794 cat >>confdefs.h <<\_ACEOF
25795 #define USE_SYSV_SHARED_MEMORY 1
25796 _ACEOF
25798 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
25799 else
25801 cat >>confdefs.h <<\_ACEOF
25802 #define USE_WIN32_SHARED_MEMORY 1
25803 _ACEOF
25805 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
25808 # If not set in template file, set bytes to use libc memset()
25809 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
25810 MEMSET_LOOP_LIMIT=1024
25813 cat >>confdefs.h <<_ACEOF
25814 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
25815 _ACEOF
25819 if test "$enable_nls" = yes ; then
25821 { echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
25822 echo $ECHO_N "checking for library containing bind_textdomain_codeset... $ECHO_C" >&6; }
25823 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
25824 echo $ECHO_N "(cached) $ECHO_C" >&6
25825 else
25826 ac_func_search_save_LIBS=$LIBS
25827 cat >conftest.$ac_ext <<_ACEOF
25828 /* confdefs.h. */
25829 _ACEOF
25830 cat confdefs.h >>conftest.$ac_ext
25831 cat >>conftest.$ac_ext <<_ACEOF
25832 /* end confdefs.h. */
25834 /* Override any GCC internal prototype to avoid an error.
25835 Use char because int might match the return type of a GCC
25836 builtin and then its argument prototype would still apply. */
25837 #ifdef __cplusplus
25838 extern "C"
25839 #endif
25840 char bind_textdomain_codeset ();
25842 main ()
25844 return bind_textdomain_codeset ();
25846 return 0;
25848 _ACEOF
25849 for ac_lib in '' intl; do
25850 if test -z "$ac_lib"; then
25851 ac_res="none required"
25852 else
25853 ac_res=-l$ac_lib
25854 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25856 rm -f conftest.$ac_objext conftest$ac_exeext
25857 if { (ac_try="$ac_link"
25858 case "(($ac_try" in
25859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25860 *) ac_try_echo=$ac_try;;
25861 esac
25862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25863 (eval "$ac_link") 2>conftest.er1
25864 ac_status=$?
25865 grep -v '^ *+' conftest.er1 >conftest.err
25866 rm -f conftest.er1
25867 cat conftest.err >&5
25868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25869 (exit $ac_status); } && {
25870 test -z "$ac_c_werror_flag" ||
25871 test ! -s conftest.err
25872 } && test -s conftest$ac_exeext &&
25873 $as_test_x conftest$ac_exeext; then
25874 ac_cv_search_bind_textdomain_codeset=$ac_res
25875 else
25876 echo "$as_me: failed program was:" >&5
25877 sed 's/^/| /' conftest.$ac_ext >&5
25882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25883 conftest$ac_exeext
25884 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
25885 break
25887 done
25888 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
25890 else
25891 ac_cv_search_bind_textdomain_codeset=no
25893 rm conftest.$ac_ext
25894 LIBS=$ac_func_search_save_LIBS
25896 { echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
25897 echo "${ECHO_T}$ac_cv_search_bind_textdomain_codeset" >&6; }
25898 ac_res=$ac_cv_search_bind_textdomain_codeset
25899 if test "$ac_res" != no; then
25900 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25902 else
25903 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
25904 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
25905 { (exit 1); exit 1; }; }
25908 if test "${ac_cv_header_libintl_h+set}" = set; then
25909 { echo "$as_me:$LINENO: checking for libintl.h" >&5
25910 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
25911 if test "${ac_cv_header_libintl_h+set}" = set; then
25912 echo $ECHO_N "(cached) $ECHO_C" >&6
25914 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
25915 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
25916 else
25917 # Is the header compilable?
25918 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
25919 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
25920 cat >conftest.$ac_ext <<_ACEOF
25921 /* confdefs.h. */
25922 _ACEOF
25923 cat confdefs.h >>conftest.$ac_ext
25924 cat >>conftest.$ac_ext <<_ACEOF
25925 /* end confdefs.h. */
25926 $ac_includes_default
25927 #include <libintl.h>
25928 _ACEOF
25929 rm -f conftest.$ac_objext
25930 if { (ac_try="$ac_compile"
25931 case "(($ac_try" in
25932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25933 *) ac_try_echo=$ac_try;;
25934 esac
25935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25936 (eval "$ac_compile") 2>conftest.er1
25937 ac_status=$?
25938 grep -v '^ *+' conftest.er1 >conftest.err
25939 rm -f conftest.er1
25940 cat conftest.err >&5
25941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25942 (exit $ac_status); } && {
25943 test -z "$ac_c_werror_flag" ||
25944 test ! -s conftest.err
25945 } && test -s conftest.$ac_objext; then
25946 ac_header_compiler=yes
25947 else
25948 echo "$as_me: failed program was:" >&5
25949 sed 's/^/| /' conftest.$ac_ext >&5
25951 ac_header_compiler=no
25954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25955 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25956 echo "${ECHO_T}$ac_header_compiler" >&6; }
25958 # Is the header present?
25959 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
25960 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
25961 cat >conftest.$ac_ext <<_ACEOF
25962 /* confdefs.h. */
25963 _ACEOF
25964 cat confdefs.h >>conftest.$ac_ext
25965 cat >>conftest.$ac_ext <<_ACEOF
25966 /* end confdefs.h. */
25967 #include <libintl.h>
25968 _ACEOF
25969 if { (ac_try="$ac_cpp conftest.$ac_ext"
25970 case "(($ac_try" in
25971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25972 *) ac_try_echo=$ac_try;;
25973 esac
25974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25975 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25976 ac_status=$?
25977 grep -v '^ *+' conftest.er1 >conftest.err
25978 rm -f conftest.er1
25979 cat conftest.err >&5
25980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25981 (exit $ac_status); } >/dev/null && {
25982 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25983 test ! -s conftest.err
25984 }; then
25985 ac_header_preproc=yes
25986 else
25987 echo "$as_me: failed program was:" >&5
25988 sed 's/^/| /' conftest.$ac_ext >&5
25990 ac_header_preproc=no
25993 rm -f conftest.err conftest.$ac_ext
25994 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25995 echo "${ECHO_T}$ac_header_preproc" >&6; }
25997 # So? What about this header?
25998 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25999 yes:no: )
26000 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
26001 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26002 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
26003 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
26004 ac_header_preproc=yes
26006 no:yes:* )
26007 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
26008 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
26009 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
26010 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
26011 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
26012 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
26013 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
26014 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
26015 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
26016 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
26017 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
26018 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
26019 ( cat <<\_ASBOX
26020 ## ---------------------------------------- ##
26021 ## Report this to pgsql-bugs@postgresql.org ##
26022 ## ---------------------------------------- ##
26023 _ASBOX
26024 ) | sed "s/^/$as_me: WARNING: /" >&2
26026 esac
26027 { echo "$as_me:$LINENO: checking for libintl.h" >&5
26028 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
26029 if test "${ac_cv_header_libintl_h+set}" = set; then
26030 echo $ECHO_N "(cached) $ECHO_C" >&6
26031 else
26032 ac_cv_header_libintl_h=$ac_header_preproc
26034 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
26035 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
26038 if test $ac_cv_header_libintl_h = yes; then
26040 else
26041 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
26042 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
26043 { (exit 1); exit 1; }; }
26047 for ac_prog in msgfmt
26049 # Extract the first word of "$ac_prog", so it can be a program name with args.
26050 set dummy $ac_prog; ac_word=$2
26051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26053 if test "${ac_cv_prog_MSGFMT+set}" = set; then
26054 echo $ECHO_N "(cached) $ECHO_C" >&6
26055 else
26056 if test -n "$MSGFMT"; then
26057 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
26058 else
26059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26060 for as_dir in $PATH
26062 IFS=$as_save_IFS
26063 test -z "$as_dir" && as_dir=.
26064 for ac_exec_ext in '' $ac_executable_extensions; do
26065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26066 ac_cv_prog_MSGFMT="$ac_prog"
26067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26068 break 2
26070 done
26071 done
26072 IFS=$as_save_IFS
26076 MSGFMT=$ac_cv_prog_MSGFMT
26077 if test -n "$MSGFMT"; then
26078 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
26079 echo "${ECHO_T}$MSGFMT" >&6; }
26080 else
26081 { echo "$as_me:$LINENO: result: no" >&5
26082 echo "${ECHO_T}no" >&6; }
26086 test -n "$MSGFMT" && break
26087 done
26089 if test -z "$MSGFMT"; then
26090 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
26091 echo "$as_me: error: msgfmt is required for NLS" >&2;}
26092 { (exit 1); exit 1; }; }
26094 for ac_prog in msgmerge
26096 # Extract the first word of "$ac_prog", so it can be a program name with args.
26097 set dummy $ac_prog; ac_word=$2
26098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26100 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
26101 echo $ECHO_N "(cached) $ECHO_C" >&6
26102 else
26103 if test -n "$MSGMERGE"; then
26104 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
26105 else
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_prog_MSGMERGE="$ac_prog"
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
26123 MSGMERGE=$ac_cv_prog_MSGMERGE
26124 if test -n "$MSGMERGE"; then
26125 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
26126 echo "${ECHO_T}$MSGMERGE" >&6; }
26127 else
26128 { echo "$as_me:$LINENO: result: no" >&5
26129 echo "${ECHO_T}no" >&6; }
26133 test -n "$MSGMERGE" && break
26134 done
26136 for ac_prog in xgettext
26138 # Extract the first word of "$ac_prog", so it can be a program name with args.
26139 set dummy $ac_prog; ac_word=$2
26140 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26142 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
26143 echo $ECHO_N "(cached) $ECHO_C" >&6
26144 else
26145 if test -n "$XGETTEXT"; then
26146 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
26147 else
26148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26149 for as_dir in $PATH
26151 IFS=$as_save_IFS
26152 test -z "$as_dir" && as_dir=.
26153 for ac_exec_ext in '' $ac_executable_extensions; do
26154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26155 ac_cv_prog_XGETTEXT="$ac_prog"
26156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26157 break 2
26159 done
26160 done
26161 IFS=$as_save_IFS
26165 XGETTEXT=$ac_cv_prog_XGETTEXT
26166 if test -n "$XGETTEXT"; then
26167 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
26168 echo "${ECHO_T}$XGETTEXT" >&6; }
26169 else
26170 { echo "$as_me:$LINENO: result: no" >&5
26171 echo "${ECHO_T}no" >&6; }
26175 test -n "$XGETTEXT" && break
26176 done
26181 # Check for Tcl configuration script tclConfig.sh
26182 if test "$with_tcl" = yes; then
26183 for ac_prog in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
26185 # Extract the first word of "$ac_prog", so it can be a program name with args.
26186 set dummy $ac_prog; ac_word=$2
26187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26189 if test "${ac_cv_path_TCLSH+set}" = set; then
26190 echo $ECHO_N "(cached) $ECHO_C" >&6
26191 else
26192 case $TCLSH in
26193 [\\/]* | ?:[\\/]*)
26194 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
26197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26198 for as_dir in $PATH
26200 IFS=$as_save_IFS
26201 test -z "$as_dir" && as_dir=.
26202 for ac_exec_ext in '' $ac_executable_extensions; do
26203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26204 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
26205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26206 break 2
26208 done
26209 done
26210 IFS=$as_save_IFS
26213 esac
26215 TCLSH=$ac_cv_path_TCLSH
26216 if test -n "$TCLSH"; then
26217 { echo "$as_me:$LINENO: result: $TCLSH" >&5
26218 echo "${ECHO_T}$TCLSH" >&6; }
26219 else
26220 { echo "$as_me:$LINENO: result: no" >&5
26221 echo "${ECHO_T}no" >&6; }
26225 test -n "$TCLSH" && break
26226 done
26228 if test x"$TCLSH" = x""; then
26229 { { echo "$as_me:$LINENO: error: Tcl shell not found" >&5
26230 echo "$as_me: error: Tcl shell not found" >&2;}
26231 { (exit 1); exit 1; }; }
26234 { echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
26235 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6; }
26236 # Let user override test
26237 if test -z "$TCL_CONFIG_SH"; then
26238 pgac_test_dirs="$with_tclconfig"
26240 set X $pgac_test_dirs; shift
26241 if test $# -eq 0; then
26242 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
26243 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
26244 { (exit 1); exit 1; }; }
26245 set X `echo 'puts $auto_path' | $TCLSH`; shift
26248 for pgac_dir do
26249 if test -r "$pgac_dir/tclConfig.sh"; then
26250 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
26251 break
26253 done
26256 if test -z "$TCL_CONFIG_SH"; then
26257 { echo "$as_me:$LINENO: result: no" >&5
26258 echo "${ECHO_T}no" >&6; }
26259 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
26260 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
26261 { (exit 1); exit 1; }; }
26262 else
26263 { echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
26264 echo "${ECHO_T}$TCL_CONFIG_SH" >&6; }
26269 . "$TCL_CONFIG_SH"
26270 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
26271 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
26272 eval TCL_LIBS=\"$TCL_LIBS\"
26273 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
26274 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
26276 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
26277 ac_save_CPPFLAGS=$CPPFLAGS
26278 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
26279 if test "${ac_cv_header_tcl_h+set}" = set; then
26280 { echo "$as_me:$LINENO: checking for tcl.h" >&5
26281 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
26282 if test "${ac_cv_header_tcl_h+set}" = set; then
26283 echo $ECHO_N "(cached) $ECHO_C" >&6
26285 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
26286 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
26287 else
26288 # Is the header compilable?
26289 { echo "$as_me:$LINENO: checking tcl.h usability" >&5
26290 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6; }
26291 cat >conftest.$ac_ext <<_ACEOF
26292 /* confdefs.h. */
26293 _ACEOF
26294 cat confdefs.h >>conftest.$ac_ext
26295 cat >>conftest.$ac_ext <<_ACEOF
26296 /* end confdefs.h. */
26297 $ac_includes_default
26298 #include <tcl.h>
26299 _ACEOF
26300 rm -f conftest.$ac_objext
26301 if { (ac_try="$ac_compile"
26302 case "(($ac_try" in
26303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26304 *) ac_try_echo=$ac_try;;
26305 esac
26306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26307 (eval "$ac_compile") 2>conftest.er1
26308 ac_status=$?
26309 grep -v '^ *+' conftest.er1 >conftest.err
26310 rm -f conftest.er1
26311 cat conftest.err >&5
26312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26313 (exit $ac_status); } && {
26314 test -z "$ac_c_werror_flag" ||
26315 test ! -s conftest.err
26316 } && test -s conftest.$ac_objext; then
26317 ac_header_compiler=yes
26318 else
26319 echo "$as_me: failed program was:" >&5
26320 sed 's/^/| /' conftest.$ac_ext >&5
26322 ac_header_compiler=no
26325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26326 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26327 echo "${ECHO_T}$ac_header_compiler" >&6; }
26329 # Is the header present?
26330 { echo "$as_me:$LINENO: checking tcl.h presence" >&5
26331 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6; }
26332 cat >conftest.$ac_ext <<_ACEOF
26333 /* confdefs.h. */
26334 _ACEOF
26335 cat confdefs.h >>conftest.$ac_ext
26336 cat >>conftest.$ac_ext <<_ACEOF
26337 /* end confdefs.h. */
26338 #include <tcl.h>
26339 _ACEOF
26340 if { (ac_try="$ac_cpp conftest.$ac_ext"
26341 case "(($ac_try" in
26342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26343 *) ac_try_echo=$ac_try;;
26344 esac
26345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26346 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26347 ac_status=$?
26348 grep -v '^ *+' conftest.er1 >conftest.err
26349 rm -f conftest.er1
26350 cat conftest.err >&5
26351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26352 (exit $ac_status); } >/dev/null && {
26353 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26354 test ! -s conftest.err
26355 }; then
26356 ac_header_preproc=yes
26357 else
26358 echo "$as_me: failed program was:" >&5
26359 sed 's/^/| /' conftest.$ac_ext >&5
26361 ac_header_preproc=no
26364 rm -f conftest.err conftest.$ac_ext
26365 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26366 echo "${ECHO_T}$ac_header_preproc" >&6; }
26368 # So? What about this header?
26369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26370 yes:no: )
26371 { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
26372 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26373 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
26374 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
26375 ac_header_preproc=yes
26377 no:yes:* )
26378 { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
26379 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
26380 { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
26381 echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
26382 { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
26383 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
26384 { echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
26385 echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
26386 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
26387 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
26388 { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
26389 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
26390 ( cat <<\_ASBOX
26391 ## ---------------------------------------- ##
26392 ## Report this to pgsql-bugs@postgresql.org ##
26393 ## ---------------------------------------- ##
26394 _ASBOX
26395 ) | sed "s/^/$as_me: WARNING: /" >&2
26397 esac
26398 { echo "$as_me:$LINENO: checking for tcl.h" >&5
26399 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
26400 if test "${ac_cv_header_tcl_h+set}" = set; then
26401 echo $ECHO_N "(cached) $ECHO_C" >&6
26402 else
26403 ac_cv_header_tcl_h=$ac_header_preproc
26405 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
26406 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
26409 if test $ac_cv_header_tcl_h = yes; then
26411 else
26412 { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
26413 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
26414 { (exit 1); exit 1; }; }
26418 CPPFLAGS=$ac_save_CPPFLAGS
26422 # Check for DocBook and tools
26424 for ac_prog in onsgmls nsgmls
26426 # Extract the first word of "$ac_prog", so it can be a program name with args.
26427 set dummy $ac_prog; ac_word=$2
26428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26430 if test "${ac_cv_prog_NSGMLS+set}" = set; then
26431 echo $ECHO_N "(cached) $ECHO_C" >&6
26432 else
26433 if test -n "$NSGMLS"; then
26434 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
26435 else
26436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26437 for as_dir in $PATH
26439 IFS=$as_save_IFS
26440 test -z "$as_dir" && as_dir=.
26441 for ac_exec_ext in '' $ac_executable_extensions; do
26442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26443 ac_cv_prog_NSGMLS="$ac_prog"
26444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26445 break 2
26447 done
26448 done
26449 IFS=$as_save_IFS
26453 NSGMLS=$ac_cv_prog_NSGMLS
26454 if test -n "$NSGMLS"; then
26455 { echo "$as_me:$LINENO: result: $NSGMLS" >&5
26456 echo "${ECHO_T}$NSGMLS" >&6; }
26457 else
26458 { echo "$as_me:$LINENO: result: no" >&5
26459 echo "${ECHO_T}no" >&6; }
26463 test -n "$NSGMLS" && break
26464 done
26466 for ac_prog in openjade jade
26468 # Extract the first word of "$ac_prog", so it can be a program name with args.
26469 set dummy $ac_prog; ac_word=$2
26470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26472 if test "${ac_cv_prog_JADE+set}" = set; then
26473 echo $ECHO_N "(cached) $ECHO_C" >&6
26474 else
26475 if test -n "$JADE"; then
26476 ac_cv_prog_JADE="$JADE" # Let the user override the test.
26477 else
26478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26479 for as_dir in $PATH
26481 IFS=$as_save_IFS
26482 test -z "$as_dir" && as_dir=.
26483 for ac_exec_ext in '' $ac_executable_extensions; do
26484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26485 ac_cv_prog_JADE="$ac_prog"
26486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26487 break 2
26489 done
26490 done
26491 IFS=$as_save_IFS
26495 JADE=$ac_cv_prog_JADE
26496 if test -n "$JADE"; then
26497 { echo "$as_me:$LINENO: result: $JADE" >&5
26498 echo "${ECHO_T}$JADE" >&6; }
26499 else
26500 { echo "$as_me:$LINENO: result: no" >&5
26501 echo "${ECHO_T}no" >&6; }
26505 test -n "$JADE" && break
26506 done
26509 { echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
26510 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6; }
26511 if test "${pgac_cv_check_docbook+set}" = set; then
26512 echo $ECHO_N "(cached) $ECHO_C" >&6
26513 else
26514 cat >conftest.sgml <<EOF
26515 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
26516 <book>
26517 <title>test</title>
26518 <chapter>
26519 <title>random</title>
26520 <sect1>
26521 <title>testsect</title>
26522 <para>text</para>
26523 </sect1>
26524 </chapter>
26525 </book>
26528 pgac_cv_check_docbook=no
26530 if test -n "$NSGMLS"; then
26531 $NSGMLS -s conftest.sgml 1>&5 2>&1
26532 if test $? -eq 0; then
26533 pgac_cv_check_docbook=yes
26536 rm -f conftest.sgml
26538 { echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
26539 echo "${ECHO_T}$pgac_cv_check_docbook" >&6; }
26541 have_docbook=$pgac_cv_check_docbook
26544 { echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
26545 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6; }
26546 if test "${pgac_cv_path_stylesheets+set}" = set; then
26547 echo $ECHO_N "(cached) $ECHO_C" >&6
26548 else
26549 if test -n "$DOCBOOKSTYLE"; then
26550 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
26551 else
26552 for pgac_prefix in /usr /usr/local /opt /sw; do
26553 for pgac_infix in share lib; do
26554 for pgac_postfix in \
26555 sgml/stylesheets/nwalsh-modular \
26556 sgml/stylesheets/docbook \
26557 sgml/stylesheets/dsssl/docbook \
26558 sgml/docbook-dsssl \
26559 sgml/docbook/dsssl/modular \
26560 sgml/docbook/stylesheet/dsssl/modular \
26561 sgml/docbook/dsssl-stylesheets \
26562 sgml/dsssl/docbook-dsssl-nwalsh
26564 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
26565 if test -r "$pgac_candidate/html/docbook.dsl" \
26566 && test -r "$pgac_candidate/print/docbook.dsl"
26567 then
26568 pgac_cv_path_stylesheets=$pgac_candidate
26569 break 3
26571 done
26572 done
26573 done
26577 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
26579 if test -n "$DOCBOOKSTYLE"; then
26580 { echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
26581 echo "${ECHO_T}$DOCBOOKSTYLE" >&6; }
26582 else
26583 { echo "$as_me:$LINENO: result: no" >&5
26584 echo "${ECHO_T}no" >&6; }
26586 if test -n "$DOCBOOKSTYLE"; then
26587 for ac_prog in collateindex.pl
26589 # Extract the first word of "$ac_prog", so it can be a program name with args.
26590 set dummy $ac_prog; ac_word=$2
26591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26593 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
26594 echo $ECHO_N "(cached) $ECHO_C" >&6
26595 else
26596 case $COLLATEINDEX in
26597 [\\/]* | ?:[\\/]*)
26598 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
26601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26602 for as_dir in $DOCBOOKSTYLE/bin $PATH
26604 IFS=$as_save_IFS
26605 test -z "$as_dir" && as_dir=.
26606 for ac_exec_ext in '' $ac_executable_extensions; do
26607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26608 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
26609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26610 break 2
26612 done
26613 done
26614 IFS=$as_save_IFS
26617 esac
26619 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
26620 if test -n "$COLLATEINDEX"; then
26621 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
26622 echo "${ECHO_T}$COLLATEINDEX" >&6; }
26623 else
26624 { echo "$as_me:$LINENO: result: no" >&5
26625 echo "${ECHO_T}no" >&6; }
26629 test -n "$COLLATEINDEX" && break
26630 done
26632 else
26633 for ac_prog in collateindex.pl
26635 # Extract the first word of "$ac_prog", so it can be a program name with args.
26636 set dummy $ac_prog; ac_word=$2
26637 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26639 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
26640 echo $ECHO_N "(cached) $ECHO_C" >&6
26641 else
26642 case $COLLATEINDEX in
26643 [\\/]* | ?:[\\/]*)
26644 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
26647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26648 for as_dir in $PATH
26650 IFS=$as_save_IFS
26651 test -z "$as_dir" && as_dir=.
26652 for ac_exec_ext in '' $ac_executable_extensions; do
26653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26654 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
26655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26656 break 2
26658 done
26659 done
26660 IFS=$as_save_IFS
26663 esac
26665 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
26666 if test -n "$COLLATEINDEX"; then
26667 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
26668 echo "${ECHO_T}$COLLATEINDEX" >&6; }
26669 else
26670 { echo "$as_me:$LINENO: result: no" >&5
26671 echo "${ECHO_T}no" >&6; }
26675 test -n "$COLLATEINDEX" && break
26676 done
26679 for ac_prog in sgmlspl
26681 # Extract the first word of "$ac_prog", so it can be a program name with args.
26682 set dummy $ac_prog; ac_word=$2
26683 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26685 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
26686 echo $ECHO_N "(cached) $ECHO_C" >&6
26687 else
26688 if test -n "$SGMLSPL"; then
26689 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
26690 else
26691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26692 for as_dir in $PATH
26694 IFS=$as_save_IFS
26695 test -z "$as_dir" && as_dir=.
26696 for ac_exec_ext in '' $ac_executable_extensions; do
26697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26698 ac_cv_prog_SGMLSPL="$ac_prog"
26699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26700 break 2
26702 done
26703 done
26704 IFS=$as_save_IFS
26708 SGMLSPL=$ac_cv_prog_SGMLSPL
26709 if test -n "$SGMLSPL"; then
26710 { echo "$as_me:$LINENO: result: $SGMLSPL" >&5
26711 echo "${ECHO_T}$SGMLSPL" >&6; }
26712 else
26713 { echo "$as_me:$LINENO: result: no" >&5
26714 echo "${ECHO_T}no" >&6; }
26718 test -n "$SGMLSPL" && break
26719 done
26721 { echo "$as_me:$LINENO: checking for docbook2man" >&5
26722 echo $ECHO_N "checking for docbook2man... $ECHO_C" >&6; }
26723 if test "${ac_cv_path_DOCBOOK2MAN+set}" = set; then
26724 echo $ECHO_N "(cached) $ECHO_C" >&6
26725 else
26726 if test -z "$DOCBOOK2MAN"; then
26727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26728 for as_dir in $PATH
26730 IFS=$as_save_IFS
26731 test -z "$as_dir" && as_dir=.
26732 for ac_prog in docbook2x-man db2x_docbook2man docbook2man; do
26733 ac_path="$as_dir/$ac_prog"
26734 { test -f "$ac_path" && $as_test_x "$ac_path"; } || continue
26735 if "$ac_path" --version 2>/dev/null | $GREP docbook2x >/dev/null 2>&1; then
26736 ac_cv_path_DOCBOOK2MAN=$ac_path
26737 break
26739 done
26740 done
26741 IFS=$as_save_IFS
26743 else
26744 ac_cv_path_DOCBOOK2MAN=$DOCBOOK2MAN
26747 { echo "$as_me:$LINENO: result: $ac_cv_path_DOCBOOK2MAN" >&5
26748 echo "${ECHO_T}$ac_cv_path_DOCBOOK2MAN" >&6; }
26749 DOCBOOK2MAN=$ac_cv_path_DOCBOOK2MAN
26753 # Thread testing
26755 # We have to run the thread test near the end so we have all our symbols
26756 # defined. Cross compiling throws a warning.
26758 if test "$enable_thread_safety_force" = yes; then
26759 if test "$PORTNAME" != "win32"
26760 then
26761 { echo "$as_me:$LINENO: WARNING:
26762 *** Skipping thread test program. --enable-thread-safety-force was used.
26763 *** Run the program in src/test/thread on the your machine and add proper
26764 *** locking function calls to your applications to guarantee thread safety.
26765 " >&5
26766 echo "$as_me: WARNING:
26767 *** Skipping thread test program. --enable-thread-safety-force was used.
26768 *** Run the program in src/test/thread on the your machine and add proper
26769 *** locking function calls to your applications to guarantee thread safety.
26770 " >&2;}
26771 else
26772 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
26773 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
26775 elif test "$enable_thread_safety" = yes; then
26776 if test "$PORTNAME" != "win32"
26777 then
26778 { echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
26779 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6; }
26781 _CFLAGS="$CFLAGS"
26782 _LIBS="$LIBS"
26783 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
26784 LIBS="$LIBS $PTHREAD_LIBS"
26785 if test "$cross_compiling" = yes; then
26786 { echo "$as_me:$LINENO: result: maybe" >&5
26787 echo "${ECHO_T}maybe" >&6; }
26788 { echo "$as_me:$LINENO: WARNING:
26789 *** Skipping thread test program because of cross-compile build.
26790 *** Run the program in src/test/thread on the target machine.
26791 " >&5
26792 echo "$as_me: WARNING:
26793 *** Skipping thread test program because of cross-compile build.
26794 *** Run the program in src/test/thread on the target machine.
26795 " >&2;}
26796 else
26797 cat >conftest.$ac_ext <<_ACEOF
26798 /* confdefs.h. */
26799 _ACEOF
26800 cat confdefs.h >>conftest.$ac_ext
26801 cat >>conftest.$ac_ext <<_ACEOF
26802 /* end confdefs.h. */
26803 #include "$srcdir/src/test/thread/thread_test.c"
26804 _ACEOF
26805 rm -f conftest$ac_exeext
26806 if { (ac_try="$ac_link"
26807 case "(($ac_try" in
26808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26809 *) ac_try_echo=$ac_try;;
26810 esac
26811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26812 (eval "$ac_link") 2>&5
26813 ac_status=$?
26814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26815 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26816 { (case "(($ac_try" in
26817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26818 *) ac_try_echo=$ac_try;;
26819 esac
26820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26821 (eval "$ac_try") 2>&5
26822 ac_status=$?
26823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26824 (exit $ac_status); }; }; then
26825 { echo "$as_me:$LINENO: result: yes" >&5
26826 echo "${ECHO_T}yes" >&6; }
26827 else
26828 echo "$as_me: program exited with status $ac_status" >&5
26829 echo "$as_me: failed program was:" >&5
26830 sed 's/^/| /' conftest.$ac_ext >&5
26832 ( exit $ac_status )
26833 { echo "$as_me:$LINENO: result: no" >&5
26834 echo "${ECHO_T}no" >&6; }
26835 { { echo "$as_me:$LINENO: error: thread test program failed
26836 This platform is not thread-safe. Check the file 'config.log' for the
26837 exact reason.
26839 You can use the configure option --enable-thread-safety-force to force
26840 threads to be enabled. But you must then run the program in
26841 src/test/thread and add locking function calls to your applications to
26842 guarantee thread safety." >&5
26843 echo "$as_me: error: thread test program failed
26844 This platform is not thread-safe. Check the file 'config.log' for the
26845 exact reason.
26847 You can use the configure option --enable-thread-safety-force to force
26848 threads to be enabled. But you must then run the program in
26849 src/test/thread and add locking function calls to your applications to
26850 guarantee thread safety." >&2;}
26851 { (exit 1); exit 1; }; }
26853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26857 CFLAGS="$_CFLAGS"
26858 LIBS="$_LIBS"
26859 else
26860 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
26861 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
26865 # If compiler will take -Wl,--as-needed then add that to LDFLAGS.
26866 # This is much easier than trying to filter LIBS to the minimum for each
26867 # executable. (Note that shared library links won't use this switch, though.)
26868 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
26869 # libreadline; therefore we postpone testing it until we know what library
26870 # dependencies readline has. The test code will try to link with $LIBS.
26871 if test "$with_readline" = yes; then
26872 link_test_func=readline
26873 else
26874 link_test_func=exit
26876 if test "$PORTNAME" != "darwin"; then
26877 { echo "$as_me:$LINENO: checking if $CC supports -Wl,--as-needed" >&5
26878 echo $ECHO_N "checking if $CC supports -Wl,--as-needed... $ECHO_C" >&6; }
26879 pgac_save_LDFLAGS=$LDFLAGS
26880 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
26881 if test "$cross_compiling" = yes; then
26882 LDFLAGS="$pgac_save_LDFLAGS"
26883 { echo "$as_me:$LINENO: result: assuming no" >&5
26884 echo "${ECHO_T}assuming no" >&6; }
26885 else
26886 cat >conftest.$ac_ext <<_ACEOF
26887 /* confdefs.h. */
26888 _ACEOF
26889 cat confdefs.h >>conftest.$ac_ext
26890 cat >>conftest.$ac_ext <<_ACEOF
26891 /* end confdefs.h. */
26892 extern void $link_test_func (); void (*fptr) () = $link_test_func;
26894 main ()
26898 return 0;
26900 _ACEOF
26901 rm -f conftest$ac_exeext
26902 if { (ac_try="$ac_link"
26903 case "(($ac_try" in
26904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26905 *) ac_try_echo=$ac_try;;
26906 esac
26907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26908 (eval "$ac_link") 2>&5
26909 ac_status=$?
26910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26911 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26912 { (case "(($ac_try" in
26913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26914 *) ac_try_echo=$ac_try;;
26915 esac
26916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26917 (eval "$ac_try") 2>&5
26918 ac_status=$?
26919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26920 (exit $ac_status); }; }; then
26921 { echo "$as_me:$LINENO: result: yes" >&5
26922 echo "${ECHO_T}yes" >&6; }
26923 else
26924 echo "$as_me: program exited with status $ac_status" >&5
26925 echo "$as_me: failed program was:" >&5
26926 sed 's/^/| /' conftest.$ac_ext >&5
26928 ( exit $ac_status )
26929 LDFLAGS="$pgac_save_LDFLAGS"
26930 { echo "$as_me:$LINENO: result: no" >&5
26931 echo "${ECHO_T}no" >&6; }
26933 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26938 else
26939 # On Darwin it's spelled -Wl,-dead_strip_dylibs, but don't try that elsewhere
26940 { echo "$as_me:$LINENO: checking if $CC supports -Wl,-dead_strip_dylibs" >&5
26941 echo $ECHO_N "checking if $CC supports -Wl,-dead_strip_dylibs... $ECHO_C" >&6; }
26942 pgac_save_LDFLAGS=$LDFLAGS
26943 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
26944 if test "$cross_compiling" = yes; then
26945 LDFLAGS="$pgac_save_LDFLAGS"
26946 { echo "$as_me:$LINENO: result: assuming no" >&5
26947 echo "${ECHO_T}assuming no" >&6; }
26948 else
26949 cat >conftest.$ac_ext <<_ACEOF
26950 /* confdefs.h. */
26951 _ACEOF
26952 cat confdefs.h >>conftest.$ac_ext
26953 cat >>conftest.$ac_ext <<_ACEOF
26954 /* end confdefs.h. */
26955 extern void $link_test_func (); void (*fptr) () = $link_test_func;
26957 main ()
26961 return 0;
26963 _ACEOF
26964 rm -f conftest$ac_exeext
26965 if { (ac_try="$ac_link"
26966 case "(($ac_try" in
26967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26968 *) ac_try_echo=$ac_try;;
26969 esac
26970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26971 (eval "$ac_link") 2>&5
26972 ac_status=$?
26973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26974 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26975 { (case "(($ac_try" in
26976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26977 *) ac_try_echo=$ac_try;;
26978 esac
26979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26980 (eval "$ac_try") 2>&5
26981 ac_status=$?
26982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26983 (exit $ac_status); }; }; then
26984 { echo "$as_me:$LINENO: result: yes" >&5
26985 echo "${ECHO_T}yes" >&6; }
26986 else
26987 echo "$as_me: program exited with status $ac_status" >&5
26988 echo "$as_me: failed program was:" >&5
26989 sed 's/^/| /' conftest.$ac_ext >&5
26991 ( exit $ac_status )
26992 LDFLAGS="$pgac_save_LDFLAGS"
26993 { echo "$as_me:$LINENO: result: no" >&5
26994 echo "${ECHO_T}no" >&6; }
26996 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27004 # Begin output steps
27006 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
27007 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
27008 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
27009 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
27010 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
27011 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
27013 # Create compiler version string
27014 if test x"$GCC" = x"yes" ; then
27015 cc_string="GCC `${CC} --version | sed q`"
27016 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
27017 cc_string=`${CC} -V 2>&1 | sed q`
27018 else
27019 cc_string=$CC
27023 cat >>confdefs.h <<_ACEOF
27024 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
27025 _ACEOF
27028 # Supply a numeric version string for use by 3rd party add-ons
27029 # awk -F is a regex on some platforms, and not on others, so make "." a tab
27030 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
27031 tr '.' ' ' |
27032 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
27034 cat >>confdefs.h <<_ACEOF
27035 #define PG_VERSION_NUM $PG_VERSION_NUM
27036 _ACEOF
27040 # prepare build tree if outside source tree
27041 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
27042 # Note 2: /bin/pwd might be better than shell's built-in at getting
27043 # a symlink-free name.
27044 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
27045 vpath_build=no
27046 else
27047 vpath_build=yes
27048 if test "$no_create" != yes; then
27049 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
27050 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
27051 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
27052 || { { echo "$as_me:$LINENO: error: failed" >&5
27053 echo "$as_me: error: failed" >&2;}
27054 { (exit 1); exit 1; }; }
27055 { echo "$as_me:$LINENO: result: done" >&5
27056 echo "${ECHO_T}done" >&6; }
27062 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
27065 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}"
27068 if test "$PORTNAME" = "win32"; then
27069 ac_config_commands="$ac_config_commands check_win32_symlinks"
27073 ac_config_headers="$ac_config_headers src/include/pg_config.h"
27076 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
27079 cat >confcache <<\_ACEOF
27080 # This file is a shell script that caches the results of configure
27081 # tests run on this system so they can be shared between configure
27082 # scripts and configure runs, see configure's option --config-cache.
27083 # It is not useful on other systems. If it contains results you don't
27084 # want to keep, you may remove or edit it.
27086 # config.status only pays attention to the cache file if you give it
27087 # the --recheck option to rerun configure.
27089 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27090 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27091 # following values.
27093 _ACEOF
27095 # The following way of writing the cache mishandles newlines in values,
27096 # but we know of no workaround that is simple, portable, and efficient.
27097 # So, we kill variables containing newlines.
27098 # Ultrix sh set writes to stderr and can't be redirected directly,
27099 # and sets the high bit in the cache file unless we assign to the vars.
27101 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27102 eval ac_val=\$$ac_var
27103 case $ac_val in #(
27104 *${as_nl}*)
27105 case $ac_var in #(
27106 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27107 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27108 esac
27109 case $ac_var in #(
27110 _ | IFS | as_nl) ;; #(
27111 *) $as_unset $ac_var ;;
27112 esac ;;
27113 esac
27114 done
27116 (set) 2>&1 |
27117 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27118 *${as_nl}ac_space=\ *)
27119 # `set' does not quote correctly, so add quotes (double-quote
27120 # substitution turns \\\\ into \\, and sed turns \\ into \).
27121 sed -n \
27122 "s/'/'\\\\''/g;
27123 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27124 ;; #(
27126 # `set' quotes correctly as required by POSIX, so do not add quotes.
27127 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27129 esac |
27130 sort
27132 sed '
27133 /^ac_cv_env_/b end
27134 t clear
27135 :clear
27136 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27137 t end
27138 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27139 :end' >>confcache
27140 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27141 if test -w "$cache_file"; then
27142 test "x$cache_file" != "x/dev/null" &&
27143 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27144 echo "$as_me: updating cache $cache_file" >&6;}
27145 cat confcache >$cache_file
27146 else
27147 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27148 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27151 rm -f confcache
27153 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27154 # Let make expand exec_prefix.
27155 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27157 DEFS=-DHAVE_CONFIG_H
27159 ac_libobjs=
27160 ac_ltlibobjs=
27161 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27162 # 1. Remove the extension, and $U if already installed.
27163 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27164 ac_i=`echo "$ac_i" | sed "$ac_script"`
27165 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27166 # will be set to the directory where LIBOBJS objects are built.
27167 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27168 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
27169 done
27170 LIBOBJS=$ac_libobjs
27172 LTLIBOBJS=$ac_ltlibobjs
27176 : ${CONFIG_STATUS=./config.status}
27177 ac_clean_files_save=$ac_clean_files
27178 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27179 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27180 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27181 cat >$CONFIG_STATUS <<_ACEOF
27182 #! $SHELL
27183 # Generated by $as_me.
27184 # Run this file to recreate the current configuration.
27185 # Compiler output produced by configure, useful for debugging
27186 # configure, is in config.log if it exists.
27188 debug=false
27189 ac_cs_recheck=false
27190 ac_cs_silent=false
27191 SHELL=\${CONFIG_SHELL-$SHELL}
27192 _ACEOF
27194 cat >>$CONFIG_STATUS <<\_ACEOF
27195 ## --------------------- ##
27196 ## M4sh Initialization. ##
27197 ## --------------------- ##
27199 # Be more Bourne compatible
27200 DUALCASE=1; export DUALCASE # for MKS sh
27201 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27202 emulate sh
27203 NULLCMD=:
27204 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27205 # is contrary to our usage. Disable this feature.
27206 alias -g '${1+"$@"}'='"$@"'
27207 setopt NO_GLOB_SUBST
27208 else
27209 case `(set -o) 2>/dev/null` in
27210 *posix*) set -o posix ;;
27211 esac
27218 # PATH needs CR
27219 # Avoid depending upon Character Ranges.
27220 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27221 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27222 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27223 as_cr_digits='0123456789'
27224 as_cr_alnum=$as_cr_Letters$as_cr_digits
27226 # The user is always right.
27227 if test "${PATH_SEPARATOR+set}" != set; then
27228 echo "#! /bin/sh" >conf$$.sh
27229 echo "exit 0" >>conf$$.sh
27230 chmod +x conf$$.sh
27231 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27232 PATH_SEPARATOR=';'
27233 else
27234 PATH_SEPARATOR=:
27236 rm -f conf$$.sh
27239 # Support unset when possible.
27240 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27241 as_unset=unset
27242 else
27243 as_unset=false
27247 # IFS
27248 # We need space, tab and new line, in precisely that order. Quoting is
27249 # there to prevent editors from complaining about space-tab.
27250 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27251 # splitting by setting IFS to empty value.)
27252 as_nl='
27254 IFS=" "" $as_nl"
27256 # Find who we are. Look in the path if we contain no directory separator.
27257 case $0 in
27258 *[\\/]* ) as_myself=$0 ;;
27259 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27260 for as_dir in $PATH
27262 IFS=$as_save_IFS
27263 test -z "$as_dir" && as_dir=.
27264 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27265 done
27266 IFS=$as_save_IFS
27269 esac
27270 # We did not find ourselves, most probably we were run as `sh COMMAND'
27271 # in which case we are not to be found in the path.
27272 if test "x$as_myself" = x; then
27273 as_myself=$0
27275 if test ! -f "$as_myself"; then
27276 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27277 { (exit 1); exit 1; }
27280 # Work around bugs in pre-3.0 UWIN ksh.
27281 for as_var in ENV MAIL MAILPATH
27282 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27283 done
27284 PS1='$ '
27285 PS2='> '
27286 PS4='+ '
27288 # NLS nuisances.
27289 for as_var in \
27290 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27291 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27292 LC_TELEPHONE LC_TIME
27294 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27295 eval $as_var=C; export $as_var
27296 else
27297 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27299 done
27301 # Required to use basename.
27302 if expr a : '\(a\)' >/dev/null 2>&1 &&
27303 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27304 as_expr=expr
27305 else
27306 as_expr=false
27309 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27310 as_basename=basename
27311 else
27312 as_basename=false
27316 # Name of the executable.
27317 as_me=`$as_basename -- "$0" ||
27318 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27319 X"$0" : 'X\(//\)$' \| \
27320 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27321 echo X/"$0" |
27322 sed '/^.*\/\([^/][^/]*\)\/*$/{
27323 s//\1/
27326 /^X\/\(\/\/\)$/{
27327 s//\1/
27330 /^X\/\(\/\).*/{
27331 s//\1/
27334 s/.*/./; q'`
27336 # CDPATH.
27337 $as_unset CDPATH
27341 as_lineno_1=$LINENO
27342 as_lineno_2=$LINENO
27343 test "x$as_lineno_1" != "x$as_lineno_2" &&
27344 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
27346 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27347 # uniformly replaced by the line number. The first 'sed' inserts a
27348 # line-number line after each line using $LINENO; the second 'sed'
27349 # does the real work. The second script uses 'N' to pair each
27350 # line-number line with the line containing $LINENO, and appends
27351 # trailing '-' during substitution so that $LINENO is not a special
27352 # case at line end.
27353 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27354 # scripts with optimization help from Paolo Bonzini. Blame Lee
27355 # E. McMahon (1931-1989) for sed's syntax. :-)
27356 sed -n '
27358 /[$]LINENO/=
27359 ' <$as_myself |
27360 sed '
27361 s/[$]LINENO.*/&-/
27362 t lineno
27364 :lineno
27366 :loop
27367 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27368 t loop
27369 s/-\n.*//
27370 ' >$as_me.lineno &&
27371 chmod +x "$as_me.lineno" ||
27372 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27373 { (exit 1); exit 1; }; }
27375 # Don't try to exec as it changes $[0], causing all sort of problems
27376 # (the dirname of $[0] is not the place where we might find the
27377 # original and so on. Autoconf is especially sensitive to this).
27378 . "./$as_me.lineno"
27379 # Exit status is that of the last command.
27380 exit
27384 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27385 as_dirname=dirname
27386 else
27387 as_dirname=false
27390 ECHO_C= ECHO_N= ECHO_T=
27391 case `echo -n x` in
27392 -n*)
27393 case `echo 'x\c'` in
27394 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27395 *) ECHO_C='\c';;
27396 esac;;
27398 ECHO_N='-n';;
27399 esac
27401 if expr a : '\(a\)' >/dev/null 2>&1 &&
27402 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27403 as_expr=expr
27404 else
27405 as_expr=false
27408 rm -f conf$$ conf$$.exe conf$$.file
27409 if test -d conf$$.dir; then
27410 rm -f conf$$.dir/conf$$.file
27411 else
27412 rm -f conf$$.dir
27413 mkdir conf$$.dir
27415 echo >conf$$.file
27416 if ln -s conf$$.file conf$$ 2>/dev/null; then
27417 as_ln_s='ln -s'
27418 # ... but there are two gotchas:
27419 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27420 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27421 # In both cases, we have to default to `cp -p'.
27422 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27423 as_ln_s='cp -p'
27424 elif ln conf$$.file conf$$ 2>/dev/null; then
27425 as_ln_s=ln
27426 else
27427 as_ln_s='cp -p'
27429 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27430 rmdir conf$$.dir 2>/dev/null
27432 if mkdir -p . 2>/dev/null; then
27433 as_mkdir_p=:
27434 else
27435 test -d ./-p && rmdir ./-p
27436 as_mkdir_p=false
27439 if test -x / >/dev/null 2>&1; then
27440 as_test_x='test -x'
27441 else
27442 if ls -dL / >/dev/null 2>&1; then
27443 as_ls_L_option=L
27444 else
27445 as_ls_L_option=
27447 as_test_x='
27448 eval sh -c '\''
27449 if test -d "$1"; then
27450 test -d "$1/.";
27451 else
27452 case $1 in
27453 -*)set "./$1";;
27454 esac;
27455 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27456 ???[sx]*):;;*)false;;esac;fi
27457 '\'' sh
27460 as_executable_p=$as_test_x
27462 # Sed expression to map a string onto a valid CPP name.
27463 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27465 # Sed expression to map a string onto a valid variable name.
27466 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27469 exec 6>&1
27471 # Save the log message, to keep $[0] and so on meaningful, and to
27472 # report actual input values of CONFIG_FILES etc. instead of their
27473 # values after options handling.
27474 ac_log="
27475 This file was extended by PostgreSQL $as_me 8.4devel, which was
27476 generated by GNU Autoconf 2.61. Invocation command line was
27478 CONFIG_FILES = $CONFIG_FILES
27479 CONFIG_HEADERS = $CONFIG_HEADERS
27480 CONFIG_LINKS = $CONFIG_LINKS
27481 CONFIG_COMMANDS = $CONFIG_COMMANDS
27482 $ $0 $@
27484 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27487 _ACEOF
27489 cat >>$CONFIG_STATUS <<_ACEOF
27490 # Files that config.status was made for.
27491 config_files="$ac_config_files"
27492 config_headers="$ac_config_headers"
27493 config_links="$ac_config_links"
27494 config_commands="$ac_config_commands"
27496 _ACEOF
27498 cat >>$CONFIG_STATUS <<\_ACEOF
27499 ac_cs_usage="\
27500 \`$as_me' instantiates files from templates according to the
27501 current configuration.
27503 Usage: $0 [OPTIONS] [FILE]...
27505 -h, --help print this help, then exit
27506 -V, --version print version number and configuration settings, then exit
27507 -q, --quiet do not print progress messages
27508 -d, --debug don't remove temporary files
27509 --recheck update $as_me by reconfiguring in the same conditions
27510 --file=FILE[:TEMPLATE]
27511 instantiate the configuration file FILE
27512 --header=FILE[:TEMPLATE]
27513 instantiate the configuration header FILE
27515 Configuration files:
27516 $config_files
27518 Configuration headers:
27519 $config_headers
27521 Configuration links:
27522 $config_links
27524 Configuration commands:
27525 $config_commands
27527 Report bugs to <bug-autoconf@gnu.org>."
27529 _ACEOF
27530 cat >>$CONFIG_STATUS <<_ACEOF
27531 ac_cs_version="\\
27532 PostgreSQL config.status 8.4devel
27533 configured by $0, generated by GNU Autoconf 2.61,
27534 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27536 Copyright (C) 2006 Free Software Foundation, Inc.
27537 This config.status script is free software; the Free Software Foundation
27538 gives unlimited permission to copy, distribute and modify it."
27540 ac_pwd='$ac_pwd'
27541 srcdir='$srcdir'
27542 _ACEOF
27544 cat >>$CONFIG_STATUS <<\_ACEOF
27545 # If no file are specified by the user, then we need to provide default
27546 # value. By we need to know if files were specified by the user.
27547 ac_need_defaults=:
27548 while test $# != 0
27550 case $1 in
27551 --*=*)
27552 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27553 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27554 ac_shift=:
27557 ac_option=$1
27558 ac_optarg=$2
27559 ac_shift=shift
27561 esac
27563 case $ac_option in
27564 # Handling of the options.
27565 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27566 ac_cs_recheck=: ;;
27567 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27568 echo "$ac_cs_version"; exit ;;
27569 --debug | --debu | --deb | --de | --d | -d )
27570 debug=: ;;
27571 --file | --fil | --fi | --f )
27572 $ac_shift
27573 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27574 ac_need_defaults=false;;
27575 --header | --heade | --head | --hea )
27576 $ac_shift
27577 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27578 ac_need_defaults=false;;
27579 --he | --h)
27580 # Conflict between --help and --header
27581 { echo "$as_me: error: ambiguous option: $1
27582 Try \`$0 --help' for more information." >&2
27583 { (exit 1); exit 1; }; };;
27584 --help | --hel | -h )
27585 echo "$ac_cs_usage"; exit ;;
27586 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27587 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27588 ac_cs_silent=: ;;
27590 # This is an error.
27591 -*) { echo "$as_me: error: unrecognized option: $1
27592 Try \`$0 --help' for more information." >&2
27593 { (exit 1); exit 1; }; } ;;
27595 *) ac_config_targets="$ac_config_targets $1"
27596 ac_need_defaults=false ;;
27598 esac
27599 shift
27600 done
27602 ac_configure_extra_args=
27604 if $ac_cs_silent; then
27605 exec 6>/dev/null
27606 ac_configure_extra_args="$ac_configure_extra_args --silent"
27609 _ACEOF
27610 cat >>$CONFIG_STATUS <<_ACEOF
27611 if \$ac_cs_recheck; then
27612 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27613 CONFIG_SHELL=$SHELL
27614 export CONFIG_SHELL
27615 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27618 _ACEOF
27619 cat >>$CONFIG_STATUS <<\_ACEOF
27620 exec 5>>config.log
27622 echo
27623 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27624 ## Running $as_me. ##
27625 _ASBOX
27626 echo "$ac_log"
27627 } >&5
27629 _ACEOF
27630 cat >>$CONFIG_STATUS <<_ACEOF
27631 _ACEOF
27633 cat >>$CONFIG_STATUS <<\_ACEOF
27635 # Handling of arguments.
27636 for ac_config_target in $ac_config_targets
27638 case $ac_config_target in
27639 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
27640 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
27641 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
27642 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
27643 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
27644 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
27645 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
27646 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
27647 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
27648 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
27649 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
27650 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
27652 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27653 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27654 { (exit 1); exit 1; }; };;
27655 esac
27656 done
27659 # If the user did not use the arguments to specify the items to instantiate,
27660 # then the envvar interface is used. Set only those that are not.
27661 # We use the long form for the default assignment because of an extremely
27662 # bizarre bug on SunOS 4.1.3.
27663 if $ac_need_defaults; then
27664 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27665 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27666 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
27667 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27670 # Have a temporary directory for convenience. Make it in the build tree
27671 # simply because there is no reason against having it here, and in addition,
27672 # creating and moving files from /tmp can sometimes cause problems.
27673 # Hook for its removal unless debugging.
27674 # Note that there is a small window in which the directory will not be cleaned:
27675 # after its creation but before its name has been assigned to `$tmp'.
27676 $debug ||
27678 tmp=
27679 trap 'exit_status=$?
27680 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27682 trap '{ (exit 1); exit 1; }' 1 2 13 15
27684 # Create a (secure) tmp directory for tmp files.
27687 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27688 test -n "$tmp" && test -d "$tmp"
27689 } ||
27691 tmp=./conf$$-$RANDOM
27692 (umask 077 && mkdir "$tmp")
27693 } ||
27695 echo "$me: cannot create a temporary directory in ." >&2
27696 { (exit 1); exit 1; }
27700 # Set up the sed scripts for CONFIG_FILES section.
27703 # No need to generate the scripts if there are no CONFIG_FILES.
27704 # This happens for instance when ./config.status config.h
27705 if test -n "$CONFIG_FILES"; then
27707 _ACEOF
27711 ac_delim='%!_!# '
27712 for ac_last_try in false false false false false :; do
27713 cat >conf$$subs.sed <<_ACEOF
27714 SHELL!$SHELL$ac_delim
27715 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27716 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27717 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27718 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27719 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27720 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27721 exec_prefix!$exec_prefix$ac_delim
27722 prefix!$prefix$ac_delim
27723 program_transform_name!$program_transform_name$ac_delim
27724 bindir!$bindir$ac_delim
27725 sbindir!$sbindir$ac_delim
27726 libexecdir!$libexecdir$ac_delim
27727 datarootdir!$datarootdir$ac_delim
27728 datadir!$datadir$ac_delim
27729 sysconfdir!$sysconfdir$ac_delim
27730 sharedstatedir!$sharedstatedir$ac_delim
27731 localstatedir!$localstatedir$ac_delim
27732 includedir!$includedir$ac_delim
27733 oldincludedir!$oldincludedir$ac_delim
27734 docdir!$docdir$ac_delim
27735 infodir!$infodir$ac_delim
27736 htmldir!$htmldir$ac_delim
27737 dvidir!$dvidir$ac_delim
27738 pdfdir!$pdfdir$ac_delim
27739 psdir!$psdir$ac_delim
27740 libdir!$libdir$ac_delim
27741 localedir!$localedir$ac_delim
27742 mandir!$mandir$ac_delim
27743 DEFS!$DEFS$ac_delim
27744 ECHO_C!$ECHO_C$ac_delim
27745 ECHO_N!$ECHO_N$ac_delim
27746 ECHO_T!$ECHO_T$ac_delim
27747 LIBS!$LIBS$ac_delim
27748 build_alias!$build_alias$ac_delim
27749 host_alias!$host_alias$ac_delim
27750 target_alias!$target_alias$ac_delim
27751 configure_args!$configure_args$ac_delim
27752 PG_MAJORVERSION!$PG_MAJORVERSION$ac_delim
27753 build!$build$ac_delim
27754 build_cpu!$build_cpu$ac_delim
27755 build_vendor!$build_vendor$ac_delim
27756 build_os!$build_os$ac_delim
27757 host!$host$ac_delim
27758 host_cpu!$host_cpu$ac_delim
27759 host_vendor!$host_vendor$ac_delim
27760 host_os!$host_os$ac_delim
27761 PORTNAME!$PORTNAME$ac_delim
27762 enable_nls!$enable_nls$ac_delim
27763 WANTED_LANGUAGES!$WANTED_LANGUAGES$ac_delim
27764 default_port!$default_port$ac_delim
27765 enable_shared!$enable_shared$ac_delim
27766 enable_rpath!$enable_rpath$ac_delim
27767 enable_debug!$enable_debug$ac_delim
27768 enable_profiling!$enable_profiling$ac_delim
27769 GCOV!$GCOV$ac_delim
27770 LCOV!$LCOV$ac_delim
27771 GENHTML!$GENHTML$ac_delim
27772 enable_coverage!$enable_coverage$ac_delim
27773 DTRACE!$DTRACE$ac_delim
27774 DTRACEFLAGS!$DTRACEFLAGS$ac_delim
27775 enable_dtrace!$enable_dtrace$ac_delim
27776 CC!$CC$ac_delim
27777 CFLAGS!$CFLAGS$ac_delim
27778 LDFLAGS!$LDFLAGS$ac_delim
27779 CPPFLAGS!$CPPFLAGS$ac_delim
27780 ac_ct_CC!$ac_ct_CC$ac_delim
27781 EXEEXT!$EXEEXT$ac_delim
27782 OBJEXT!$OBJEXT$ac_delim
27783 SUN_STUDIO_CC!$SUN_STUDIO_CC$ac_delim
27784 CPP!$CPP$ac_delim
27785 GCC!$GCC$ac_delim
27786 TAS!$TAS$ac_delim
27787 autodepend!$autodepend$ac_delim
27788 INCLUDES!$INCLUDES$ac_delim
27789 enable_thread_safety!$enable_thread_safety$ac_delim
27790 with_tcl!$with_tcl$ac_delim
27791 with_perl!$with_perl$ac_delim
27792 with_python!$with_python$ac_delim
27793 with_gssapi!$with_gssapi$ac_delim
27794 with_krb5!$with_krb5$ac_delim
27795 krb_srvtab!$krb_srvtab$ac_delim
27796 with_pam!$with_pam$ac_delim
27797 with_ldap!$with_ldap$ac_delim
27798 with_bonjour!$with_bonjour$ac_delim
27799 with_openssl!$with_openssl$ac_delim
27800 with_ossp_uuid!$with_ossp_uuid$ac_delim
27801 XML2_CONFIG!$XML2_CONFIG$ac_delim
27802 with_libxml!$with_libxml$ac_delim
27803 with_libxslt!$with_libxslt$ac_delim
27804 with_system_tzdata!$with_system_tzdata$ac_delim
27805 with_zlib!$with_zlib$ac_delim
27806 GREP!$GREP$ac_delim
27807 EGREP!$EGREP$ac_delim
27808 ELF_SYS!$ELF_SYS$ac_delim
27809 LDFLAGS_SL!$LDFLAGS_SL$ac_delim
27810 LD!$LD$ac_delim
27811 _ACEOF
27813 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27814 break
27815 elif $ac_last_try; then
27816 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27817 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27818 { (exit 1); exit 1; }; }
27819 else
27820 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27822 done
27824 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27825 if test -n "$ac_eof"; then
27826 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27827 ac_eof=`expr $ac_eof + 1`
27830 cat >>$CONFIG_STATUS <<_ACEOF
27831 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27832 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27833 _ACEOF
27834 sed '
27835 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27836 s/^/s,@/; s/!/@,|#_!!_#|/
27839 s/'"$ac_delim"'$/,g/; t
27840 s/$/\\/; p
27841 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27842 ' >>$CONFIG_STATUS <conf$$subs.sed
27843 rm -f conf$$subs.sed
27844 cat >>$CONFIG_STATUS <<_ACEOF
27845 CEOF$ac_eof
27846 _ACEOF
27849 ac_delim='%!_!# '
27850 for ac_last_try in false false false false false :; do
27851 cat >conf$$subs.sed <<_ACEOF
27852 with_gnu_ld!$with_gnu_ld$ac_delim
27853 ld_R_works!$ld_R_works$ac_delim
27854 RANLIB!$RANLIB$ac_delim
27855 STRIP!$STRIP$ac_delim
27856 STRIP_STATIC_LIB!$STRIP_STATIC_LIB$ac_delim
27857 STRIP_SHARED_LIB!$STRIP_SHARED_LIB$ac_delim
27858 AR!$AR$ac_delim
27859 DLLTOOL!$DLLTOOL$ac_delim
27860 DLLWRAP!$DLLWRAP$ac_delim
27861 WINDRES!$WINDRES$ac_delim
27862 TAR!$TAR$ac_delim
27863 LN_S!$LN_S$ac_delim
27864 AWK!$AWK$ac_delim
27865 BISON!$BISON$ac_delim
27866 BISONFLAGS!$BISONFLAGS$ac_delim
27867 FLEX!$FLEX$ac_delim
27868 FLEXFLAGS!$FLEXFLAGS$ac_delim
27869 PERL!$PERL$ac_delim
27870 perl_archlibexp!$perl_archlibexp$ac_delim
27871 perl_privlibexp!$perl_privlibexp$ac_delim
27872 perl_useshrplib!$perl_useshrplib$ac_delim
27873 perl_embed_ldflags!$perl_embed_ldflags$ac_delim
27874 PYTHON!$PYTHON$ac_delim
27875 python_version!$python_version$ac_delim
27876 python_configdir!$python_configdir$ac_delim
27877 python_includespec!$python_includespec$ac_delim
27878 python_libdir!$python_libdir$ac_delim
27879 python_libspec!$python_libspec$ac_delim
27880 python_additional_libs!$python_additional_libs$ac_delim
27881 ZIC!$ZIC$ac_delim
27882 OSSP_UUID_LIBS!$OSSP_UUID_LIBS$ac_delim
27883 HAVE_IPV6!$HAVE_IPV6$ac_delim
27884 LIBOBJS!$LIBOBJS$ac_delim
27885 acx_pthread_config!$acx_pthread_config$ac_delim
27886 PTHREAD_CC!$PTHREAD_CC$ac_delim
27887 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
27888 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
27889 LDAP_LIBS_FE!$LDAP_LIBS_FE$ac_delim
27890 LDAP_LIBS_BE!$LDAP_LIBS_BE$ac_delim
27891 HAVE_POSIX_SIGNALS!$HAVE_POSIX_SIGNALS$ac_delim
27892 MSGFMT!$MSGFMT$ac_delim
27893 MSGMERGE!$MSGMERGE$ac_delim
27894 XGETTEXT!$XGETTEXT$ac_delim
27895 TCLSH!$TCLSH$ac_delim
27896 TCL_CONFIG_SH!$TCL_CONFIG_SH$ac_delim
27897 TCL_INCLUDE_SPEC!$TCL_INCLUDE_SPEC$ac_delim
27898 TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim
27899 TCL_LIBS!$TCL_LIBS$ac_delim
27900 TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim
27901 TCL_SHARED_BUILD!$TCL_SHARED_BUILD$ac_delim
27902 TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim
27903 NSGMLS!$NSGMLS$ac_delim
27904 JADE!$JADE$ac_delim
27905 have_docbook!$have_docbook$ac_delim
27906 DOCBOOKSTYLE!$DOCBOOKSTYLE$ac_delim
27907 COLLATEINDEX!$COLLATEINDEX$ac_delim
27908 SGMLSPL!$SGMLSPL$ac_delim
27909 DOCBOOK2MAN!$DOCBOOK2MAN$ac_delim
27910 vpath_build!$vpath_build$ac_delim
27911 LTLIBOBJS!$LTLIBOBJS$ac_delim
27912 _ACEOF
27914 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 60; then
27915 break
27916 elif $ac_last_try; then
27917 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27918 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27919 { (exit 1); exit 1; }; }
27920 else
27921 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27923 done
27925 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27926 if test -n "$ac_eof"; then
27927 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27928 ac_eof=`expr $ac_eof + 1`
27931 cat >>$CONFIG_STATUS <<_ACEOF
27932 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27933 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27934 _ACEOF
27935 sed '
27936 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27937 s/^/s,@/; s/!/@,|#_!!_#|/
27940 s/'"$ac_delim"'$/,g/; t
27941 s/$/\\/; p
27942 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27943 ' >>$CONFIG_STATUS <conf$$subs.sed
27944 rm -f conf$$subs.sed
27945 cat >>$CONFIG_STATUS <<_ACEOF
27946 :end
27947 s/|#_!!_#|//g
27948 CEOF$ac_eof
27949 _ACEOF
27952 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27953 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27954 # trailing colons and then remove the whole line if VPATH becomes empty
27955 # (actually we leave an empty line to preserve line numbers).
27956 if test "x$srcdir" = x.; then
27957 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27958 s/:*\$(srcdir):*/:/
27959 s/:*\${srcdir}:*/:/
27960 s/:*@srcdir@:*/:/
27961 s/^\([^=]*=[ ]*\):*/\1/
27962 s/:*$//
27963 s/^[^=]*=[ ]*$//
27967 cat >>$CONFIG_STATUS <<\_ACEOF
27968 fi # test -n "$CONFIG_FILES"
27971 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS
27973 case $ac_tag in
27974 :[FHLC]) ac_mode=$ac_tag; continue;;
27975 esac
27976 case $ac_mode$ac_tag in
27977 :[FHL]*:*);;
27978 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27979 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27980 { (exit 1); exit 1; }; };;
27981 :[FH]-) ac_tag=-:-;;
27982 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27983 esac
27984 ac_save_IFS=$IFS
27985 IFS=:
27986 set x $ac_tag
27987 IFS=$ac_save_IFS
27988 shift
27989 ac_file=$1
27990 shift
27992 case $ac_mode in
27993 :L) ac_source=$1;;
27994 :[FH])
27995 ac_file_inputs=
27996 for ac_f
27998 case $ac_f in
27999 -) ac_f="$tmp/stdin";;
28000 *) # Look for the file first in the build tree, then in the source tree
28001 # (if the path is not absolute). The absolute path cannot be DOS-style,
28002 # because $ac_f cannot contain `:'.
28003 test -f "$ac_f" ||
28004 case $ac_f in
28005 [\\/$]*) false;;
28006 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28007 esac ||
28008 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
28009 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
28010 { (exit 1); exit 1; }; };;
28011 esac
28012 ac_file_inputs="$ac_file_inputs $ac_f"
28013 done
28015 # Let's still pretend it is `configure' which instantiates (i.e., don't
28016 # use $as_me), people would be surprised to read:
28017 # /* config.h. Generated by config.status. */
28018 configure_input="Generated from "`IFS=:
28019 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
28020 if test x"$ac_file" != x-; then
28021 configure_input="$ac_file. $configure_input"
28022 { echo "$as_me:$LINENO: creating $ac_file" >&5
28023 echo "$as_me: creating $ac_file" >&6;}
28026 case $ac_tag in
28027 *:-:* | *:-) cat >"$tmp/stdin";;
28028 esac
28030 esac
28032 ac_dir=`$as_dirname -- "$ac_file" ||
28033 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28034 X"$ac_file" : 'X\(//\)[^/]' \| \
28035 X"$ac_file" : 'X\(//\)$' \| \
28036 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28037 echo X"$ac_file" |
28038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28039 s//\1/
28042 /^X\(\/\/\)[^/].*/{
28043 s//\1/
28046 /^X\(\/\/\)$/{
28047 s//\1/
28050 /^X\(\/\).*/{
28051 s//\1/
28054 s/.*/./; q'`
28055 { as_dir="$ac_dir"
28056 case $as_dir in #(
28057 -*) as_dir=./$as_dir;;
28058 esac
28059 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28060 as_dirs=
28061 while :; do
28062 case $as_dir in #(
28063 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28064 *) as_qdir=$as_dir;;
28065 esac
28066 as_dirs="'$as_qdir' $as_dirs"
28067 as_dir=`$as_dirname -- "$as_dir" ||
28068 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28069 X"$as_dir" : 'X\(//\)[^/]' \| \
28070 X"$as_dir" : 'X\(//\)$' \| \
28071 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28072 echo X"$as_dir" |
28073 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28074 s//\1/
28077 /^X\(\/\/\)[^/].*/{
28078 s//\1/
28081 /^X\(\/\/\)$/{
28082 s//\1/
28085 /^X\(\/\).*/{
28086 s//\1/
28089 s/.*/./; q'`
28090 test -d "$as_dir" && break
28091 done
28092 test -z "$as_dirs" || eval "mkdir $as_dirs"
28093 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28094 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28095 { (exit 1); exit 1; }; }; }
28096 ac_builddir=.
28098 case "$ac_dir" in
28099 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28101 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28102 # A ".." for each directory in $ac_dir_suffix.
28103 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
28104 case $ac_top_builddir_sub in
28105 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28106 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28107 esac ;;
28108 esac
28109 ac_abs_top_builddir=$ac_pwd
28110 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28111 # for backward compatibility:
28112 ac_top_builddir=$ac_top_build_prefix
28114 case $srcdir in
28115 .) # We are building in place.
28116 ac_srcdir=.
28117 ac_top_srcdir=$ac_top_builddir_sub
28118 ac_abs_top_srcdir=$ac_pwd ;;
28119 [\\/]* | ?:[\\/]* ) # Absolute name.
28120 ac_srcdir=$srcdir$ac_dir_suffix;
28121 ac_top_srcdir=$srcdir
28122 ac_abs_top_srcdir=$srcdir ;;
28123 *) # Relative name.
28124 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28125 ac_top_srcdir=$ac_top_build_prefix$srcdir
28126 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28127 esac
28128 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28131 case $ac_mode in
28134 # CONFIG_FILE
28137 _ACEOF
28139 cat >>$CONFIG_STATUS <<\_ACEOF
28140 # If the template does not know about datarootdir, expand it.
28141 # FIXME: This hack should be removed a few years after 2.60.
28142 ac_datarootdir_hack=; ac_datarootdir_seen=
28144 case `sed -n '/datarootdir/ {
28148 /@datadir@/p
28149 /@docdir@/p
28150 /@infodir@/p
28151 /@localedir@/p
28152 /@mandir@/p
28153 ' $ac_file_inputs` in
28154 *datarootdir*) ac_datarootdir_seen=yes;;
28155 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28156 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28157 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28158 _ACEOF
28159 cat >>$CONFIG_STATUS <<_ACEOF
28160 ac_datarootdir_hack='
28161 s&@datadir@&$datadir&g
28162 s&@docdir@&$docdir&g
28163 s&@infodir@&$infodir&g
28164 s&@localedir@&$localedir&g
28165 s&@mandir@&$mandir&g
28166 s&\\\${datarootdir}&$datarootdir&g' ;;
28167 esac
28168 _ACEOF
28170 # Neutralize VPATH when `$srcdir' = `.'.
28171 # Shell code in configure.ac might set extrasub.
28172 # FIXME: do we really want to maintain this feature?
28173 cat >>$CONFIG_STATUS <<_ACEOF
28174 sed "$ac_vpsub
28175 $extrasub
28176 _ACEOF
28177 cat >>$CONFIG_STATUS <<\_ACEOF
28179 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28180 s&@configure_input@&$configure_input&;t t
28181 s&@top_builddir@&$ac_top_builddir_sub&;t t
28182 s&@srcdir@&$ac_srcdir&;t t
28183 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28184 s&@top_srcdir@&$ac_top_srcdir&;t t
28185 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28186 s&@builddir@&$ac_builddir&;t t
28187 s&@abs_builddir@&$ac_abs_builddir&;t t
28188 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28189 $ac_datarootdir_hack
28190 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
28192 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28193 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28194 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28195 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28196 which seems to be undefined. Please make sure it is defined." >&5
28197 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28198 which seems to be undefined. Please make sure it is defined." >&2;}
28200 rm -f "$tmp/stdin"
28201 case $ac_file in
28202 -) cat "$tmp/out"; rm -f "$tmp/out";;
28203 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
28204 esac
28208 # CONFIG_HEADER
28210 _ACEOF
28212 # Transform confdefs.h into a sed script `conftest.defines', that
28213 # substitutes the proper values into config.h.in to produce config.h.
28214 rm -f conftest.defines conftest.tail
28215 # First, append a space to every undef/define line, to ease matching.
28216 echo 's/$/ /' >conftest.defines
28217 # Then, protect against being on the right side of a sed subst, or in
28218 # an unquoted here document, in config.status. If some macros were
28219 # called several times there might be several #defines for the same
28220 # symbol, which is useless. But do not sort them, since the last
28221 # AC_DEFINE must be honored.
28222 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28223 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
28224 # NAME is the cpp macro being defined, VALUE is the value it is being given.
28225 # PARAMS is the parameter list in the macro definition--in most cases, it's
28226 # just an empty string.
28227 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
28228 ac_dB='\\)[ (].*,\\1define\\2'
28229 ac_dC=' '
28230 ac_dD=' ,'
28232 uniq confdefs.h |
28233 sed -n '
28234 t rset
28235 :rset
28236 s/^[ ]*#[ ]*define[ ][ ]*//
28237 t ok
28240 s/[\\&,]/\\&/g
28241 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
28242 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
28243 ' >>conftest.defines
28245 # Remove the space that was appended to ease matching.
28246 # Then replace #undef with comments. This is necessary, for
28247 # example, in the case of _POSIX_SOURCE, which is predefined and required
28248 # on some systems where configure will not decide to define it.
28249 # (The regexp can be short, since the line contains either #define or #undef.)
28250 echo 's/ $//
28251 s,^[ #]*u.*,/* & */,' >>conftest.defines
28253 # Break up conftest.defines:
28254 ac_max_sed_lines=50
28256 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
28257 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
28258 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
28259 # et cetera.
28260 ac_in='$ac_file_inputs'
28261 ac_out='"$tmp/out1"'
28262 ac_nxt='"$tmp/out2"'
28264 while :
28266 # Write a here document:
28267 cat >>$CONFIG_STATUS <<_ACEOF
28268 # First, check the format of the line:
28269 cat >"\$tmp/defines.sed" <<\\CEOF
28270 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
28271 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
28273 :def
28274 _ACEOF
28275 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
28276 echo 'CEOF
28277 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
28278 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
28279 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
28280 grep . conftest.tail >/dev/null || break
28281 rm -f conftest.defines
28282 mv conftest.tail conftest.defines
28283 done
28284 rm -f conftest.defines conftest.tail
28286 echo "ac_result=$ac_in" >>$CONFIG_STATUS
28287 cat >>$CONFIG_STATUS <<\_ACEOF
28288 if test x"$ac_file" != x-; then
28289 echo "/* $configure_input */" >"$tmp/config.h"
28290 cat "$ac_result" >>"$tmp/config.h"
28291 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
28292 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28293 echo "$as_me: $ac_file is unchanged" >&6;}
28294 else
28295 rm -f $ac_file
28296 mv "$tmp/config.h" $ac_file
28298 else
28299 echo "/* $configure_input */"
28300 cat "$ac_result"
28302 rm -f "$tmp/out12"
28306 # CONFIG_LINK
28309 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
28310 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
28312 if test ! -r "$srcdir/$ac_source"; then
28313 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
28314 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
28315 { (exit 1); exit 1; }; }
28317 rm -f "$ac_file"
28319 # Try a relative symlink, then a hard link, then a copy.
28320 case $srcdir in
28321 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
28322 *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;;
28323 esac
28324 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
28325 ln "$srcdir/$ac_source" "$ac_file" 2>/dev/null ||
28326 cp -p "$srcdir/$ac_source" "$ac_file" ||
28327 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
28328 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
28329 { (exit 1); exit 1; }; }
28331 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
28332 echo "$as_me: executing $ac_file commands" >&6;}
28334 esac
28337 case $ac_file$ac_mode in
28338 "check_win32_symlinks":C)
28339 # Links sometimes fail undetected on Mingw -
28340 # so here we detect it and warn the user
28341 for FILE in $CONFIG_LINKS
28343 # test -e works for symlinks in the MinGW console
28344 test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
28345 echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
28346 done
28348 "src/include/pg_config.h":H)
28349 # Update timestamp for pg_config.h (see Makefile.global)
28350 echo >src/include/stamp-h
28352 "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
28354 esac
28355 done # for ac_tag
28358 { (exit 0); exit 0; }
28359 _ACEOF
28360 chmod +x $CONFIG_STATUS
28361 ac_clean_files=$ac_clean_files_save
28364 # configure is writing to config.log, and then calls config.status.
28365 # config.status does its own redirection, appending to config.log.
28366 # Unfortunately, on DOS this fails, as config.log is still kept open
28367 # by configure, so config.status won't be able to write to it; its
28368 # output is simply discarded. So we exec the FD to /dev/null,
28369 # effectively closing config.log, so it can be properly (re)opened and
28370 # appended to by config.status. When coming back to configure, we
28371 # need to make the FD available again.
28372 if test "$no_create" != yes; then
28373 ac_cs_success=:
28374 ac_config_status_args=
28375 test "$silent" = yes &&
28376 ac_config_status_args="$ac_config_status_args --quiet"
28377 exec 5>/dev/null
28378 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28379 exec 5>>config.log
28380 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28381 # would make configure fail if this is the last instruction.
28382 $ac_cs_success || { (exit 1); exit 1; }
28386 # Warn about unknown options
28387 for pgac_var in `set | sed 's/=.*//' | $EGREP 'with_|enable_'`; do
28388 for pgac_arg in $pgac_args with_gnu_ld; do
28389 if test "$pgac_var" = "$pgac_arg"; then
28390 continue 2
28392 done
28393 pgac_txt=`echo $pgac_var | sed 's/_/-/g'`
28394 { echo "$as_me:$LINENO: WARNING: option ignored: --$pgac_txt" >&5
28395 echo "$as_me: WARNING: option ignored: --$pgac_txt" >&2;}
28396 done