Check nsl library for gethostbyname_r() on all platforms (HP-UX uses it
[PostgreSQL.git] / configure
blob38f24ffa2e22b24c266cae136183e8c8a6aa8e3a
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 *" win32error.$ac_objext "* ) ;;
17924 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
17926 esac
17929 cat >>confdefs.h <<\_ACEOF
17930 #define HAVE_SYMLINK 1
17931 _ACEOF
17935 if test "$with_readline" = yes; then
17936 { echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
17937 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6; }
17938 cat >conftest.$ac_ext <<_ACEOF
17939 /* confdefs.h. */
17940 _ACEOF
17941 cat confdefs.h >>conftest.$ac_ext
17942 cat >>conftest.$ac_ext <<_ACEOF
17943 /* end confdefs.h. */
17944 #include <stdio.h>
17945 #ifdef HAVE_READLINE_READLINE_H
17946 # include <readline/readline.h>
17947 #elif defined(HAVE_READLINE_H)
17948 # include <readline.h>
17949 #endif
17952 main ()
17954 rl_completion_append_character = 'x';
17956 return 0;
17958 _ACEOF
17959 rm -f conftest.$ac_objext conftest$ac_exeext
17960 if { (ac_try="$ac_link"
17961 case "(($ac_try" in
17962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17963 *) ac_try_echo=$ac_try;;
17964 esac
17965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17966 (eval "$ac_link") 2>conftest.er1
17967 ac_status=$?
17968 grep -v '^ *+' conftest.er1 >conftest.err
17969 rm -f conftest.er1
17970 cat conftest.err >&5
17971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972 (exit $ac_status); } && {
17973 test -z "$ac_c_werror_flag" ||
17974 test ! -s conftest.err
17975 } && test -s conftest$ac_exeext &&
17976 $as_test_x conftest$ac_exeext; then
17977 { echo "$as_me:$LINENO: result: yes" >&5
17978 echo "${ECHO_T}yes" >&6; }
17980 cat >>confdefs.h <<\_ACEOF
17981 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
17982 _ACEOF
17984 else
17985 echo "$as_me: failed program was:" >&5
17986 sed 's/^/| /' conftest.$ac_ext >&5
17988 { echo "$as_me:$LINENO: result: no" >&5
17989 echo "${ECHO_T}no" >&6; }
17992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17993 conftest$ac_exeext conftest.$ac_ext
17996 for ac_func in rl_completion_matches rl_filename_completion_function
17998 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17999 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18000 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18001 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18002 echo $ECHO_N "(cached) $ECHO_C" >&6
18003 else
18004 cat >conftest.$ac_ext <<_ACEOF
18005 /* confdefs.h. */
18006 _ACEOF
18007 cat confdefs.h >>conftest.$ac_ext
18008 cat >>conftest.$ac_ext <<_ACEOF
18009 /* end confdefs.h. */
18010 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18011 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18012 #define $ac_func innocuous_$ac_func
18014 /* System header to define __stub macros and hopefully few prototypes,
18015 which can conflict with char $ac_func (); below.
18016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18017 <limits.h> exists even on freestanding compilers. */
18019 #ifdef __STDC__
18020 # include <limits.h>
18021 #else
18022 # include <assert.h>
18023 #endif
18025 #undef $ac_func
18027 /* Override any GCC internal prototype to avoid an error.
18028 Use char because int might match the return type of a GCC
18029 builtin and then its argument prototype would still apply. */
18030 #ifdef __cplusplus
18031 extern "C"
18032 #endif
18033 char $ac_func ();
18034 /* The GNU C library defines this for functions which it implements
18035 to always fail with ENOSYS. Some functions are actually named
18036 something starting with __ and the normal name is an alias. */
18037 #if defined __stub_$ac_func || defined __stub___$ac_func
18038 choke me
18039 #endif
18042 main ()
18044 return $ac_func ();
18046 return 0;
18048 _ACEOF
18049 rm -f conftest.$ac_objext conftest$ac_exeext
18050 if { (ac_try="$ac_link"
18051 case "(($ac_try" in
18052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18053 *) ac_try_echo=$ac_try;;
18054 esac
18055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18056 (eval "$ac_link") 2>conftest.er1
18057 ac_status=$?
18058 grep -v '^ *+' conftest.er1 >conftest.err
18059 rm -f conftest.er1
18060 cat conftest.err >&5
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); } && {
18063 test -z "$ac_c_werror_flag" ||
18064 test ! -s conftest.err
18065 } && test -s conftest$ac_exeext &&
18066 $as_test_x conftest$ac_exeext; then
18067 eval "$as_ac_var=yes"
18068 else
18069 echo "$as_me: failed program was:" >&5
18070 sed 's/^/| /' conftest.$ac_ext >&5
18072 eval "$as_ac_var=no"
18075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18076 conftest$ac_exeext conftest.$ac_ext
18078 ac_res=`eval echo '${'$as_ac_var'}'`
18079 { echo "$as_me:$LINENO: result: $ac_res" >&5
18080 echo "${ECHO_T}$ac_res" >&6; }
18081 if test `eval echo '${'$as_ac_var'}'` = yes; then
18082 cat >>confdefs.h <<_ACEOF
18083 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18084 _ACEOF
18087 done
18090 for ac_func in replace_history_entry
18092 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18093 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18094 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18095 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18096 echo $ECHO_N "(cached) $ECHO_C" >&6
18097 else
18098 cat >conftest.$ac_ext <<_ACEOF
18099 /* confdefs.h. */
18100 _ACEOF
18101 cat confdefs.h >>conftest.$ac_ext
18102 cat >>conftest.$ac_ext <<_ACEOF
18103 /* end confdefs.h. */
18104 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18106 #define $ac_func innocuous_$ac_func
18108 /* System header to define __stub macros and hopefully few prototypes,
18109 which can conflict with char $ac_func (); below.
18110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18111 <limits.h> exists even on freestanding compilers. */
18113 #ifdef __STDC__
18114 # include <limits.h>
18115 #else
18116 # include <assert.h>
18117 #endif
18119 #undef $ac_func
18121 /* Override any GCC internal prototype to avoid an error.
18122 Use char because int might match the return type of a GCC
18123 builtin and then its argument prototype would still apply. */
18124 #ifdef __cplusplus
18125 extern "C"
18126 #endif
18127 char $ac_func ();
18128 /* The GNU C library defines this for functions which it implements
18129 to always fail with ENOSYS. Some functions are actually named
18130 something starting with __ and the normal name is an alias. */
18131 #if defined __stub_$ac_func || defined __stub___$ac_func
18132 choke me
18133 #endif
18136 main ()
18138 return $ac_func ();
18140 return 0;
18142 _ACEOF
18143 rm -f conftest.$ac_objext conftest$ac_exeext
18144 if { (ac_try="$ac_link"
18145 case "(($ac_try" in
18146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18147 *) ac_try_echo=$ac_try;;
18148 esac
18149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18150 (eval "$ac_link") 2>conftest.er1
18151 ac_status=$?
18152 grep -v '^ *+' conftest.er1 >conftest.err
18153 rm -f conftest.er1
18154 cat conftest.err >&5
18155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156 (exit $ac_status); } && {
18157 test -z "$ac_c_werror_flag" ||
18158 test ! -s conftest.err
18159 } && test -s conftest$ac_exeext &&
18160 $as_test_x conftest$ac_exeext; then
18161 eval "$as_ac_var=yes"
18162 else
18163 echo "$as_me: failed program was:" >&5
18164 sed 's/^/| /' conftest.$ac_ext >&5
18166 eval "$as_ac_var=no"
18169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18170 conftest$ac_exeext conftest.$ac_ext
18172 ac_res=`eval echo '${'$as_ac_var'}'`
18173 { echo "$as_me:$LINENO: result: $ac_res" >&5
18174 echo "${ECHO_T}$ac_res" >&6; }
18175 if test `eval echo '${'$as_ac_var'}'` = yes; then
18176 cat >>confdefs.h <<_ACEOF
18177 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18178 _ACEOF
18181 done
18186 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
18187 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
18188 cat >conftest.$ac_ext <<_ACEOF
18189 /* confdefs.h. */
18190 _ACEOF
18191 cat confdefs.h >>conftest.$ac_ext
18192 cat >>conftest.$ac_ext <<_ACEOF
18193 /* end confdefs.h. */
18194 #include <setjmp.h>
18196 main ()
18198 sigjmp_buf x; sigsetjmp(x, 1);
18200 return 0;
18202 _ACEOF
18203 rm -f conftest.$ac_objext conftest$ac_exeext
18204 if { (ac_try="$ac_link"
18205 case "(($ac_try" in
18206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18207 *) ac_try_echo=$ac_try;;
18208 esac
18209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18210 (eval "$ac_link") 2>conftest.er1
18211 ac_status=$?
18212 grep -v '^ *+' conftest.er1 >conftest.err
18213 rm -f conftest.er1
18214 cat conftest.err >&5
18215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); } && {
18217 test -z "$ac_c_werror_flag" ||
18218 test ! -s conftest.err
18219 } && test -s conftest$ac_exeext &&
18220 $as_test_x conftest$ac_exeext; then
18222 cat >>confdefs.h <<\_ACEOF
18223 #define HAVE_SIGSETJMP 1
18224 _ACEOF
18226 { echo "$as_me:$LINENO: result: yes" >&5
18227 echo "${ECHO_T}yes" >&6; }
18228 else
18229 echo "$as_me: failed program was:" >&5
18230 sed 's/^/| /' conftest.$ac_ext >&5
18232 { echo "$as_me:$LINENO: result: no" >&5
18233 echo "${ECHO_T}no" >&6; }
18236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18237 conftest$ac_exeext conftest.$ac_ext
18239 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
18240 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
18241 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
18242 echo $ECHO_N "(cached) $ECHO_C" >&6
18243 else
18244 cat >conftest.$ac_ext <<_ACEOF
18245 /* confdefs.h. */
18246 _ACEOF
18247 cat confdefs.h >>conftest.$ac_ext
18248 cat >>conftest.$ac_ext <<_ACEOF
18249 /* end confdefs.h. */
18250 #include <signal.h>
18251 /* NetBSD declares sys_siglist in unistd.h. */
18252 #ifdef HAVE_UNISTD_H
18253 # include <unistd.h>
18254 #endif
18258 main ()
18260 #ifndef sys_siglist
18261 (void) sys_siglist;
18262 #endif
18265 return 0;
18267 _ACEOF
18268 rm -f conftest.$ac_objext
18269 if { (ac_try="$ac_compile"
18270 case "(($ac_try" in
18271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18272 *) ac_try_echo=$ac_try;;
18273 esac
18274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18275 (eval "$ac_compile") 2>conftest.er1
18276 ac_status=$?
18277 grep -v '^ *+' conftest.er1 >conftest.err
18278 rm -f conftest.er1
18279 cat conftest.err >&5
18280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281 (exit $ac_status); } && {
18282 test -z "$ac_c_werror_flag" ||
18283 test ! -s conftest.err
18284 } && test -s conftest.$ac_objext; then
18285 ac_cv_have_decl_sys_siglist=yes
18286 else
18287 echo "$as_me: failed program was:" >&5
18288 sed 's/^/| /' conftest.$ac_ext >&5
18290 ac_cv_have_decl_sys_siglist=no
18293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18295 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
18296 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
18297 if test $ac_cv_have_decl_sys_siglist = yes; then
18299 cat >>confdefs.h <<_ACEOF
18300 #define HAVE_DECL_SYS_SIGLIST 1
18301 _ACEOF
18304 else
18305 cat >>confdefs.h <<_ACEOF
18306 #define HAVE_DECL_SYS_SIGLIST 0
18307 _ACEOF
18315 { echo "$as_me:$LINENO: checking for syslog" >&5
18316 echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
18317 if test "${ac_cv_func_syslog+set}" = set; then
18318 echo $ECHO_N "(cached) $ECHO_C" >&6
18319 else
18320 cat >conftest.$ac_ext <<_ACEOF
18321 /* confdefs.h. */
18322 _ACEOF
18323 cat confdefs.h >>conftest.$ac_ext
18324 cat >>conftest.$ac_ext <<_ACEOF
18325 /* end confdefs.h. */
18326 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
18327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18328 #define syslog innocuous_syslog
18330 /* System header to define __stub macros and hopefully few prototypes,
18331 which can conflict with char syslog (); below.
18332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18333 <limits.h> exists even on freestanding compilers. */
18335 #ifdef __STDC__
18336 # include <limits.h>
18337 #else
18338 # include <assert.h>
18339 #endif
18341 #undef syslog
18343 /* Override any GCC internal prototype to avoid an error.
18344 Use char because int might match the return type of a GCC
18345 builtin and then its argument prototype would still apply. */
18346 #ifdef __cplusplus
18347 extern "C"
18348 #endif
18349 char syslog ();
18350 /* The GNU C library defines this for functions which it implements
18351 to always fail with ENOSYS. Some functions are actually named
18352 something starting with __ and the normal name is an alias. */
18353 #if defined __stub_syslog || defined __stub___syslog
18354 choke me
18355 #endif
18358 main ()
18360 return syslog ();
18362 return 0;
18364 _ACEOF
18365 rm -f conftest.$ac_objext conftest$ac_exeext
18366 if { (ac_try="$ac_link"
18367 case "(($ac_try" in
18368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18369 *) ac_try_echo=$ac_try;;
18370 esac
18371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18372 (eval "$ac_link") 2>conftest.er1
18373 ac_status=$?
18374 grep -v '^ *+' conftest.er1 >conftest.err
18375 rm -f conftest.er1
18376 cat conftest.err >&5
18377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378 (exit $ac_status); } && {
18379 test -z "$ac_c_werror_flag" ||
18380 test ! -s conftest.err
18381 } && test -s conftest$ac_exeext &&
18382 $as_test_x conftest$ac_exeext; then
18383 ac_cv_func_syslog=yes
18384 else
18385 echo "$as_me: failed program was:" >&5
18386 sed 's/^/| /' conftest.$ac_ext >&5
18388 ac_cv_func_syslog=no
18391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18392 conftest$ac_exeext conftest.$ac_ext
18394 { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
18395 echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
18396 if test $ac_cv_func_syslog = yes; then
18397 if test "${ac_cv_header_syslog_h+set}" = set; then
18398 { echo "$as_me:$LINENO: checking for syslog.h" >&5
18399 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
18400 if test "${ac_cv_header_syslog_h+set}" = set; then
18401 echo $ECHO_N "(cached) $ECHO_C" >&6
18403 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
18404 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
18405 else
18406 # Is the header compilable?
18407 { echo "$as_me:$LINENO: checking syslog.h usability" >&5
18408 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6; }
18409 cat >conftest.$ac_ext <<_ACEOF
18410 /* confdefs.h. */
18411 _ACEOF
18412 cat confdefs.h >>conftest.$ac_ext
18413 cat >>conftest.$ac_ext <<_ACEOF
18414 /* end confdefs.h. */
18415 $ac_includes_default
18416 #include <syslog.h>
18417 _ACEOF
18418 rm -f conftest.$ac_objext
18419 if { (ac_try="$ac_compile"
18420 case "(($ac_try" in
18421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18422 *) ac_try_echo=$ac_try;;
18423 esac
18424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18425 (eval "$ac_compile") 2>conftest.er1
18426 ac_status=$?
18427 grep -v '^ *+' conftest.er1 >conftest.err
18428 rm -f conftest.er1
18429 cat conftest.err >&5
18430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431 (exit $ac_status); } && {
18432 test -z "$ac_c_werror_flag" ||
18433 test ! -s conftest.err
18434 } && test -s conftest.$ac_objext; then
18435 ac_header_compiler=yes
18436 else
18437 echo "$as_me: failed program was:" >&5
18438 sed 's/^/| /' conftest.$ac_ext >&5
18440 ac_header_compiler=no
18443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18444 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18445 echo "${ECHO_T}$ac_header_compiler" >&6; }
18447 # Is the header present?
18448 { echo "$as_me:$LINENO: checking syslog.h presence" >&5
18449 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6; }
18450 cat >conftest.$ac_ext <<_ACEOF
18451 /* confdefs.h. */
18452 _ACEOF
18453 cat confdefs.h >>conftest.$ac_ext
18454 cat >>conftest.$ac_ext <<_ACEOF
18455 /* end confdefs.h. */
18456 #include <syslog.h>
18457 _ACEOF
18458 if { (ac_try="$ac_cpp conftest.$ac_ext"
18459 case "(($ac_try" in
18460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18461 *) ac_try_echo=$ac_try;;
18462 esac
18463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18464 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18465 ac_status=$?
18466 grep -v '^ *+' conftest.er1 >conftest.err
18467 rm -f conftest.er1
18468 cat conftest.err >&5
18469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470 (exit $ac_status); } >/dev/null && {
18471 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18472 test ! -s conftest.err
18473 }; then
18474 ac_header_preproc=yes
18475 else
18476 echo "$as_me: failed program was:" >&5
18477 sed 's/^/| /' conftest.$ac_ext >&5
18479 ac_header_preproc=no
18482 rm -f conftest.err conftest.$ac_ext
18483 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18484 echo "${ECHO_T}$ac_header_preproc" >&6; }
18486 # So? What about this header?
18487 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18488 yes:no: )
18489 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
18490 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18491 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
18492 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
18493 ac_header_preproc=yes
18495 no:yes:* )
18496 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
18497 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
18498 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
18499 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
18500 { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
18501 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
18502 { echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
18503 echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
18504 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
18505 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
18506 { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
18507 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
18508 ( cat <<\_ASBOX
18509 ## ---------------------------------------- ##
18510 ## Report this to pgsql-bugs@postgresql.org ##
18511 ## ---------------------------------------- ##
18512 _ASBOX
18513 ) | sed "s/^/$as_me: WARNING: /" >&2
18515 esac
18516 { echo "$as_me:$LINENO: checking for syslog.h" >&5
18517 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
18518 if test "${ac_cv_header_syslog_h+set}" = set; then
18519 echo $ECHO_N "(cached) $ECHO_C" >&6
18520 else
18521 ac_cv_header_syslog_h=$ac_header_preproc
18523 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
18524 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
18527 if test $ac_cv_header_syslog_h = yes; then
18529 cat >>confdefs.h <<\_ACEOF
18530 #define HAVE_SYSLOG 1
18531 _ACEOF
18539 { echo "$as_me:$LINENO: checking for optreset" >&5
18540 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
18541 if test "${pgac_cv_var_int_optreset+set}" = set; then
18542 echo $ECHO_N "(cached) $ECHO_C" >&6
18543 else
18544 cat >conftest.$ac_ext <<_ACEOF
18545 /* confdefs.h. */
18546 _ACEOF
18547 cat confdefs.h >>conftest.$ac_ext
18548 cat >>conftest.$ac_ext <<_ACEOF
18549 /* end confdefs.h. */
18550 #include <unistd.h>
18552 main ()
18554 extern int optreset; optreset = 1;
18556 return 0;
18558 _ACEOF
18559 rm -f conftest.$ac_objext conftest$ac_exeext
18560 if { (ac_try="$ac_link"
18561 case "(($ac_try" in
18562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18563 *) ac_try_echo=$ac_try;;
18564 esac
18565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18566 (eval "$ac_link") 2>conftest.er1
18567 ac_status=$?
18568 grep -v '^ *+' conftest.er1 >conftest.err
18569 rm -f conftest.er1
18570 cat conftest.err >&5
18571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18572 (exit $ac_status); } && {
18573 test -z "$ac_c_werror_flag" ||
18574 test ! -s conftest.err
18575 } && test -s conftest$ac_exeext &&
18576 $as_test_x conftest$ac_exeext; then
18577 pgac_cv_var_int_optreset=yes
18578 else
18579 echo "$as_me: failed program was:" >&5
18580 sed 's/^/| /' conftest.$ac_ext >&5
18582 pgac_cv_var_int_optreset=no
18585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18586 conftest$ac_exeext conftest.$ac_ext
18588 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
18589 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6; }
18590 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
18592 cat >>confdefs.h <<\_ACEOF
18593 #define HAVE_INT_OPTRESET 1
18594 _ACEOF
18600 for ac_func in strtoll strtoq
18602 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18603 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18604 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18605 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18606 echo $ECHO_N "(cached) $ECHO_C" >&6
18607 else
18608 cat >conftest.$ac_ext <<_ACEOF
18609 /* confdefs.h. */
18610 _ACEOF
18611 cat confdefs.h >>conftest.$ac_ext
18612 cat >>conftest.$ac_ext <<_ACEOF
18613 /* end confdefs.h. */
18614 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18615 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18616 #define $ac_func innocuous_$ac_func
18618 /* System header to define __stub macros and hopefully few prototypes,
18619 which can conflict with char $ac_func (); below.
18620 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18621 <limits.h> exists even on freestanding compilers. */
18623 #ifdef __STDC__
18624 # include <limits.h>
18625 #else
18626 # include <assert.h>
18627 #endif
18629 #undef $ac_func
18631 /* Override any GCC internal prototype to avoid an error.
18632 Use char because int might match the return type of a GCC
18633 builtin and then its argument prototype would still apply. */
18634 #ifdef __cplusplus
18635 extern "C"
18636 #endif
18637 char $ac_func ();
18638 /* The GNU C library defines this for functions which it implements
18639 to always fail with ENOSYS. Some functions are actually named
18640 something starting with __ and the normal name is an alias. */
18641 #if defined __stub_$ac_func || defined __stub___$ac_func
18642 choke me
18643 #endif
18646 main ()
18648 return $ac_func ();
18650 return 0;
18652 _ACEOF
18653 rm -f conftest.$ac_objext conftest$ac_exeext
18654 if { (ac_try="$ac_link"
18655 case "(($ac_try" in
18656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18657 *) ac_try_echo=$ac_try;;
18658 esac
18659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18660 (eval "$ac_link") 2>conftest.er1
18661 ac_status=$?
18662 grep -v '^ *+' conftest.er1 >conftest.err
18663 rm -f conftest.er1
18664 cat conftest.err >&5
18665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); } && {
18667 test -z "$ac_c_werror_flag" ||
18668 test ! -s conftest.err
18669 } && test -s conftest$ac_exeext &&
18670 $as_test_x conftest$ac_exeext; then
18671 eval "$as_ac_var=yes"
18672 else
18673 echo "$as_me: failed program was:" >&5
18674 sed 's/^/| /' conftest.$ac_ext >&5
18676 eval "$as_ac_var=no"
18679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18680 conftest$ac_exeext conftest.$ac_ext
18682 ac_res=`eval echo '${'$as_ac_var'}'`
18683 { echo "$as_me:$LINENO: result: $ac_res" >&5
18684 echo "${ECHO_T}$ac_res" >&6; }
18685 if test `eval echo '${'$as_ac_var'}'` = yes; then
18686 cat >>confdefs.h <<_ACEOF
18687 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18688 _ACEOF
18689 break
18691 done
18695 for ac_func in strtoull strtouq
18697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18698 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18700 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18701 echo $ECHO_N "(cached) $ECHO_C" >&6
18702 else
18703 cat >conftest.$ac_ext <<_ACEOF
18704 /* confdefs.h. */
18705 _ACEOF
18706 cat confdefs.h >>conftest.$ac_ext
18707 cat >>conftest.$ac_ext <<_ACEOF
18708 /* end confdefs.h. */
18709 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18711 #define $ac_func innocuous_$ac_func
18713 /* System header to define __stub macros and hopefully few prototypes,
18714 which can conflict with char $ac_func (); below.
18715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18716 <limits.h> exists even on freestanding compilers. */
18718 #ifdef __STDC__
18719 # include <limits.h>
18720 #else
18721 # include <assert.h>
18722 #endif
18724 #undef $ac_func
18726 /* Override any GCC internal prototype to avoid an error.
18727 Use char because int might match the return type of a GCC
18728 builtin and then its argument prototype would still apply. */
18729 #ifdef __cplusplus
18730 extern "C"
18731 #endif
18732 char $ac_func ();
18733 /* The GNU C library defines this for functions which it implements
18734 to always fail with ENOSYS. Some functions are actually named
18735 something starting with __ and the normal name is an alias. */
18736 #if defined __stub_$ac_func || defined __stub___$ac_func
18737 choke me
18738 #endif
18741 main ()
18743 return $ac_func ();
18745 return 0;
18747 _ACEOF
18748 rm -f conftest.$ac_objext conftest$ac_exeext
18749 if { (ac_try="$ac_link"
18750 case "(($ac_try" in
18751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18752 *) ac_try_echo=$ac_try;;
18753 esac
18754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18755 (eval "$ac_link") 2>conftest.er1
18756 ac_status=$?
18757 grep -v '^ *+' conftest.er1 >conftest.err
18758 rm -f conftest.er1
18759 cat conftest.err >&5
18760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18761 (exit $ac_status); } && {
18762 test -z "$ac_c_werror_flag" ||
18763 test ! -s conftest.err
18764 } && test -s conftest$ac_exeext &&
18765 $as_test_x conftest$ac_exeext; then
18766 eval "$as_ac_var=yes"
18767 else
18768 echo "$as_me: failed program was:" >&5
18769 sed 's/^/| /' conftest.$ac_ext >&5
18771 eval "$as_ac_var=no"
18774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18775 conftest$ac_exeext conftest.$ac_ext
18777 ac_res=`eval echo '${'$as_ac_var'}'`
18778 { echo "$as_me:$LINENO: result: $ac_res" >&5
18779 echo "${ECHO_T}$ac_res" >&6; }
18780 if test `eval echo '${'$as_ac_var'}'` = yes; then
18781 cat >>confdefs.h <<_ACEOF
18782 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18783 _ACEOF
18784 break
18786 done
18789 # Check for one of atexit() or on_exit()
18791 for ac_func in atexit
18793 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18794 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18795 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18796 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18797 echo $ECHO_N "(cached) $ECHO_C" >&6
18798 else
18799 cat >conftest.$ac_ext <<_ACEOF
18800 /* confdefs.h. */
18801 _ACEOF
18802 cat confdefs.h >>conftest.$ac_ext
18803 cat >>conftest.$ac_ext <<_ACEOF
18804 /* end confdefs.h. */
18805 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18807 #define $ac_func innocuous_$ac_func
18809 /* System header to define __stub macros and hopefully few prototypes,
18810 which can conflict with char $ac_func (); below.
18811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18812 <limits.h> exists even on freestanding compilers. */
18814 #ifdef __STDC__
18815 # include <limits.h>
18816 #else
18817 # include <assert.h>
18818 #endif
18820 #undef $ac_func
18822 /* Override any GCC internal prototype to avoid an error.
18823 Use char because int might match the return type of a GCC
18824 builtin and then its argument prototype would still apply. */
18825 #ifdef __cplusplus
18826 extern "C"
18827 #endif
18828 char $ac_func ();
18829 /* The GNU C library defines this for functions which it implements
18830 to always fail with ENOSYS. Some functions are actually named
18831 something starting with __ and the normal name is an alias. */
18832 #if defined __stub_$ac_func || defined __stub___$ac_func
18833 choke me
18834 #endif
18837 main ()
18839 return $ac_func ();
18841 return 0;
18843 _ACEOF
18844 rm -f conftest.$ac_objext conftest$ac_exeext
18845 if { (ac_try="$ac_link"
18846 case "(($ac_try" in
18847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18848 *) ac_try_echo=$ac_try;;
18849 esac
18850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18851 (eval "$ac_link") 2>conftest.er1
18852 ac_status=$?
18853 grep -v '^ *+' conftest.er1 >conftest.err
18854 rm -f conftest.er1
18855 cat conftest.err >&5
18856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857 (exit $ac_status); } && {
18858 test -z "$ac_c_werror_flag" ||
18859 test ! -s conftest.err
18860 } && test -s conftest$ac_exeext &&
18861 $as_test_x conftest$ac_exeext; then
18862 eval "$as_ac_var=yes"
18863 else
18864 echo "$as_me: failed program was:" >&5
18865 sed 's/^/| /' conftest.$ac_ext >&5
18867 eval "$as_ac_var=no"
18870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18871 conftest$ac_exeext conftest.$ac_ext
18873 ac_res=`eval echo '${'$as_ac_var'}'`
18874 { echo "$as_me:$LINENO: result: $ac_res" >&5
18875 echo "${ECHO_T}$ac_res" >&6; }
18876 if test `eval echo '${'$as_ac_var'}'` = yes; then
18877 cat >>confdefs.h <<_ACEOF
18878 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18879 _ACEOF
18881 else
18883 for ac_func in on_exit
18885 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18886 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18887 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18888 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18889 echo $ECHO_N "(cached) $ECHO_C" >&6
18890 else
18891 cat >conftest.$ac_ext <<_ACEOF
18892 /* confdefs.h. */
18893 _ACEOF
18894 cat confdefs.h >>conftest.$ac_ext
18895 cat >>conftest.$ac_ext <<_ACEOF
18896 /* end confdefs.h. */
18897 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18899 #define $ac_func innocuous_$ac_func
18901 /* System header to define __stub macros and hopefully few prototypes,
18902 which can conflict with char $ac_func (); below.
18903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18904 <limits.h> exists even on freestanding compilers. */
18906 #ifdef __STDC__
18907 # include <limits.h>
18908 #else
18909 # include <assert.h>
18910 #endif
18912 #undef $ac_func
18914 /* Override any GCC internal prototype to avoid an error.
18915 Use char because int might match the return type of a GCC
18916 builtin and then its argument prototype would still apply. */
18917 #ifdef __cplusplus
18918 extern "C"
18919 #endif
18920 char $ac_func ();
18921 /* The GNU C library defines this for functions which it implements
18922 to always fail with ENOSYS. Some functions are actually named
18923 something starting with __ and the normal name is an alias. */
18924 #if defined __stub_$ac_func || defined __stub___$ac_func
18925 choke me
18926 #endif
18929 main ()
18931 return $ac_func ();
18933 return 0;
18935 _ACEOF
18936 rm -f conftest.$ac_objext conftest$ac_exeext
18937 if { (ac_try="$ac_link"
18938 case "(($ac_try" in
18939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18940 *) ac_try_echo=$ac_try;;
18941 esac
18942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18943 (eval "$ac_link") 2>conftest.er1
18944 ac_status=$?
18945 grep -v '^ *+' conftest.er1 >conftest.err
18946 rm -f conftest.er1
18947 cat conftest.err >&5
18948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18949 (exit $ac_status); } && {
18950 test -z "$ac_c_werror_flag" ||
18951 test ! -s conftest.err
18952 } && test -s conftest$ac_exeext &&
18953 $as_test_x conftest$ac_exeext; then
18954 eval "$as_ac_var=yes"
18955 else
18956 echo "$as_me: failed program was:" >&5
18957 sed 's/^/| /' conftest.$ac_ext >&5
18959 eval "$as_ac_var=no"
18962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18963 conftest$ac_exeext conftest.$ac_ext
18965 ac_res=`eval echo '${'$as_ac_var'}'`
18966 { echo "$as_me:$LINENO: result: $ac_res" >&5
18967 echo "${ECHO_T}$ac_res" >&6; }
18968 if test `eval echo '${'$as_ac_var'}'` = yes; then
18969 cat >>confdefs.h <<_ACEOF
18970 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18971 _ACEOF
18973 else
18974 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
18975 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
18976 { (exit 1); exit 1; }; }
18978 done
18981 done
18985 for ac_func in fseeko
18987 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18988 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18990 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18991 echo $ECHO_N "(cached) $ECHO_C" >&6
18992 else
18993 cat >conftest.$ac_ext <<_ACEOF
18994 /* confdefs.h. */
18995 _ACEOF
18996 cat confdefs.h >>conftest.$ac_ext
18997 cat >>conftest.$ac_ext <<_ACEOF
18998 /* end confdefs.h. */
18999 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19001 #define $ac_func innocuous_$ac_func
19003 /* System header to define __stub macros and hopefully few prototypes,
19004 which can conflict with char $ac_func (); below.
19005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19006 <limits.h> exists even on freestanding compilers. */
19008 #ifdef __STDC__
19009 # include <limits.h>
19010 #else
19011 # include <assert.h>
19012 #endif
19014 #undef $ac_func
19016 /* Override any GCC internal prototype to avoid an error.
19017 Use char because int might match the return type of a GCC
19018 builtin and then its argument prototype would still apply. */
19019 #ifdef __cplusplus
19020 extern "C"
19021 #endif
19022 char $ac_func ();
19023 /* The GNU C library defines this for functions which it implements
19024 to always fail with ENOSYS. Some functions are actually named
19025 something starting with __ and the normal name is an alias. */
19026 #if defined __stub_$ac_func || defined __stub___$ac_func
19027 choke me
19028 #endif
19031 main ()
19033 return $ac_func ();
19035 return 0;
19037 _ACEOF
19038 rm -f conftest.$ac_objext conftest$ac_exeext
19039 if { (ac_try="$ac_link"
19040 case "(($ac_try" in
19041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19042 *) ac_try_echo=$ac_try;;
19043 esac
19044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19045 (eval "$ac_link") 2>conftest.er1
19046 ac_status=$?
19047 grep -v '^ *+' conftest.er1 >conftest.err
19048 rm -f conftest.er1
19049 cat conftest.err >&5
19050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051 (exit $ac_status); } && {
19052 test -z "$ac_c_werror_flag" ||
19053 test ! -s conftest.err
19054 } && test -s conftest$ac_exeext &&
19055 $as_test_x conftest$ac_exeext; then
19056 eval "$as_ac_var=yes"
19057 else
19058 echo "$as_me: failed program was:" >&5
19059 sed 's/^/| /' conftest.$ac_ext >&5
19061 eval "$as_ac_var=no"
19064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19065 conftest$ac_exeext conftest.$ac_ext
19067 ac_res=`eval echo '${'$as_ac_var'}'`
19068 { echo "$as_me:$LINENO: result: $ac_res" >&5
19069 echo "${ECHO_T}$ac_res" >&6; }
19070 if test `eval echo '${'$as_ac_var'}'` = yes; then
19071 cat >>confdefs.h <<_ACEOF
19072 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19073 _ACEOF
19075 else
19076 case " $LIBOBJS " in
19077 *" $ac_func.$ac_objext "* ) ;;
19078 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19080 esac
19083 done
19086 case $host_os in
19087 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
19088 # Mingw uses macros to access Win32 API calls
19089 bsdi*|netbsd*|mingw*)
19091 cat >>confdefs.h <<\_ACEOF
19092 #define HAVE_FSEEKO 1
19093 _ACEOF
19095 ac_cv_func_fseeko=yes;;
19097 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19098 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
19099 if test "${ac_cv_sys_largefile_source+set}" = set; then
19100 echo $ECHO_N "(cached) $ECHO_C" >&6
19101 else
19102 while :; do
19103 cat >conftest.$ac_ext <<_ACEOF
19104 /* confdefs.h. */
19105 _ACEOF
19106 cat confdefs.h >>conftest.$ac_ext
19107 cat >>conftest.$ac_ext <<_ACEOF
19108 /* end confdefs.h. */
19109 #include <sys/types.h> /* for off_t */
19110 #include <stdio.h>
19112 main ()
19114 int (*fp) (FILE *, off_t, int) = fseeko;
19115 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19117 return 0;
19119 _ACEOF
19120 rm -f conftest.$ac_objext conftest$ac_exeext
19121 if { (ac_try="$ac_link"
19122 case "(($ac_try" in
19123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19124 *) ac_try_echo=$ac_try;;
19125 esac
19126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19127 (eval "$ac_link") 2>conftest.er1
19128 ac_status=$?
19129 grep -v '^ *+' conftest.er1 >conftest.err
19130 rm -f conftest.er1
19131 cat conftest.err >&5
19132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133 (exit $ac_status); } && {
19134 test -z "$ac_c_werror_flag" ||
19135 test ! -s conftest.err
19136 } && test -s conftest$ac_exeext &&
19137 $as_test_x conftest$ac_exeext; then
19138 ac_cv_sys_largefile_source=no; break
19139 else
19140 echo "$as_me: failed program was:" >&5
19141 sed 's/^/| /' conftest.$ac_ext >&5
19146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19147 conftest$ac_exeext conftest.$ac_ext
19148 cat >conftest.$ac_ext <<_ACEOF
19149 /* confdefs.h. */
19150 _ACEOF
19151 cat confdefs.h >>conftest.$ac_ext
19152 cat >>conftest.$ac_ext <<_ACEOF
19153 /* end confdefs.h. */
19154 #define _LARGEFILE_SOURCE 1
19155 #include <sys/types.h> /* for off_t */
19156 #include <stdio.h>
19158 main ()
19160 int (*fp) (FILE *, off_t, int) = fseeko;
19161 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19163 return 0;
19165 _ACEOF
19166 rm -f conftest.$ac_objext conftest$ac_exeext
19167 if { (ac_try="$ac_link"
19168 case "(($ac_try" in
19169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19170 *) ac_try_echo=$ac_try;;
19171 esac
19172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19173 (eval "$ac_link") 2>conftest.er1
19174 ac_status=$?
19175 grep -v '^ *+' conftest.er1 >conftest.err
19176 rm -f conftest.er1
19177 cat conftest.err >&5
19178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179 (exit $ac_status); } && {
19180 test -z "$ac_c_werror_flag" ||
19181 test ! -s conftest.err
19182 } && test -s conftest$ac_exeext &&
19183 $as_test_x conftest$ac_exeext; then
19184 ac_cv_sys_largefile_source=1; break
19185 else
19186 echo "$as_me: failed program was:" >&5
19187 sed 's/^/| /' conftest.$ac_ext >&5
19192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19193 conftest$ac_exeext conftest.$ac_ext
19194 ac_cv_sys_largefile_source=unknown
19195 break
19196 done
19198 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19199 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
19200 case $ac_cv_sys_largefile_source in #(
19201 no | unknown) ;;
19203 cat >>confdefs.h <<_ACEOF
19204 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19205 _ACEOF
19207 esac
19208 rm -f conftest*
19210 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19211 # in glibc 2.1.3, but that breaks too many other things.
19212 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19213 if test $ac_cv_sys_largefile_source != unknown; then
19215 cat >>confdefs.h <<\_ACEOF
19216 #define HAVE_FSEEKO 1
19217 _ACEOF
19221 esac
19225 # Pthreads
19227 # For each platform, we need to know about any special compile and link
19228 # libraries, and whether the normal C function names are thread-safe.
19229 # See the comment at the top of src/port/thread.c for more information.
19230 # WIN32 doesn't need the pthread tests; it always uses threads
19231 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
19235 ac_ext=c
19236 ac_cpp='$CPP $CPPFLAGS'
19237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19241 acx_pthread_ok=no
19243 # We used to check for pthread.h first, but this fails if pthread.h
19244 # requires special compiler flags (e.g. on True64 or Sequent).
19245 # It gets checked for in the link test anyway.
19247 # First of all, check if the user has set any of the PTHREAD_LIBS,
19248 # etcetera environment variables, and if threads linking works using
19249 # them:
19250 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
19251 save_CFLAGS="$CFLAGS"
19252 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19253 save_LIBS="$LIBS"
19254 LIBS="$PTHREAD_LIBS $LIBS"
19255 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
19256 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
19257 cat >conftest.$ac_ext <<_ACEOF
19258 /* confdefs.h. */
19259 _ACEOF
19260 cat confdefs.h >>conftest.$ac_ext
19261 cat >>conftest.$ac_ext <<_ACEOF
19262 /* end confdefs.h. */
19264 /* Override any GCC internal prototype to avoid an error.
19265 Use char because int might match the return type of a GCC
19266 builtin and then its argument prototype would still apply. */
19267 #ifdef __cplusplus
19268 extern "C"
19269 #endif
19270 char pthread_join ();
19272 main ()
19274 return pthread_join ();
19276 return 0;
19278 _ACEOF
19279 rm -f conftest.$ac_objext conftest$ac_exeext
19280 if { (ac_try="$ac_link"
19281 case "(($ac_try" in
19282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19283 *) ac_try_echo=$ac_try;;
19284 esac
19285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19286 (eval "$ac_link") 2>conftest.er1
19287 ac_status=$?
19288 grep -v '^ *+' conftest.er1 >conftest.err
19289 rm -f conftest.er1
19290 cat conftest.err >&5
19291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292 (exit $ac_status); } && {
19293 test -z "$ac_c_werror_flag" ||
19294 test ! -s conftest.err
19295 } && test -s conftest$ac_exeext &&
19296 $as_test_x conftest$ac_exeext; then
19297 acx_pthread_ok=yes
19298 else
19299 echo "$as_me: failed program was:" >&5
19300 sed 's/^/| /' conftest.$ac_ext >&5
19305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19306 conftest$ac_exeext conftest.$ac_ext
19307 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
19308 echo "${ECHO_T}$acx_pthread_ok" >&6; }
19309 if test x"$acx_pthread_ok" = xno; then
19310 PTHREAD_LIBS=""
19311 PTHREAD_CFLAGS=""
19313 LIBS="$save_LIBS"
19314 CFLAGS="$save_CFLAGS"
19317 # We must check for the threads library under a number of different
19318 # names; the ordering is very important because some systems
19319 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19320 # libraries is broken (non-POSIX).
19322 # Create a list of thread flags to try. Items starting with a "-" are
19323 # C compiler flags, and other items are library names, except for "none"
19324 # which indicates that we try without any flags at all, and "pthread-config"
19325 # which is a program returning the flags for the Pth emulation library.
19327 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
19329 # The ordering *is* (sometimes) important. Some notes on the
19330 # individual items follow:
19332 # pthreads: AIX (must check this before -lpthread)
19333 # none: in case threads are in libc; should be tried before -Kthread and
19334 # other compiler flags to prevent continual compiler warnings
19335 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19336 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19337 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19338 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
19339 # -pthreads: Solaris/gcc
19340 # -mthreads: Mingw32/gcc, Lynx/gcc
19341 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19342 # doesn't hurt to check since this sometimes defines pthreads too;
19343 # also defines -D_REENTRANT)
19344 # pthread: Linux, etcetera
19345 # --thread-safe: KAI C++
19346 # pthread-config: use pthread-config program (for GNU Pth library)
19348 case "${host_cpu}-${host_os}" in
19349 *solaris*)
19351 # On Solaris (at least, for some versions), libc contains stubbed
19352 # (non-functional) versions of the pthreads routines, so link-based
19353 # tests will erroneously succeed. (We need to link with -pthread or
19354 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
19355 # a function called by this macro, so we could check for that, but
19356 # who knows whether they'll stub that too in a future libc.) So,
19357 # we'll just look for -pthreads and -lpthread first:
19359 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
19361 esac
19363 if test x"$acx_pthread_ok" = xno; then
19364 for flag in $acx_pthread_flags; do
19366 tryPTHREAD_CFLAGS=""
19367 tryPTHREAD_LIBS=""
19368 case $flag in
19369 none)
19370 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
19371 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
19375 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
19376 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
19377 tryPTHREAD_CFLAGS="$flag"
19380 pthread-config)
19381 # skip this if we already have flags defined, for PostgreSQL
19382 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
19383 # Extract the first word of "pthread-config", so it can be a program name with args.
19384 set dummy pthread-config; ac_word=$2
19385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19387 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
19388 echo $ECHO_N "(cached) $ECHO_C" >&6
19389 else
19390 if test -n "$acx_pthread_config"; then
19391 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
19392 else
19393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19394 for as_dir in $PATH
19396 IFS=$as_save_IFS
19397 test -z "$as_dir" && as_dir=.
19398 for ac_exec_ext in '' $ac_executable_extensions; do
19399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19400 ac_cv_prog_acx_pthread_config="yes"
19401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19402 break 2
19404 done
19405 done
19406 IFS=$as_save_IFS
19408 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
19411 acx_pthread_config=$ac_cv_prog_acx_pthread_config
19412 if test -n "$acx_pthread_config"; then
19413 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
19414 echo "${ECHO_T}$acx_pthread_config" >&6; }
19415 else
19416 { echo "$as_me:$LINENO: result: no" >&5
19417 echo "${ECHO_T}no" >&6; }
19421 if test x"$acx_pthread_config" = xno; then continue; fi
19422 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
19423 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
19427 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
19428 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
19429 tryPTHREAD_LIBS="-l$flag"
19431 esac
19433 save_LIBS="$LIBS"
19434 save_CFLAGS="$CFLAGS"
19435 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
19436 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
19438 # Check for various functions. We must include pthread.h,
19439 # since some functions may be macros. (On the Sequent, we
19440 # need a special flag -Kthread to make this header compile.)
19441 # We check for pthread_join because it is in -lpthread on IRIX
19442 # while pthread_create is in libc. We check for pthread_attr_init
19443 # due to DEC craziness with -lpthreads. We check for
19444 # pthread_cleanup_push because it is one of the few pthread
19445 # functions on Solaris that doesn't have a non-functional libc stub.
19446 # We try pthread_create on general principles.
19447 cat >conftest.$ac_ext <<_ACEOF
19448 /* confdefs.h. */
19449 _ACEOF
19450 cat confdefs.h >>conftest.$ac_ext
19451 cat >>conftest.$ac_ext <<_ACEOF
19452 /* end confdefs.h. */
19453 #include <pthread.h>
19455 main ()
19457 pthread_t th; pthread_join(th, 0);
19458 pthread_attr_init(0); pthread_cleanup_push(0, 0);
19459 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
19461 return 0;
19463 _ACEOF
19464 rm -f conftest.$ac_objext conftest$ac_exeext
19465 if { (ac_try="$ac_link"
19466 case "(($ac_try" in
19467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19468 *) ac_try_echo=$ac_try;;
19469 esac
19470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19471 (eval "$ac_link") 2>conftest.er1
19472 ac_status=$?
19473 grep -v '^ *+' conftest.er1 >conftest.err
19474 rm -f conftest.er1
19475 cat conftest.err >&5
19476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477 (exit $ac_status); } && {
19478 test -z "$ac_c_werror_flag" ||
19479 test ! -s conftest.err
19480 } && test -s conftest$ac_exeext &&
19481 $as_test_x conftest$ac_exeext; then
19482 acx_pthread_ok=yes
19483 else
19484 echo "$as_me: failed program was:" >&5
19485 sed 's/^/| /' conftest.$ac_ext >&5
19487 acx_pthread_ok=no
19490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19491 conftest$ac_exeext conftest.$ac_ext
19493 if test "x$acx_pthread_ok" = xyes; then
19494 # Don't use options that are ignored by the compiler.
19495 # We find them by checking stderror.
19496 cat >conftest.$ac_ext <<_ACEOF
19498 main (int argc, char **argv)
19500 (void) argc;
19501 (void) argv;
19502 return 0;
19504 _ACEOF
19505 rm -f conftest.$ac_objext conftest$ac_exeext
19506 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
19507 # we continue with more flags because Linux needs -lpthread
19508 # for libpq builds on PostgreSQL. The test above only
19509 # tests for building binaries, not shared libraries.
19510 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
19511 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
19512 else acx_pthread_ok=no
19516 LIBS="$save_LIBS"
19517 CFLAGS="$save_CFLAGS"
19519 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
19520 echo "${ECHO_T}$acx_pthread_ok" >&6; }
19521 done
19524 # Various other checks:
19525 if test "x$acx_pthread_ok" = xyes; then
19526 save_LIBS="$LIBS"
19527 LIBS="$PTHREAD_LIBS $LIBS"
19528 save_CFLAGS="$CFLAGS"
19529 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19531 # Detect AIX lossage: threads are created detached by default
19532 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
19533 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
19534 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
19535 cat >conftest.$ac_ext <<_ACEOF
19536 /* confdefs.h. */
19537 _ACEOF
19538 cat confdefs.h >>conftest.$ac_ext
19539 cat >>conftest.$ac_ext <<_ACEOF
19540 /* end confdefs.h. */
19541 #include <pthread.h>
19543 main ()
19545 int attr=PTHREAD_CREATE_JOINABLE;
19547 return 0;
19549 _ACEOF
19550 rm -f conftest.$ac_objext conftest$ac_exeext
19551 if { (ac_try="$ac_link"
19552 case "(($ac_try" in
19553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19554 *) ac_try_echo=$ac_try;;
19555 esac
19556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19557 (eval "$ac_link") 2>conftest.er1
19558 ac_status=$?
19559 grep -v '^ *+' conftest.er1 >conftest.err
19560 rm -f conftest.er1
19561 cat conftest.err >&5
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); } && {
19564 test -z "$ac_c_werror_flag" ||
19565 test ! -s conftest.err
19566 } && test -s conftest$ac_exeext &&
19567 $as_test_x conftest$ac_exeext; then
19568 ok=PTHREAD_CREATE_JOINABLE
19569 else
19570 echo "$as_me: failed program was:" >&5
19571 sed 's/^/| /' conftest.$ac_ext >&5
19573 ok=unknown
19576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19577 conftest$ac_exeext conftest.$ac_ext
19578 if test x"$ok" = xunknown; then
19579 cat >conftest.$ac_ext <<_ACEOF
19580 /* confdefs.h. */
19581 _ACEOF
19582 cat confdefs.h >>conftest.$ac_ext
19583 cat >>conftest.$ac_ext <<_ACEOF
19584 /* end confdefs.h. */
19585 #include <pthread.h>
19587 main ()
19589 int attr=PTHREAD_CREATE_UNDETACHED;
19591 return 0;
19593 _ACEOF
19594 rm -f conftest.$ac_objext conftest$ac_exeext
19595 if { (ac_try="$ac_link"
19596 case "(($ac_try" in
19597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19598 *) ac_try_echo=$ac_try;;
19599 esac
19600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19601 (eval "$ac_link") 2>conftest.er1
19602 ac_status=$?
19603 grep -v '^ *+' conftest.er1 >conftest.err
19604 rm -f conftest.er1
19605 cat conftest.err >&5
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); } && {
19608 test -z "$ac_c_werror_flag" ||
19609 test ! -s conftest.err
19610 } && test -s conftest$ac_exeext &&
19611 $as_test_x conftest$ac_exeext; then
19612 ok=PTHREAD_CREATE_UNDETACHED
19613 else
19614 echo "$as_me: failed program was:" >&5
19615 sed 's/^/| /' conftest.$ac_ext >&5
19617 ok=unknown
19620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19621 conftest$ac_exeext conftest.$ac_ext
19623 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
19625 cat >>confdefs.h <<\_ACEOF
19626 #define PTHREAD_CREATE_JOINABLE $ok
19627 _ACEOF
19630 { echo "$as_me:$LINENO: result: ${ok}" >&5
19631 echo "${ECHO_T}${ok}" >&6; }
19632 if test x"$ok" = xunknown; then
19633 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
19634 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
19637 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
19638 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
19639 flag=no
19640 # We always add these in PostgreSQL
19641 # case "${host_cpu}-${host_os}" in
19642 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
19643 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
19644 # esac
19645 { echo "$as_me:$LINENO: result: ${flag}" >&5
19646 echo "${ECHO_T}${flag}" >&6; }
19647 if test "x$flag" != xno; then
19648 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
19651 LIBS="$save_LIBS"
19652 CFLAGS="$save_CFLAGS"
19654 # Supporting cc_r would require a special CC in all places that
19655 # use libpq, and that is ugly, so we don't do it. Users can still
19656 # define their compiler as cc_r to do thread builds of everything.
19657 # More AIX lossage: must compile with cc_r
19658 # Extract the first word of "cc_r", so it can be a program name with args.
19659 set dummy cc_r; ac_word=$2
19660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19662 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
19663 echo $ECHO_N "(cached) $ECHO_C" >&6
19664 else
19665 if test -n "$PTHREAD_CC"; then
19666 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19667 else
19668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19669 for as_dir in $PATH
19671 IFS=$as_save_IFS
19672 test -z "$as_dir" && as_dir=.
19673 for ac_exec_ext in '' $ac_executable_extensions; do
19674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19675 ac_cv_prog_PTHREAD_CC="cc_r"
19676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19677 break 2
19679 done
19680 done
19681 IFS=$as_save_IFS
19683 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
19686 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19687 if test -n "$PTHREAD_CC"; then
19688 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
19689 echo "${ECHO_T}$PTHREAD_CC" >&6; }
19690 else
19691 { echo "$as_me:$LINENO: result: no" >&5
19692 echo "${ECHO_T}no" >&6; }
19696 else
19697 PTHREAD_CC="$CC"
19704 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
19705 if test x"$acx_pthread_ok" = xyes; then
19707 cat >>confdefs.h <<\_ACEOF
19708 #define HAVE_PTHREAD 1
19709 _ACEOF
19712 else
19713 acx_pthread_ok=no
19716 ac_ext=c
19717 ac_cpp='$CPP $CPPFLAGS'
19718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19722 # set thread flags
19724 # Some platforms use these, so just define them. They can't hurt if they
19725 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
19726 # enables 5-arg getpwuid_r, among other things.
19727 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
19730 # At this point, we don't want to muck with the compiler name for threading.
19731 # Let's see who fails, perhaps AIX. 2004-04-23
19732 if test "$PTHREAD_CC" != "$CC"; then
19733 { { echo "$as_me:$LINENO: error:
19734 PostgreSQL does not support platforms that require a special compiler
19735 for thread safety." >&5
19736 echo "$as_me: error:
19737 PostgreSQL does not support platforms that require a special compiler
19738 for thread safety." >&2;}
19739 { (exit 1); exit 1; }; }
19742 if test "$THREAD_SUPPORT" = no; then
19743 { { echo "$as_me:$LINENO: error: cannot enable threads on this platform
19744 This platform is known to not support thread-safe programs. For details,
19745 compile and run src/bin/pg_thread_test." >&5
19746 echo "$as_me: error: cannot enable threads on this platform
19747 This platform is known to not support thread-safe programs. For details,
19748 compile and run src/bin/pg_thread_test." >&2;}
19749 { (exit 1); exit 1; }; }
19752 # Check for *_r functions
19753 _CFLAGS="$CFLAGS"
19754 _LIBS="$LIBS"
19755 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19756 LIBS="$LIBS $PTHREAD_LIBS"
19758 if test "$PORTNAME" != "win32"; then
19759 if test "${ac_cv_header_pthread_h+set}" = set; then
19760 { echo "$as_me:$LINENO: checking for pthread.h" >&5
19761 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
19762 if test "${ac_cv_header_pthread_h+set}" = set; then
19763 echo $ECHO_N "(cached) $ECHO_C" >&6
19765 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
19766 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
19767 else
19768 # Is the header compilable?
19769 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
19770 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
19771 cat >conftest.$ac_ext <<_ACEOF
19772 /* confdefs.h. */
19773 _ACEOF
19774 cat confdefs.h >>conftest.$ac_ext
19775 cat >>conftest.$ac_ext <<_ACEOF
19776 /* end confdefs.h. */
19777 $ac_includes_default
19778 #include <pthread.h>
19779 _ACEOF
19780 rm -f conftest.$ac_objext
19781 if { (ac_try="$ac_compile"
19782 case "(($ac_try" in
19783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19784 *) ac_try_echo=$ac_try;;
19785 esac
19786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19787 (eval "$ac_compile") 2>conftest.er1
19788 ac_status=$?
19789 grep -v '^ *+' conftest.er1 >conftest.err
19790 rm -f conftest.er1
19791 cat conftest.err >&5
19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); } && {
19794 test -z "$ac_c_werror_flag" ||
19795 test ! -s conftest.err
19796 } && test -s conftest.$ac_objext; then
19797 ac_header_compiler=yes
19798 else
19799 echo "$as_me: failed program was:" >&5
19800 sed 's/^/| /' conftest.$ac_ext >&5
19802 ac_header_compiler=no
19805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19806 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19807 echo "${ECHO_T}$ac_header_compiler" >&6; }
19809 # Is the header present?
19810 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
19811 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
19812 cat >conftest.$ac_ext <<_ACEOF
19813 /* confdefs.h. */
19814 _ACEOF
19815 cat confdefs.h >>conftest.$ac_ext
19816 cat >>conftest.$ac_ext <<_ACEOF
19817 /* end confdefs.h. */
19818 #include <pthread.h>
19819 _ACEOF
19820 if { (ac_try="$ac_cpp conftest.$ac_ext"
19821 case "(($ac_try" in
19822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19823 *) ac_try_echo=$ac_try;;
19824 esac
19825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19827 ac_status=$?
19828 grep -v '^ *+' conftest.er1 >conftest.err
19829 rm -f conftest.er1
19830 cat conftest.err >&5
19831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832 (exit $ac_status); } >/dev/null && {
19833 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19834 test ! -s conftest.err
19835 }; then
19836 ac_header_preproc=yes
19837 else
19838 echo "$as_me: failed program was:" >&5
19839 sed 's/^/| /' conftest.$ac_ext >&5
19841 ac_header_preproc=no
19844 rm -f conftest.err conftest.$ac_ext
19845 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19846 echo "${ECHO_T}$ac_header_preproc" >&6; }
19848 # So? What about this header?
19849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19850 yes:no: )
19851 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
19852 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19853 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
19854 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
19855 ac_header_preproc=yes
19857 no:yes:* )
19858 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
19859 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
19860 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
19861 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
19862 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
19863 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
19864 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
19865 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
19866 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
19867 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
19868 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
19869 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
19870 ( cat <<\_ASBOX
19871 ## ---------------------------------------- ##
19872 ## Report this to pgsql-bugs@postgresql.org ##
19873 ## ---------------------------------------- ##
19874 _ASBOX
19875 ) | sed "s/^/$as_me: WARNING: /" >&2
19877 esac
19878 { echo "$as_me:$LINENO: checking for pthread.h" >&5
19879 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
19880 if test "${ac_cv_header_pthread_h+set}" = set; then
19881 echo $ECHO_N "(cached) $ECHO_C" >&6
19882 else
19883 ac_cv_header_pthread_h=$ac_header_preproc
19885 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
19886 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
19889 if test $ac_cv_header_pthread_h = yes; then
19891 else
19892 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
19893 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
19894 { (exit 1); exit 1; }; }
19903 for ac_func in strerror_r getpwuid_r gethostbyname_r
19905 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19906 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19907 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19908 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19909 echo $ECHO_N "(cached) $ECHO_C" >&6
19910 else
19911 cat >conftest.$ac_ext <<_ACEOF
19912 /* confdefs.h. */
19913 _ACEOF
19914 cat confdefs.h >>conftest.$ac_ext
19915 cat >>conftest.$ac_ext <<_ACEOF
19916 /* end confdefs.h. */
19917 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19919 #define $ac_func innocuous_$ac_func
19921 /* System header to define __stub macros and hopefully few prototypes,
19922 which can conflict with char $ac_func (); below.
19923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19924 <limits.h> exists even on freestanding compilers. */
19926 #ifdef __STDC__
19927 # include <limits.h>
19928 #else
19929 # include <assert.h>
19930 #endif
19932 #undef $ac_func
19934 /* Override any GCC internal prototype to avoid an error.
19935 Use char because int might match the return type of a GCC
19936 builtin and then its argument prototype would still apply. */
19937 #ifdef __cplusplus
19938 extern "C"
19939 #endif
19940 char $ac_func ();
19941 /* The GNU C library defines this for functions which it implements
19942 to always fail with ENOSYS. Some functions are actually named
19943 something starting with __ and the normal name is an alias. */
19944 #if defined __stub_$ac_func || defined __stub___$ac_func
19945 choke me
19946 #endif
19949 main ()
19951 return $ac_func ();
19953 return 0;
19955 _ACEOF
19956 rm -f conftest.$ac_objext conftest$ac_exeext
19957 if { (ac_try="$ac_link"
19958 case "(($ac_try" in
19959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19960 *) ac_try_echo=$ac_try;;
19961 esac
19962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19963 (eval "$ac_link") 2>conftest.er1
19964 ac_status=$?
19965 grep -v '^ *+' conftest.er1 >conftest.err
19966 rm -f conftest.er1
19967 cat conftest.err >&5
19968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19969 (exit $ac_status); } && {
19970 test -z "$ac_c_werror_flag" ||
19971 test ! -s conftest.err
19972 } && test -s conftest$ac_exeext &&
19973 $as_test_x conftest$ac_exeext; then
19974 eval "$as_ac_var=yes"
19975 else
19976 echo "$as_me: failed program was:" >&5
19977 sed 's/^/| /' conftest.$ac_ext >&5
19979 eval "$as_ac_var=no"
19982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19983 conftest$ac_exeext conftest.$ac_ext
19985 ac_res=`eval echo '${'$as_ac_var'}'`
19986 { echo "$as_me:$LINENO: result: $ac_res" >&5
19987 echo "${ECHO_T}$ac_res" >&6; }
19988 if test `eval echo '${'$as_ac_var'}'` = yes; then
19989 cat >>confdefs.h <<_ACEOF
19990 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19991 _ACEOF
19994 done
19997 # Do test here with the proper thread flags
19998 { echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
19999 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6; }
20000 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
20001 echo $ECHO_N "(cached) $ECHO_C" >&6
20002 else
20003 cat >conftest.$ac_ext <<_ACEOF
20004 /* confdefs.h. */
20005 _ACEOF
20006 cat confdefs.h >>conftest.$ac_ext
20007 cat >>conftest.$ac_ext <<_ACEOF
20008 /* end confdefs.h. */
20009 #include <sys/types.h>
20010 #include <pwd.h>
20012 main ()
20014 uid_t uid;
20015 struct passwd *space;
20016 char *buf;
20017 size_t bufsize;
20018 struct passwd **result;
20019 getpwuid_r(uid, space, buf, bufsize, result);
20021 return 0;
20023 _ACEOF
20024 rm -f conftest.$ac_objext
20025 if { (ac_try="$ac_compile"
20026 case "(($ac_try" in
20027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20028 *) ac_try_echo=$ac_try;;
20029 esac
20030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20031 (eval "$ac_compile") 2>conftest.er1
20032 ac_status=$?
20033 grep -v '^ *+' conftest.er1 >conftest.err
20034 rm -f conftest.er1
20035 cat conftest.err >&5
20036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037 (exit $ac_status); } && {
20038 test -z "$ac_c_werror_flag" ||
20039 test ! -s conftest.err
20040 } && test -s conftest.$ac_objext; then
20041 pgac_cv_func_getpwuid_r_5arg=yes
20042 else
20043 echo "$as_me: failed program was:" >&5
20044 sed 's/^/| /' conftest.$ac_ext >&5
20046 pgac_cv_func_getpwuid_r_5arg=no
20049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20051 { echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
20052 echo "${ECHO_T}$pgac_cv_func_getpwuid_r_5arg" >&6; }
20053 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
20055 cat >>confdefs.h <<\_ACEOF
20056 #define GETPWUID_R_5ARG
20057 _ACEOF
20061 { echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
20062 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6; }
20063 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
20064 echo $ECHO_N "(cached) $ECHO_C" >&6
20065 else
20066 cat >conftest.$ac_ext <<_ACEOF
20067 /* confdefs.h. */
20068 _ACEOF
20069 cat confdefs.h >>conftest.$ac_ext
20070 cat >>conftest.$ac_ext <<_ACEOF
20071 /* end confdefs.h. */
20072 #include <string.h>
20074 main ()
20076 #ifndef _AIX
20077 int strerror_r(int, char *, size_t);
20078 #else
20079 /* Older AIX has 'int' for the third argument so we don't test the args. */
20080 int strerror_r();
20081 #endif
20083 return 0;
20085 _ACEOF
20086 rm -f conftest.$ac_objext
20087 if { (ac_try="$ac_compile"
20088 case "(($ac_try" in
20089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20090 *) ac_try_echo=$ac_try;;
20091 esac
20092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20093 (eval "$ac_compile") 2>conftest.er1
20094 ac_status=$?
20095 grep -v '^ *+' conftest.er1 >conftest.err
20096 rm -f conftest.er1
20097 cat conftest.err >&5
20098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099 (exit $ac_status); } && {
20100 test -z "$ac_c_werror_flag" ||
20101 test ! -s conftest.err
20102 } && test -s conftest.$ac_objext; then
20103 pgac_cv_func_strerror_r_int=yes
20104 else
20105 echo "$as_me: failed program was:" >&5
20106 sed 's/^/| /' conftest.$ac_ext >&5
20108 pgac_cv_func_strerror_r_int=no
20111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20113 { echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
20114 echo "${ECHO_T}$pgac_cv_func_strerror_r_int" >&6; }
20115 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
20117 cat >>confdefs.h <<\_ACEOF
20118 #define STRERROR_R_INT
20119 _ACEOF
20124 CFLAGS="$_CFLAGS"
20125 LIBS="$_LIBS"
20127 else
20128 # do not use values from template file
20129 PTHREAD_CFLAGS=
20130 PTHREAD_LIBS=
20137 # We can test for libldap_r only after we know PTHREAD_LIBS
20138 if test "$with_ldap" = yes ; then
20139 _LIBS="$LIBS"
20140 if test "$PORTNAME" != "win32"; then
20142 { echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
20143 echo $ECHO_N "checking for ldap_bind in -lldap... $ECHO_C" >&6; }
20144 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
20145 echo $ECHO_N "(cached) $ECHO_C" >&6
20146 else
20147 ac_check_lib_save_LIBS=$LIBS
20148 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
20149 cat >conftest.$ac_ext <<_ACEOF
20150 /* confdefs.h. */
20151 _ACEOF
20152 cat confdefs.h >>conftest.$ac_ext
20153 cat >>conftest.$ac_ext <<_ACEOF
20154 /* end confdefs.h. */
20156 /* Override any GCC internal prototype to avoid an error.
20157 Use char because int might match the return type of a GCC
20158 builtin and then its argument prototype would still apply. */
20159 #ifdef __cplusplus
20160 extern "C"
20161 #endif
20162 char ldap_bind ();
20164 main ()
20166 return ldap_bind ();
20168 return 0;
20170 _ACEOF
20171 rm -f conftest.$ac_objext conftest$ac_exeext
20172 if { (ac_try="$ac_link"
20173 case "(($ac_try" in
20174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20175 *) ac_try_echo=$ac_try;;
20176 esac
20177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20178 (eval "$ac_link") 2>conftest.er1
20179 ac_status=$?
20180 grep -v '^ *+' conftest.er1 >conftest.err
20181 rm -f conftest.er1
20182 cat conftest.err >&5
20183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184 (exit $ac_status); } && {
20185 test -z "$ac_c_werror_flag" ||
20186 test ! -s conftest.err
20187 } && test -s conftest$ac_exeext &&
20188 $as_test_x conftest$ac_exeext; then
20189 ac_cv_lib_ldap_ldap_bind=yes
20190 else
20191 echo "$as_me: failed program was:" >&5
20192 sed 's/^/| /' conftest.$ac_ext >&5
20194 ac_cv_lib_ldap_ldap_bind=no
20197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20198 conftest$ac_exeext conftest.$ac_ext
20199 LIBS=$ac_check_lib_save_LIBS
20201 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
20202 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_bind" >&6; }
20203 if test $ac_cv_lib_ldap_ldap_bind = yes; then
20204 cat >>confdefs.h <<_ACEOF
20205 #define HAVE_LIBLDAP 1
20206 _ACEOF
20208 LIBS="-lldap $LIBS"
20210 else
20211 { { echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
20212 echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
20213 { (exit 1); exit 1; }; }
20216 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
20217 if test "$enable_thread_safety" = yes; then
20218 # on some platforms ldap_r fails to link without PTHREAD_LIBS
20220 { echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
20221 echo $ECHO_N "checking for ldap_simple_bind in -lldap_r... $ECHO_C" >&6; }
20222 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
20223 echo $ECHO_N "(cached) $ECHO_C" >&6
20224 else
20225 ac_check_lib_save_LIBS=$LIBS
20226 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
20227 cat >conftest.$ac_ext <<_ACEOF
20228 /* confdefs.h. */
20229 _ACEOF
20230 cat confdefs.h >>conftest.$ac_ext
20231 cat >>conftest.$ac_ext <<_ACEOF
20232 /* end confdefs.h. */
20234 /* Override any GCC internal prototype to avoid an error.
20235 Use char because int might match the return type of a GCC
20236 builtin and then its argument prototype would still apply. */
20237 #ifdef __cplusplus
20238 extern "C"
20239 #endif
20240 char ldap_simple_bind ();
20242 main ()
20244 return ldap_simple_bind ();
20246 return 0;
20248 _ACEOF
20249 rm -f conftest.$ac_objext conftest$ac_exeext
20250 if { (ac_try="$ac_link"
20251 case "(($ac_try" in
20252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20253 *) ac_try_echo=$ac_try;;
20254 esac
20255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20256 (eval "$ac_link") 2>conftest.er1
20257 ac_status=$?
20258 grep -v '^ *+' conftest.er1 >conftest.err
20259 rm -f conftest.er1
20260 cat conftest.err >&5
20261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262 (exit $ac_status); } && {
20263 test -z "$ac_c_werror_flag" ||
20264 test ! -s conftest.err
20265 } && test -s conftest$ac_exeext &&
20266 $as_test_x conftest$ac_exeext; then
20267 ac_cv_lib_ldap_r_ldap_simple_bind=yes
20268 else
20269 echo "$as_me: failed program was:" >&5
20270 sed 's/^/| /' conftest.$ac_ext >&5
20272 ac_cv_lib_ldap_r_ldap_simple_bind=no
20275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20276 conftest$ac_exeext conftest.$ac_ext
20277 LIBS=$ac_check_lib_save_LIBS
20279 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
20280 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
20281 if test $ac_cv_lib_ldap_r_ldap_simple_bind = yes; then
20282 cat >>confdefs.h <<_ACEOF
20283 #define HAVE_LIBLDAP_R 1
20284 _ACEOF
20286 LIBS="-lldap_r $LIBS"
20288 else
20289 { { echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
20290 echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
20291 { (exit 1); exit 1; }; }
20294 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
20295 else
20296 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
20298 else
20300 { echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
20301 echo $ECHO_N "checking for ldap_bind in -lwldap32... $ECHO_C" >&6; }
20302 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
20303 echo $ECHO_N "(cached) $ECHO_C" >&6
20304 else
20305 ac_check_lib_save_LIBS=$LIBS
20306 LIBS="-lwldap32 $LIBS"
20307 cat >conftest.$ac_ext <<_ACEOF
20308 /* confdefs.h. */
20309 _ACEOF
20310 cat confdefs.h >>conftest.$ac_ext
20311 cat >>conftest.$ac_ext <<_ACEOF
20312 /* end confdefs.h. */
20314 /* Override any GCC internal prototype to avoid an error.
20315 Use char because int might match the return type of a GCC
20316 builtin and then its argument prototype would still apply. */
20317 #ifdef __cplusplus
20318 extern "C"
20319 #endif
20320 char ldap_bind ();
20322 main ()
20324 return ldap_bind ();
20326 return 0;
20328 _ACEOF
20329 rm -f conftest.$ac_objext conftest$ac_exeext
20330 if { (ac_try="$ac_link"
20331 case "(($ac_try" in
20332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20333 *) ac_try_echo=$ac_try;;
20334 esac
20335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20336 (eval "$ac_link") 2>conftest.er1
20337 ac_status=$?
20338 grep -v '^ *+' conftest.er1 >conftest.err
20339 rm -f conftest.er1
20340 cat conftest.err >&5
20341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342 (exit $ac_status); } && {
20343 test -z "$ac_c_werror_flag" ||
20344 test ! -s conftest.err
20345 } && test -s conftest$ac_exeext &&
20346 $as_test_x conftest$ac_exeext; then
20347 ac_cv_lib_wldap32_ldap_bind=yes
20348 else
20349 echo "$as_me: failed program was:" >&5
20350 sed 's/^/| /' conftest.$ac_ext >&5
20352 ac_cv_lib_wldap32_ldap_bind=no
20355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20356 conftest$ac_exeext conftest.$ac_ext
20357 LIBS=$ac_check_lib_save_LIBS
20359 { echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
20360 echo "${ECHO_T}$ac_cv_lib_wldap32_ldap_bind" >&6; }
20361 if test $ac_cv_lib_wldap32_ldap_bind = yes; then
20362 cat >>confdefs.h <<_ACEOF
20363 #define HAVE_LIBWLDAP32 1
20364 _ACEOF
20366 LIBS="-lwldap32 $LIBS"
20368 else
20369 { { echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
20370 echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
20371 { (exit 1); exit 1; }; }
20374 LDAP_LIBS_FE="-lwldap32"
20375 LDAP_LIBS_BE="-lwldap32"
20377 LIBS="$_LIBS"
20383 # This test makes sure that run tests work at all. Sometimes a shared
20384 # library is found by the linker, but the runtime linker can't find it.
20385 # This check should come after all modifications of compiler or linker
20386 # variables, and before any other run tests.
20387 { echo "$as_me:$LINENO: checking test program" >&5
20388 echo $ECHO_N "checking test program... $ECHO_C" >&6; }
20389 if test "$cross_compiling" = yes; then
20390 { echo "$as_me:$LINENO: result: cross-compiling" >&5
20391 echo "${ECHO_T}cross-compiling" >&6; }
20392 else
20393 cat >conftest.$ac_ext <<_ACEOF
20394 /* confdefs.h. */
20395 _ACEOF
20396 cat confdefs.h >>conftest.$ac_ext
20397 cat >>conftest.$ac_ext <<_ACEOF
20398 /* end confdefs.h. */
20399 int main() { return 0; }
20400 _ACEOF
20401 rm -f conftest$ac_exeext
20402 if { (ac_try="$ac_link"
20403 case "(($ac_try" in
20404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20405 *) ac_try_echo=$ac_try;;
20406 esac
20407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20408 (eval "$ac_link") 2>&5
20409 ac_status=$?
20410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20412 { (case "(($ac_try" in
20413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20414 *) ac_try_echo=$ac_try;;
20415 esac
20416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20417 (eval "$ac_try") 2>&5
20418 ac_status=$?
20419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420 (exit $ac_status); }; }; then
20421 { echo "$as_me:$LINENO: result: ok" >&5
20422 echo "${ECHO_T}ok" >&6; }
20423 else
20424 echo "$as_me: program exited with status $ac_status" >&5
20425 echo "$as_me: failed program was:" >&5
20426 sed 's/^/| /' conftest.$ac_ext >&5
20428 ( exit $ac_status )
20429 { echo "$as_me:$LINENO: result: failed" >&5
20430 echo "${ECHO_T}failed" >&6; }
20431 { { echo "$as_me:$LINENO: error:
20432 Could not execute a simple test program. This may be a problem
20433 related to locating shared libraries. Check the file 'config.log'
20434 for the exact reason." >&5
20435 echo "$as_me: error:
20436 Could not execute a simple test program. This may be a problem
20437 related to locating shared libraries. Check the file 'config.log'
20438 for the exact reason." >&2;}
20439 { (exit 1); exit 1; }; }
20441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20446 # --------------------
20447 # Run tests below here
20448 # --------------------
20450 # Force use of our snprintf if system's doesn't do arg control
20451 # See comment above at snprintf test for details.
20452 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
20453 { echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
20454 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6; }
20455 if test "${pgac_cv_printf_arg_control+set}" = set; then
20456 echo $ECHO_N "(cached) $ECHO_C" >&6
20457 else
20458 if test "$cross_compiling" = yes; then
20459 pgac_cv_printf_arg_control=cross
20460 else
20461 cat >conftest.$ac_ext <<_ACEOF
20462 /* confdefs.h. */
20463 _ACEOF
20464 cat confdefs.h >>conftest.$ac_ext
20465 cat >>conftest.$ac_ext <<_ACEOF
20466 /* end confdefs.h. */
20467 #include <stdio.h>
20468 #include <string.h>
20470 int main()
20472 char buf[100];
20474 /* can it swap arguments? */
20475 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
20476 if (strcmp(buf, "4 3") != 0)
20477 return 1;
20478 return 0;
20480 _ACEOF
20481 rm -f conftest$ac_exeext
20482 if { (ac_try="$ac_link"
20483 case "(($ac_try" in
20484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20485 *) ac_try_echo=$ac_try;;
20486 esac
20487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20488 (eval "$ac_link") 2>&5
20489 ac_status=$?
20490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20492 { (case "(($ac_try" in
20493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20494 *) ac_try_echo=$ac_try;;
20495 esac
20496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20497 (eval "$ac_try") 2>&5
20498 ac_status=$?
20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); }; }; then
20501 pgac_cv_printf_arg_control=yes
20502 else
20503 echo "$as_me: program exited with status $ac_status" >&5
20504 echo "$as_me: failed program was:" >&5
20505 sed 's/^/| /' conftest.$ac_ext >&5
20507 ( exit $ac_status )
20508 pgac_cv_printf_arg_control=no
20510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20516 { echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
20517 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6; }
20519 if test $pgac_cv_printf_arg_control != yes ; then
20520 pgac_need_repl_snprintf=yes
20526 { echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
20527 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6; }
20528 if test "${pgac_cv_type_long_int_64+set}" = set; then
20529 echo $ECHO_N "(cached) $ECHO_C" >&6
20530 else
20531 if test "$cross_compiling" = yes; then
20532 # If cross-compiling, check the size reported by the compiler and
20533 # trust that the arithmetic works.
20534 cat >conftest.$ac_ext <<_ACEOF
20535 /* confdefs.h. */
20536 _ACEOF
20537 cat confdefs.h >>conftest.$ac_ext
20538 cat >>conftest.$ac_ext <<_ACEOF
20539 /* end confdefs.h. */
20542 main ()
20544 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
20545 test_array [0] = 0
20548 return 0;
20550 _ACEOF
20551 rm -f conftest.$ac_objext
20552 if { (ac_try="$ac_compile"
20553 case "(($ac_try" in
20554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20555 *) ac_try_echo=$ac_try;;
20556 esac
20557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20558 (eval "$ac_compile") 2>conftest.er1
20559 ac_status=$?
20560 grep -v '^ *+' conftest.er1 >conftest.err
20561 rm -f conftest.er1
20562 cat conftest.err >&5
20563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20564 (exit $ac_status); } && {
20565 test -z "$ac_c_werror_flag" ||
20566 test ! -s conftest.err
20567 } && test -s conftest.$ac_objext; then
20568 pgac_cv_type_long_int_64=yes
20569 else
20570 echo "$as_me: failed program was:" >&5
20571 sed 's/^/| /' conftest.$ac_ext >&5
20573 pgac_cv_type_long_int_64=no
20576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20577 else
20578 cat >conftest.$ac_ext <<_ACEOF
20579 /* confdefs.h. */
20580 _ACEOF
20581 cat confdefs.h >>conftest.$ac_ext
20582 cat >>conftest.$ac_ext <<_ACEOF
20583 /* end confdefs.h. */
20584 typedef long int ac_int64;
20587 * These are globals to discourage the compiler from folding all the
20588 * arithmetic tests down to compile-time constants.
20590 ac_int64 a = 20000001;
20591 ac_int64 b = 40000005;
20593 int does_int64_work()
20595 ac_int64 c,d;
20597 if (sizeof(ac_int64) != 8)
20598 return 0; /* definitely not the right size */
20600 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
20601 c = a * b;
20602 d = (c + b) / b;
20603 if (d != a+1)
20604 return 0;
20605 return 1;
20607 main() {
20608 exit(! does_int64_work());
20610 _ACEOF
20611 rm -f conftest$ac_exeext
20612 if { (ac_try="$ac_link"
20613 case "(($ac_try" in
20614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20615 *) ac_try_echo=$ac_try;;
20616 esac
20617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20618 (eval "$ac_link") 2>&5
20619 ac_status=$?
20620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20622 { (case "(($ac_try" in
20623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20624 *) ac_try_echo=$ac_try;;
20625 esac
20626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20627 (eval "$ac_try") 2>&5
20628 ac_status=$?
20629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20630 (exit $ac_status); }; }; then
20631 pgac_cv_type_long_int_64=yes
20632 else
20633 echo "$as_me: program exited with status $ac_status" >&5
20634 echo "$as_me: failed program was:" >&5
20635 sed 's/^/| /' conftest.$ac_ext >&5
20637 ( exit $ac_status )
20638 pgac_cv_type_long_int_64=no
20640 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20645 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
20646 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6; }
20648 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
20649 if test x"$pgac_cv_type_long_int_64" = xyes ; then
20651 cat >>confdefs.h <<\_ACEOF
20652 #define HAVE_LONG_INT_64 1
20653 _ACEOF
20658 if test x"$HAVE_LONG_INT_64" = x"no" ; then
20659 { echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
20660 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6; }
20661 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
20662 echo $ECHO_N "(cached) $ECHO_C" >&6
20663 else
20664 if test "$cross_compiling" = yes; then
20665 # If cross-compiling, check the size reported by the compiler and
20666 # trust that the arithmetic works.
20667 cat >conftest.$ac_ext <<_ACEOF
20668 /* confdefs.h. */
20669 _ACEOF
20670 cat confdefs.h >>conftest.$ac_ext
20671 cat >>conftest.$ac_ext <<_ACEOF
20672 /* end confdefs.h. */
20675 main ()
20677 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
20678 test_array [0] = 0
20681 return 0;
20683 _ACEOF
20684 rm -f conftest.$ac_objext
20685 if { (ac_try="$ac_compile"
20686 case "(($ac_try" in
20687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20688 *) ac_try_echo=$ac_try;;
20689 esac
20690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20691 (eval "$ac_compile") 2>conftest.er1
20692 ac_status=$?
20693 grep -v '^ *+' conftest.er1 >conftest.err
20694 rm -f conftest.er1
20695 cat conftest.err >&5
20696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20697 (exit $ac_status); } && {
20698 test -z "$ac_c_werror_flag" ||
20699 test ! -s conftest.err
20700 } && test -s conftest.$ac_objext; then
20701 pgac_cv_type_long_long_int_64=yes
20702 else
20703 echo "$as_me: failed program was:" >&5
20704 sed 's/^/| /' conftest.$ac_ext >&5
20706 pgac_cv_type_long_long_int_64=no
20709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20710 else
20711 cat >conftest.$ac_ext <<_ACEOF
20712 /* confdefs.h. */
20713 _ACEOF
20714 cat confdefs.h >>conftest.$ac_ext
20715 cat >>conftest.$ac_ext <<_ACEOF
20716 /* end confdefs.h. */
20717 typedef long long int ac_int64;
20720 * These are globals to discourage the compiler from folding all the
20721 * arithmetic tests down to compile-time constants.
20723 ac_int64 a = 20000001;
20724 ac_int64 b = 40000005;
20726 int does_int64_work()
20728 ac_int64 c,d;
20730 if (sizeof(ac_int64) != 8)
20731 return 0; /* definitely not the right size */
20733 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
20734 c = a * b;
20735 d = (c + b) / b;
20736 if (d != a+1)
20737 return 0;
20738 return 1;
20740 main() {
20741 exit(! does_int64_work());
20743 _ACEOF
20744 rm -f conftest$ac_exeext
20745 if { (ac_try="$ac_link"
20746 case "(($ac_try" in
20747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20748 *) ac_try_echo=$ac_try;;
20749 esac
20750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20751 (eval "$ac_link") 2>&5
20752 ac_status=$?
20753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20755 { (case "(($ac_try" in
20756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20757 *) ac_try_echo=$ac_try;;
20758 esac
20759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20760 (eval "$ac_try") 2>&5
20761 ac_status=$?
20762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763 (exit $ac_status); }; }; then
20764 pgac_cv_type_long_long_int_64=yes
20765 else
20766 echo "$as_me: program exited with status $ac_status" >&5
20767 echo "$as_me: failed program was:" >&5
20768 sed 's/^/| /' conftest.$ac_ext >&5
20770 ( exit $ac_status )
20771 pgac_cv_type_long_long_int_64=no
20773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20778 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
20779 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6; }
20781 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
20782 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
20784 cat >>confdefs.h <<\_ACEOF
20785 #define HAVE_LONG_LONG_INT_64 1
20786 _ACEOF
20794 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
20795 cat >conftest.$ac_ext <<_ACEOF
20796 /* confdefs.h. */
20797 _ACEOF
20798 cat confdefs.h >>conftest.$ac_ext
20799 cat >>conftest.$ac_ext <<_ACEOF
20800 /* end confdefs.h. */
20802 #define INT64CONST(x) x##LL
20803 long long int foo = INT64CONST(0x1234567890123456);
20806 main ()
20810 return 0;
20812 _ACEOF
20813 rm -f conftest.$ac_objext
20814 if { (ac_try="$ac_compile"
20815 case "(($ac_try" in
20816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20817 *) ac_try_echo=$ac_try;;
20818 esac
20819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20820 (eval "$ac_compile") 2>conftest.er1
20821 ac_status=$?
20822 grep -v '^ *+' conftest.er1 >conftest.err
20823 rm -f conftest.er1
20824 cat conftest.err >&5
20825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20826 (exit $ac_status); } && {
20827 test -z "$ac_c_werror_flag" ||
20828 test ! -s conftest.err
20829 } && test -s conftest.$ac_objext; then
20831 cat >>confdefs.h <<\_ACEOF
20832 #define HAVE_LL_CONSTANTS 1
20833 _ACEOF
20835 else
20836 echo "$as_me: failed program was:" >&5
20837 sed 's/^/| /' conftest.$ac_ext >&5
20842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20846 # If we found "long int" is 64 bits, assume snprintf handles it. If
20847 # we found we need to use "long long int", better check. We cope with
20848 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
20849 # work, fall back to our own snprintf emulation (which we know uses %lld).
20851 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
20852 if test $pgac_need_repl_snprintf = no; then
20853 { echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
20854 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6; }
20855 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
20856 echo $ECHO_N "(cached) $ECHO_C" >&6
20857 else
20858 for pgac_format in '%lld' '%qd' '%I64d'; do
20859 if test "$cross_compiling" = yes; then
20860 pgac_cv_snprintf_long_long_int_format=cross; break
20861 else
20862 cat >conftest.$ac_ext <<_ACEOF
20863 /* confdefs.h. */
20864 _ACEOF
20865 cat confdefs.h >>conftest.$ac_ext
20866 cat >>conftest.$ac_ext <<_ACEOF
20867 /* end confdefs.h. */
20868 #include <stdio.h>
20869 typedef long long int ac_int64;
20870 #define INT64_FORMAT "$pgac_format"
20872 ac_int64 a = 20000001;
20873 ac_int64 b = 40000005;
20875 int does_int64_snprintf_work()
20877 ac_int64 c;
20878 char buf[100];
20880 if (sizeof(ac_int64) != 8)
20881 return 0; /* doesn't look like the right size */
20883 c = a * b;
20884 snprintf(buf, 100, INT64_FORMAT, c);
20885 if (strcmp(buf, "800000140000005") != 0)
20886 return 0; /* either multiply or snprintf is busted */
20887 return 1;
20889 main() {
20890 exit(! does_int64_snprintf_work());
20892 _ACEOF
20893 rm -f conftest$ac_exeext
20894 if { (ac_try="$ac_link"
20895 case "(($ac_try" in
20896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20897 *) ac_try_echo=$ac_try;;
20898 esac
20899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20900 (eval "$ac_link") 2>&5
20901 ac_status=$?
20902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20904 { (case "(($ac_try" in
20905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20906 *) ac_try_echo=$ac_try;;
20907 esac
20908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20909 (eval "$ac_try") 2>&5
20910 ac_status=$?
20911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912 (exit $ac_status); }; }; then
20913 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
20914 else
20915 echo "$as_me: program exited with status $ac_status" >&5
20916 echo "$as_me: failed program was:" >&5
20917 sed 's/^/| /' conftest.$ac_ext >&5
20920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20924 done
20927 LONG_LONG_INT_FORMAT=''
20929 case $pgac_cv_snprintf_long_long_int_format in
20930 cross) { echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
20931 echo "${ECHO_T}cannot test (not on host machine)" >&6; };;
20932 ?*) { echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
20933 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6; }
20934 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
20935 *) { echo "$as_me:$LINENO: result: none" >&5
20936 echo "${ECHO_T}none" >&6; };;
20937 esac
20938 if test "$LONG_LONG_INT_FORMAT" = ""; then
20939 # Force usage of our own snprintf, since system snprintf is broken
20940 pgac_need_repl_snprintf=yes
20941 LONG_LONG_INT_FORMAT='%lld'
20943 else
20944 # Here if we previously decided we needed to use our own snprintf
20945 LONG_LONG_INT_FORMAT='%lld'
20947 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
20948 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
20949 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
20950 else
20951 # Here if we are not using 'long long int' at all
20952 INT64_FORMAT='"%ld"'
20953 UINT64_FORMAT='"%lu"'
20957 cat >>confdefs.h <<_ACEOF
20958 #define INT64_FORMAT $INT64_FORMAT
20959 _ACEOF
20963 cat >>confdefs.h <<_ACEOF
20964 #define UINT64_FORMAT $UINT64_FORMAT
20965 _ACEOF
20968 # Now we have checked all the reasons to replace snprintf
20969 if test $pgac_need_repl_snprintf = yes; then
20971 cat >>confdefs.h <<\_ACEOF
20972 #define USE_REPL_SNPRINTF 1
20973 _ACEOF
20975 case " $LIBOBJS " in
20976 *" snprintf.$ac_objext "* ) ;;
20977 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20979 esac
20983 # Need a #define for the size of Datum (unsigned long)
20984 { echo "$as_me:$LINENO: checking for unsigned long" >&5
20985 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
20986 if test "${ac_cv_type_unsigned_long+set}" = set; then
20987 echo $ECHO_N "(cached) $ECHO_C" >&6
20988 else
20989 cat >conftest.$ac_ext <<_ACEOF
20990 /* confdefs.h. */
20991 _ACEOF
20992 cat confdefs.h >>conftest.$ac_ext
20993 cat >>conftest.$ac_ext <<_ACEOF
20994 /* end confdefs.h. */
20995 $ac_includes_default
20996 typedef unsigned long ac__type_new_;
20998 main ()
21000 if ((ac__type_new_ *) 0)
21001 return 0;
21002 if (sizeof (ac__type_new_))
21003 return 0;
21005 return 0;
21007 _ACEOF
21008 rm -f conftest.$ac_objext
21009 if { (ac_try="$ac_compile"
21010 case "(($ac_try" in
21011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21012 *) ac_try_echo=$ac_try;;
21013 esac
21014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21015 (eval "$ac_compile") 2>conftest.er1
21016 ac_status=$?
21017 grep -v '^ *+' conftest.er1 >conftest.err
21018 rm -f conftest.er1
21019 cat conftest.err >&5
21020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021 (exit $ac_status); } && {
21022 test -z "$ac_c_werror_flag" ||
21023 test ! -s conftest.err
21024 } && test -s conftest.$ac_objext; then
21025 ac_cv_type_unsigned_long=yes
21026 else
21027 echo "$as_me: failed program was:" >&5
21028 sed 's/^/| /' conftest.$ac_ext >&5
21030 ac_cv_type_unsigned_long=no
21033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21035 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
21036 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
21038 # The cast to long int works around a bug in the HP C Compiler
21039 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21040 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21041 # This bug is HP SR number 8606223364.
21042 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
21043 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
21044 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
21045 echo $ECHO_N "(cached) $ECHO_C" >&6
21046 else
21047 if test "$cross_compiling" = yes; then
21048 # Depending upon the size, compute the lo and hi bounds.
21049 cat >conftest.$ac_ext <<_ACEOF
21050 /* confdefs.h. */
21051 _ACEOF
21052 cat confdefs.h >>conftest.$ac_ext
21053 cat >>conftest.$ac_ext <<_ACEOF
21054 /* end confdefs.h. */
21055 $ac_includes_default
21056 typedef unsigned long ac__type_sizeof_;
21058 main ()
21060 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21061 test_array [0] = 0
21064 return 0;
21066 _ACEOF
21067 rm -f conftest.$ac_objext
21068 if { (ac_try="$ac_compile"
21069 case "(($ac_try" in
21070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21071 *) ac_try_echo=$ac_try;;
21072 esac
21073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21074 (eval "$ac_compile") 2>conftest.er1
21075 ac_status=$?
21076 grep -v '^ *+' conftest.er1 >conftest.err
21077 rm -f conftest.er1
21078 cat conftest.err >&5
21079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080 (exit $ac_status); } && {
21081 test -z "$ac_c_werror_flag" ||
21082 test ! -s conftest.err
21083 } && test -s conftest.$ac_objext; then
21084 ac_lo=0 ac_mid=0
21085 while :; do
21086 cat >conftest.$ac_ext <<_ACEOF
21087 /* confdefs.h. */
21088 _ACEOF
21089 cat confdefs.h >>conftest.$ac_ext
21090 cat >>conftest.$ac_ext <<_ACEOF
21091 /* end confdefs.h. */
21092 $ac_includes_default
21093 typedef unsigned long ac__type_sizeof_;
21095 main ()
21097 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21098 test_array [0] = 0
21101 return 0;
21103 _ACEOF
21104 rm -f conftest.$ac_objext
21105 if { (ac_try="$ac_compile"
21106 case "(($ac_try" in
21107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21108 *) ac_try_echo=$ac_try;;
21109 esac
21110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21111 (eval "$ac_compile") 2>conftest.er1
21112 ac_status=$?
21113 grep -v '^ *+' conftest.er1 >conftest.err
21114 rm -f conftest.er1
21115 cat conftest.err >&5
21116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117 (exit $ac_status); } && {
21118 test -z "$ac_c_werror_flag" ||
21119 test ! -s conftest.err
21120 } && test -s conftest.$ac_objext; then
21121 ac_hi=$ac_mid; break
21122 else
21123 echo "$as_me: failed program was:" >&5
21124 sed 's/^/| /' conftest.$ac_ext >&5
21126 ac_lo=`expr $ac_mid + 1`
21127 if test $ac_lo -le $ac_mid; then
21128 ac_lo= ac_hi=
21129 break
21131 ac_mid=`expr 2 '*' $ac_mid + 1`
21134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21135 done
21136 else
21137 echo "$as_me: failed program was:" >&5
21138 sed 's/^/| /' conftest.$ac_ext >&5
21140 cat >conftest.$ac_ext <<_ACEOF
21141 /* confdefs.h. */
21142 _ACEOF
21143 cat confdefs.h >>conftest.$ac_ext
21144 cat >>conftest.$ac_ext <<_ACEOF
21145 /* end confdefs.h. */
21146 $ac_includes_default
21147 typedef unsigned long ac__type_sizeof_;
21149 main ()
21151 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21152 test_array [0] = 0
21155 return 0;
21157 _ACEOF
21158 rm -f conftest.$ac_objext
21159 if { (ac_try="$ac_compile"
21160 case "(($ac_try" in
21161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21162 *) ac_try_echo=$ac_try;;
21163 esac
21164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21165 (eval "$ac_compile") 2>conftest.er1
21166 ac_status=$?
21167 grep -v '^ *+' conftest.er1 >conftest.err
21168 rm -f conftest.er1
21169 cat conftest.err >&5
21170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171 (exit $ac_status); } && {
21172 test -z "$ac_c_werror_flag" ||
21173 test ! -s conftest.err
21174 } && test -s conftest.$ac_objext; then
21175 ac_hi=-1 ac_mid=-1
21176 while :; do
21177 cat >conftest.$ac_ext <<_ACEOF
21178 /* confdefs.h. */
21179 _ACEOF
21180 cat confdefs.h >>conftest.$ac_ext
21181 cat >>conftest.$ac_ext <<_ACEOF
21182 /* end confdefs.h. */
21183 $ac_includes_default
21184 typedef unsigned long ac__type_sizeof_;
21186 main ()
21188 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21189 test_array [0] = 0
21192 return 0;
21194 _ACEOF
21195 rm -f conftest.$ac_objext
21196 if { (ac_try="$ac_compile"
21197 case "(($ac_try" in
21198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21199 *) ac_try_echo=$ac_try;;
21200 esac
21201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21202 (eval "$ac_compile") 2>conftest.er1
21203 ac_status=$?
21204 grep -v '^ *+' conftest.er1 >conftest.err
21205 rm -f conftest.er1
21206 cat conftest.err >&5
21207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208 (exit $ac_status); } && {
21209 test -z "$ac_c_werror_flag" ||
21210 test ! -s conftest.err
21211 } && test -s conftest.$ac_objext; then
21212 ac_lo=$ac_mid; break
21213 else
21214 echo "$as_me: failed program was:" >&5
21215 sed 's/^/| /' conftest.$ac_ext >&5
21217 ac_hi=`expr '(' $ac_mid ')' - 1`
21218 if test $ac_mid -le $ac_hi; then
21219 ac_lo= ac_hi=
21220 break
21222 ac_mid=`expr 2 '*' $ac_mid`
21225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21226 done
21227 else
21228 echo "$as_me: failed program was:" >&5
21229 sed 's/^/| /' conftest.$ac_ext >&5
21231 ac_lo= ac_hi=
21234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21238 # Binary search between lo and hi bounds.
21239 while test "x$ac_lo" != "x$ac_hi"; do
21240 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21241 cat >conftest.$ac_ext <<_ACEOF
21242 /* confdefs.h. */
21243 _ACEOF
21244 cat confdefs.h >>conftest.$ac_ext
21245 cat >>conftest.$ac_ext <<_ACEOF
21246 /* end confdefs.h. */
21247 $ac_includes_default
21248 typedef unsigned long ac__type_sizeof_;
21250 main ()
21252 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21253 test_array [0] = 0
21256 return 0;
21258 _ACEOF
21259 rm -f conftest.$ac_objext
21260 if { (ac_try="$ac_compile"
21261 case "(($ac_try" in
21262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21263 *) ac_try_echo=$ac_try;;
21264 esac
21265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21266 (eval "$ac_compile") 2>conftest.er1
21267 ac_status=$?
21268 grep -v '^ *+' conftest.er1 >conftest.err
21269 rm -f conftest.er1
21270 cat conftest.err >&5
21271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21272 (exit $ac_status); } && {
21273 test -z "$ac_c_werror_flag" ||
21274 test ! -s conftest.err
21275 } && test -s conftest.$ac_objext; then
21276 ac_hi=$ac_mid
21277 else
21278 echo "$as_me: failed program was:" >&5
21279 sed 's/^/| /' conftest.$ac_ext >&5
21281 ac_lo=`expr '(' $ac_mid ')' + 1`
21284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21285 done
21286 case $ac_lo in
21287 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
21288 '') if test "$ac_cv_type_unsigned_long" = yes; then
21289 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
21290 See \`config.log' for more details." >&5
21291 echo "$as_me: error: cannot compute sizeof (unsigned long)
21292 See \`config.log' for more details." >&2;}
21293 { (exit 77); exit 77; }; }
21294 else
21295 ac_cv_sizeof_unsigned_long=0
21296 fi ;;
21297 esac
21298 else
21299 cat >conftest.$ac_ext <<_ACEOF
21300 /* confdefs.h. */
21301 _ACEOF
21302 cat confdefs.h >>conftest.$ac_ext
21303 cat >>conftest.$ac_ext <<_ACEOF
21304 /* end confdefs.h. */
21305 $ac_includes_default
21306 typedef unsigned long ac__type_sizeof_;
21307 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21308 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21309 #include <stdio.h>
21310 #include <stdlib.h>
21312 main ()
21315 FILE *f = fopen ("conftest.val", "w");
21316 if (! f)
21317 return 1;
21318 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21320 long int i = longval ();
21321 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21322 return 1;
21323 fprintf (f, "%ld\n", i);
21325 else
21327 unsigned long int i = ulongval ();
21328 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21329 return 1;
21330 fprintf (f, "%lu\n", i);
21332 return ferror (f) || fclose (f) != 0;
21335 return 0;
21337 _ACEOF
21338 rm -f conftest$ac_exeext
21339 if { (ac_try="$ac_link"
21340 case "(($ac_try" in
21341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21342 *) ac_try_echo=$ac_try;;
21343 esac
21344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21345 (eval "$ac_link") 2>&5
21346 ac_status=$?
21347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21349 { (case "(($ac_try" in
21350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21351 *) ac_try_echo=$ac_try;;
21352 esac
21353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21354 (eval "$ac_try") 2>&5
21355 ac_status=$?
21356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357 (exit $ac_status); }; }; then
21358 ac_cv_sizeof_unsigned_long=`cat conftest.val`
21359 else
21360 echo "$as_me: program exited with status $ac_status" >&5
21361 echo "$as_me: failed program was:" >&5
21362 sed 's/^/| /' conftest.$ac_ext >&5
21364 ( exit $ac_status )
21365 if test "$ac_cv_type_unsigned_long" = yes; then
21366 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
21367 See \`config.log' for more details." >&5
21368 echo "$as_me: error: cannot compute sizeof (unsigned long)
21369 See \`config.log' for more details." >&2;}
21370 { (exit 77); exit 77; }; }
21371 else
21372 ac_cv_sizeof_unsigned_long=0
21375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21377 rm -f conftest.val
21379 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
21380 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
21384 cat >>confdefs.h <<_ACEOF
21385 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21386 _ACEOF
21390 # And check size of void *, size_t (enables tweaks for > 32bit address space)
21391 { echo "$as_me:$LINENO: checking for void *" >&5
21392 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
21393 if test "${ac_cv_type_void_p+set}" = set; then
21394 echo $ECHO_N "(cached) $ECHO_C" >&6
21395 else
21396 cat >conftest.$ac_ext <<_ACEOF
21397 /* confdefs.h. */
21398 _ACEOF
21399 cat confdefs.h >>conftest.$ac_ext
21400 cat >>conftest.$ac_ext <<_ACEOF
21401 /* end confdefs.h. */
21402 $ac_includes_default
21403 typedef void * ac__type_new_;
21405 main ()
21407 if ((ac__type_new_ *) 0)
21408 return 0;
21409 if (sizeof (ac__type_new_))
21410 return 0;
21412 return 0;
21414 _ACEOF
21415 rm -f conftest.$ac_objext
21416 if { (ac_try="$ac_compile"
21417 case "(($ac_try" in
21418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21419 *) ac_try_echo=$ac_try;;
21420 esac
21421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21422 (eval "$ac_compile") 2>conftest.er1
21423 ac_status=$?
21424 grep -v '^ *+' conftest.er1 >conftest.err
21425 rm -f conftest.er1
21426 cat conftest.err >&5
21427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428 (exit $ac_status); } && {
21429 test -z "$ac_c_werror_flag" ||
21430 test ! -s conftest.err
21431 } && test -s conftest.$ac_objext; then
21432 ac_cv_type_void_p=yes
21433 else
21434 echo "$as_me: failed program was:" >&5
21435 sed 's/^/| /' conftest.$ac_ext >&5
21437 ac_cv_type_void_p=no
21440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21442 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
21443 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
21445 # The cast to long int works around a bug in the HP C Compiler
21446 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21447 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21448 # This bug is HP SR number 8606223364.
21449 { echo "$as_me:$LINENO: checking size of void *" >&5
21450 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
21451 if test "${ac_cv_sizeof_void_p+set}" = set; then
21452 echo $ECHO_N "(cached) $ECHO_C" >&6
21453 else
21454 if test "$cross_compiling" = yes; then
21455 # Depending upon the size, compute the lo and hi bounds.
21456 cat >conftest.$ac_ext <<_ACEOF
21457 /* confdefs.h. */
21458 _ACEOF
21459 cat confdefs.h >>conftest.$ac_ext
21460 cat >>conftest.$ac_ext <<_ACEOF
21461 /* end confdefs.h. */
21462 $ac_includes_default
21463 typedef void * ac__type_sizeof_;
21465 main ()
21467 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21468 test_array [0] = 0
21471 return 0;
21473 _ACEOF
21474 rm -f conftest.$ac_objext
21475 if { (ac_try="$ac_compile"
21476 case "(($ac_try" in
21477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21478 *) ac_try_echo=$ac_try;;
21479 esac
21480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21481 (eval "$ac_compile") 2>conftest.er1
21482 ac_status=$?
21483 grep -v '^ *+' conftest.er1 >conftest.err
21484 rm -f conftest.er1
21485 cat conftest.err >&5
21486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487 (exit $ac_status); } && {
21488 test -z "$ac_c_werror_flag" ||
21489 test ! -s conftest.err
21490 } && test -s conftest.$ac_objext; then
21491 ac_lo=0 ac_mid=0
21492 while :; do
21493 cat >conftest.$ac_ext <<_ACEOF
21494 /* confdefs.h. */
21495 _ACEOF
21496 cat confdefs.h >>conftest.$ac_ext
21497 cat >>conftest.$ac_ext <<_ACEOF
21498 /* end confdefs.h. */
21499 $ac_includes_default
21500 typedef void * ac__type_sizeof_;
21502 main ()
21504 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21505 test_array [0] = 0
21508 return 0;
21510 _ACEOF
21511 rm -f conftest.$ac_objext
21512 if { (ac_try="$ac_compile"
21513 case "(($ac_try" in
21514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21515 *) ac_try_echo=$ac_try;;
21516 esac
21517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21518 (eval "$ac_compile") 2>conftest.er1
21519 ac_status=$?
21520 grep -v '^ *+' conftest.er1 >conftest.err
21521 rm -f conftest.er1
21522 cat conftest.err >&5
21523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524 (exit $ac_status); } && {
21525 test -z "$ac_c_werror_flag" ||
21526 test ! -s conftest.err
21527 } && test -s conftest.$ac_objext; then
21528 ac_hi=$ac_mid; break
21529 else
21530 echo "$as_me: failed program was:" >&5
21531 sed 's/^/| /' conftest.$ac_ext >&5
21533 ac_lo=`expr $ac_mid + 1`
21534 if test $ac_lo -le $ac_mid; then
21535 ac_lo= ac_hi=
21536 break
21538 ac_mid=`expr 2 '*' $ac_mid + 1`
21541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21542 done
21543 else
21544 echo "$as_me: failed program was:" >&5
21545 sed 's/^/| /' conftest.$ac_ext >&5
21547 cat >conftest.$ac_ext <<_ACEOF
21548 /* confdefs.h. */
21549 _ACEOF
21550 cat confdefs.h >>conftest.$ac_ext
21551 cat >>conftest.$ac_ext <<_ACEOF
21552 /* end confdefs.h. */
21553 $ac_includes_default
21554 typedef void * ac__type_sizeof_;
21556 main ()
21558 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21559 test_array [0] = 0
21562 return 0;
21564 _ACEOF
21565 rm -f conftest.$ac_objext
21566 if { (ac_try="$ac_compile"
21567 case "(($ac_try" in
21568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21569 *) ac_try_echo=$ac_try;;
21570 esac
21571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21572 (eval "$ac_compile") 2>conftest.er1
21573 ac_status=$?
21574 grep -v '^ *+' conftest.er1 >conftest.err
21575 rm -f conftest.er1
21576 cat conftest.err >&5
21577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578 (exit $ac_status); } && {
21579 test -z "$ac_c_werror_flag" ||
21580 test ! -s conftest.err
21581 } && test -s conftest.$ac_objext; then
21582 ac_hi=-1 ac_mid=-1
21583 while :; do
21584 cat >conftest.$ac_ext <<_ACEOF
21585 /* confdefs.h. */
21586 _ACEOF
21587 cat confdefs.h >>conftest.$ac_ext
21588 cat >>conftest.$ac_ext <<_ACEOF
21589 /* end confdefs.h. */
21590 $ac_includes_default
21591 typedef void * ac__type_sizeof_;
21593 main ()
21595 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21596 test_array [0] = 0
21599 return 0;
21601 _ACEOF
21602 rm -f conftest.$ac_objext
21603 if { (ac_try="$ac_compile"
21604 case "(($ac_try" in
21605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21606 *) ac_try_echo=$ac_try;;
21607 esac
21608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21609 (eval "$ac_compile") 2>conftest.er1
21610 ac_status=$?
21611 grep -v '^ *+' conftest.er1 >conftest.err
21612 rm -f conftest.er1
21613 cat conftest.err >&5
21614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615 (exit $ac_status); } && {
21616 test -z "$ac_c_werror_flag" ||
21617 test ! -s conftest.err
21618 } && test -s conftest.$ac_objext; then
21619 ac_lo=$ac_mid; break
21620 else
21621 echo "$as_me: failed program was:" >&5
21622 sed 's/^/| /' conftest.$ac_ext >&5
21624 ac_hi=`expr '(' $ac_mid ')' - 1`
21625 if test $ac_mid -le $ac_hi; then
21626 ac_lo= ac_hi=
21627 break
21629 ac_mid=`expr 2 '*' $ac_mid`
21632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21633 done
21634 else
21635 echo "$as_me: failed program was:" >&5
21636 sed 's/^/| /' conftest.$ac_ext >&5
21638 ac_lo= ac_hi=
21641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21645 # Binary search between lo and hi bounds.
21646 while test "x$ac_lo" != "x$ac_hi"; do
21647 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21648 cat >conftest.$ac_ext <<_ACEOF
21649 /* confdefs.h. */
21650 _ACEOF
21651 cat confdefs.h >>conftest.$ac_ext
21652 cat >>conftest.$ac_ext <<_ACEOF
21653 /* end confdefs.h. */
21654 $ac_includes_default
21655 typedef void * ac__type_sizeof_;
21657 main ()
21659 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21660 test_array [0] = 0
21663 return 0;
21665 _ACEOF
21666 rm -f conftest.$ac_objext
21667 if { (ac_try="$ac_compile"
21668 case "(($ac_try" in
21669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21670 *) ac_try_echo=$ac_try;;
21671 esac
21672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21673 (eval "$ac_compile") 2>conftest.er1
21674 ac_status=$?
21675 grep -v '^ *+' conftest.er1 >conftest.err
21676 rm -f conftest.er1
21677 cat conftest.err >&5
21678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679 (exit $ac_status); } && {
21680 test -z "$ac_c_werror_flag" ||
21681 test ! -s conftest.err
21682 } && test -s conftest.$ac_objext; then
21683 ac_hi=$ac_mid
21684 else
21685 echo "$as_me: failed program was:" >&5
21686 sed 's/^/| /' conftest.$ac_ext >&5
21688 ac_lo=`expr '(' $ac_mid ')' + 1`
21691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21692 done
21693 case $ac_lo in
21694 ?*) ac_cv_sizeof_void_p=$ac_lo;;
21695 '') if test "$ac_cv_type_void_p" = yes; then
21696 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
21697 See \`config.log' for more details." >&5
21698 echo "$as_me: error: cannot compute sizeof (void *)
21699 See \`config.log' for more details." >&2;}
21700 { (exit 77); exit 77; }; }
21701 else
21702 ac_cv_sizeof_void_p=0
21703 fi ;;
21704 esac
21705 else
21706 cat >conftest.$ac_ext <<_ACEOF
21707 /* confdefs.h. */
21708 _ACEOF
21709 cat confdefs.h >>conftest.$ac_ext
21710 cat >>conftest.$ac_ext <<_ACEOF
21711 /* end confdefs.h. */
21712 $ac_includes_default
21713 typedef void * ac__type_sizeof_;
21714 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21715 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21716 #include <stdio.h>
21717 #include <stdlib.h>
21719 main ()
21722 FILE *f = fopen ("conftest.val", "w");
21723 if (! f)
21724 return 1;
21725 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21727 long int i = longval ();
21728 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21729 return 1;
21730 fprintf (f, "%ld\n", i);
21732 else
21734 unsigned long int i = ulongval ();
21735 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21736 return 1;
21737 fprintf (f, "%lu\n", i);
21739 return ferror (f) || fclose (f) != 0;
21742 return 0;
21744 _ACEOF
21745 rm -f conftest$ac_exeext
21746 if { (ac_try="$ac_link"
21747 case "(($ac_try" in
21748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21749 *) ac_try_echo=$ac_try;;
21750 esac
21751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21752 (eval "$ac_link") 2>&5
21753 ac_status=$?
21754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21755 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21756 { (case "(($ac_try" in
21757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21758 *) ac_try_echo=$ac_try;;
21759 esac
21760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21761 (eval "$ac_try") 2>&5
21762 ac_status=$?
21763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764 (exit $ac_status); }; }; then
21765 ac_cv_sizeof_void_p=`cat conftest.val`
21766 else
21767 echo "$as_me: program exited with status $ac_status" >&5
21768 echo "$as_me: failed program was:" >&5
21769 sed 's/^/| /' conftest.$ac_ext >&5
21771 ( exit $ac_status )
21772 if test "$ac_cv_type_void_p" = yes; then
21773 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
21774 See \`config.log' for more details." >&5
21775 echo "$as_me: error: cannot compute sizeof (void *)
21776 See \`config.log' for more details." >&2;}
21777 { (exit 77); exit 77; }; }
21778 else
21779 ac_cv_sizeof_void_p=0
21782 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21784 rm -f conftest.val
21786 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
21787 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
21791 cat >>confdefs.h <<_ACEOF
21792 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
21793 _ACEOF
21796 { echo "$as_me:$LINENO: checking for size_t" >&5
21797 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21798 if test "${ac_cv_type_size_t+set}" = set; then
21799 echo $ECHO_N "(cached) $ECHO_C" >&6
21800 else
21801 cat >conftest.$ac_ext <<_ACEOF
21802 /* confdefs.h. */
21803 _ACEOF
21804 cat confdefs.h >>conftest.$ac_ext
21805 cat >>conftest.$ac_ext <<_ACEOF
21806 /* end confdefs.h. */
21807 $ac_includes_default
21808 typedef size_t ac__type_new_;
21810 main ()
21812 if ((ac__type_new_ *) 0)
21813 return 0;
21814 if (sizeof (ac__type_new_))
21815 return 0;
21817 return 0;
21819 _ACEOF
21820 rm -f conftest.$ac_objext
21821 if { (ac_try="$ac_compile"
21822 case "(($ac_try" in
21823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21824 *) ac_try_echo=$ac_try;;
21825 esac
21826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21827 (eval "$ac_compile") 2>conftest.er1
21828 ac_status=$?
21829 grep -v '^ *+' conftest.er1 >conftest.err
21830 rm -f conftest.er1
21831 cat conftest.err >&5
21832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833 (exit $ac_status); } && {
21834 test -z "$ac_c_werror_flag" ||
21835 test ! -s conftest.err
21836 } && test -s conftest.$ac_objext; then
21837 ac_cv_type_size_t=yes
21838 else
21839 echo "$as_me: failed program was:" >&5
21840 sed 's/^/| /' conftest.$ac_ext >&5
21842 ac_cv_type_size_t=no
21845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21847 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21848 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21850 # The cast to long int works around a bug in the HP C Compiler
21851 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21852 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21853 # This bug is HP SR number 8606223364.
21854 { echo "$as_me:$LINENO: checking size of size_t" >&5
21855 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
21856 if test "${ac_cv_sizeof_size_t+set}" = set; then
21857 echo $ECHO_N "(cached) $ECHO_C" >&6
21858 else
21859 if test "$cross_compiling" = yes; then
21860 # Depending upon the size, compute the lo and hi bounds.
21861 cat >conftest.$ac_ext <<_ACEOF
21862 /* confdefs.h. */
21863 _ACEOF
21864 cat confdefs.h >>conftest.$ac_ext
21865 cat >>conftest.$ac_ext <<_ACEOF
21866 /* end confdefs.h. */
21867 $ac_includes_default
21868 typedef size_t ac__type_sizeof_;
21870 main ()
21872 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21873 test_array [0] = 0
21876 return 0;
21878 _ACEOF
21879 rm -f conftest.$ac_objext
21880 if { (ac_try="$ac_compile"
21881 case "(($ac_try" in
21882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21883 *) ac_try_echo=$ac_try;;
21884 esac
21885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21886 (eval "$ac_compile") 2>conftest.er1
21887 ac_status=$?
21888 grep -v '^ *+' conftest.er1 >conftest.err
21889 rm -f conftest.er1
21890 cat conftest.err >&5
21891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892 (exit $ac_status); } && {
21893 test -z "$ac_c_werror_flag" ||
21894 test ! -s conftest.err
21895 } && test -s conftest.$ac_objext; then
21896 ac_lo=0 ac_mid=0
21897 while :; do
21898 cat >conftest.$ac_ext <<_ACEOF
21899 /* confdefs.h. */
21900 _ACEOF
21901 cat confdefs.h >>conftest.$ac_ext
21902 cat >>conftest.$ac_ext <<_ACEOF
21903 /* end confdefs.h. */
21904 $ac_includes_default
21905 typedef size_t ac__type_sizeof_;
21907 main ()
21909 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21910 test_array [0] = 0
21913 return 0;
21915 _ACEOF
21916 rm -f conftest.$ac_objext
21917 if { (ac_try="$ac_compile"
21918 case "(($ac_try" in
21919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21920 *) ac_try_echo=$ac_try;;
21921 esac
21922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21923 (eval "$ac_compile") 2>conftest.er1
21924 ac_status=$?
21925 grep -v '^ *+' conftest.er1 >conftest.err
21926 rm -f conftest.er1
21927 cat conftest.err >&5
21928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21929 (exit $ac_status); } && {
21930 test -z "$ac_c_werror_flag" ||
21931 test ! -s conftest.err
21932 } && test -s conftest.$ac_objext; then
21933 ac_hi=$ac_mid; break
21934 else
21935 echo "$as_me: failed program was:" >&5
21936 sed 's/^/| /' conftest.$ac_ext >&5
21938 ac_lo=`expr $ac_mid + 1`
21939 if test $ac_lo -le $ac_mid; then
21940 ac_lo= ac_hi=
21941 break
21943 ac_mid=`expr 2 '*' $ac_mid + 1`
21946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21947 done
21948 else
21949 echo "$as_me: failed program was:" >&5
21950 sed 's/^/| /' conftest.$ac_ext >&5
21952 cat >conftest.$ac_ext <<_ACEOF
21953 /* confdefs.h. */
21954 _ACEOF
21955 cat confdefs.h >>conftest.$ac_ext
21956 cat >>conftest.$ac_ext <<_ACEOF
21957 /* end confdefs.h. */
21958 $ac_includes_default
21959 typedef size_t ac__type_sizeof_;
21961 main ()
21963 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21964 test_array [0] = 0
21967 return 0;
21969 _ACEOF
21970 rm -f conftest.$ac_objext
21971 if { (ac_try="$ac_compile"
21972 case "(($ac_try" in
21973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21974 *) ac_try_echo=$ac_try;;
21975 esac
21976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21977 (eval "$ac_compile") 2>conftest.er1
21978 ac_status=$?
21979 grep -v '^ *+' conftest.er1 >conftest.err
21980 rm -f conftest.er1
21981 cat conftest.err >&5
21982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21983 (exit $ac_status); } && {
21984 test -z "$ac_c_werror_flag" ||
21985 test ! -s conftest.err
21986 } && test -s conftest.$ac_objext; then
21987 ac_hi=-1 ac_mid=-1
21988 while :; do
21989 cat >conftest.$ac_ext <<_ACEOF
21990 /* confdefs.h. */
21991 _ACEOF
21992 cat confdefs.h >>conftest.$ac_ext
21993 cat >>conftest.$ac_ext <<_ACEOF
21994 /* end confdefs.h. */
21995 $ac_includes_default
21996 typedef size_t ac__type_sizeof_;
21998 main ()
22000 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22001 test_array [0] = 0
22004 return 0;
22006 _ACEOF
22007 rm -f conftest.$ac_objext
22008 if { (ac_try="$ac_compile"
22009 case "(($ac_try" in
22010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22011 *) ac_try_echo=$ac_try;;
22012 esac
22013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22014 (eval "$ac_compile") 2>conftest.er1
22015 ac_status=$?
22016 grep -v '^ *+' conftest.er1 >conftest.err
22017 rm -f conftest.er1
22018 cat conftest.err >&5
22019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22020 (exit $ac_status); } && {
22021 test -z "$ac_c_werror_flag" ||
22022 test ! -s conftest.err
22023 } && test -s conftest.$ac_objext; then
22024 ac_lo=$ac_mid; break
22025 else
22026 echo "$as_me: failed program was:" >&5
22027 sed 's/^/| /' conftest.$ac_ext >&5
22029 ac_hi=`expr '(' $ac_mid ')' - 1`
22030 if test $ac_mid -le $ac_hi; then
22031 ac_lo= ac_hi=
22032 break
22034 ac_mid=`expr 2 '*' $ac_mid`
22037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22038 done
22039 else
22040 echo "$as_me: failed program was:" >&5
22041 sed 's/^/| /' conftest.$ac_ext >&5
22043 ac_lo= ac_hi=
22046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22050 # Binary search between lo and hi bounds.
22051 while test "x$ac_lo" != "x$ac_hi"; do
22052 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22053 cat >conftest.$ac_ext <<_ACEOF
22054 /* confdefs.h. */
22055 _ACEOF
22056 cat confdefs.h >>conftest.$ac_ext
22057 cat >>conftest.$ac_ext <<_ACEOF
22058 /* end confdefs.h. */
22059 $ac_includes_default
22060 typedef size_t ac__type_sizeof_;
22062 main ()
22064 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22065 test_array [0] = 0
22068 return 0;
22070 _ACEOF
22071 rm -f conftest.$ac_objext
22072 if { (ac_try="$ac_compile"
22073 case "(($ac_try" in
22074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22075 *) ac_try_echo=$ac_try;;
22076 esac
22077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22078 (eval "$ac_compile") 2>conftest.er1
22079 ac_status=$?
22080 grep -v '^ *+' conftest.er1 >conftest.err
22081 rm -f conftest.er1
22082 cat conftest.err >&5
22083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22084 (exit $ac_status); } && {
22085 test -z "$ac_c_werror_flag" ||
22086 test ! -s conftest.err
22087 } && test -s conftest.$ac_objext; then
22088 ac_hi=$ac_mid
22089 else
22090 echo "$as_me: failed program was:" >&5
22091 sed 's/^/| /' conftest.$ac_ext >&5
22093 ac_lo=`expr '(' $ac_mid ')' + 1`
22096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22097 done
22098 case $ac_lo in
22099 ?*) ac_cv_sizeof_size_t=$ac_lo;;
22100 '') if test "$ac_cv_type_size_t" = yes; then
22101 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
22102 See \`config.log' for more details." >&5
22103 echo "$as_me: error: cannot compute sizeof (size_t)
22104 See \`config.log' for more details." >&2;}
22105 { (exit 77); exit 77; }; }
22106 else
22107 ac_cv_sizeof_size_t=0
22108 fi ;;
22109 esac
22110 else
22111 cat >conftest.$ac_ext <<_ACEOF
22112 /* confdefs.h. */
22113 _ACEOF
22114 cat confdefs.h >>conftest.$ac_ext
22115 cat >>conftest.$ac_ext <<_ACEOF
22116 /* end confdefs.h. */
22117 $ac_includes_default
22118 typedef size_t ac__type_sizeof_;
22119 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22120 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22121 #include <stdio.h>
22122 #include <stdlib.h>
22124 main ()
22127 FILE *f = fopen ("conftest.val", "w");
22128 if (! f)
22129 return 1;
22130 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22132 long int i = longval ();
22133 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22134 return 1;
22135 fprintf (f, "%ld\n", i);
22137 else
22139 unsigned long int i = ulongval ();
22140 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22141 return 1;
22142 fprintf (f, "%lu\n", i);
22144 return ferror (f) || fclose (f) != 0;
22147 return 0;
22149 _ACEOF
22150 rm -f conftest$ac_exeext
22151 if { (ac_try="$ac_link"
22152 case "(($ac_try" in
22153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22154 *) ac_try_echo=$ac_try;;
22155 esac
22156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22157 (eval "$ac_link") 2>&5
22158 ac_status=$?
22159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22160 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22161 { (case "(($ac_try" in
22162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22163 *) ac_try_echo=$ac_try;;
22164 esac
22165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22166 (eval "$ac_try") 2>&5
22167 ac_status=$?
22168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22169 (exit $ac_status); }; }; then
22170 ac_cv_sizeof_size_t=`cat conftest.val`
22171 else
22172 echo "$as_me: program exited with status $ac_status" >&5
22173 echo "$as_me: failed program was:" >&5
22174 sed 's/^/| /' conftest.$ac_ext >&5
22176 ( exit $ac_status )
22177 if test "$ac_cv_type_size_t" = yes; then
22178 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
22179 See \`config.log' for more details." >&5
22180 echo "$as_me: error: cannot compute sizeof (size_t)
22181 See \`config.log' for more details." >&2;}
22182 { (exit 77); exit 77; }; }
22183 else
22184 ac_cv_sizeof_size_t=0
22187 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22189 rm -f conftest.val
22191 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
22192 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
22196 cat >>confdefs.h <<_ACEOF
22197 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22198 _ACEOF
22202 # Decide whether float4 is passed by value: user-selectable, enabled by default
22203 { echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
22204 echo $ECHO_N "checking whether to build with float4 passed by value... $ECHO_C" >&6; }
22206 pgac_args="$pgac_args enable_float4_byval"
22208 # Check whether --enable-float4-byval was given.
22209 if test "${enable_float4_byval+set}" = set; then
22210 enableval=$enable_float4_byval;
22211 case $enableval in
22212 yes)
22214 cat >>confdefs.h <<\_ACEOF
22215 #define USE_FLOAT4_BYVAL 1
22216 _ACEOF
22218 float4passbyval=true
22221 float4passbyval=false
22224 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
22225 echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
22226 { (exit 1); exit 1; }; }
22228 esac
22230 else
22231 enable_float4_byval=yes
22233 cat >>confdefs.h <<\_ACEOF
22234 #define USE_FLOAT4_BYVAL 1
22235 _ACEOF
22237 float4passbyval=true
22241 { echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
22242 echo "${ECHO_T}$enable_float4_byval" >&6; }
22244 cat >>confdefs.h <<_ACEOF
22245 #define FLOAT4PASSBYVAL $float4passbyval
22246 _ACEOF
22249 # Decide whether float8 is passed by value.
22250 # Note: this setting also controls int8 and related types such as timestamp.
22251 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
22252 # If not, trying to select it is an error.
22253 { echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
22254 echo $ECHO_N "checking whether to build with float8 passed by value... $ECHO_C" >&6; }
22255 if test $ac_cv_sizeof_unsigned_long -ge 8 ; then
22257 pgac_args="$pgac_args enable_float8_byval"
22259 # Check whether --enable-float8-byval was given.
22260 if test "${enable_float8_byval+set}" = set; then
22261 enableval=$enable_float8_byval;
22262 case $enableval in
22263 yes)
22270 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
22271 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
22272 { (exit 1); exit 1; }; }
22274 esac
22276 else
22277 enable_float8_byval=yes
22282 else
22284 pgac_args="$pgac_args enable_float8_byval"
22286 # Check whether --enable-float8-byval was given.
22287 if test "${enable_float8_byval+set}" = set; then
22288 enableval=$enable_float8_byval;
22289 case $enableval in
22290 yes)
22297 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
22298 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
22299 { (exit 1); exit 1; }; }
22301 esac
22303 else
22304 enable_float8_byval=no
22309 if test "$enable_float8_byval" = yes ; then
22310 { { echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
22311 echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
22312 { (exit 1); exit 1; }; }
22315 if test "$enable_float8_byval" = yes ; then
22317 cat >>confdefs.h <<\_ACEOF
22318 #define USE_FLOAT8_BYVAL 1
22319 _ACEOF
22321 float8passbyval=true
22322 else
22323 float8passbyval=false
22325 { echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
22326 echo "${ECHO_T}$enable_float8_byval" >&6; }
22328 cat >>confdefs.h <<_ACEOF
22329 #define FLOAT8PASSBYVAL $float8passbyval
22330 _ACEOF
22333 # Determine memory alignment requirements for the basic C data types.
22335 { echo "$as_me:$LINENO: checking for short" >&5
22336 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
22337 if test "${ac_cv_type_short+set}" = set; then
22338 echo $ECHO_N "(cached) $ECHO_C" >&6
22339 else
22340 cat >conftest.$ac_ext <<_ACEOF
22341 /* confdefs.h. */
22342 _ACEOF
22343 cat confdefs.h >>conftest.$ac_ext
22344 cat >>conftest.$ac_ext <<_ACEOF
22345 /* end confdefs.h. */
22346 $ac_includes_default
22347 typedef short ac__type_new_;
22349 main ()
22351 if ((ac__type_new_ *) 0)
22352 return 0;
22353 if (sizeof (ac__type_new_))
22354 return 0;
22356 return 0;
22358 _ACEOF
22359 rm -f conftest.$ac_objext
22360 if { (ac_try="$ac_compile"
22361 case "(($ac_try" in
22362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22363 *) ac_try_echo=$ac_try;;
22364 esac
22365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22366 (eval "$ac_compile") 2>conftest.er1
22367 ac_status=$?
22368 grep -v '^ *+' conftest.er1 >conftest.err
22369 rm -f conftest.er1
22370 cat conftest.err >&5
22371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22372 (exit $ac_status); } && {
22373 test -z "$ac_c_werror_flag" ||
22374 test ! -s conftest.err
22375 } && test -s conftest.$ac_objext; then
22376 ac_cv_type_short=yes
22377 else
22378 echo "$as_me: failed program was:" >&5
22379 sed 's/^/| /' conftest.$ac_ext >&5
22381 ac_cv_type_short=no
22384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22386 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
22387 echo "${ECHO_T}$ac_cv_type_short" >&6; }
22389 # The cast to long int works around a bug in the HP C Compiler,
22390 # see AC_CHECK_SIZEOF for more information.
22391 { echo "$as_me:$LINENO: checking alignment of short" >&5
22392 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6; }
22393 if test "${ac_cv_alignof_short+set}" = set; then
22394 echo $ECHO_N "(cached) $ECHO_C" >&6
22395 else
22396 if test "$cross_compiling" = yes; then
22397 # Depending upon the size, compute the lo and hi bounds.
22398 cat >conftest.$ac_ext <<_ACEOF
22399 /* confdefs.h. */
22400 _ACEOF
22401 cat confdefs.h >>conftest.$ac_ext
22402 cat >>conftest.$ac_ext <<_ACEOF
22403 /* end confdefs.h. */
22404 $ac_includes_default
22405 #ifndef offsetof
22406 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22407 #endif
22408 typedef struct { char x; short y; } ac__type_alignof_;
22410 main ()
22412 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22413 test_array [0] = 0
22416 return 0;
22418 _ACEOF
22419 rm -f conftest.$ac_objext
22420 if { (ac_try="$ac_compile"
22421 case "(($ac_try" in
22422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22423 *) ac_try_echo=$ac_try;;
22424 esac
22425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22426 (eval "$ac_compile") 2>conftest.er1
22427 ac_status=$?
22428 grep -v '^ *+' conftest.er1 >conftest.err
22429 rm -f conftest.er1
22430 cat conftest.err >&5
22431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22432 (exit $ac_status); } && {
22433 test -z "$ac_c_werror_flag" ||
22434 test ! -s conftest.err
22435 } && test -s conftest.$ac_objext; then
22436 ac_lo=0 ac_mid=0
22437 while :; do
22438 cat >conftest.$ac_ext <<_ACEOF
22439 /* confdefs.h. */
22440 _ACEOF
22441 cat confdefs.h >>conftest.$ac_ext
22442 cat >>conftest.$ac_ext <<_ACEOF
22443 /* end confdefs.h. */
22444 $ac_includes_default
22445 #ifndef offsetof
22446 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22447 #endif
22448 typedef struct { char x; short y; } ac__type_alignof_;
22450 main ()
22452 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22453 test_array [0] = 0
22456 return 0;
22458 _ACEOF
22459 rm -f conftest.$ac_objext
22460 if { (ac_try="$ac_compile"
22461 case "(($ac_try" in
22462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22463 *) ac_try_echo=$ac_try;;
22464 esac
22465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22466 (eval "$ac_compile") 2>conftest.er1
22467 ac_status=$?
22468 grep -v '^ *+' conftest.er1 >conftest.err
22469 rm -f conftest.er1
22470 cat conftest.err >&5
22471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22472 (exit $ac_status); } && {
22473 test -z "$ac_c_werror_flag" ||
22474 test ! -s conftest.err
22475 } && test -s conftest.$ac_objext; then
22476 ac_hi=$ac_mid; break
22477 else
22478 echo "$as_me: failed program was:" >&5
22479 sed 's/^/| /' conftest.$ac_ext >&5
22481 ac_lo=`expr $ac_mid + 1`
22482 if test $ac_lo -le $ac_mid; then
22483 ac_lo= ac_hi=
22484 break
22486 ac_mid=`expr 2 '*' $ac_mid + 1`
22489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22490 done
22491 else
22492 echo "$as_me: failed program was:" >&5
22493 sed 's/^/| /' conftest.$ac_ext >&5
22495 cat >conftest.$ac_ext <<_ACEOF
22496 /* confdefs.h. */
22497 _ACEOF
22498 cat confdefs.h >>conftest.$ac_ext
22499 cat >>conftest.$ac_ext <<_ACEOF
22500 /* end confdefs.h. */
22501 $ac_includes_default
22502 #ifndef offsetof
22503 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22504 #endif
22505 typedef struct { char x; short y; } ac__type_alignof_;
22507 main ()
22509 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22510 test_array [0] = 0
22513 return 0;
22515 _ACEOF
22516 rm -f conftest.$ac_objext
22517 if { (ac_try="$ac_compile"
22518 case "(($ac_try" in
22519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22520 *) ac_try_echo=$ac_try;;
22521 esac
22522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22523 (eval "$ac_compile") 2>conftest.er1
22524 ac_status=$?
22525 grep -v '^ *+' conftest.er1 >conftest.err
22526 rm -f conftest.er1
22527 cat conftest.err >&5
22528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22529 (exit $ac_status); } && {
22530 test -z "$ac_c_werror_flag" ||
22531 test ! -s conftest.err
22532 } && test -s conftest.$ac_objext; then
22533 ac_hi=-1 ac_mid=-1
22534 while :; do
22535 cat >conftest.$ac_ext <<_ACEOF
22536 /* confdefs.h. */
22537 _ACEOF
22538 cat confdefs.h >>conftest.$ac_ext
22539 cat >>conftest.$ac_ext <<_ACEOF
22540 /* end confdefs.h. */
22541 $ac_includes_default
22542 #ifndef offsetof
22543 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22544 #endif
22545 typedef struct { char x; short y; } ac__type_alignof_;
22547 main ()
22549 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22550 test_array [0] = 0
22553 return 0;
22555 _ACEOF
22556 rm -f conftest.$ac_objext
22557 if { (ac_try="$ac_compile"
22558 case "(($ac_try" in
22559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22560 *) ac_try_echo=$ac_try;;
22561 esac
22562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22563 (eval "$ac_compile") 2>conftest.er1
22564 ac_status=$?
22565 grep -v '^ *+' conftest.er1 >conftest.err
22566 rm -f conftest.er1
22567 cat conftest.err >&5
22568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22569 (exit $ac_status); } && {
22570 test -z "$ac_c_werror_flag" ||
22571 test ! -s conftest.err
22572 } && test -s conftest.$ac_objext; then
22573 ac_lo=$ac_mid; break
22574 else
22575 echo "$as_me: failed program was:" >&5
22576 sed 's/^/| /' conftest.$ac_ext >&5
22578 ac_hi=`expr '(' $ac_mid ')' - 1`
22579 if test $ac_mid -le $ac_hi; then
22580 ac_lo= ac_hi=
22581 break
22583 ac_mid=`expr 2 '*' $ac_mid`
22586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22587 done
22588 else
22589 echo "$as_me: failed program was:" >&5
22590 sed 's/^/| /' conftest.$ac_ext >&5
22592 ac_lo= ac_hi=
22595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22599 # Binary search between lo and hi bounds.
22600 while test "x$ac_lo" != "x$ac_hi"; do
22601 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22602 cat >conftest.$ac_ext <<_ACEOF
22603 /* confdefs.h. */
22604 _ACEOF
22605 cat confdefs.h >>conftest.$ac_ext
22606 cat >>conftest.$ac_ext <<_ACEOF
22607 /* end confdefs.h. */
22608 $ac_includes_default
22609 #ifndef offsetof
22610 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22611 #endif
22612 typedef struct { char x; short y; } ac__type_alignof_;
22614 main ()
22616 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22617 test_array [0] = 0
22620 return 0;
22622 _ACEOF
22623 rm -f conftest.$ac_objext
22624 if { (ac_try="$ac_compile"
22625 case "(($ac_try" in
22626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22627 *) ac_try_echo=$ac_try;;
22628 esac
22629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22630 (eval "$ac_compile") 2>conftest.er1
22631 ac_status=$?
22632 grep -v '^ *+' conftest.er1 >conftest.err
22633 rm -f conftest.er1
22634 cat conftest.err >&5
22635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22636 (exit $ac_status); } && {
22637 test -z "$ac_c_werror_flag" ||
22638 test ! -s conftest.err
22639 } && test -s conftest.$ac_objext; then
22640 ac_hi=$ac_mid
22641 else
22642 echo "$as_me: failed program was:" >&5
22643 sed 's/^/| /' conftest.$ac_ext >&5
22645 ac_lo=`expr '(' $ac_mid ')' + 1`
22648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22649 done
22650 case $ac_lo in
22651 ?*) ac_cv_alignof_short=$ac_lo;;
22652 '') if test "$ac_cv_type_short" = yes; then
22653 { { echo "$as_me:$LINENO: error: cannot compute alignment of short
22654 See \`config.log' for more details." >&5
22655 echo "$as_me: error: cannot compute alignment of short
22656 See \`config.log' for more details." >&2;}
22657 { (exit 77); exit 77; }; }
22658 else
22659 ac_cv_alignof_short=0
22660 fi ;;
22661 esac
22662 else
22663 cat >conftest.$ac_ext <<_ACEOF
22664 /* confdefs.h. */
22665 _ACEOF
22666 cat confdefs.h >>conftest.$ac_ext
22667 cat >>conftest.$ac_ext <<_ACEOF
22668 /* end confdefs.h. */
22669 $ac_includes_default
22670 #ifndef offsetof
22671 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22672 #endif
22673 typedef struct { char x; short y; } ac__type_alignof_;
22674 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22675 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22676 #include <stdio.h>
22677 #include <stdlib.h>
22679 main ()
22682 FILE *f = fopen ("conftest.val", "w");
22683 if (! f)
22684 return 1;
22685 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22687 long int i = longval ();
22688 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22689 return 1;
22690 fprintf (f, "%ld\n", i);
22692 else
22694 unsigned long int i = ulongval ();
22695 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22696 return 1;
22697 fprintf (f, "%lu\n", i);
22699 return ferror (f) || fclose (f) != 0;
22702 return 0;
22704 _ACEOF
22705 rm -f conftest$ac_exeext
22706 if { (ac_try="$ac_link"
22707 case "(($ac_try" in
22708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22709 *) ac_try_echo=$ac_try;;
22710 esac
22711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22712 (eval "$ac_link") 2>&5
22713 ac_status=$?
22714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22715 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22716 { (case "(($ac_try" in
22717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22718 *) ac_try_echo=$ac_try;;
22719 esac
22720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22721 (eval "$ac_try") 2>&5
22722 ac_status=$?
22723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22724 (exit $ac_status); }; }; then
22725 ac_cv_alignof_short=`cat conftest.val`
22726 else
22727 echo "$as_me: program exited with status $ac_status" >&5
22728 echo "$as_me: failed program was:" >&5
22729 sed 's/^/| /' conftest.$ac_ext >&5
22731 ( exit $ac_status )
22732 if test "$ac_cv_type_short" = yes; then
22733 { { echo "$as_me:$LINENO: error: cannot compute alignment of short
22734 See \`config.log' for more details." >&5
22735 echo "$as_me: error: cannot compute alignment of short
22736 See \`config.log' for more details." >&2;}
22737 { (exit 77); exit 77; }; }
22738 else
22739 ac_cv_alignof_short=0
22742 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22744 rm -f conftest.val
22746 { echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
22747 echo "${ECHO_T}$ac_cv_alignof_short" >&6; }
22751 cat >>confdefs.h <<_ACEOF
22752 #define ALIGNOF_SHORT $ac_cv_alignof_short
22753 _ACEOF
22756 { echo "$as_me:$LINENO: checking for int" >&5
22757 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
22758 if test "${ac_cv_type_int+set}" = set; then
22759 echo $ECHO_N "(cached) $ECHO_C" >&6
22760 else
22761 cat >conftest.$ac_ext <<_ACEOF
22762 /* confdefs.h. */
22763 _ACEOF
22764 cat confdefs.h >>conftest.$ac_ext
22765 cat >>conftest.$ac_ext <<_ACEOF
22766 /* end confdefs.h. */
22767 $ac_includes_default
22768 typedef int ac__type_new_;
22770 main ()
22772 if ((ac__type_new_ *) 0)
22773 return 0;
22774 if (sizeof (ac__type_new_))
22775 return 0;
22777 return 0;
22779 _ACEOF
22780 rm -f conftest.$ac_objext
22781 if { (ac_try="$ac_compile"
22782 case "(($ac_try" in
22783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22784 *) ac_try_echo=$ac_try;;
22785 esac
22786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22787 (eval "$ac_compile") 2>conftest.er1
22788 ac_status=$?
22789 grep -v '^ *+' conftest.er1 >conftest.err
22790 rm -f conftest.er1
22791 cat conftest.err >&5
22792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22793 (exit $ac_status); } && {
22794 test -z "$ac_c_werror_flag" ||
22795 test ! -s conftest.err
22796 } && test -s conftest.$ac_objext; then
22797 ac_cv_type_int=yes
22798 else
22799 echo "$as_me: failed program was:" >&5
22800 sed 's/^/| /' conftest.$ac_ext >&5
22802 ac_cv_type_int=no
22805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22807 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
22808 echo "${ECHO_T}$ac_cv_type_int" >&6; }
22810 # The cast to long int works around a bug in the HP C Compiler,
22811 # see AC_CHECK_SIZEOF for more information.
22812 { echo "$as_me:$LINENO: checking alignment of int" >&5
22813 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6; }
22814 if test "${ac_cv_alignof_int+set}" = set; then
22815 echo $ECHO_N "(cached) $ECHO_C" >&6
22816 else
22817 if test "$cross_compiling" = yes; then
22818 # Depending upon the size, compute the lo and hi bounds.
22819 cat >conftest.$ac_ext <<_ACEOF
22820 /* confdefs.h. */
22821 _ACEOF
22822 cat confdefs.h >>conftest.$ac_ext
22823 cat >>conftest.$ac_ext <<_ACEOF
22824 /* end confdefs.h. */
22825 $ac_includes_default
22826 #ifndef offsetof
22827 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22828 #endif
22829 typedef struct { char x; int y; } ac__type_alignof_;
22831 main ()
22833 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22834 test_array [0] = 0
22837 return 0;
22839 _ACEOF
22840 rm -f conftest.$ac_objext
22841 if { (ac_try="$ac_compile"
22842 case "(($ac_try" in
22843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22844 *) ac_try_echo=$ac_try;;
22845 esac
22846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22847 (eval "$ac_compile") 2>conftest.er1
22848 ac_status=$?
22849 grep -v '^ *+' conftest.er1 >conftest.err
22850 rm -f conftest.er1
22851 cat conftest.err >&5
22852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22853 (exit $ac_status); } && {
22854 test -z "$ac_c_werror_flag" ||
22855 test ! -s conftest.err
22856 } && test -s conftest.$ac_objext; then
22857 ac_lo=0 ac_mid=0
22858 while :; do
22859 cat >conftest.$ac_ext <<_ACEOF
22860 /* confdefs.h. */
22861 _ACEOF
22862 cat confdefs.h >>conftest.$ac_ext
22863 cat >>conftest.$ac_ext <<_ACEOF
22864 /* end confdefs.h. */
22865 $ac_includes_default
22866 #ifndef offsetof
22867 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22868 #endif
22869 typedef struct { char x; int y; } ac__type_alignof_;
22871 main ()
22873 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22874 test_array [0] = 0
22877 return 0;
22879 _ACEOF
22880 rm -f conftest.$ac_objext
22881 if { (ac_try="$ac_compile"
22882 case "(($ac_try" in
22883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22884 *) ac_try_echo=$ac_try;;
22885 esac
22886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22887 (eval "$ac_compile") 2>conftest.er1
22888 ac_status=$?
22889 grep -v '^ *+' conftest.er1 >conftest.err
22890 rm -f conftest.er1
22891 cat conftest.err >&5
22892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22893 (exit $ac_status); } && {
22894 test -z "$ac_c_werror_flag" ||
22895 test ! -s conftest.err
22896 } && test -s conftest.$ac_objext; then
22897 ac_hi=$ac_mid; break
22898 else
22899 echo "$as_me: failed program was:" >&5
22900 sed 's/^/| /' conftest.$ac_ext >&5
22902 ac_lo=`expr $ac_mid + 1`
22903 if test $ac_lo -le $ac_mid; then
22904 ac_lo= ac_hi=
22905 break
22907 ac_mid=`expr 2 '*' $ac_mid + 1`
22910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22911 done
22912 else
22913 echo "$as_me: failed program was:" >&5
22914 sed 's/^/| /' conftest.$ac_ext >&5
22916 cat >conftest.$ac_ext <<_ACEOF
22917 /* confdefs.h. */
22918 _ACEOF
22919 cat confdefs.h >>conftest.$ac_ext
22920 cat >>conftest.$ac_ext <<_ACEOF
22921 /* end confdefs.h. */
22922 $ac_includes_default
22923 #ifndef offsetof
22924 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22925 #endif
22926 typedef struct { char x; int y; } ac__type_alignof_;
22928 main ()
22930 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22931 test_array [0] = 0
22934 return 0;
22936 _ACEOF
22937 rm -f conftest.$ac_objext
22938 if { (ac_try="$ac_compile"
22939 case "(($ac_try" in
22940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22941 *) ac_try_echo=$ac_try;;
22942 esac
22943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22944 (eval "$ac_compile") 2>conftest.er1
22945 ac_status=$?
22946 grep -v '^ *+' conftest.er1 >conftest.err
22947 rm -f conftest.er1
22948 cat conftest.err >&5
22949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22950 (exit $ac_status); } && {
22951 test -z "$ac_c_werror_flag" ||
22952 test ! -s conftest.err
22953 } && test -s conftest.$ac_objext; then
22954 ac_hi=-1 ac_mid=-1
22955 while :; do
22956 cat >conftest.$ac_ext <<_ACEOF
22957 /* confdefs.h. */
22958 _ACEOF
22959 cat confdefs.h >>conftest.$ac_ext
22960 cat >>conftest.$ac_ext <<_ACEOF
22961 /* end confdefs.h. */
22962 $ac_includes_default
22963 #ifndef offsetof
22964 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22965 #endif
22966 typedef struct { char x; int y; } ac__type_alignof_;
22968 main ()
22970 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22971 test_array [0] = 0
22974 return 0;
22976 _ACEOF
22977 rm -f conftest.$ac_objext
22978 if { (ac_try="$ac_compile"
22979 case "(($ac_try" in
22980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22981 *) ac_try_echo=$ac_try;;
22982 esac
22983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22984 (eval "$ac_compile") 2>conftest.er1
22985 ac_status=$?
22986 grep -v '^ *+' conftest.er1 >conftest.err
22987 rm -f conftest.er1
22988 cat conftest.err >&5
22989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22990 (exit $ac_status); } && {
22991 test -z "$ac_c_werror_flag" ||
22992 test ! -s conftest.err
22993 } && test -s conftest.$ac_objext; then
22994 ac_lo=$ac_mid; break
22995 else
22996 echo "$as_me: failed program was:" >&5
22997 sed 's/^/| /' conftest.$ac_ext >&5
22999 ac_hi=`expr '(' $ac_mid ')' - 1`
23000 if test $ac_mid -le $ac_hi; then
23001 ac_lo= ac_hi=
23002 break
23004 ac_mid=`expr 2 '*' $ac_mid`
23007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23008 done
23009 else
23010 echo "$as_me: failed program was:" >&5
23011 sed 's/^/| /' conftest.$ac_ext >&5
23013 ac_lo= ac_hi=
23016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23020 # Binary search between lo and hi bounds.
23021 while test "x$ac_lo" != "x$ac_hi"; do
23022 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23023 cat >conftest.$ac_ext <<_ACEOF
23024 /* confdefs.h. */
23025 _ACEOF
23026 cat confdefs.h >>conftest.$ac_ext
23027 cat >>conftest.$ac_ext <<_ACEOF
23028 /* end confdefs.h. */
23029 $ac_includes_default
23030 #ifndef offsetof
23031 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23032 #endif
23033 typedef struct { char x; int y; } ac__type_alignof_;
23035 main ()
23037 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23038 test_array [0] = 0
23041 return 0;
23043 _ACEOF
23044 rm -f conftest.$ac_objext
23045 if { (ac_try="$ac_compile"
23046 case "(($ac_try" in
23047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23048 *) ac_try_echo=$ac_try;;
23049 esac
23050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23051 (eval "$ac_compile") 2>conftest.er1
23052 ac_status=$?
23053 grep -v '^ *+' conftest.er1 >conftest.err
23054 rm -f conftest.er1
23055 cat conftest.err >&5
23056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23057 (exit $ac_status); } && {
23058 test -z "$ac_c_werror_flag" ||
23059 test ! -s conftest.err
23060 } && test -s conftest.$ac_objext; then
23061 ac_hi=$ac_mid
23062 else
23063 echo "$as_me: failed program was:" >&5
23064 sed 's/^/| /' conftest.$ac_ext >&5
23066 ac_lo=`expr '(' $ac_mid ')' + 1`
23069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23070 done
23071 case $ac_lo in
23072 ?*) ac_cv_alignof_int=$ac_lo;;
23073 '') if test "$ac_cv_type_int" = yes; then
23074 { { echo "$as_me:$LINENO: error: cannot compute alignment of int
23075 See \`config.log' for more details." >&5
23076 echo "$as_me: error: cannot compute alignment of int
23077 See \`config.log' for more details." >&2;}
23078 { (exit 77); exit 77; }; }
23079 else
23080 ac_cv_alignof_int=0
23081 fi ;;
23082 esac
23083 else
23084 cat >conftest.$ac_ext <<_ACEOF
23085 /* confdefs.h. */
23086 _ACEOF
23087 cat confdefs.h >>conftest.$ac_ext
23088 cat >>conftest.$ac_ext <<_ACEOF
23089 /* end confdefs.h. */
23090 $ac_includes_default
23091 #ifndef offsetof
23092 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23093 #endif
23094 typedef struct { char x; int y; } ac__type_alignof_;
23095 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23096 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23097 #include <stdio.h>
23098 #include <stdlib.h>
23100 main ()
23103 FILE *f = fopen ("conftest.val", "w");
23104 if (! f)
23105 return 1;
23106 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23108 long int i = longval ();
23109 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23110 return 1;
23111 fprintf (f, "%ld\n", i);
23113 else
23115 unsigned long int i = ulongval ();
23116 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23117 return 1;
23118 fprintf (f, "%lu\n", i);
23120 return ferror (f) || fclose (f) != 0;
23123 return 0;
23125 _ACEOF
23126 rm -f conftest$ac_exeext
23127 if { (ac_try="$ac_link"
23128 case "(($ac_try" in
23129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23130 *) ac_try_echo=$ac_try;;
23131 esac
23132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23133 (eval "$ac_link") 2>&5
23134 ac_status=$?
23135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23136 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23137 { (case "(($ac_try" in
23138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23139 *) ac_try_echo=$ac_try;;
23140 esac
23141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23142 (eval "$ac_try") 2>&5
23143 ac_status=$?
23144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23145 (exit $ac_status); }; }; then
23146 ac_cv_alignof_int=`cat conftest.val`
23147 else
23148 echo "$as_me: program exited with status $ac_status" >&5
23149 echo "$as_me: failed program was:" >&5
23150 sed 's/^/| /' conftest.$ac_ext >&5
23152 ( exit $ac_status )
23153 if test "$ac_cv_type_int" = yes; then
23154 { { echo "$as_me:$LINENO: error: cannot compute alignment of int
23155 See \`config.log' for more details." >&5
23156 echo "$as_me: error: cannot compute alignment of int
23157 See \`config.log' for more details." >&2;}
23158 { (exit 77); exit 77; }; }
23159 else
23160 ac_cv_alignof_int=0
23163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23165 rm -f conftest.val
23167 { echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
23168 echo "${ECHO_T}$ac_cv_alignof_int" >&6; }
23172 cat >>confdefs.h <<_ACEOF
23173 #define ALIGNOF_INT $ac_cv_alignof_int
23174 _ACEOF
23177 { echo "$as_me:$LINENO: checking for long" >&5
23178 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
23179 if test "${ac_cv_type_long+set}" = set; then
23180 echo $ECHO_N "(cached) $ECHO_C" >&6
23181 else
23182 cat >conftest.$ac_ext <<_ACEOF
23183 /* confdefs.h. */
23184 _ACEOF
23185 cat confdefs.h >>conftest.$ac_ext
23186 cat >>conftest.$ac_ext <<_ACEOF
23187 /* end confdefs.h. */
23188 $ac_includes_default
23189 typedef long ac__type_new_;
23191 main ()
23193 if ((ac__type_new_ *) 0)
23194 return 0;
23195 if (sizeof (ac__type_new_))
23196 return 0;
23198 return 0;
23200 _ACEOF
23201 rm -f conftest.$ac_objext
23202 if { (ac_try="$ac_compile"
23203 case "(($ac_try" in
23204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23205 *) ac_try_echo=$ac_try;;
23206 esac
23207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23208 (eval "$ac_compile") 2>conftest.er1
23209 ac_status=$?
23210 grep -v '^ *+' conftest.er1 >conftest.err
23211 rm -f conftest.er1
23212 cat conftest.err >&5
23213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23214 (exit $ac_status); } && {
23215 test -z "$ac_c_werror_flag" ||
23216 test ! -s conftest.err
23217 } && test -s conftest.$ac_objext; then
23218 ac_cv_type_long=yes
23219 else
23220 echo "$as_me: failed program was:" >&5
23221 sed 's/^/| /' conftest.$ac_ext >&5
23223 ac_cv_type_long=no
23226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23228 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
23229 echo "${ECHO_T}$ac_cv_type_long" >&6; }
23231 # The cast to long int works around a bug in the HP C Compiler,
23232 # see AC_CHECK_SIZEOF for more information.
23233 { echo "$as_me:$LINENO: checking alignment of long" >&5
23234 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6; }
23235 if test "${ac_cv_alignof_long+set}" = set; then
23236 echo $ECHO_N "(cached) $ECHO_C" >&6
23237 else
23238 if test "$cross_compiling" = yes; then
23239 # Depending upon the size, compute the lo and hi bounds.
23240 cat >conftest.$ac_ext <<_ACEOF
23241 /* confdefs.h. */
23242 _ACEOF
23243 cat confdefs.h >>conftest.$ac_ext
23244 cat >>conftest.$ac_ext <<_ACEOF
23245 /* end confdefs.h. */
23246 $ac_includes_default
23247 #ifndef offsetof
23248 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23249 #endif
23250 typedef struct { char x; long y; } ac__type_alignof_;
23252 main ()
23254 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
23255 test_array [0] = 0
23258 return 0;
23260 _ACEOF
23261 rm -f conftest.$ac_objext
23262 if { (ac_try="$ac_compile"
23263 case "(($ac_try" in
23264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23265 *) ac_try_echo=$ac_try;;
23266 esac
23267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23268 (eval "$ac_compile") 2>conftest.er1
23269 ac_status=$?
23270 grep -v '^ *+' conftest.er1 >conftest.err
23271 rm -f conftest.er1
23272 cat conftest.err >&5
23273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23274 (exit $ac_status); } && {
23275 test -z "$ac_c_werror_flag" ||
23276 test ! -s conftest.err
23277 } && test -s conftest.$ac_objext; then
23278 ac_lo=0 ac_mid=0
23279 while :; do
23280 cat >conftest.$ac_ext <<_ACEOF
23281 /* confdefs.h. */
23282 _ACEOF
23283 cat confdefs.h >>conftest.$ac_ext
23284 cat >>conftest.$ac_ext <<_ACEOF
23285 /* end confdefs.h. */
23286 $ac_includes_default
23287 #ifndef offsetof
23288 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23289 #endif
23290 typedef struct { char x; long y; } ac__type_alignof_;
23292 main ()
23294 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23295 test_array [0] = 0
23298 return 0;
23300 _ACEOF
23301 rm -f conftest.$ac_objext
23302 if { (ac_try="$ac_compile"
23303 case "(($ac_try" in
23304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23305 *) ac_try_echo=$ac_try;;
23306 esac
23307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23308 (eval "$ac_compile") 2>conftest.er1
23309 ac_status=$?
23310 grep -v '^ *+' conftest.er1 >conftest.err
23311 rm -f conftest.er1
23312 cat conftest.err >&5
23313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23314 (exit $ac_status); } && {
23315 test -z "$ac_c_werror_flag" ||
23316 test ! -s conftest.err
23317 } && test -s conftest.$ac_objext; then
23318 ac_hi=$ac_mid; break
23319 else
23320 echo "$as_me: failed program was:" >&5
23321 sed 's/^/| /' conftest.$ac_ext >&5
23323 ac_lo=`expr $ac_mid + 1`
23324 if test $ac_lo -le $ac_mid; then
23325 ac_lo= ac_hi=
23326 break
23328 ac_mid=`expr 2 '*' $ac_mid + 1`
23331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23332 done
23333 else
23334 echo "$as_me: failed program was:" >&5
23335 sed 's/^/| /' conftest.$ac_ext >&5
23337 cat >conftest.$ac_ext <<_ACEOF
23338 /* confdefs.h. */
23339 _ACEOF
23340 cat confdefs.h >>conftest.$ac_ext
23341 cat >>conftest.$ac_ext <<_ACEOF
23342 /* end confdefs.h. */
23343 $ac_includes_default
23344 #ifndef offsetof
23345 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23346 #endif
23347 typedef struct { char x; long y; } ac__type_alignof_;
23349 main ()
23351 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
23352 test_array [0] = 0
23355 return 0;
23357 _ACEOF
23358 rm -f conftest.$ac_objext
23359 if { (ac_try="$ac_compile"
23360 case "(($ac_try" in
23361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23362 *) ac_try_echo=$ac_try;;
23363 esac
23364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23365 (eval "$ac_compile") 2>conftest.er1
23366 ac_status=$?
23367 grep -v '^ *+' conftest.er1 >conftest.err
23368 rm -f conftest.er1
23369 cat conftest.err >&5
23370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23371 (exit $ac_status); } && {
23372 test -z "$ac_c_werror_flag" ||
23373 test ! -s conftest.err
23374 } && test -s conftest.$ac_objext; then
23375 ac_hi=-1 ac_mid=-1
23376 while :; do
23377 cat >conftest.$ac_ext <<_ACEOF
23378 /* confdefs.h. */
23379 _ACEOF
23380 cat confdefs.h >>conftest.$ac_ext
23381 cat >>conftest.$ac_ext <<_ACEOF
23382 /* end confdefs.h. */
23383 $ac_includes_default
23384 #ifndef offsetof
23385 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23386 #endif
23387 typedef struct { char x; long y; } ac__type_alignof_;
23389 main ()
23391 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
23392 test_array [0] = 0
23395 return 0;
23397 _ACEOF
23398 rm -f conftest.$ac_objext
23399 if { (ac_try="$ac_compile"
23400 case "(($ac_try" in
23401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23402 *) ac_try_echo=$ac_try;;
23403 esac
23404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23405 (eval "$ac_compile") 2>conftest.er1
23406 ac_status=$?
23407 grep -v '^ *+' conftest.er1 >conftest.err
23408 rm -f conftest.er1
23409 cat conftest.err >&5
23410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23411 (exit $ac_status); } && {
23412 test -z "$ac_c_werror_flag" ||
23413 test ! -s conftest.err
23414 } && test -s conftest.$ac_objext; then
23415 ac_lo=$ac_mid; break
23416 else
23417 echo "$as_me: failed program was:" >&5
23418 sed 's/^/| /' conftest.$ac_ext >&5
23420 ac_hi=`expr '(' $ac_mid ')' - 1`
23421 if test $ac_mid -le $ac_hi; then
23422 ac_lo= ac_hi=
23423 break
23425 ac_mid=`expr 2 '*' $ac_mid`
23428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23429 done
23430 else
23431 echo "$as_me: failed program was:" >&5
23432 sed 's/^/| /' conftest.$ac_ext >&5
23434 ac_lo= ac_hi=
23437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23441 # Binary search between lo and hi bounds.
23442 while test "x$ac_lo" != "x$ac_hi"; do
23443 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23444 cat >conftest.$ac_ext <<_ACEOF
23445 /* confdefs.h. */
23446 _ACEOF
23447 cat confdefs.h >>conftest.$ac_ext
23448 cat >>conftest.$ac_ext <<_ACEOF
23449 /* end confdefs.h. */
23450 $ac_includes_default
23451 #ifndef offsetof
23452 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23453 #endif
23454 typedef struct { char x; long y; } ac__type_alignof_;
23456 main ()
23458 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23459 test_array [0] = 0
23462 return 0;
23464 _ACEOF
23465 rm -f conftest.$ac_objext
23466 if { (ac_try="$ac_compile"
23467 case "(($ac_try" in
23468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23469 *) ac_try_echo=$ac_try;;
23470 esac
23471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23472 (eval "$ac_compile") 2>conftest.er1
23473 ac_status=$?
23474 grep -v '^ *+' conftest.er1 >conftest.err
23475 rm -f conftest.er1
23476 cat conftest.err >&5
23477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23478 (exit $ac_status); } && {
23479 test -z "$ac_c_werror_flag" ||
23480 test ! -s conftest.err
23481 } && test -s conftest.$ac_objext; then
23482 ac_hi=$ac_mid
23483 else
23484 echo "$as_me: failed program was:" >&5
23485 sed 's/^/| /' conftest.$ac_ext >&5
23487 ac_lo=`expr '(' $ac_mid ')' + 1`
23490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23491 done
23492 case $ac_lo in
23493 ?*) ac_cv_alignof_long=$ac_lo;;
23494 '') if test "$ac_cv_type_long" = yes; then
23495 { { echo "$as_me:$LINENO: error: cannot compute alignment of long
23496 See \`config.log' for more details." >&5
23497 echo "$as_me: error: cannot compute alignment of long
23498 See \`config.log' for more details." >&2;}
23499 { (exit 77); exit 77; }; }
23500 else
23501 ac_cv_alignof_long=0
23502 fi ;;
23503 esac
23504 else
23505 cat >conftest.$ac_ext <<_ACEOF
23506 /* confdefs.h. */
23507 _ACEOF
23508 cat confdefs.h >>conftest.$ac_ext
23509 cat >>conftest.$ac_ext <<_ACEOF
23510 /* end confdefs.h. */
23511 $ac_includes_default
23512 #ifndef offsetof
23513 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23514 #endif
23515 typedef struct { char x; long y; } ac__type_alignof_;
23516 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23517 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23518 #include <stdio.h>
23519 #include <stdlib.h>
23521 main ()
23524 FILE *f = fopen ("conftest.val", "w");
23525 if (! f)
23526 return 1;
23527 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23529 long int i = longval ();
23530 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23531 return 1;
23532 fprintf (f, "%ld\n", i);
23534 else
23536 unsigned long int i = ulongval ();
23537 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23538 return 1;
23539 fprintf (f, "%lu\n", i);
23541 return ferror (f) || fclose (f) != 0;
23544 return 0;
23546 _ACEOF
23547 rm -f conftest$ac_exeext
23548 if { (ac_try="$ac_link"
23549 case "(($ac_try" in
23550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23551 *) ac_try_echo=$ac_try;;
23552 esac
23553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23554 (eval "$ac_link") 2>&5
23555 ac_status=$?
23556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23557 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23558 { (case "(($ac_try" in
23559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23560 *) ac_try_echo=$ac_try;;
23561 esac
23562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23563 (eval "$ac_try") 2>&5
23564 ac_status=$?
23565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23566 (exit $ac_status); }; }; then
23567 ac_cv_alignof_long=`cat conftest.val`
23568 else
23569 echo "$as_me: program exited with status $ac_status" >&5
23570 echo "$as_me: failed program was:" >&5
23571 sed 's/^/| /' conftest.$ac_ext >&5
23573 ( exit $ac_status )
23574 if test "$ac_cv_type_long" = yes; then
23575 { { echo "$as_me:$LINENO: error: cannot compute alignment of long
23576 See \`config.log' for more details." >&5
23577 echo "$as_me: error: cannot compute alignment of long
23578 See \`config.log' for more details." >&2;}
23579 { (exit 77); exit 77; }; }
23580 else
23581 ac_cv_alignof_long=0
23584 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23586 rm -f conftest.val
23588 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
23589 echo "${ECHO_T}$ac_cv_alignof_long" >&6; }
23593 cat >>confdefs.h <<_ACEOF
23594 #define ALIGNOF_LONG $ac_cv_alignof_long
23595 _ACEOF
23598 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
23599 { echo "$as_me:$LINENO: checking for long long int" >&5
23600 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
23601 if test "${ac_cv_type_long_long_int+set}" = set; then
23602 echo $ECHO_N "(cached) $ECHO_C" >&6
23603 else
23604 cat >conftest.$ac_ext <<_ACEOF
23605 /* confdefs.h. */
23606 _ACEOF
23607 cat confdefs.h >>conftest.$ac_ext
23608 cat >>conftest.$ac_ext <<_ACEOF
23609 /* end confdefs.h. */
23610 $ac_includes_default
23611 typedef long long int ac__type_new_;
23613 main ()
23615 if ((ac__type_new_ *) 0)
23616 return 0;
23617 if (sizeof (ac__type_new_))
23618 return 0;
23620 return 0;
23622 _ACEOF
23623 rm -f conftest.$ac_objext
23624 if { (ac_try="$ac_compile"
23625 case "(($ac_try" in
23626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23627 *) ac_try_echo=$ac_try;;
23628 esac
23629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23630 (eval "$ac_compile") 2>conftest.er1
23631 ac_status=$?
23632 grep -v '^ *+' conftest.er1 >conftest.err
23633 rm -f conftest.er1
23634 cat conftest.err >&5
23635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23636 (exit $ac_status); } && {
23637 test -z "$ac_c_werror_flag" ||
23638 test ! -s conftest.err
23639 } && test -s conftest.$ac_objext; then
23640 ac_cv_type_long_long_int=yes
23641 else
23642 echo "$as_me: failed program was:" >&5
23643 sed 's/^/| /' conftest.$ac_ext >&5
23645 ac_cv_type_long_long_int=no
23648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23650 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
23651 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
23653 # The cast to long int works around a bug in the HP C Compiler,
23654 # see AC_CHECK_SIZEOF for more information.
23655 { echo "$as_me:$LINENO: checking alignment of long long int" >&5
23656 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6; }
23657 if test "${ac_cv_alignof_long_long_int+set}" = set; then
23658 echo $ECHO_N "(cached) $ECHO_C" >&6
23659 else
23660 if test "$cross_compiling" = yes; then
23661 # Depending upon the size, compute the lo and hi bounds.
23662 cat >conftest.$ac_ext <<_ACEOF
23663 /* confdefs.h. */
23664 _ACEOF
23665 cat confdefs.h >>conftest.$ac_ext
23666 cat >>conftest.$ac_ext <<_ACEOF
23667 /* end confdefs.h. */
23668 $ac_includes_default
23669 #ifndef offsetof
23670 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23671 #endif
23672 typedef struct { char x; long long int y; } ac__type_alignof_;
23674 main ()
23676 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
23677 test_array [0] = 0
23680 return 0;
23682 _ACEOF
23683 rm -f conftest.$ac_objext
23684 if { (ac_try="$ac_compile"
23685 case "(($ac_try" in
23686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23687 *) ac_try_echo=$ac_try;;
23688 esac
23689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23690 (eval "$ac_compile") 2>conftest.er1
23691 ac_status=$?
23692 grep -v '^ *+' conftest.er1 >conftest.err
23693 rm -f conftest.er1
23694 cat conftest.err >&5
23695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23696 (exit $ac_status); } && {
23697 test -z "$ac_c_werror_flag" ||
23698 test ! -s conftest.err
23699 } && test -s conftest.$ac_objext; then
23700 ac_lo=0 ac_mid=0
23701 while :; do
23702 cat >conftest.$ac_ext <<_ACEOF
23703 /* confdefs.h. */
23704 _ACEOF
23705 cat confdefs.h >>conftest.$ac_ext
23706 cat >>conftest.$ac_ext <<_ACEOF
23707 /* end confdefs.h. */
23708 $ac_includes_default
23709 #ifndef offsetof
23710 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23711 #endif
23712 typedef struct { char x; long long int y; } ac__type_alignof_;
23714 main ()
23716 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23717 test_array [0] = 0
23720 return 0;
23722 _ACEOF
23723 rm -f conftest.$ac_objext
23724 if { (ac_try="$ac_compile"
23725 case "(($ac_try" in
23726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23727 *) ac_try_echo=$ac_try;;
23728 esac
23729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23730 (eval "$ac_compile") 2>conftest.er1
23731 ac_status=$?
23732 grep -v '^ *+' conftest.er1 >conftest.err
23733 rm -f conftest.er1
23734 cat conftest.err >&5
23735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23736 (exit $ac_status); } && {
23737 test -z "$ac_c_werror_flag" ||
23738 test ! -s conftest.err
23739 } && test -s conftest.$ac_objext; then
23740 ac_hi=$ac_mid; break
23741 else
23742 echo "$as_me: failed program was:" >&5
23743 sed 's/^/| /' conftest.$ac_ext >&5
23745 ac_lo=`expr $ac_mid + 1`
23746 if test $ac_lo -le $ac_mid; then
23747 ac_lo= ac_hi=
23748 break
23750 ac_mid=`expr 2 '*' $ac_mid + 1`
23753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23754 done
23755 else
23756 echo "$as_me: failed program was:" >&5
23757 sed 's/^/| /' conftest.$ac_ext >&5
23759 cat >conftest.$ac_ext <<_ACEOF
23760 /* confdefs.h. */
23761 _ACEOF
23762 cat confdefs.h >>conftest.$ac_ext
23763 cat >>conftest.$ac_ext <<_ACEOF
23764 /* end confdefs.h. */
23765 $ac_includes_default
23766 #ifndef offsetof
23767 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23768 #endif
23769 typedef struct { char x; long long int y; } ac__type_alignof_;
23771 main ()
23773 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
23774 test_array [0] = 0
23777 return 0;
23779 _ACEOF
23780 rm -f conftest.$ac_objext
23781 if { (ac_try="$ac_compile"
23782 case "(($ac_try" in
23783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23784 *) ac_try_echo=$ac_try;;
23785 esac
23786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23787 (eval "$ac_compile") 2>conftest.er1
23788 ac_status=$?
23789 grep -v '^ *+' conftest.er1 >conftest.err
23790 rm -f conftest.er1
23791 cat conftest.err >&5
23792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23793 (exit $ac_status); } && {
23794 test -z "$ac_c_werror_flag" ||
23795 test ! -s conftest.err
23796 } && test -s conftest.$ac_objext; then
23797 ac_hi=-1 ac_mid=-1
23798 while :; do
23799 cat >conftest.$ac_ext <<_ACEOF
23800 /* confdefs.h. */
23801 _ACEOF
23802 cat confdefs.h >>conftest.$ac_ext
23803 cat >>conftest.$ac_ext <<_ACEOF
23804 /* end confdefs.h. */
23805 $ac_includes_default
23806 #ifndef offsetof
23807 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23808 #endif
23809 typedef struct { char x; long long int y; } ac__type_alignof_;
23811 main ()
23813 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
23814 test_array [0] = 0
23817 return 0;
23819 _ACEOF
23820 rm -f conftest.$ac_objext
23821 if { (ac_try="$ac_compile"
23822 case "(($ac_try" in
23823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23824 *) ac_try_echo=$ac_try;;
23825 esac
23826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23827 (eval "$ac_compile") 2>conftest.er1
23828 ac_status=$?
23829 grep -v '^ *+' conftest.er1 >conftest.err
23830 rm -f conftest.er1
23831 cat conftest.err >&5
23832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23833 (exit $ac_status); } && {
23834 test -z "$ac_c_werror_flag" ||
23835 test ! -s conftest.err
23836 } && test -s conftest.$ac_objext; then
23837 ac_lo=$ac_mid; break
23838 else
23839 echo "$as_me: failed program was:" >&5
23840 sed 's/^/| /' conftest.$ac_ext >&5
23842 ac_hi=`expr '(' $ac_mid ')' - 1`
23843 if test $ac_mid -le $ac_hi; then
23844 ac_lo= ac_hi=
23845 break
23847 ac_mid=`expr 2 '*' $ac_mid`
23850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23851 done
23852 else
23853 echo "$as_me: failed program was:" >&5
23854 sed 's/^/| /' conftest.$ac_ext >&5
23856 ac_lo= ac_hi=
23859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23863 # Binary search between lo and hi bounds.
23864 while test "x$ac_lo" != "x$ac_hi"; do
23865 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23866 cat >conftest.$ac_ext <<_ACEOF
23867 /* confdefs.h. */
23868 _ACEOF
23869 cat confdefs.h >>conftest.$ac_ext
23870 cat >>conftest.$ac_ext <<_ACEOF
23871 /* end confdefs.h. */
23872 $ac_includes_default
23873 #ifndef offsetof
23874 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23875 #endif
23876 typedef struct { char x; long long int y; } ac__type_alignof_;
23878 main ()
23880 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23881 test_array [0] = 0
23884 return 0;
23886 _ACEOF
23887 rm -f conftest.$ac_objext
23888 if { (ac_try="$ac_compile"
23889 case "(($ac_try" in
23890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23891 *) ac_try_echo=$ac_try;;
23892 esac
23893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23894 (eval "$ac_compile") 2>conftest.er1
23895 ac_status=$?
23896 grep -v '^ *+' conftest.er1 >conftest.err
23897 rm -f conftest.er1
23898 cat conftest.err >&5
23899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23900 (exit $ac_status); } && {
23901 test -z "$ac_c_werror_flag" ||
23902 test ! -s conftest.err
23903 } && test -s conftest.$ac_objext; then
23904 ac_hi=$ac_mid
23905 else
23906 echo "$as_me: failed program was:" >&5
23907 sed 's/^/| /' conftest.$ac_ext >&5
23909 ac_lo=`expr '(' $ac_mid ')' + 1`
23912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23913 done
23914 case $ac_lo in
23915 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
23916 '') if test "$ac_cv_type_long_long_int" = yes; then
23917 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
23918 See \`config.log' for more details." >&5
23919 echo "$as_me: error: cannot compute alignment of long long int
23920 See \`config.log' for more details." >&2;}
23921 { (exit 77); exit 77; }; }
23922 else
23923 ac_cv_alignof_long_long_int=0
23924 fi ;;
23925 esac
23926 else
23927 cat >conftest.$ac_ext <<_ACEOF
23928 /* confdefs.h. */
23929 _ACEOF
23930 cat confdefs.h >>conftest.$ac_ext
23931 cat >>conftest.$ac_ext <<_ACEOF
23932 /* end confdefs.h. */
23933 $ac_includes_default
23934 #ifndef offsetof
23935 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23936 #endif
23937 typedef struct { char x; long long int y; } ac__type_alignof_;
23938 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23939 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23940 #include <stdio.h>
23941 #include <stdlib.h>
23943 main ()
23946 FILE *f = fopen ("conftest.val", "w");
23947 if (! f)
23948 return 1;
23949 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23951 long int i = longval ();
23952 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23953 return 1;
23954 fprintf (f, "%ld\n", i);
23956 else
23958 unsigned long int i = ulongval ();
23959 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23960 return 1;
23961 fprintf (f, "%lu\n", i);
23963 return ferror (f) || fclose (f) != 0;
23966 return 0;
23968 _ACEOF
23969 rm -f conftest$ac_exeext
23970 if { (ac_try="$ac_link"
23971 case "(($ac_try" in
23972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23973 *) ac_try_echo=$ac_try;;
23974 esac
23975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23976 (eval "$ac_link") 2>&5
23977 ac_status=$?
23978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23979 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23980 { (case "(($ac_try" in
23981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23982 *) ac_try_echo=$ac_try;;
23983 esac
23984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23985 (eval "$ac_try") 2>&5
23986 ac_status=$?
23987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23988 (exit $ac_status); }; }; then
23989 ac_cv_alignof_long_long_int=`cat conftest.val`
23990 else
23991 echo "$as_me: program exited with status $ac_status" >&5
23992 echo "$as_me: failed program was:" >&5
23993 sed 's/^/| /' conftest.$ac_ext >&5
23995 ( exit $ac_status )
23996 if test "$ac_cv_type_long_long_int" = yes; then
23997 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
23998 See \`config.log' for more details." >&5
23999 echo "$as_me: error: cannot compute alignment of long long int
24000 See \`config.log' for more details." >&2;}
24001 { (exit 77); exit 77; }; }
24002 else
24003 ac_cv_alignof_long_long_int=0
24006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24008 rm -f conftest.val
24010 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
24011 echo "${ECHO_T}$ac_cv_alignof_long_long_int" >&6; }
24015 cat >>confdefs.h <<_ACEOF
24016 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
24017 _ACEOF
24021 { echo "$as_me:$LINENO: checking for double" >&5
24022 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
24023 if test "${ac_cv_type_double+set}" = set; then
24024 echo $ECHO_N "(cached) $ECHO_C" >&6
24025 else
24026 cat >conftest.$ac_ext <<_ACEOF
24027 /* confdefs.h. */
24028 _ACEOF
24029 cat confdefs.h >>conftest.$ac_ext
24030 cat >>conftest.$ac_ext <<_ACEOF
24031 /* end confdefs.h. */
24032 $ac_includes_default
24033 typedef double ac__type_new_;
24035 main ()
24037 if ((ac__type_new_ *) 0)
24038 return 0;
24039 if (sizeof (ac__type_new_))
24040 return 0;
24042 return 0;
24044 _ACEOF
24045 rm -f conftest.$ac_objext
24046 if { (ac_try="$ac_compile"
24047 case "(($ac_try" in
24048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24049 *) ac_try_echo=$ac_try;;
24050 esac
24051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24052 (eval "$ac_compile") 2>conftest.er1
24053 ac_status=$?
24054 grep -v '^ *+' conftest.er1 >conftest.err
24055 rm -f conftest.er1
24056 cat conftest.err >&5
24057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24058 (exit $ac_status); } && {
24059 test -z "$ac_c_werror_flag" ||
24060 test ! -s conftest.err
24061 } && test -s conftest.$ac_objext; then
24062 ac_cv_type_double=yes
24063 else
24064 echo "$as_me: failed program was:" >&5
24065 sed 's/^/| /' conftest.$ac_ext >&5
24067 ac_cv_type_double=no
24070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24072 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
24073 echo "${ECHO_T}$ac_cv_type_double" >&6; }
24075 # The cast to long int works around a bug in the HP C Compiler,
24076 # see AC_CHECK_SIZEOF for more information.
24077 { echo "$as_me:$LINENO: checking alignment of double" >&5
24078 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6; }
24079 if test "${ac_cv_alignof_double+set}" = set; then
24080 echo $ECHO_N "(cached) $ECHO_C" >&6
24081 else
24082 if test "$cross_compiling" = yes; then
24083 # Depending upon the size, compute the lo and hi bounds.
24084 cat >conftest.$ac_ext <<_ACEOF
24085 /* confdefs.h. */
24086 _ACEOF
24087 cat confdefs.h >>conftest.$ac_ext
24088 cat >>conftest.$ac_ext <<_ACEOF
24089 /* end confdefs.h. */
24090 $ac_includes_default
24091 #ifndef offsetof
24092 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24093 #endif
24094 typedef struct { char x; double y; } ac__type_alignof_;
24096 main ()
24098 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
24099 test_array [0] = 0
24102 return 0;
24104 _ACEOF
24105 rm -f conftest.$ac_objext
24106 if { (ac_try="$ac_compile"
24107 case "(($ac_try" in
24108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24109 *) ac_try_echo=$ac_try;;
24110 esac
24111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24112 (eval "$ac_compile") 2>conftest.er1
24113 ac_status=$?
24114 grep -v '^ *+' conftest.er1 >conftest.err
24115 rm -f conftest.er1
24116 cat conftest.err >&5
24117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24118 (exit $ac_status); } && {
24119 test -z "$ac_c_werror_flag" ||
24120 test ! -s conftest.err
24121 } && test -s conftest.$ac_objext; then
24122 ac_lo=0 ac_mid=0
24123 while :; do
24124 cat >conftest.$ac_ext <<_ACEOF
24125 /* confdefs.h. */
24126 _ACEOF
24127 cat confdefs.h >>conftest.$ac_ext
24128 cat >>conftest.$ac_ext <<_ACEOF
24129 /* end confdefs.h. */
24130 $ac_includes_default
24131 #ifndef offsetof
24132 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24133 #endif
24134 typedef struct { char x; double y; } ac__type_alignof_;
24136 main ()
24138 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24139 test_array [0] = 0
24142 return 0;
24144 _ACEOF
24145 rm -f conftest.$ac_objext
24146 if { (ac_try="$ac_compile"
24147 case "(($ac_try" in
24148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24149 *) ac_try_echo=$ac_try;;
24150 esac
24151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24152 (eval "$ac_compile") 2>conftest.er1
24153 ac_status=$?
24154 grep -v '^ *+' conftest.er1 >conftest.err
24155 rm -f conftest.er1
24156 cat conftest.err >&5
24157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24158 (exit $ac_status); } && {
24159 test -z "$ac_c_werror_flag" ||
24160 test ! -s conftest.err
24161 } && test -s conftest.$ac_objext; then
24162 ac_hi=$ac_mid; break
24163 else
24164 echo "$as_me: failed program was:" >&5
24165 sed 's/^/| /' conftest.$ac_ext >&5
24167 ac_lo=`expr $ac_mid + 1`
24168 if test $ac_lo -le $ac_mid; then
24169 ac_lo= ac_hi=
24170 break
24172 ac_mid=`expr 2 '*' $ac_mid + 1`
24175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24176 done
24177 else
24178 echo "$as_me: failed program was:" >&5
24179 sed 's/^/| /' conftest.$ac_ext >&5
24181 cat >conftest.$ac_ext <<_ACEOF
24182 /* confdefs.h. */
24183 _ACEOF
24184 cat confdefs.h >>conftest.$ac_ext
24185 cat >>conftest.$ac_ext <<_ACEOF
24186 /* end confdefs.h. */
24187 $ac_includes_default
24188 #ifndef offsetof
24189 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24190 #endif
24191 typedef struct { char x; double y; } ac__type_alignof_;
24193 main ()
24195 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
24196 test_array [0] = 0
24199 return 0;
24201 _ACEOF
24202 rm -f conftest.$ac_objext
24203 if { (ac_try="$ac_compile"
24204 case "(($ac_try" in
24205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24206 *) ac_try_echo=$ac_try;;
24207 esac
24208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24209 (eval "$ac_compile") 2>conftest.er1
24210 ac_status=$?
24211 grep -v '^ *+' conftest.er1 >conftest.err
24212 rm -f conftest.er1
24213 cat conftest.err >&5
24214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24215 (exit $ac_status); } && {
24216 test -z "$ac_c_werror_flag" ||
24217 test ! -s conftest.err
24218 } && test -s conftest.$ac_objext; then
24219 ac_hi=-1 ac_mid=-1
24220 while :; do
24221 cat >conftest.$ac_ext <<_ACEOF
24222 /* confdefs.h. */
24223 _ACEOF
24224 cat confdefs.h >>conftest.$ac_ext
24225 cat >>conftest.$ac_ext <<_ACEOF
24226 /* end confdefs.h. */
24227 $ac_includes_default
24228 #ifndef offsetof
24229 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24230 #endif
24231 typedef struct { char x; double y; } ac__type_alignof_;
24233 main ()
24235 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
24236 test_array [0] = 0
24239 return 0;
24241 _ACEOF
24242 rm -f conftest.$ac_objext
24243 if { (ac_try="$ac_compile"
24244 case "(($ac_try" in
24245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24246 *) ac_try_echo=$ac_try;;
24247 esac
24248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24249 (eval "$ac_compile") 2>conftest.er1
24250 ac_status=$?
24251 grep -v '^ *+' conftest.er1 >conftest.err
24252 rm -f conftest.er1
24253 cat conftest.err >&5
24254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24255 (exit $ac_status); } && {
24256 test -z "$ac_c_werror_flag" ||
24257 test ! -s conftest.err
24258 } && test -s conftest.$ac_objext; then
24259 ac_lo=$ac_mid; break
24260 else
24261 echo "$as_me: failed program was:" >&5
24262 sed 's/^/| /' conftest.$ac_ext >&5
24264 ac_hi=`expr '(' $ac_mid ')' - 1`
24265 if test $ac_mid -le $ac_hi; then
24266 ac_lo= ac_hi=
24267 break
24269 ac_mid=`expr 2 '*' $ac_mid`
24272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24273 done
24274 else
24275 echo "$as_me: failed program was:" >&5
24276 sed 's/^/| /' conftest.$ac_ext >&5
24278 ac_lo= ac_hi=
24281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24285 # Binary search between lo and hi bounds.
24286 while test "x$ac_lo" != "x$ac_hi"; do
24287 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24288 cat >conftest.$ac_ext <<_ACEOF
24289 /* confdefs.h. */
24290 _ACEOF
24291 cat confdefs.h >>conftest.$ac_ext
24292 cat >>conftest.$ac_ext <<_ACEOF
24293 /* end confdefs.h. */
24294 $ac_includes_default
24295 #ifndef offsetof
24296 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24297 #endif
24298 typedef struct { char x; double y; } ac__type_alignof_;
24300 main ()
24302 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24303 test_array [0] = 0
24306 return 0;
24308 _ACEOF
24309 rm -f conftest.$ac_objext
24310 if { (ac_try="$ac_compile"
24311 case "(($ac_try" in
24312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24313 *) ac_try_echo=$ac_try;;
24314 esac
24315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24316 (eval "$ac_compile") 2>conftest.er1
24317 ac_status=$?
24318 grep -v '^ *+' conftest.er1 >conftest.err
24319 rm -f conftest.er1
24320 cat conftest.err >&5
24321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24322 (exit $ac_status); } && {
24323 test -z "$ac_c_werror_flag" ||
24324 test ! -s conftest.err
24325 } && test -s conftest.$ac_objext; then
24326 ac_hi=$ac_mid
24327 else
24328 echo "$as_me: failed program was:" >&5
24329 sed 's/^/| /' conftest.$ac_ext >&5
24331 ac_lo=`expr '(' $ac_mid ')' + 1`
24334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24335 done
24336 case $ac_lo in
24337 ?*) ac_cv_alignof_double=$ac_lo;;
24338 '') if test "$ac_cv_type_double" = yes; then
24339 { { echo "$as_me:$LINENO: error: cannot compute alignment of double
24340 See \`config.log' for more details." >&5
24341 echo "$as_me: error: cannot compute alignment of double
24342 See \`config.log' for more details." >&2;}
24343 { (exit 77); exit 77; }; }
24344 else
24345 ac_cv_alignof_double=0
24346 fi ;;
24347 esac
24348 else
24349 cat >conftest.$ac_ext <<_ACEOF
24350 /* confdefs.h. */
24351 _ACEOF
24352 cat confdefs.h >>conftest.$ac_ext
24353 cat >>conftest.$ac_ext <<_ACEOF
24354 /* end confdefs.h. */
24355 $ac_includes_default
24356 #ifndef offsetof
24357 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24358 #endif
24359 typedef struct { char x; double y; } ac__type_alignof_;
24360 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
24361 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
24362 #include <stdio.h>
24363 #include <stdlib.h>
24365 main ()
24368 FILE *f = fopen ("conftest.val", "w");
24369 if (! f)
24370 return 1;
24371 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
24373 long int i = longval ();
24374 if (i != ((long int) offsetof (ac__type_alignof_, y)))
24375 return 1;
24376 fprintf (f, "%ld\n", i);
24378 else
24380 unsigned long int i = ulongval ();
24381 if (i != ((long int) offsetof (ac__type_alignof_, y)))
24382 return 1;
24383 fprintf (f, "%lu\n", i);
24385 return ferror (f) || fclose (f) != 0;
24388 return 0;
24390 _ACEOF
24391 rm -f conftest$ac_exeext
24392 if { (ac_try="$ac_link"
24393 case "(($ac_try" in
24394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24395 *) ac_try_echo=$ac_try;;
24396 esac
24397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24398 (eval "$ac_link") 2>&5
24399 ac_status=$?
24400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24401 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24402 { (case "(($ac_try" in
24403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24404 *) ac_try_echo=$ac_try;;
24405 esac
24406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24407 (eval "$ac_try") 2>&5
24408 ac_status=$?
24409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24410 (exit $ac_status); }; }; then
24411 ac_cv_alignof_double=`cat conftest.val`
24412 else
24413 echo "$as_me: program exited with status $ac_status" >&5
24414 echo "$as_me: failed program was:" >&5
24415 sed 's/^/| /' conftest.$ac_ext >&5
24417 ( exit $ac_status )
24418 if test "$ac_cv_type_double" = yes; then
24419 { { echo "$as_me:$LINENO: error: cannot compute alignment of double
24420 See \`config.log' for more details." >&5
24421 echo "$as_me: error: cannot compute alignment of double
24422 See \`config.log' for more details." >&2;}
24423 { (exit 77); exit 77; }; }
24424 else
24425 ac_cv_alignof_double=0
24428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24430 rm -f conftest.val
24432 { echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
24433 echo "${ECHO_T}$ac_cv_alignof_double" >&6; }
24437 cat >>confdefs.h <<_ACEOF
24438 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
24439 _ACEOF
24443 # Compute maximum alignment of any basic type.
24444 # We assume long's alignment is at least as strong as char, short, or int;
24445 # but we must check long long (if it exists) and double.
24447 MAX_ALIGNOF=$ac_cv_alignof_long
24448 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
24449 MAX_ALIGNOF=$ac_cv_alignof_double
24451 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
24452 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
24455 cat >>confdefs.h <<_ACEOF
24456 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
24457 _ACEOF
24461 # Some platforms predefine the types int8, int16, etc. Only check
24462 # a (hopefully) representative subset.
24463 { echo "$as_me:$LINENO: checking for int8" >&5
24464 echo $ECHO_N "checking for int8... $ECHO_C" >&6; }
24465 if test "${ac_cv_type_int8+set}" = set; then
24466 echo $ECHO_N "(cached) $ECHO_C" >&6
24467 else
24468 cat >conftest.$ac_ext <<_ACEOF
24469 /* confdefs.h. */
24470 _ACEOF
24471 cat confdefs.h >>conftest.$ac_ext
24472 cat >>conftest.$ac_ext <<_ACEOF
24473 /* end confdefs.h. */
24474 #include <stdio.h>
24475 #ifdef HAVE_SUPPORTDEFS_H
24476 #include <SupportDefs.h>
24477 #endif
24479 typedef int8 ac__type_new_;
24481 main ()
24483 if ((ac__type_new_ *) 0)
24484 return 0;
24485 if (sizeof (ac__type_new_))
24486 return 0;
24488 return 0;
24490 _ACEOF
24491 rm -f conftest.$ac_objext
24492 if { (ac_try="$ac_compile"
24493 case "(($ac_try" in
24494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24495 *) ac_try_echo=$ac_try;;
24496 esac
24497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24498 (eval "$ac_compile") 2>conftest.er1
24499 ac_status=$?
24500 grep -v '^ *+' conftest.er1 >conftest.err
24501 rm -f conftest.er1
24502 cat conftest.err >&5
24503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24504 (exit $ac_status); } && {
24505 test -z "$ac_c_werror_flag" ||
24506 test ! -s conftest.err
24507 } && test -s conftest.$ac_objext; then
24508 ac_cv_type_int8=yes
24509 else
24510 echo "$as_me: failed program was:" >&5
24511 sed 's/^/| /' conftest.$ac_ext >&5
24513 ac_cv_type_int8=no
24516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24518 { echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
24519 echo "${ECHO_T}$ac_cv_type_int8" >&6; }
24520 if test $ac_cv_type_int8 = yes; then
24522 cat >>confdefs.h <<_ACEOF
24523 #define HAVE_INT8 1
24524 _ACEOF
24528 { echo "$as_me:$LINENO: checking for uint8" >&5
24529 echo $ECHO_N "checking for uint8... $ECHO_C" >&6; }
24530 if test "${ac_cv_type_uint8+set}" = set; then
24531 echo $ECHO_N "(cached) $ECHO_C" >&6
24532 else
24533 cat >conftest.$ac_ext <<_ACEOF
24534 /* confdefs.h. */
24535 _ACEOF
24536 cat confdefs.h >>conftest.$ac_ext
24537 cat >>conftest.$ac_ext <<_ACEOF
24538 /* end confdefs.h. */
24539 #include <stdio.h>
24540 #ifdef HAVE_SUPPORTDEFS_H
24541 #include <SupportDefs.h>
24542 #endif
24544 typedef uint8 ac__type_new_;
24546 main ()
24548 if ((ac__type_new_ *) 0)
24549 return 0;
24550 if (sizeof (ac__type_new_))
24551 return 0;
24553 return 0;
24555 _ACEOF
24556 rm -f conftest.$ac_objext
24557 if { (ac_try="$ac_compile"
24558 case "(($ac_try" in
24559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24560 *) ac_try_echo=$ac_try;;
24561 esac
24562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24563 (eval "$ac_compile") 2>conftest.er1
24564 ac_status=$?
24565 grep -v '^ *+' conftest.er1 >conftest.err
24566 rm -f conftest.er1
24567 cat conftest.err >&5
24568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24569 (exit $ac_status); } && {
24570 test -z "$ac_c_werror_flag" ||
24571 test ! -s conftest.err
24572 } && test -s conftest.$ac_objext; then
24573 ac_cv_type_uint8=yes
24574 else
24575 echo "$as_me: failed program was:" >&5
24576 sed 's/^/| /' conftest.$ac_ext >&5
24578 ac_cv_type_uint8=no
24581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24583 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
24584 echo "${ECHO_T}$ac_cv_type_uint8" >&6; }
24585 if test $ac_cv_type_uint8 = yes; then
24587 cat >>confdefs.h <<_ACEOF
24588 #define HAVE_UINT8 1
24589 _ACEOF
24593 { echo "$as_me:$LINENO: checking for int64" >&5
24594 echo $ECHO_N "checking for int64... $ECHO_C" >&6; }
24595 if test "${ac_cv_type_int64+set}" = set; then
24596 echo $ECHO_N "(cached) $ECHO_C" >&6
24597 else
24598 cat >conftest.$ac_ext <<_ACEOF
24599 /* confdefs.h. */
24600 _ACEOF
24601 cat confdefs.h >>conftest.$ac_ext
24602 cat >>conftest.$ac_ext <<_ACEOF
24603 /* end confdefs.h. */
24604 #include <stdio.h>
24605 #ifdef HAVE_SUPPORTDEFS_H
24606 #include <SupportDefs.h>
24607 #endif
24609 typedef int64 ac__type_new_;
24611 main ()
24613 if ((ac__type_new_ *) 0)
24614 return 0;
24615 if (sizeof (ac__type_new_))
24616 return 0;
24618 return 0;
24620 _ACEOF
24621 rm -f conftest.$ac_objext
24622 if { (ac_try="$ac_compile"
24623 case "(($ac_try" in
24624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24625 *) ac_try_echo=$ac_try;;
24626 esac
24627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24628 (eval "$ac_compile") 2>conftest.er1
24629 ac_status=$?
24630 grep -v '^ *+' conftest.er1 >conftest.err
24631 rm -f conftest.er1
24632 cat conftest.err >&5
24633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24634 (exit $ac_status); } && {
24635 test -z "$ac_c_werror_flag" ||
24636 test ! -s conftest.err
24637 } && test -s conftest.$ac_objext; then
24638 ac_cv_type_int64=yes
24639 else
24640 echo "$as_me: failed program was:" >&5
24641 sed 's/^/| /' conftest.$ac_ext >&5
24643 ac_cv_type_int64=no
24646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24648 { echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
24649 echo "${ECHO_T}$ac_cv_type_int64" >&6; }
24650 if test $ac_cv_type_int64 = yes; then
24652 cat >>confdefs.h <<_ACEOF
24653 #define HAVE_INT64 1
24654 _ACEOF
24658 { echo "$as_me:$LINENO: checking for uint64" >&5
24659 echo $ECHO_N "checking for uint64... $ECHO_C" >&6; }
24660 if test "${ac_cv_type_uint64+set}" = set; then
24661 echo $ECHO_N "(cached) $ECHO_C" >&6
24662 else
24663 cat >conftest.$ac_ext <<_ACEOF
24664 /* confdefs.h. */
24665 _ACEOF
24666 cat confdefs.h >>conftest.$ac_ext
24667 cat >>conftest.$ac_ext <<_ACEOF
24668 /* end confdefs.h. */
24669 #include <stdio.h>
24670 #ifdef HAVE_SUPPORTDEFS_H
24671 #include <SupportDefs.h>
24672 #endif
24674 typedef uint64 ac__type_new_;
24676 main ()
24678 if ((ac__type_new_ *) 0)
24679 return 0;
24680 if (sizeof (ac__type_new_))
24681 return 0;
24683 return 0;
24685 _ACEOF
24686 rm -f conftest.$ac_objext
24687 if { (ac_try="$ac_compile"
24688 case "(($ac_try" in
24689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24690 *) ac_try_echo=$ac_try;;
24691 esac
24692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24693 (eval "$ac_compile") 2>conftest.er1
24694 ac_status=$?
24695 grep -v '^ *+' conftest.er1 >conftest.err
24696 rm -f conftest.er1
24697 cat conftest.err >&5
24698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24699 (exit $ac_status); } && {
24700 test -z "$ac_c_werror_flag" ||
24701 test ! -s conftest.err
24702 } && test -s conftest.$ac_objext; then
24703 ac_cv_type_uint64=yes
24704 else
24705 echo "$as_me: failed program was:" >&5
24706 sed 's/^/| /' conftest.$ac_ext >&5
24708 ac_cv_type_uint64=no
24711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24713 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
24714 echo "${ECHO_T}$ac_cv_type_uint64" >&6; }
24715 if test $ac_cv_type_uint64 = yes; then
24717 cat >>confdefs.h <<_ACEOF
24718 #define HAVE_UINT64 1
24719 _ACEOF
24725 # We also check for sig_atomic_t, which *should* be defined per ANSI
24726 # C, but is missing on some old platforms.
24727 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
24728 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
24729 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
24730 echo $ECHO_N "(cached) $ECHO_C" >&6
24731 else
24732 cat >conftest.$ac_ext <<_ACEOF
24733 /* confdefs.h. */
24734 _ACEOF
24735 cat confdefs.h >>conftest.$ac_ext
24736 cat >>conftest.$ac_ext <<_ACEOF
24737 /* end confdefs.h. */
24738 #include <signal.h>
24740 typedef sig_atomic_t ac__type_new_;
24742 main ()
24744 if ((ac__type_new_ *) 0)
24745 return 0;
24746 if (sizeof (ac__type_new_))
24747 return 0;
24749 return 0;
24751 _ACEOF
24752 rm -f conftest.$ac_objext
24753 if { (ac_try="$ac_compile"
24754 case "(($ac_try" in
24755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24756 *) ac_try_echo=$ac_try;;
24757 esac
24758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24759 (eval "$ac_compile") 2>conftest.er1
24760 ac_status=$?
24761 grep -v '^ *+' conftest.er1 >conftest.err
24762 rm -f conftest.er1
24763 cat conftest.err >&5
24764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24765 (exit $ac_status); } && {
24766 test -z "$ac_c_werror_flag" ||
24767 test ! -s conftest.err
24768 } && test -s conftest.$ac_objext; then
24769 ac_cv_type_sig_atomic_t=yes
24770 else
24771 echo "$as_me: failed program was:" >&5
24772 sed 's/^/| /' conftest.$ac_ext >&5
24774 ac_cv_type_sig_atomic_t=no
24777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24779 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
24780 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
24781 if test $ac_cv_type_sig_atomic_t = yes; then
24783 cat >>confdefs.h <<_ACEOF
24784 #define HAVE_SIG_ATOMIC_T 1
24785 _ACEOF
24792 # If the user did not disable integer datetimes, check that
24793 # there is a working 64-bit integral type to use.
24794 if test x"$USE_INTEGER_DATETIMES" = x"yes" &&
24795 test x"$HAVE_LONG_INT_64" = x"no" &&
24796 test x"$HAVE_LONG_LONG_INT_64" = x"no" &&
24797 test x"$HAVE_INT64" = x"no" ; then
24798 { { echo "$as_me:$LINENO: error:
24799 Integer-based datetime support requires a 64-bit integer type,
24800 but no such type could be found. The --disable-integer-datetimes
24801 configure option can be used to disable integer-based storage
24802 of datetime values." >&5
24803 echo "$as_me: error:
24804 Integer-based datetime support requires a 64-bit integer type,
24805 but no such type could be found. The --disable-integer-datetimes
24806 configure option can be used to disable integer-based storage
24807 of datetime values." >&2;}
24808 { (exit 1); exit 1; }; }
24812 if test "$PORTNAME" != "win32"
24813 then
24814 { echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
24815 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6; }
24816 if test "${pgac_cv_func_posix_signals+set}" = set; then
24817 echo $ECHO_N "(cached) $ECHO_C" >&6
24818 else
24819 cat >conftest.$ac_ext <<_ACEOF
24820 /* confdefs.h. */
24821 _ACEOF
24822 cat confdefs.h >>conftest.$ac_ext
24823 cat >>conftest.$ac_ext <<_ACEOF
24824 /* end confdefs.h. */
24825 #include <signal.h>
24828 main ()
24830 struct sigaction act, oact;
24831 sigemptyset(&act.sa_mask);
24832 act.sa_flags = SA_RESTART;
24833 sigaction(0, &act, &oact);
24835 return 0;
24837 _ACEOF
24838 rm -f conftest.$ac_objext conftest$ac_exeext
24839 if { (ac_try="$ac_link"
24840 case "(($ac_try" in
24841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24842 *) ac_try_echo=$ac_try;;
24843 esac
24844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24845 (eval "$ac_link") 2>conftest.er1
24846 ac_status=$?
24847 grep -v '^ *+' conftest.er1 >conftest.err
24848 rm -f conftest.er1
24849 cat conftest.err >&5
24850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24851 (exit $ac_status); } && {
24852 test -z "$ac_c_werror_flag" ||
24853 test ! -s conftest.err
24854 } && test -s conftest$ac_exeext &&
24855 $as_test_x conftest$ac_exeext; then
24856 pgac_cv_func_posix_signals=yes
24857 else
24858 echo "$as_me: failed program was:" >&5
24859 sed 's/^/| /' conftest.$ac_ext >&5
24861 pgac_cv_func_posix_signals=no
24864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24865 conftest$ac_exeext conftest.$ac_ext
24867 { echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
24868 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6; }
24869 if test x"$pgac_cv_func_posix_signals" = xyes ; then
24871 cat >>confdefs.h <<\_ACEOF
24872 #define HAVE_POSIX_SIGNALS
24873 _ACEOF
24876 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
24878 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
24879 { { echo "$as_me:$LINENO: error:
24880 Thread-safety requires POSIX signals, which are not supported by this
24881 operating system." >&5
24882 echo "$as_me: error:
24883 Thread-safety requires POSIX signals, which are not supported by this
24884 operating system." >&2;}
24885 { (exit 1); exit 1; }; }
24889 if test $ac_cv_func_fseeko = yes; then
24890 # Check whether --enable-largefile was given.
24891 if test "${enable_largefile+set}" = set; then
24892 enableval=$enable_largefile;
24895 if test "$enable_largefile" != no; then
24897 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
24898 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
24899 if test "${ac_cv_sys_largefile_CC+set}" = set; then
24900 echo $ECHO_N "(cached) $ECHO_C" >&6
24901 else
24902 ac_cv_sys_largefile_CC=no
24903 if test "$GCC" != yes; then
24904 ac_save_CC=$CC
24905 while :; do
24906 # IRIX 6.2 and later do not support large files by default,
24907 # so use the C compiler's -n32 option if that helps.
24908 cat >conftest.$ac_ext <<_ACEOF
24909 /* confdefs.h. */
24910 _ACEOF
24911 cat confdefs.h >>conftest.$ac_ext
24912 cat >>conftest.$ac_ext <<_ACEOF
24913 /* end confdefs.h. */
24914 #include <sys/types.h>
24915 /* Check that off_t can represent 2**63 - 1 correctly.
24916 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24917 since some C++ compilers masquerading as C compilers
24918 incorrectly reject 9223372036854775807. */
24919 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24920 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24921 && LARGE_OFF_T % 2147483647 == 1)
24922 ? 1 : -1];
24924 main ()
24928 return 0;
24930 _ACEOF
24931 rm -f conftest.$ac_objext
24932 if { (ac_try="$ac_compile"
24933 case "(($ac_try" in
24934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24935 *) ac_try_echo=$ac_try;;
24936 esac
24937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24938 (eval "$ac_compile") 2>conftest.er1
24939 ac_status=$?
24940 grep -v '^ *+' conftest.er1 >conftest.err
24941 rm -f conftest.er1
24942 cat conftest.err >&5
24943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24944 (exit $ac_status); } && {
24945 test -z "$ac_c_werror_flag" ||
24946 test ! -s conftest.err
24947 } && test -s conftest.$ac_objext; then
24948 break
24949 else
24950 echo "$as_me: failed program was:" >&5
24951 sed 's/^/| /' conftest.$ac_ext >&5
24956 rm -f core conftest.err conftest.$ac_objext
24957 CC="$CC -n32"
24958 rm -f conftest.$ac_objext
24959 if { (ac_try="$ac_compile"
24960 case "(($ac_try" in
24961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24962 *) ac_try_echo=$ac_try;;
24963 esac
24964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24965 (eval "$ac_compile") 2>conftest.er1
24966 ac_status=$?
24967 grep -v '^ *+' conftest.er1 >conftest.err
24968 rm -f conftest.er1
24969 cat conftest.err >&5
24970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24971 (exit $ac_status); } && {
24972 test -z "$ac_c_werror_flag" ||
24973 test ! -s conftest.err
24974 } && test -s conftest.$ac_objext; then
24975 ac_cv_sys_largefile_CC=' -n32'; break
24976 else
24977 echo "$as_me: failed program was:" >&5
24978 sed 's/^/| /' conftest.$ac_ext >&5
24983 rm -f core conftest.err conftest.$ac_objext
24984 break
24985 done
24986 CC=$ac_save_CC
24987 rm -f conftest.$ac_ext
24990 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
24991 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
24992 if test "$ac_cv_sys_largefile_CC" != no; then
24993 CC=$CC$ac_cv_sys_largefile_CC
24996 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
24997 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
24998 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
24999 echo $ECHO_N "(cached) $ECHO_C" >&6
25000 else
25001 while :; do
25002 cat >conftest.$ac_ext <<_ACEOF
25003 /* confdefs.h. */
25004 _ACEOF
25005 cat confdefs.h >>conftest.$ac_ext
25006 cat >>conftest.$ac_ext <<_ACEOF
25007 /* end confdefs.h. */
25008 #include <sys/types.h>
25009 /* Check that off_t can represent 2**63 - 1 correctly.
25010 We can't simply define LARGE_OFF_T to be 9223372036854775807,
25011 since some C++ compilers masquerading as C compilers
25012 incorrectly reject 9223372036854775807. */
25013 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
25014 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
25015 && LARGE_OFF_T % 2147483647 == 1)
25016 ? 1 : -1];
25018 main ()
25022 return 0;
25024 _ACEOF
25025 rm -f conftest.$ac_objext
25026 if { (ac_try="$ac_compile"
25027 case "(($ac_try" in
25028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25029 *) ac_try_echo=$ac_try;;
25030 esac
25031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25032 (eval "$ac_compile") 2>conftest.er1
25033 ac_status=$?
25034 grep -v '^ *+' conftest.er1 >conftest.err
25035 rm -f conftest.er1
25036 cat conftest.err >&5
25037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25038 (exit $ac_status); } && {
25039 test -z "$ac_c_werror_flag" ||
25040 test ! -s conftest.err
25041 } && test -s conftest.$ac_objext; then
25042 ac_cv_sys_file_offset_bits=no; break
25043 else
25044 echo "$as_me: failed program was:" >&5
25045 sed 's/^/| /' conftest.$ac_ext >&5
25050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25051 cat >conftest.$ac_ext <<_ACEOF
25052 /* confdefs.h. */
25053 _ACEOF
25054 cat confdefs.h >>conftest.$ac_ext
25055 cat >>conftest.$ac_ext <<_ACEOF
25056 /* end confdefs.h. */
25057 #define _FILE_OFFSET_BITS 64
25058 #include <sys/types.h>
25059 /* Check that off_t can represent 2**63 - 1 correctly.
25060 We can't simply define LARGE_OFF_T to be 9223372036854775807,
25061 since some C++ compilers masquerading as C compilers
25062 incorrectly reject 9223372036854775807. */
25063 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
25064 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
25065 && LARGE_OFF_T % 2147483647 == 1)
25066 ? 1 : -1];
25068 main ()
25072 return 0;
25074 _ACEOF
25075 rm -f conftest.$ac_objext
25076 if { (ac_try="$ac_compile"
25077 case "(($ac_try" in
25078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25079 *) ac_try_echo=$ac_try;;
25080 esac
25081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25082 (eval "$ac_compile") 2>conftest.er1
25083 ac_status=$?
25084 grep -v '^ *+' conftest.er1 >conftest.err
25085 rm -f conftest.er1
25086 cat conftest.err >&5
25087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25088 (exit $ac_status); } && {
25089 test -z "$ac_c_werror_flag" ||
25090 test ! -s conftest.err
25091 } && test -s conftest.$ac_objext; then
25092 ac_cv_sys_file_offset_bits=64; break
25093 else
25094 echo "$as_me: failed program was:" >&5
25095 sed 's/^/| /' conftest.$ac_ext >&5
25100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25101 ac_cv_sys_file_offset_bits=unknown
25102 break
25103 done
25105 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
25106 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
25107 case $ac_cv_sys_file_offset_bits in #(
25108 no | unknown) ;;
25110 cat >>confdefs.h <<_ACEOF
25111 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
25112 _ACEOF
25114 esac
25115 rm -f conftest*
25116 if test $ac_cv_sys_file_offset_bits = unknown; then
25117 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
25118 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
25119 if test "${ac_cv_sys_large_files+set}" = set; then
25120 echo $ECHO_N "(cached) $ECHO_C" >&6
25121 else
25122 while :; do
25123 cat >conftest.$ac_ext <<_ACEOF
25124 /* confdefs.h. */
25125 _ACEOF
25126 cat confdefs.h >>conftest.$ac_ext
25127 cat >>conftest.$ac_ext <<_ACEOF
25128 /* end confdefs.h. */
25129 #include <sys/types.h>
25130 /* Check that off_t can represent 2**63 - 1 correctly.
25131 We can't simply define LARGE_OFF_T to be 9223372036854775807,
25132 since some C++ compilers masquerading as C compilers
25133 incorrectly reject 9223372036854775807. */
25134 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
25135 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
25136 && LARGE_OFF_T % 2147483647 == 1)
25137 ? 1 : -1];
25139 main ()
25143 return 0;
25145 _ACEOF
25146 rm -f conftest.$ac_objext
25147 if { (ac_try="$ac_compile"
25148 case "(($ac_try" in
25149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25150 *) ac_try_echo=$ac_try;;
25151 esac
25152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25153 (eval "$ac_compile") 2>conftest.er1
25154 ac_status=$?
25155 grep -v '^ *+' conftest.er1 >conftest.err
25156 rm -f conftest.er1
25157 cat conftest.err >&5
25158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25159 (exit $ac_status); } && {
25160 test -z "$ac_c_werror_flag" ||
25161 test ! -s conftest.err
25162 } && test -s conftest.$ac_objext; then
25163 ac_cv_sys_large_files=no; break
25164 else
25165 echo "$as_me: failed program was:" >&5
25166 sed 's/^/| /' conftest.$ac_ext >&5
25171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25172 cat >conftest.$ac_ext <<_ACEOF
25173 /* confdefs.h. */
25174 _ACEOF
25175 cat confdefs.h >>conftest.$ac_ext
25176 cat >>conftest.$ac_ext <<_ACEOF
25177 /* end confdefs.h. */
25178 #define _LARGE_FILES 1
25179 #include <sys/types.h>
25180 /* Check that off_t can represent 2**63 - 1 correctly.
25181 We can't simply define LARGE_OFF_T to be 9223372036854775807,
25182 since some C++ compilers masquerading as C compilers
25183 incorrectly reject 9223372036854775807. */
25184 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
25185 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
25186 && LARGE_OFF_T % 2147483647 == 1)
25187 ? 1 : -1];
25189 main ()
25193 return 0;
25195 _ACEOF
25196 rm -f conftest.$ac_objext
25197 if { (ac_try="$ac_compile"
25198 case "(($ac_try" in
25199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25200 *) ac_try_echo=$ac_try;;
25201 esac
25202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25203 (eval "$ac_compile") 2>conftest.er1
25204 ac_status=$?
25205 grep -v '^ *+' conftest.er1 >conftest.err
25206 rm -f conftest.er1
25207 cat conftest.err >&5
25208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25209 (exit $ac_status); } && {
25210 test -z "$ac_c_werror_flag" ||
25211 test ! -s conftest.err
25212 } && test -s conftest.$ac_objext; then
25213 ac_cv_sys_large_files=1; break
25214 else
25215 echo "$as_me: failed program was:" >&5
25216 sed 's/^/| /' conftest.$ac_ext >&5
25221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25222 ac_cv_sys_large_files=unknown
25223 break
25224 done
25226 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
25227 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
25228 case $ac_cv_sys_large_files in #(
25229 no | unknown) ;;
25231 cat >>confdefs.h <<_ACEOF
25232 #define _LARGE_FILES $ac_cv_sys_large_files
25233 _ACEOF
25235 esac
25236 rm -f conftest*
25242 # Check for largefile support (must be after AC_SYS_LARGEFILE)
25243 { echo "$as_me:$LINENO: checking for off_t" >&5
25244 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
25245 if test "${ac_cv_type_off_t+set}" = set; then
25246 echo $ECHO_N "(cached) $ECHO_C" >&6
25247 else
25248 cat >conftest.$ac_ext <<_ACEOF
25249 /* confdefs.h. */
25250 _ACEOF
25251 cat confdefs.h >>conftest.$ac_ext
25252 cat >>conftest.$ac_ext <<_ACEOF
25253 /* end confdefs.h. */
25254 $ac_includes_default
25255 typedef off_t ac__type_new_;
25257 main ()
25259 if ((ac__type_new_ *) 0)
25260 return 0;
25261 if (sizeof (ac__type_new_))
25262 return 0;
25264 return 0;
25266 _ACEOF
25267 rm -f conftest.$ac_objext
25268 if { (ac_try="$ac_compile"
25269 case "(($ac_try" in
25270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25271 *) ac_try_echo=$ac_try;;
25272 esac
25273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25274 (eval "$ac_compile") 2>conftest.er1
25275 ac_status=$?
25276 grep -v '^ *+' conftest.er1 >conftest.err
25277 rm -f conftest.er1
25278 cat conftest.err >&5
25279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25280 (exit $ac_status); } && {
25281 test -z "$ac_c_werror_flag" ||
25282 test ! -s conftest.err
25283 } && test -s conftest.$ac_objext; then
25284 ac_cv_type_off_t=yes
25285 else
25286 echo "$as_me: failed program was:" >&5
25287 sed 's/^/| /' conftest.$ac_ext >&5
25289 ac_cv_type_off_t=no
25292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25294 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
25295 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
25297 # The cast to long int works around a bug in the HP C Compiler
25298 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25299 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25300 # This bug is HP SR number 8606223364.
25301 { echo "$as_me:$LINENO: checking size of off_t" >&5
25302 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
25303 if test "${ac_cv_sizeof_off_t+set}" = set; then
25304 echo $ECHO_N "(cached) $ECHO_C" >&6
25305 else
25306 if test "$cross_compiling" = yes; then
25307 # Depending upon the size, compute the lo and hi bounds.
25308 cat >conftest.$ac_ext <<_ACEOF
25309 /* confdefs.h. */
25310 _ACEOF
25311 cat confdefs.h >>conftest.$ac_ext
25312 cat >>conftest.$ac_ext <<_ACEOF
25313 /* end confdefs.h. */
25314 $ac_includes_default
25315 typedef off_t ac__type_sizeof_;
25317 main ()
25319 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25320 test_array [0] = 0
25323 return 0;
25325 _ACEOF
25326 rm -f conftest.$ac_objext
25327 if { (ac_try="$ac_compile"
25328 case "(($ac_try" in
25329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25330 *) ac_try_echo=$ac_try;;
25331 esac
25332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25333 (eval "$ac_compile") 2>conftest.er1
25334 ac_status=$?
25335 grep -v '^ *+' conftest.er1 >conftest.err
25336 rm -f conftest.er1
25337 cat conftest.err >&5
25338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25339 (exit $ac_status); } && {
25340 test -z "$ac_c_werror_flag" ||
25341 test ! -s conftest.err
25342 } && test -s conftest.$ac_objext; then
25343 ac_lo=0 ac_mid=0
25344 while :; do
25345 cat >conftest.$ac_ext <<_ACEOF
25346 /* confdefs.h. */
25347 _ACEOF
25348 cat confdefs.h >>conftest.$ac_ext
25349 cat >>conftest.$ac_ext <<_ACEOF
25350 /* end confdefs.h. */
25351 $ac_includes_default
25352 typedef off_t ac__type_sizeof_;
25354 main ()
25356 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25357 test_array [0] = 0
25360 return 0;
25362 _ACEOF
25363 rm -f conftest.$ac_objext
25364 if { (ac_try="$ac_compile"
25365 case "(($ac_try" in
25366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25367 *) ac_try_echo=$ac_try;;
25368 esac
25369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25370 (eval "$ac_compile") 2>conftest.er1
25371 ac_status=$?
25372 grep -v '^ *+' conftest.er1 >conftest.err
25373 rm -f conftest.er1
25374 cat conftest.err >&5
25375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25376 (exit $ac_status); } && {
25377 test -z "$ac_c_werror_flag" ||
25378 test ! -s conftest.err
25379 } && test -s conftest.$ac_objext; then
25380 ac_hi=$ac_mid; break
25381 else
25382 echo "$as_me: failed program was:" >&5
25383 sed 's/^/| /' conftest.$ac_ext >&5
25385 ac_lo=`expr $ac_mid + 1`
25386 if test $ac_lo -le $ac_mid; then
25387 ac_lo= ac_hi=
25388 break
25390 ac_mid=`expr 2 '*' $ac_mid + 1`
25393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25394 done
25395 else
25396 echo "$as_me: failed program was:" >&5
25397 sed 's/^/| /' conftest.$ac_ext >&5
25399 cat >conftest.$ac_ext <<_ACEOF
25400 /* confdefs.h. */
25401 _ACEOF
25402 cat confdefs.h >>conftest.$ac_ext
25403 cat >>conftest.$ac_ext <<_ACEOF
25404 /* end confdefs.h. */
25405 $ac_includes_default
25406 typedef off_t ac__type_sizeof_;
25408 main ()
25410 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25411 test_array [0] = 0
25414 return 0;
25416 _ACEOF
25417 rm -f conftest.$ac_objext
25418 if { (ac_try="$ac_compile"
25419 case "(($ac_try" in
25420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25421 *) ac_try_echo=$ac_try;;
25422 esac
25423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25424 (eval "$ac_compile") 2>conftest.er1
25425 ac_status=$?
25426 grep -v '^ *+' conftest.er1 >conftest.err
25427 rm -f conftest.er1
25428 cat conftest.err >&5
25429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25430 (exit $ac_status); } && {
25431 test -z "$ac_c_werror_flag" ||
25432 test ! -s conftest.err
25433 } && test -s conftest.$ac_objext; then
25434 ac_hi=-1 ac_mid=-1
25435 while :; do
25436 cat >conftest.$ac_ext <<_ACEOF
25437 /* confdefs.h. */
25438 _ACEOF
25439 cat confdefs.h >>conftest.$ac_ext
25440 cat >>conftest.$ac_ext <<_ACEOF
25441 /* end confdefs.h. */
25442 $ac_includes_default
25443 typedef off_t ac__type_sizeof_;
25445 main ()
25447 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25448 test_array [0] = 0
25451 return 0;
25453 _ACEOF
25454 rm -f conftest.$ac_objext
25455 if { (ac_try="$ac_compile"
25456 case "(($ac_try" in
25457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25458 *) ac_try_echo=$ac_try;;
25459 esac
25460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25461 (eval "$ac_compile") 2>conftest.er1
25462 ac_status=$?
25463 grep -v '^ *+' conftest.er1 >conftest.err
25464 rm -f conftest.er1
25465 cat conftest.err >&5
25466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25467 (exit $ac_status); } && {
25468 test -z "$ac_c_werror_flag" ||
25469 test ! -s conftest.err
25470 } && test -s conftest.$ac_objext; then
25471 ac_lo=$ac_mid; break
25472 else
25473 echo "$as_me: failed program was:" >&5
25474 sed 's/^/| /' conftest.$ac_ext >&5
25476 ac_hi=`expr '(' $ac_mid ')' - 1`
25477 if test $ac_mid -le $ac_hi; then
25478 ac_lo= ac_hi=
25479 break
25481 ac_mid=`expr 2 '*' $ac_mid`
25484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25485 done
25486 else
25487 echo "$as_me: failed program was:" >&5
25488 sed 's/^/| /' conftest.$ac_ext >&5
25490 ac_lo= ac_hi=
25493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25497 # Binary search between lo and hi bounds.
25498 while test "x$ac_lo" != "x$ac_hi"; do
25499 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25500 cat >conftest.$ac_ext <<_ACEOF
25501 /* confdefs.h. */
25502 _ACEOF
25503 cat confdefs.h >>conftest.$ac_ext
25504 cat >>conftest.$ac_ext <<_ACEOF
25505 /* end confdefs.h. */
25506 $ac_includes_default
25507 typedef off_t ac__type_sizeof_;
25509 main ()
25511 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25512 test_array [0] = 0
25515 return 0;
25517 _ACEOF
25518 rm -f conftest.$ac_objext
25519 if { (ac_try="$ac_compile"
25520 case "(($ac_try" in
25521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25522 *) ac_try_echo=$ac_try;;
25523 esac
25524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25525 (eval "$ac_compile") 2>conftest.er1
25526 ac_status=$?
25527 grep -v '^ *+' conftest.er1 >conftest.err
25528 rm -f conftest.er1
25529 cat conftest.err >&5
25530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25531 (exit $ac_status); } && {
25532 test -z "$ac_c_werror_flag" ||
25533 test ! -s conftest.err
25534 } && test -s conftest.$ac_objext; then
25535 ac_hi=$ac_mid
25536 else
25537 echo "$as_me: failed program was:" >&5
25538 sed 's/^/| /' conftest.$ac_ext >&5
25540 ac_lo=`expr '(' $ac_mid ')' + 1`
25543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25544 done
25545 case $ac_lo in
25546 ?*) ac_cv_sizeof_off_t=$ac_lo;;
25547 '') if test "$ac_cv_type_off_t" = yes; then
25548 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
25549 See \`config.log' for more details." >&5
25550 echo "$as_me: error: cannot compute sizeof (off_t)
25551 See \`config.log' for more details." >&2;}
25552 { (exit 77); exit 77; }; }
25553 else
25554 ac_cv_sizeof_off_t=0
25555 fi ;;
25556 esac
25557 else
25558 cat >conftest.$ac_ext <<_ACEOF
25559 /* confdefs.h. */
25560 _ACEOF
25561 cat confdefs.h >>conftest.$ac_ext
25562 cat >>conftest.$ac_ext <<_ACEOF
25563 /* end confdefs.h. */
25564 $ac_includes_default
25565 typedef off_t ac__type_sizeof_;
25566 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25567 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25568 #include <stdio.h>
25569 #include <stdlib.h>
25571 main ()
25574 FILE *f = fopen ("conftest.val", "w");
25575 if (! f)
25576 return 1;
25577 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25579 long int i = longval ();
25580 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25581 return 1;
25582 fprintf (f, "%ld\n", i);
25584 else
25586 unsigned long int i = ulongval ();
25587 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25588 return 1;
25589 fprintf (f, "%lu\n", i);
25591 return ferror (f) || fclose (f) != 0;
25594 return 0;
25596 _ACEOF
25597 rm -f conftest$ac_exeext
25598 if { (ac_try="$ac_link"
25599 case "(($ac_try" in
25600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25601 *) ac_try_echo=$ac_try;;
25602 esac
25603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25604 (eval "$ac_link") 2>&5
25605 ac_status=$?
25606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25607 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25608 { (case "(($ac_try" in
25609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25610 *) ac_try_echo=$ac_try;;
25611 esac
25612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25613 (eval "$ac_try") 2>&5
25614 ac_status=$?
25615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25616 (exit $ac_status); }; }; then
25617 ac_cv_sizeof_off_t=`cat conftest.val`
25618 else
25619 echo "$as_me: program exited with status $ac_status" >&5
25620 echo "$as_me: failed program was:" >&5
25621 sed 's/^/| /' conftest.$ac_ext >&5
25623 ( exit $ac_status )
25624 if test "$ac_cv_type_off_t" = yes; then
25625 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
25626 See \`config.log' for more details." >&5
25627 echo "$as_me: error: cannot compute sizeof (off_t)
25628 See \`config.log' for more details." >&2;}
25629 { (exit 77); exit 77; }; }
25630 else
25631 ac_cv_sizeof_off_t=0
25634 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25636 rm -f conftest.val
25638 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
25639 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
25643 cat >>confdefs.h <<_ACEOF
25644 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
25645 _ACEOF
25649 # If we don't have largefile support, can't handle segsize >= 2GB.
25650 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
25651 { { echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
25652 echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
25653 { (exit 1); exit 1; }; }
25656 # SunOS doesn't handle negative byte comparisons properly with +/- return
25657 { echo "$as_me:$LINENO: checking for working memcmp" >&5
25658 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
25659 if test "${ac_cv_func_memcmp_working+set}" = set; then
25660 echo $ECHO_N "(cached) $ECHO_C" >&6
25661 else
25662 if test "$cross_compiling" = yes; then
25663 ac_cv_func_memcmp_working=no
25664 else
25665 cat >conftest.$ac_ext <<_ACEOF
25666 /* confdefs.h. */
25667 _ACEOF
25668 cat confdefs.h >>conftest.$ac_ext
25669 cat >>conftest.$ac_ext <<_ACEOF
25670 /* end confdefs.h. */
25671 $ac_includes_default
25673 main ()
25676 /* Some versions of memcmp are not 8-bit clean. */
25677 char c0 = '\100', c1 = '\200', c2 = '\201';
25678 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25679 return 1;
25681 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25682 or more and with at least one buffer not starting on a 4-byte boundary.
25683 William Lewis provided this test program. */
25685 char foo[21];
25686 char bar[21];
25687 int i;
25688 for (i = 0; i < 4; i++)
25690 char *a = foo + i;
25691 char *b = bar + i;
25692 strcpy (a, "--------01111111");
25693 strcpy (b, "--------10000000");
25694 if (memcmp (a, b, 16) >= 0)
25695 return 1;
25697 return 0;
25701 return 0;
25703 _ACEOF
25704 rm -f conftest$ac_exeext
25705 if { (ac_try="$ac_link"
25706 case "(($ac_try" in
25707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25708 *) ac_try_echo=$ac_try;;
25709 esac
25710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25711 (eval "$ac_link") 2>&5
25712 ac_status=$?
25713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25714 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25715 { (case "(($ac_try" in
25716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25717 *) ac_try_echo=$ac_try;;
25718 esac
25719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25720 (eval "$ac_try") 2>&5
25721 ac_status=$?
25722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25723 (exit $ac_status); }; }; then
25724 ac_cv_func_memcmp_working=yes
25725 else
25726 echo "$as_me: program exited with status $ac_status" >&5
25727 echo "$as_me: failed program was:" >&5
25728 sed 's/^/| /' conftest.$ac_ext >&5
25730 ( exit $ac_status )
25731 ac_cv_func_memcmp_working=no
25733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25738 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
25739 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
25740 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
25741 *" memcmp.$ac_objext "* ) ;;
25742 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
25744 esac
25749 # Select semaphore implementation type.
25750 if test "$PORTNAME" != "win32"; then
25751 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
25753 cat >>confdefs.h <<\_ACEOF
25754 #define USE_NAMED_POSIX_SEMAPHORES 1
25755 _ACEOF
25757 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
25758 else
25759 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
25761 cat >>confdefs.h <<\_ACEOF
25762 #define USE_UNNAMED_POSIX_SEMAPHORES 1
25763 _ACEOF
25765 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
25766 else
25768 cat >>confdefs.h <<\_ACEOF
25769 #define USE_SYSV_SEMAPHORES 1
25770 _ACEOF
25772 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
25775 else
25777 cat >>confdefs.h <<\_ACEOF
25778 #define USE_WIN32_SEMAPHORES 1
25779 _ACEOF
25781 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
25785 # Select shared-memory implementation type.
25786 if test "$PORTNAME" != "win32"; then
25788 cat >>confdefs.h <<\_ACEOF
25789 #define USE_SYSV_SHARED_MEMORY 1
25790 _ACEOF
25792 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
25793 else
25795 cat >>confdefs.h <<\_ACEOF
25796 #define USE_WIN32_SHARED_MEMORY 1
25797 _ACEOF
25799 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
25802 # If not set in template file, set bytes to use libc memset()
25803 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
25804 MEMSET_LOOP_LIMIT=1024
25807 cat >>confdefs.h <<_ACEOF
25808 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
25809 _ACEOF
25813 if test "$enable_nls" = yes ; then
25815 { echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
25816 echo $ECHO_N "checking for library containing bind_textdomain_codeset... $ECHO_C" >&6; }
25817 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
25818 echo $ECHO_N "(cached) $ECHO_C" >&6
25819 else
25820 ac_func_search_save_LIBS=$LIBS
25821 cat >conftest.$ac_ext <<_ACEOF
25822 /* confdefs.h. */
25823 _ACEOF
25824 cat confdefs.h >>conftest.$ac_ext
25825 cat >>conftest.$ac_ext <<_ACEOF
25826 /* end confdefs.h. */
25828 /* Override any GCC internal prototype to avoid an error.
25829 Use char because int might match the return type of a GCC
25830 builtin and then its argument prototype would still apply. */
25831 #ifdef __cplusplus
25832 extern "C"
25833 #endif
25834 char bind_textdomain_codeset ();
25836 main ()
25838 return bind_textdomain_codeset ();
25840 return 0;
25842 _ACEOF
25843 for ac_lib in '' intl; do
25844 if test -z "$ac_lib"; then
25845 ac_res="none required"
25846 else
25847 ac_res=-l$ac_lib
25848 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25850 rm -f conftest.$ac_objext conftest$ac_exeext
25851 if { (ac_try="$ac_link"
25852 case "(($ac_try" in
25853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25854 *) ac_try_echo=$ac_try;;
25855 esac
25856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25857 (eval "$ac_link") 2>conftest.er1
25858 ac_status=$?
25859 grep -v '^ *+' conftest.er1 >conftest.err
25860 rm -f conftest.er1
25861 cat conftest.err >&5
25862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25863 (exit $ac_status); } && {
25864 test -z "$ac_c_werror_flag" ||
25865 test ! -s conftest.err
25866 } && test -s conftest$ac_exeext &&
25867 $as_test_x conftest$ac_exeext; then
25868 ac_cv_search_bind_textdomain_codeset=$ac_res
25869 else
25870 echo "$as_me: failed program was:" >&5
25871 sed 's/^/| /' conftest.$ac_ext >&5
25876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25877 conftest$ac_exeext
25878 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
25879 break
25881 done
25882 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
25884 else
25885 ac_cv_search_bind_textdomain_codeset=no
25887 rm conftest.$ac_ext
25888 LIBS=$ac_func_search_save_LIBS
25890 { echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
25891 echo "${ECHO_T}$ac_cv_search_bind_textdomain_codeset" >&6; }
25892 ac_res=$ac_cv_search_bind_textdomain_codeset
25893 if test "$ac_res" != no; then
25894 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25896 else
25897 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
25898 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
25899 { (exit 1); exit 1; }; }
25902 if test "${ac_cv_header_libintl_h+set}" = set; then
25903 { echo "$as_me:$LINENO: checking for libintl.h" >&5
25904 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
25905 if test "${ac_cv_header_libintl_h+set}" = set; then
25906 echo $ECHO_N "(cached) $ECHO_C" >&6
25908 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
25909 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
25910 else
25911 # Is the header compilable?
25912 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
25913 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
25914 cat >conftest.$ac_ext <<_ACEOF
25915 /* confdefs.h. */
25916 _ACEOF
25917 cat confdefs.h >>conftest.$ac_ext
25918 cat >>conftest.$ac_ext <<_ACEOF
25919 /* end confdefs.h. */
25920 $ac_includes_default
25921 #include <libintl.h>
25922 _ACEOF
25923 rm -f conftest.$ac_objext
25924 if { (ac_try="$ac_compile"
25925 case "(($ac_try" in
25926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25927 *) ac_try_echo=$ac_try;;
25928 esac
25929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25930 (eval "$ac_compile") 2>conftest.er1
25931 ac_status=$?
25932 grep -v '^ *+' conftest.er1 >conftest.err
25933 rm -f conftest.er1
25934 cat conftest.err >&5
25935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25936 (exit $ac_status); } && {
25937 test -z "$ac_c_werror_flag" ||
25938 test ! -s conftest.err
25939 } && test -s conftest.$ac_objext; then
25940 ac_header_compiler=yes
25941 else
25942 echo "$as_me: failed program was:" >&5
25943 sed 's/^/| /' conftest.$ac_ext >&5
25945 ac_header_compiler=no
25948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25949 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25950 echo "${ECHO_T}$ac_header_compiler" >&6; }
25952 # Is the header present?
25953 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
25954 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
25955 cat >conftest.$ac_ext <<_ACEOF
25956 /* confdefs.h. */
25957 _ACEOF
25958 cat confdefs.h >>conftest.$ac_ext
25959 cat >>conftest.$ac_ext <<_ACEOF
25960 /* end confdefs.h. */
25961 #include <libintl.h>
25962 _ACEOF
25963 if { (ac_try="$ac_cpp conftest.$ac_ext"
25964 case "(($ac_try" in
25965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25966 *) ac_try_echo=$ac_try;;
25967 esac
25968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25970 ac_status=$?
25971 grep -v '^ *+' conftest.er1 >conftest.err
25972 rm -f conftest.er1
25973 cat conftest.err >&5
25974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25975 (exit $ac_status); } >/dev/null && {
25976 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25977 test ! -s conftest.err
25978 }; then
25979 ac_header_preproc=yes
25980 else
25981 echo "$as_me: failed program was:" >&5
25982 sed 's/^/| /' conftest.$ac_ext >&5
25984 ac_header_preproc=no
25987 rm -f conftest.err conftest.$ac_ext
25988 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25989 echo "${ECHO_T}$ac_header_preproc" >&6; }
25991 # So? What about this header?
25992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25993 yes:no: )
25994 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25995 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25996 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
25997 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
25998 ac_header_preproc=yes
26000 no:yes:* )
26001 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
26002 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
26003 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
26004 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
26005 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
26006 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
26007 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
26008 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
26009 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
26010 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
26011 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
26012 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
26013 ( cat <<\_ASBOX
26014 ## ---------------------------------------- ##
26015 ## Report this to pgsql-bugs@postgresql.org ##
26016 ## ---------------------------------------- ##
26017 _ASBOX
26018 ) | sed "s/^/$as_me: WARNING: /" >&2
26020 esac
26021 { echo "$as_me:$LINENO: checking for libintl.h" >&5
26022 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
26023 if test "${ac_cv_header_libintl_h+set}" = set; then
26024 echo $ECHO_N "(cached) $ECHO_C" >&6
26025 else
26026 ac_cv_header_libintl_h=$ac_header_preproc
26028 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
26029 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
26032 if test $ac_cv_header_libintl_h = yes; then
26034 else
26035 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
26036 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
26037 { (exit 1); exit 1; }; }
26041 for ac_prog in msgfmt
26043 # Extract the first word of "$ac_prog", so it can be a program name with args.
26044 set dummy $ac_prog; ac_word=$2
26045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26047 if test "${ac_cv_prog_MSGFMT+set}" = set; then
26048 echo $ECHO_N "(cached) $ECHO_C" >&6
26049 else
26050 if test -n "$MSGFMT"; then
26051 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
26052 else
26053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26054 for as_dir in $PATH
26056 IFS=$as_save_IFS
26057 test -z "$as_dir" && as_dir=.
26058 for ac_exec_ext in '' $ac_executable_extensions; do
26059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26060 ac_cv_prog_MSGFMT="$ac_prog"
26061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26062 break 2
26064 done
26065 done
26066 IFS=$as_save_IFS
26070 MSGFMT=$ac_cv_prog_MSGFMT
26071 if test -n "$MSGFMT"; then
26072 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
26073 echo "${ECHO_T}$MSGFMT" >&6; }
26074 else
26075 { echo "$as_me:$LINENO: result: no" >&5
26076 echo "${ECHO_T}no" >&6; }
26080 test -n "$MSGFMT" && break
26081 done
26083 if test -z "$MSGFMT"; then
26084 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
26085 echo "$as_me: error: msgfmt is required for NLS" >&2;}
26086 { (exit 1); exit 1; }; }
26088 for ac_prog in msgmerge
26090 # Extract the first word of "$ac_prog", so it can be a program name with args.
26091 set dummy $ac_prog; ac_word=$2
26092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26094 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
26095 echo $ECHO_N "(cached) $ECHO_C" >&6
26096 else
26097 if test -n "$MSGMERGE"; then
26098 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
26099 else
26100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26101 for as_dir in $PATH
26103 IFS=$as_save_IFS
26104 test -z "$as_dir" && as_dir=.
26105 for ac_exec_ext in '' $ac_executable_extensions; do
26106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26107 ac_cv_prog_MSGMERGE="$ac_prog"
26108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26109 break 2
26111 done
26112 done
26113 IFS=$as_save_IFS
26117 MSGMERGE=$ac_cv_prog_MSGMERGE
26118 if test -n "$MSGMERGE"; then
26119 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
26120 echo "${ECHO_T}$MSGMERGE" >&6; }
26121 else
26122 { echo "$as_me:$LINENO: result: no" >&5
26123 echo "${ECHO_T}no" >&6; }
26127 test -n "$MSGMERGE" && break
26128 done
26130 for ac_prog in xgettext
26132 # Extract the first word of "$ac_prog", so it can be a program name with args.
26133 set dummy $ac_prog; ac_word=$2
26134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26136 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
26137 echo $ECHO_N "(cached) $ECHO_C" >&6
26138 else
26139 if test -n "$XGETTEXT"; then
26140 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
26141 else
26142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26143 for as_dir in $PATH
26145 IFS=$as_save_IFS
26146 test -z "$as_dir" && as_dir=.
26147 for ac_exec_ext in '' $ac_executable_extensions; do
26148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26149 ac_cv_prog_XGETTEXT="$ac_prog"
26150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26151 break 2
26153 done
26154 done
26155 IFS=$as_save_IFS
26159 XGETTEXT=$ac_cv_prog_XGETTEXT
26160 if test -n "$XGETTEXT"; then
26161 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
26162 echo "${ECHO_T}$XGETTEXT" >&6; }
26163 else
26164 { echo "$as_me:$LINENO: result: no" >&5
26165 echo "${ECHO_T}no" >&6; }
26169 test -n "$XGETTEXT" && break
26170 done
26175 # Check for Tcl configuration script tclConfig.sh
26176 if test "$with_tcl" = yes; then
26177 for ac_prog in tclsh tcl tclsh8.5 tclsh8.4 tclsh8.3
26179 # Extract the first word of "$ac_prog", so it can be a program name with args.
26180 set dummy $ac_prog; ac_word=$2
26181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26183 if test "${ac_cv_path_TCLSH+set}" = set; then
26184 echo $ECHO_N "(cached) $ECHO_C" >&6
26185 else
26186 case $TCLSH in
26187 [\\/]* | ?:[\\/]*)
26188 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
26191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26192 for as_dir in $PATH
26194 IFS=$as_save_IFS
26195 test -z "$as_dir" && as_dir=.
26196 for ac_exec_ext in '' $ac_executable_extensions; do
26197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26198 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
26199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26200 break 2
26202 done
26203 done
26204 IFS=$as_save_IFS
26207 esac
26209 TCLSH=$ac_cv_path_TCLSH
26210 if test -n "$TCLSH"; then
26211 { echo "$as_me:$LINENO: result: $TCLSH" >&5
26212 echo "${ECHO_T}$TCLSH" >&6; }
26213 else
26214 { echo "$as_me:$LINENO: result: no" >&5
26215 echo "${ECHO_T}no" >&6; }
26219 test -n "$TCLSH" && break
26220 done
26222 if test x"$TCLSH" = x""; then
26223 { { echo "$as_me:$LINENO: error: Tcl shell not found" >&5
26224 echo "$as_me: error: Tcl shell not found" >&2;}
26225 { (exit 1); exit 1; }; }
26228 { echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
26229 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6; }
26230 # Let user override test
26231 if test -z "$TCL_CONFIG_SH"; then
26232 pgac_test_dirs="$with_tclconfig"
26234 set X $pgac_test_dirs; shift
26235 if test $# -eq 0; then
26236 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
26237 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
26238 { (exit 1); exit 1; }; }
26239 set X `echo 'puts $auto_path' | $TCLSH`; shift
26242 for pgac_dir do
26243 if test -r "$pgac_dir/tclConfig.sh"; then
26244 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
26245 break
26247 done
26250 if test -z "$TCL_CONFIG_SH"; then
26251 { echo "$as_me:$LINENO: result: no" >&5
26252 echo "${ECHO_T}no" >&6; }
26253 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
26254 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
26255 { (exit 1); exit 1; }; }
26256 else
26257 { echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
26258 echo "${ECHO_T}$TCL_CONFIG_SH" >&6; }
26263 . "$TCL_CONFIG_SH"
26264 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
26265 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
26266 eval TCL_LIBS=\"$TCL_LIBS\"
26267 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
26268 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
26270 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
26271 ac_save_CPPFLAGS=$CPPFLAGS
26272 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
26273 if test "${ac_cv_header_tcl_h+set}" = set; then
26274 { echo "$as_me:$LINENO: checking for tcl.h" >&5
26275 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
26276 if test "${ac_cv_header_tcl_h+set}" = set; then
26277 echo $ECHO_N "(cached) $ECHO_C" >&6
26279 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
26280 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
26281 else
26282 # Is the header compilable?
26283 { echo "$as_me:$LINENO: checking tcl.h usability" >&5
26284 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6; }
26285 cat >conftest.$ac_ext <<_ACEOF
26286 /* confdefs.h. */
26287 _ACEOF
26288 cat confdefs.h >>conftest.$ac_ext
26289 cat >>conftest.$ac_ext <<_ACEOF
26290 /* end confdefs.h. */
26291 $ac_includes_default
26292 #include <tcl.h>
26293 _ACEOF
26294 rm -f conftest.$ac_objext
26295 if { (ac_try="$ac_compile"
26296 case "(($ac_try" in
26297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26298 *) ac_try_echo=$ac_try;;
26299 esac
26300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26301 (eval "$ac_compile") 2>conftest.er1
26302 ac_status=$?
26303 grep -v '^ *+' conftest.er1 >conftest.err
26304 rm -f conftest.er1
26305 cat conftest.err >&5
26306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26307 (exit $ac_status); } && {
26308 test -z "$ac_c_werror_flag" ||
26309 test ! -s conftest.err
26310 } && test -s conftest.$ac_objext; then
26311 ac_header_compiler=yes
26312 else
26313 echo "$as_me: failed program was:" >&5
26314 sed 's/^/| /' conftest.$ac_ext >&5
26316 ac_header_compiler=no
26319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26320 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26321 echo "${ECHO_T}$ac_header_compiler" >&6; }
26323 # Is the header present?
26324 { echo "$as_me:$LINENO: checking tcl.h presence" >&5
26325 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6; }
26326 cat >conftest.$ac_ext <<_ACEOF
26327 /* confdefs.h. */
26328 _ACEOF
26329 cat confdefs.h >>conftest.$ac_ext
26330 cat >>conftest.$ac_ext <<_ACEOF
26331 /* end confdefs.h. */
26332 #include <tcl.h>
26333 _ACEOF
26334 if { (ac_try="$ac_cpp conftest.$ac_ext"
26335 case "(($ac_try" in
26336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26337 *) ac_try_echo=$ac_try;;
26338 esac
26339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26340 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26341 ac_status=$?
26342 grep -v '^ *+' conftest.er1 >conftest.err
26343 rm -f conftest.er1
26344 cat conftest.err >&5
26345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26346 (exit $ac_status); } >/dev/null && {
26347 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26348 test ! -s conftest.err
26349 }; then
26350 ac_header_preproc=yes
26351 else
26352 echo "$as_me: failed program was:" >&5
26353 sed 's/^/| /' conftest.$ac_ext >&5
26355 ac_header_preproc=no
26358 rm -f conftest.err conftest.$ac_ext
26359 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26360 echo "${ECHO_T}$ac_header_preproc" >&6; }
26362 # So? What about this header?
26363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26364 yes:no: )
26365 { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
26366 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26367 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
26368 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
26369 ac_header_preproc=yes
26371 no:yes:* )
26372 { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
26373 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
26374 { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
26375 echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
26376 { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
26377 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
26378 { echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
26379 echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
26380 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
26381 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
26382 { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
26383 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
26384 ( cat <<\_ASBOX
26385 ## ---------------------------------------- ##
26386 ## Report this to pgsql-bugs@postgresql.org ##
26387 ## ---------------------------------------- ##
26388 _ASBOX
26389 ) | sed "s/^/$as_me: WARNING: /" >&2
26391 esac
26392 { echo "$as_me:$LINENO: checking for tcl.h" >&5
26393 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
26394 if test "${ac_cv_header_tcl_h+set}" = set; then
26395 echo $ECHO_N "(cached) $ECHO_C" >&6
26396 else
26397 ac_cv_header_tcl_h=$ac_header_preproc
26399 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
26400 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
26403 if test $ac_cv_header_tcl_h = yes; then
26405 else
26406 { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
26407 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
26408 { (exit 1); exit 1; }; }
26412 CPPFLAGS=$ac_save_CPPFLAGS
26416 # Check for DocBook and tools
26418 for ac_prog in onsgmls nsgmls
26420 # Extract the first word of "$ac_prog", so it can be a program name with args.
26421 set dummy $ac_prog; ac_word=$2
26422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26424 if test "${ac_cv_prog_NSGMLS+set}" = set; then
26425 echo $ECHO_N "(cached) $ECHO_C" >&6
26426 else
26427 if test -n "$NSGMLS"; then
26428 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
26429 else
26430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26431 for as_dir in $PATH
26433 IFS=$as_save_IFS
26434 test -z "$as_dir" && as_dir=.
26435 for ac_exec_ext in '' $ac_executable_extensions; do
26436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26437 ac_cv_prog_NSGMLS="$ac_prog"
26438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26439 break 2
26441 done
26442 done
26443 IFS=$as_save_IFS
26447 NSGMLS=$ac_cv_prog_NSGMLS
26448 if test -n "$NSGMLS"; then
26449 { echo "$as_me:$LINENO: result: $NSGMLS" >&5
26450 echo "${ECHO_T}$NSGMLS" >&6; }
26451 else
26452 { echo "$as_me:$LINENO: result: no" >&5
26453 echo "${ECHO_T}no" >&6; }
26457 test -n "$NSGMLS" && break
26458 done
26460 for ac_prog in openjade jade
26462 # Extract the first word of "$ac_prog", so it can be a program name with args.
26463 set dummy $ac_prog; ac_word=$2
26464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26466 if test "${ac_cv_prog_JADE+set}" = set; then
26467 echo $ECHO_N "(cached) $ECHO_C" >&6
26468 else
26469 if test -n "$JADE"; then
26470 ac_cv_prog_JADE="$JADE" # Let the user override the test.
26471 else
26472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26473 for as_dir in $PATH
26475 IFS=$as_save_IFS
26476 test -z "$as_dir" && as_dir=.
26477 for ac_exec_ext in '' $ac_executable_extensions; do
26478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26479 ac_cv_prog_JADE="$ac_prog"
26480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26481 break 2
26483 done
26484 done
26485 IFS=$as_save_IFS
26489 JADE=$ac_cv_prog_JADE
26490 if test -n "$JADE"; then
26491 { echo "$as_me:$LINENO: result: $JADE" >&5
26492 echo "${ECHO_T}$JADE" >&6; }
26493 else
26494 { echo "$as_me:$LINENO: result: no" >&5
26495 echo "${ECHO_T}no" >&6; }
26499 test -n "$JADE" && break
26500 done
26503 { echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
26504 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6; }
26505 if test "${pgac_cv_check_docbook+set}" = set; then
26506 echo $ECHO_N "(cached) $ECHO_C" >&6
26507 else
26508 cat >conftest.sgml <<EOF
26509 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
26510 <book>
26511 <title>test</title>
26512 <chapter>
26513 <title>random</title>
26514 <sect1>
26515 <title>testsect</title>
26516 <para>text</para>
26517 </sect1>
26518 </chapter>
26519 </book>
26522 pgac_cv_check_docbook=no
26524 if test -n "$NSGMLS"; then
26525 $NSGMLS -s conftest.sgml 1>&5 2>&1
26526 if test $? -eq 0; then
26527 pgac_cv_check_docbook=yes
26530 rm -f conftest.sgml
26532 { echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
26533 echo "${ECHO_T}$pgac_cv_check_docbook" >&6; }
26535 have_docbook=$pgac_cv_check_docbook
26538 { echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
26539 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6; }
26540 if test "${pgac_cv_path_stylesheets+set}" = set; then
26541 echo $ECHO_N "(cached) $ECHO_C" >&6
26542 else
26543 if test -n "$DOCBOOKSTYLE"; then
26544 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
26545 else
26546 for pgac_prefix in /usr /usr/local /opt /sw; do
26547 for pgac_infix in share lib; do
26548 for pgac_postfix in \
26549 sgml/stylesheets/nwalsh-modular \
26550 sgml/stylesheets/docbook \
26551 sgml/stylesheets/dsssl/docbook \
26552 sgml/docbook-dsssl \
26553 sgml/docbook/dsssl/modular \
26554 sgml/docbook/stylesheet/dsssl/modular \
26555 sgml/docbook/dsssl-stylesheets \
26556 sgml/dsssl/docbook-dsssl-nwalsh
26558 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
26559 if test -r "$pgac_candidate/html/docbook.dsl" \
26560 && test -r "$pgac_candidate/print/docbook.dsl"
26561 then
26562 pgac_cv_path_stylesheets=$pgac_candidate
26563 break 3
26565 done
26566 done
26567 done
26571 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
26573 if test -n "$DOCBOOKSTYLE"; then
26574 { echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
26575 echo "${ECHO_T}$DOCBOOKSTYLE" >&6; }
26576 else
26577 { echo "$as_me:$LINENO: result: no" >&5
26578 echo "${ECHO_T}no" >&6; }
26580 if test -n "$DOCBOOKSTYLE"; then
26581 for ac_prog in collateindex.pl
26583 # Extract the first word of "$ac_prog", so it can be a program name with args.
26584 set dummy $ac_prog; ac_word=$2
26585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26587 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
26588 echo $ECHO_N "(cached) $ECHO_C" >&6
26589 else
26590 case $COLLATEINDEX in
26591 [\\/]* | ?:[\\/]*)
26592 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
26595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26596 for as_dir in $DOCBOOKSTYLE/bin $PATH
26598 IFS=$as_save_IFS
26599 test -z "$as_dir" && as_dir=.
26600 for ac_exec_ext in '' $ac_executable_extensions; do
26601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26602 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
26603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26604 break 2
26606 done
26607 done
26608 IFS=$as_save_IFS
26611 esac
26613 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
26614 if test -n "$COLLATEINDEX"; then
26615 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
26616 echo "${ECHO_T}$COLLATEINDEX" >&6; }
26617 else
26618 { echo "$as_me:$LINENO: result: no" >&5
26619 echo "${ECHO_T}no" >&6; }
26623 test -n "$COLLATEINDEX" && break
26624 done
26626 else
26627 for ac_prog in collateindex.pl
26629 # Extract the first word of "$ac_prog", so it can be a program name with args.
26630 set dummy $ac_prog; ac_word=$2
26631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26633 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
26634 echo $ECHO_N "(cached) $ECHO_C" >&6
26635 else
26636 case $COLLATEINDEX in
26637 [\\/]* | ?:[\\/]*)
26638 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
26641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26642 for as_dir in $PATH
26644 IFS=$as_save_IFS
26645 test -z "$as_dir" && as_dir=.
26646 for ac_exec_ext in '' $ac_executable_extensions; do
26647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26648 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
26649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26650 break 2
26652 done
26653 done
26654 IFS=$as_save_IFS
26657 esac
26659 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
26660 if test -n "$COLLATEINDEX"; then
26661 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
26662 echo "${ECHO_T}$COLLATEINDEX" >&6; }
26663 else
26664 { echo "$as_me:$LINENO: result: no" >&5
26665 echo "${ECHO_T}no" >&6; }
26669 test -n "$COLLATEINDEX" && break
26670 done
26673 for ac_prog in sgmlspl
26675 # Extract the first word of "$ac_prog", so it can be a program name with args.
26676 set dummy $ac_prog; ac_word=$2
26677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26679 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
26680 echo $ECHO_N "(cached) $ECHO_C" >&6
26681 else
26682 if test -n "$SGMLSPL"; then
26683 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
26684 else
26685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26686 for as_dir in $PATH
26688 IFS=$as_save_IFS
26689 test -z "$as_dir" && as_dir=.
26690 for ac_exec_ext in '' $ac_executable_extensions; do
26691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26692 ac_cv_prog_SGMLSPL="$ac_prog"
26693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26694 break 2
26696 done
26697 done
26698 IFS=$as_save_IFS
26702 SGMLSPL=$ac_cv_prog_SGMLSPL
26703 if test -n "$SGMLSPL"; then
26704 { echo "$as_me:$LINENO: result: $SGMLSPL" >&5
26705 echo "${ECHO_T}$SGMLSPL" >&6; }
26706 else
26707 { echo "$as_me:$LINENO: result: no" >&5
26708 echo "${ECHO_T}no" >&6; }
26712 test -n "$SGMLSPL" && break
26713 done
26715 { echo "$as_me:$LINENO: checking for docbook2man" >&5
26716 echo $ECHO_N "checking for docbook2man... $ECHO_C" >&6; }
26717 if test "${ac_cv_path_DOCBOOK2MAN+set}" = set; then
26718 echo $ECHO_N "(cached) $ECHO_C" >&6
26719 else
26720 if test -z "$DOCBOOK2MAN"; then
26721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26722 for as_dir in $PATH
26724 IFS=$as_save_IFS
26725 test -z "$as_dir" && as_dir=.
26726 for ac_prog in docbook2x-man db2x_docbook2man docbook2man; do
26727 ac_path="$as_dir/$ac_prog"
26728 { test -f "$ac_path" && $as_test_x "$ac_path"; } || continue
26729 if "$ac_path" --version 2>/dev/null | $GREP docbook2x >/dev/null 2>&1; then
26730 ac_cv_path_DOCBOOK2MAN=$ac_path
26731 break
26733 done
26734 done
26735 IFS=$as_save_IFS
26737 else
26738 ac_cv_path_DOCBOOK2MAN=$DOCBOOK2MAN
26741 { echo "$as_me:$LINENO: result: $ac_cv_path_DOCBOOK2MAN" >&5
26742 echo "${ECHO_T}$ac_cv_path_DOCBOOK2MAN" >&6; }
26743 DOCBOOK2MAN=$ac_cv_path_DOCBOOK2MAN
26747 # Thread testing
26749 # We have to run the thread test near the end so we have all our symbols
26750 # defined. Cross compiling throws a warning.
26752 if test "$enable_thread_safety_force" = yes; then
26753 if test "$PORTNAME" != "win32"
26754 then
26755 { echo "$as_me:$LINENO: WARNING:
26756 *** Skipping thread test program. --enable-thread-safety-force was used.
26757 *** Run the program in src/test/thread on the your machine and add proper
26758 *** locking function calls to your applications to guarantee thread safety.
26759 " >&5
26760 echo "$as_me: WARNING:
26761 *** Skipping thread test program. --enable-thread-safety-force was used.
26762 *** Run the program in src/test/thread on the your machine and add proper
26763 *** locking function calls to your applications to guarantee thread safety.
26764 " >&2;}
26765 else
26766 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
26767 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
26769 elif test "$enable_thread_safety" = yes; then
26770 if test "$PORTNAME" != "win32"
26771 then
26772 { echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
26773 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6; }
26775 _CFLAGS="$CFLAGS"
26776 _LIBS="$LIBS"
26777 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
26778 LIBS="$LIBS $PTHREAD_LIBS"
26779 if test "$cross_compiling" = yes; then
26780 { echo "$as_me:$LINENO: result: maybe" >&5
26781 echo "${ECHO_T}maybe" >&6; }
26782 { echo "$as_me:$LINENO: WARNING:
26783 *** Skipping thread test program because of cross-compile build.
26784 *** Run the program in src/test/thread on the target machine.
26785 " >&5
26786 echo "$as_me: WARNING:
26787 *** Skipping thread test program because of cross-compile build.
26788 *** Run the program in src/test/thread on the target machine.
26789 " >&2;}
26790 else
26791 cat >conftest.$ac_ext <<_ACEOF
26792 /* confdefs.h. */
26793 _ACEOF
26794 cat confdefs.h >>conftest.$ac_ext
26795 cat >>conftest.$ac_ext <<_ACEOF
26796 /* end confdefs.h. */
26797 #include "$srcdir/src/test/thread/thread_test.c"
26798 _ACEOF
26799 rm -f conftest$ac_exeext
26800 if { (ac_try="$ac_link"
26801 case "(($ac_try" in
26802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26803 *) ac_try_echo=$ac_try;;
26804 esac
26805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26806 (eval "$ac_link") 2>&5
26807 ac_status=$?
26808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26809 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26810 { (case "(($ac_try" in
26811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26812 *) ac_try_echo=$ac_try;;
26813 esac
26814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26815 (eval "$ac_try") 2>&5
26816 ac_status=$?
26817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26818 (exit $ac_status); }; }; then
26819 { echo "$as_me:$LINENO: result: yes" >&5
26820 echo "${ECHO_T}yes" >&6; }
26821 else
26822 echo "$as_me: program exited with status $ac_status" >&5
26823 echo "$as_me: failed program was:" >&5
26824 sed 's/^/| /' conftest.$ac_ext >&5
26826 ( exit $ac_status )
26827 { echo "$as_me:$LINENO: result: no" >&5
26828 echo "${ECHO_T}no" >&6; }
26829 { { echo "$as_me:$LINENO: error: thread test program failed
26830 This platform is not thread-safe. Check the file 'config.log' for the
26831 exact reason.
26833 You can use the configure option --enable-thread-safety-force to force
26834 threads to be enabled. But you must then run the program in
26835 src/test/thread and add locking function calls to your applications to
26836 guarantee thread safety." >&5
26837 echo "$as_me: error: thread test program failed
26838 This platform is not thread-safe. Check the file 'config.log' for the
26839 exact reason.
26841 You can use the configure option --enable-thread-safety-force to force
26842 threads to be enabled. But you must then run the program in
26843 src/test/thread and add locking function calls to your applications to
26844 guarantee thread safety." >&2;}
26845 { (exit 1); exit 1; }; }
26847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26851 CFLAGS="$_CFLAGS"
26852 LIBS="$_LIBS"
26853 else
26854 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
26855 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
26859 # If compiler will take -Wl,--as-needed then add that to LDFLAGS.
26860 # This is much easier than trying to filter LIBS to the minimum for each
26861 # executable. (Note that shared library links won't use this switch, though.)
26862 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
26863 # libreadline; therefore we postpone testing it until we know what library
26864 # dependencies readline has. The test code will try to link with $LIBS.
26865 if test "$with_readline" = yes; then
26866 link_test_func=readline
26867 else
26868 link_test_func=exit
26870 if test "$PORTNAME" != "darwin"; then
26871 { echo "$as_me:$LINENO: checking if $CC supports -Wl,--as-needed" >&5
26872 echo $ECHO_N "checking if $CC supports -Wl,--as-needed... $ECHO_C" >&6; }
26873 pgac_save_LDFLAGS=$LDFLAGS
26874 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
26875 if test "$cross_compiling" = yes; then
26876 LDFLAGS="$pgac_save_LDFLAGS"
26877 { echo "$as_me:$LINENO: result: assuming no" >&5
26878 echo "${ECHO_T}assuming no" >&6; }
26879 else
26880 cat >conftest.$ac_ext <<_ACEOF
26881 /* confdefs.h. */
26882 _ACEOF
26883 cat confdefs.h >>conftest.$ac_ext
26884 cat >>conftest.$ac_ext <<_ACEOF
26885 /* end confdefs.h. */
26886 extern void $link_test_func (); void (*fptr) () = $link_test_func;
26888 main ()
26892 return 0;
26894 _ACEOF
26895 rm -f conftest$ac_exeext
26896 if { (ac_try="$ac_link"
26897 case "(($ac_try" in
26898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26899 *) ac_try_echo=$ac_try;;
26900 esac
26901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26902 (eval "$ac_link") 2>&5
26903 ac_status=$?
26904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26905 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26906 { (case "(($ac_try" in
26907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26908 *) ac_try_echo=$ac_try;;
26909 esac
26910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26911 (eval "$ac_try") 2>&5
26912 ac_status=$?
26913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26914 (exit $ac_status); }; }; then
26915 { echo "$as_me:$LINENO: result: yes" >&5
26916 echo "${ECHO_T}yes" >&6; }
26917 else
26918 echo "$as_me: program exited with status $ac_status" >&5
26919 echo "$as_me: failed program was:" >&5
26920 sed 's/^/| /' conftest.$ac_ext >&5
26922 ( exit $ac_status )
26923 LDFLAGS="$pgac_save_LDFLAGS"
26924 { echo "$as_me:$LINENO: result: no" >&5
26925 echo "${ECHO_T}no" >&6; }
26927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26932 else
26933 # On Darwin it's spelled -Wl,-dead_strip_dylibs, but don't try that elsewhere
26934 { echo "$as_me:$LINENO: checking if $CC supports -Wl,-dead_strip_dylibs" >&5
26935 echo $ECHO_N "checking if $CC supports -Wl,-dead_strip_dylibs... $ECHO_C" >&6; }
26936 pgac_save_LDFLAGS=$LDFLAGS
26937 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
26938 if test "$cross_compiling" = yes; then
26939 LDFLAGS="$pgac_save_LDFLAGS"
26940 { echo "$as_me:$LINENO: result: assuming no" >&5
26941 echo "${ECHO_T}assuming no" >&6; }
26942 else
26943 cat >conftest.$ac_ext <<_ACEOF
26944 /* confdefs.h. */
26945 _ACEOF
26946 cat confdefs.h >>conftest.$ac_ext
26947 cat >>conftest.$ac_ext <<_ACEOF
26948 /* end confdefs.h. */
26949 extern void $link_test_func (); void (*fptr) () = $link_test_func;
26951 main ()
26955 return 0;
26957 _ACEOF
26958 rm -f conftest$ac_exeext
26959 if { (ac_try="$ac_link"
26960 case "(($ac_try" in
26961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26962 *) ac_try_echo=$ac_try;;
26963 esac
26964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26965 (eval "$ac_link") 2>&5
26966 ac_status=$?
26967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26968 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26969 { (case "(($ac_try" in
26970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26971 *) ac_try_echo=$ac_try;;
26972 esac
26973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26974 (eval "$ac_try") 2>&5
26975 ac_status=$?
26976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26977 (exit $ac_status); }; }; then
26978 { echo "$as_me:$LINENO: result: yes" >&5
26979 echo "${ECHO_T}yes" >&6; }
26980 else
26981 echo "$as_me: program exited with status $ac_status" >&5
26982 echo "$as_me: failed program was:" >&5
26983 sed 's/^/| /' conftest.$ac_ext >&5
26985 ( exit $ac_status )
26986 LDFLAGS="$pgac_save_LDFLAGS"
26987 { echo "$as_me:$LINENO: result: no" >&5
26988 echo "${ECHO_T}no" >&6; }
26990 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26998 # Begin output steps
27000 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
27001 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
27002 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
27003 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
27004 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
27005 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
27007 # Create compiler version string
27008 if test x"$GCC" = x"yes" ; then
27009 cc_string="GCC `${CC} --version | sed q`"
27010 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
27011 cc_string=`${CC} -V 2>&1 | sed q`
27012 else
27013 cc_string=$CC
27017 cat >>confdefs.h <<_ACEOF
27018 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
27019 _ACEOF
27022 # Supply a numeric version string for use by 3rd party add-ons
27023 # awk -F is a regex on some platforms, and not on others, so make "." a tab
27024 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
27025 tr '.' ' ' |
27026 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
27028 cat >>confdefs.h <<_ACEOF
27029 #define PG_VERSION_NUM $PG_VERSION_NUM
27030 _ACEOF
27034 # prepare build tree if outside source tree
27035 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
27036 # Note 2: /bin/pwd might be better than shell's built-in at getting
27037 # a symlink-free name.
27038 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
27039 vpath_build=no
27040 else
27041 vpath_build=yes
27042 if test "$no_create" != yes; then
27043 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
27044 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
27045 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
27046 || { { echo "$as_me:$LINENO: error: failed" >&5
27047 echo "$as_me: error: failed" >&2;}
27048 { (exit 1); exit 1; }; }
27049 { echo "$as_me:$LINENO: result: done" >&5
27050 echo "${ECHO_T}done" >&6; }
27056 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
27059 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}"
27062 if test "$PORTNAME" = "win32"; then
27063 ac_config_commands="$ac_config_commands check_win32_symlinks"
27067 ac_config_headers="$ac_config_headers src/include/pg_config.h"
27070 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
27073 cat >confcache <<\_ACEOF
27074 # This file is a shell script that caches the results of configure
27075 # tests run on this system so they can be shared between configure
27076 # scripts and configure runs, see configure's option --config-cache.
27077 # It is not useful on other systems. If it contains results you don't
27078 # want to keep, you may remove or edit it.
27080 # config.status only pays attention to the cache file if you give it
27081 # the --recheck option to rerun configure.
27083 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27084 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27085 # following values.
27087 _ACEOF
27089 # The following way of writing the cache mishandles newlines in values,
27090 # but we know of no workaround that is simple, portable, and efficient.
27091 # So, we kill variables containing newlines.
27092 # Ultrix sh set writes to stderr and can't be redirected directly,
27093 # and sets the high bit in the cache file unless we assign to the vars.
27095 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27096 eval ac_val=\$$ac_var
27097 case $ac_val in #(
27098 *${as_nl}*)
27099 case $ac_var in #(
27100 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27101 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27102 esac
27103 case $ac_var in #(
27104 _ | IFS | as_nl) ;; #(
27105 *) $as_unset $ac_var ;;
27106 esac ;;
27107 esac
27108 done
27110 (set) 2>&1 |
27111 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27112 *${as_nl}ac_space=\ *)
27113 # `set' does not quote correctly, so add quotes (double-quote
27114 # substitution turns \\\\ into \\, and sed turns \\ into \).
27115 sed -n \
27116 "s/'/'\\\\''/g;
27117 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27118 ;; #(
27120 # `set' quotes correctly as required by POSIX, so do not add quotes.
27121 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27123 esac |
27124 sort
27126 sed '
27127 /^ac_cv_env_/b end
27128 t clear
27129 :clear
27130 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27131 t end
27132 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27133 :end' >>confcache
27134 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27135 if test -w "$cache_file"; then
27136 test "x$cache_file" != "x/dev/null" &&
27137 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27138 echo "$as_me: updating cache $cache_file" >&6;}
27139 cat confcache >$cache_file
27140 else
27141 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27142 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27145 rm -f confcache
27147 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27148 # Let make expand exec_prefix.
27149 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27151 DEFS=-DHAVE_CONFIG_H
27153 ac_libobjs=
27154 ac_ltlibobjs=
27155 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27156 # 1. Remove the extension, and $U if already installed.
27157 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27158 ac_i=`echo "$ac_i" | sed "$ac_script"`
27159 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27160 # will be set to the directory where LIBOBJS objects are built.
27161 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27162 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
27163 done
27164 LIBOBJS=$ac_libobjs
27166 LTLIBOBJS=$ac_ltlibobjs
27170 : ${CONFIG_STATUS=./config.status}
27171 ac_clean_files_save=$ac_clean_files
27172 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27173 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27174 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27175 cat >$CONFIG_STATUS <<_ACEOF
27176 #! $SHELL
27177 # Generated by $as_me.
27178 # Run this file to recreate the current configuration.
27179 # Compiler output produced by configure, useful for debugging
27180 # configure, is in config.log if it exists.
27182 debug=false
27183 ac_cs_recheck=false
27184 ac_cs_silent=false
27185 SHELL=\${CONFIG_SHELL-$SHELL}
27186 _ACEOF
27188 cat >>$CONFIG_STATUS <<\_ACEOF
27189 ## --------------------- ##
27190 ## M4sh Initialization. ##
27191 ## --------------------- ##
27193 # Be more Bourne compatible
27194 DUALCASE=1; export DUALCASE # for MKS sh
27195 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27196 emulate sh
27197 NULLCMD=:
27198 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27199 # is contrary to our usage. Disable this feature.
27200 alias -g '${1+"$@"}'='"$@"'
27201 setopt NO_GLOB_SUBST
27202 else
27203 case `(set -o) 2>/dev/null` in
27204 *posix*) set -o posix ;;
27205 esac
27212 # PATH needs CR
27213 # Avoid depending upon Character Ranges.
27214 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27215 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27216 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27217 as_cr_digits='0123456789'
27218 as_cr_alnum=$as_cr_Letters$as_cr_digits
27220 # The user is always right.
27221 if test "${PATH_SEPARATOR+set}" != set; then
27222 echo "#! /bin/sh" >conf$$.sh
27223 echo "exit 0" >>conf$$.sh
27224 chmod +x conf$$.sh
27225 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27226 PATH_SEPARATOR=';'
27227 else
27228 PATH_SEPARATOR=:
27230 rm -f conf$$.sh
27233 # Support unset when possible.
27234 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27235 as_unset=unset
27236 else
27237 as_unset=false
27241 # IFS
27242 # We need space, tab and new line, in precisely that order. Quoting is
27243 # there to prevent editors from complaining about space-tab.
27244 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27245 # splitting by setting IFS to empty value.)
27246 as_nl='
27248 IFS=" "" $as_nl"
27250 # Find who we are. Look in the path if we contain no directory separator.
27251 case $0 in
27252 *[\\/]* ) as_myself=$0 ;;
27253 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27254 for as_dir in $PATH
27256 IFS=$as_save_IFS
27257 test -z "$as_dir" && as_dir=.
27258 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27259 done
27260 IFS=$as_save_IFS
27263 esac
27264 # We did not find ourselves, most probably we were run as `sh COMMAND'
27265 # in which case we are not to be found in the path.
27266 if test "x$as_myself" = x; then
27267 as_myself=$0
27269 if test ! -f "$as_myself"; then
27270 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27271 { (exit 1); exit 1; }
27274 # Work around bugs in pre-3.0 UWIN ksh.
27275 for as_var in ENV MAIL MAILPATH
27276 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27277 done
27278 PS1='$ '
27279 PS2='> '
27280 PS4='+ '
27282 # NLS nuisances.
27283 for as_var in \
27284 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27285 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27286 LC_TELEPHONE LC_TIME
27288 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27289 eval $as_var=C; export $as_var
27290 else
27291 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27293 done
27295 # Required to use basename.
27296 if expr a : '\(a\)' >/dev/null 2>&1 &&
27297 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27298 as_expr=expr
27299 else
27300 as_expr=false
27303 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27304 as_basename=basename
27305 else
27306 as_basename=false
27310 # Name of the executable.
27311 as_me=`$as_basename -- "$0" ||
27312 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27313 X"$0" : 'X\(//\)$' \| \
27314 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27315 echo X/"$0" |
27316 sed '/^.*\/\([^/][^/]*\)\/*$/{
27317 s//\1/
27320 /^X\/\(\/\/\)$/{
27321 s//\1/
27324 /^X\/\(\/\).*/{
27325 s//\1/
27328 s/.*/./; q'`
27330 # CDPATH.
27331 $as_unset CDPATH
27335 as_lineno_1=$LINENO
27336 as_lineno_2=$LINENO
27337 test "x$as_lineno_1" != "x$as_lineno_2" &&
27338 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
27340 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27341 # uniformly replaced by the line number. The first 'sed' inserts a
27342 # line-number line after each line using $LINENO; the second 'sed'
27343 # does the real work. The second script uses 'N' to pair each
27344 # line-number line with the line containing $LINENO, and appends
27345 # trailing '-' during substitution so that $LINENO is not a special
27346 # case at line end.
27347 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27348 # scripts with optimization help from Paolo Bonzini. Blame Lee
27349 # E. McMahon (1931-1989) for sed's syntax. :-)
27350 sed -n '
27352 /[$]LINENO/=
27353 ' <$as_myself |
27354 sed '
27355 s/[$]LINENO.*/&-/
27356 t lineno
27358 :lineno
27360 :loop
27361 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27362 t loop
27363 s/-\n.*//
27364 ' >$as_me.lineno &&
27365 chmod +x "$as_me.lineno" ||
27366 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27367 { (exit 1); exit 1; }; }
27369 # Don't try to exec as it changes $[0], causing all sort of problems
27370 # (the dirname of $[0] is not the place where we might find the
27371 # original and so on. Autoconf is especially sensitive to this).
27372 . "./$as_me.lineno"
27373 # Exit status is that of the last command.
27374 exit
27378 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27379 as_dirname=dirname
27380 else
27381 as_dirname=false
27384 ECHO_C= ECHO_N= ECHO_T=
27385 case `echo -n x` in
27386 -n*)
27387 case `echo 'x\c'` in
27388 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27389 *) ECHO_C='\c';;
27390 esac;;
27392 ECHO_N='-n';;
27393 esac
27395 if expr a : '\(a\)' >/dev/null 2>&1 &&
27396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27397 as_expr=expr
27398 else
27399 as_expr=false
27402 rm -f conf$$ conf$$.exe conf$$.file
27403 if test -d conf$$.dir; then
27404 rm -f conf$$.dir/conf$$.file
27405 else
27406 rm -f conf$$.dir
27407 mkdir conf$$.dir
27409 echo >conf$$.file
27410 if ln -s conf$$.file conf$$ 2>/dev/null; then
27411 as_ln_s='ln -s'
27412 # ... but there are two gotchas:
27413 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27414 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27415 # In both cases, we have to default to `cp -p'.
27416 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27417 as_ln_s='cp -p'
27418 elif ln conf$$.file conf$$ 2>/dev/null; then
27419 as_ln_s=ln
27420 else
27421 as_ln_s='cp -p'
27423 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27424 rmdir conf$$.dir 2>/dev/null
27426 if mkdir -p . 2>/dev/null; then
27427 as_mkdir_p=:
27428 else
27429 test -d ./-p && rmdir ./-p
27430 as_mkdir_p=false
27433 if test -x / >/dev/null 2>&1; then
27434 as_test_x='test -x'
27435 else
27436 if ls -dL / >/dev/null 2>&1; then
27437 as_ls_L_option=L
27438 else
27439 as_ls_L_option=
27441 as_test_x='
27442 eval sh -c '\''
27443 if test -d "$1"; then
27444 test -d "$1/.";
27445 else
27446 case $1 in
27447 -*)set "./$1";;
27448 esac;
27449 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27450 ???[sx]*):;;*)false;;esac;fi
27451 '\'' sh
27454 as_executable_p=$as_test_x
27456 # Sed expression to map a string onto a valid CPP name.
27457 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27459 # Sed expression to map a string onto a valid variable name.
27460 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27463 exec 6>&1
27465 # Save the log message, to keep $[0] and so on meaningful, and to
27466 # report actual input values of CONFIG_FILES etc. instead of their
27467 # values after options handling.
27468 ac_log="
27469 This file was extended by PostgreSQL $as_me 8.4devel, which was
27470 generated by GNU Autoconf 2.61. Invocation command line was
27472 CONFIG_FILES = $CONFIG_FILES
27473 CONFIG_HEADERS = $CONFIG_HEADERS
27474 CONFIG_LINKS = $CONFIG_LINKS
27475 CONFIG_COMMANDS = $CONFIG_COMMANDS
27476 $ $0 $@
27478 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27481 _ACEOF
27483 cat >>$CONFIG_STATUS <<_ACEOF
27484 # Files that config.status was made for.
27485 config_files="$ac_config_files"
27486 config_headers="$ac_config_headers"
27487 config_links="$ac_config_links"
27488 config_commands="$ac_config_commands"
27490 _ACEOF
27492 cat >>$CONFIG_STATUS <<\_ACEOF
27493 ac_cs_usage="\
27494 \`$as_me' instantiates files from templates according to the
27495 current configuration.
27497 Usage: $0 [OPTIONS] [FILE]...
27499 -h, --help print this help, then exit
27500 -V, --version print version number and configuration settings, then exit
27501 -q, --quiet do not print progress messages
27502 -d, --debug don't remove temporary files
27503 --recheck update $as_me by reconfiguring in the same conditions
27504 --file=FILE[:TEMPLATE]
27505 instantiate the configuration file FILE
27506 --header=FILE[:TEMPLATE]
27507 instantiate the configuration header FILE
27509 Configuration files:
27510 $config_files
27512 Configuration headers:
27513 $config_headers
27515 Configuration links:
27516 $config_links
27518 Configuration commands:
27519 $config_commands
27521 Report bugs to <bug-autoconf@gnu.org>."
27523 _ACEOF
27524 cat >>$CONFIG_STATUS <<_ACEOF
27525 ac_cs_version="\\
27526 PostgreSQL config.status 8.4devel
27527 configured by $0, generated by GNU Autoconf 2.61,
27528 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27530 Copyright (C) 2006 Free Software Foundation, Inc.
27531 This config.status script is free software; the Free Software Foundation
27532 gives unlimited permission to copy, distribute and modify it."
27534 ac_pwd='$ac_pwd'
27535 srcdir='$srcdir'
27536 _ACEOF
27538 cat >>$CONFIG_STATUS <<\_ACEOF
27539 # If no file are specified by the user, then we need to provide default
27540 # value. By we need to know if files were specified by the user.
27541 ac_need_defaults=:
27542 while test $# != 0
27544 case $1 in
27545 --*=*)
27546 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27547 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27548 ac_shift=:
27551 ac_option=$1
27552 ac_optarg=$2
27553 ac_shift=shift
27555 esac
27557 case $ac_option in
27558 # Handling of the options.
27559 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27560 ac_cs_recheck=: ;;
27561 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27562 echo "$ac_cs_version"; exit ;;
27563 --debug | --debu | --deb | --de | --d | -d )
27564 debug=: ;;
27565 --file | --fil | --fi | --f )
27566 $ac_shift
27567 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27568 ac_need_defaults=false;;
27569 --header | --heade | --head | --hea )
27570 $ac_shift
27571 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27572 ac_need_defaults=false;;
27573 --he | --h)
27574 # Conflict between --help and --header
27575 { echo "$as_me: error: ambiguous option: $1
27576 Try \`$0 --help' for more information." >&2
27577 { (exit 1); exit 1; }; };;
27578 --help | --hel | -h )
27579 echo "$ac_cs_usage"; exit ;;
27580 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27581 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27582 ac_cs_silent=: ;;
27584 # This is an error.
27585 -*) { echo "$as_me: error: unrecognized option: $1
27586 Try \`$0 --help' for more information." >&2
27587 { (exit 1); exit 1; }; } ;;
27589 *) ac_config_targets="$ac_config_targets $1"
27590 ac_need_defaults=false ;;
27592 esac
27593 shift
27594 done
27596 ac_configure_extra_args=
27598 if $ac_cs_silent; then
27599 exec 6>/dev/null
27600 ac_configure_extra_args="$ac_configure_extra_args --silent"
27603 _ACEOF
27604 cat >>$CONFIG_STATUS <<_ACEOF
27605 if \$ac_cs_recheck; then
27606 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27607 CONFIG_SHELL=$SHELL
27608 export CONFIG_SHELL
27609 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27612 _ACEOF
27613 cat >>$CONFIG_STATUS <<\_ACEOF
27614 exec 5>>config.log
27616 echo
27617 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27618 ## Running $as_me. ##
27619 _ASBOX
27620 echo "$ac_log"
27621 } >&5
27623 _ACEOF
27624 cat >>$CONFIG_STATUS <<_ACEOF
27625 _ACEOF
27627 cat >>$CONFIG_STATUS <<\_ACEOF
27629 # Handling of arguments.
27630 for ac_config_target in $ac_config_targets
27632 case $ac_config_target in
27633 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
27634 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
27635 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
27636 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
27637 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
27638 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
27639 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
27640 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
27641 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
27642 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
27643 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
27644 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
27646 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27647 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27648 { (exit 1); exit 1; }; };;
27649 esac
27650 done
27653 # If the user did not use the arguments to specify the items to instantiate,
27654 # then the envvar interface is used. Set only those that are not.
27655 # We use the long form for the default assignment because of an extremely
27656 # bizarre bug on SunOS 4.1.3.
27657 if $ac_need_defaults; then
27658 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27659 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27660 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
27661 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27664 # Have a temporary directory for convenience. Make it in the build tree
27665 # simply because there is no reason against having it here, and in addition,
27666 # creating and moving files from /tmp can sometimes cause problems.
27667 # Hook for its removal unless debugging.
27668 # Note that there is a small window in which the directory will not be cleaned:
27669 # after its creation but before its name has been assigned to `$tmp'.
27670 $debug ||
27672 tmp=
27673 trap 'exit_status=$?
27674 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27676 trap '{ (exit 1); exit 1; }' 1 2 13 15
27678 # Create a (secure) tmp directory for tmp files.
27681 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27682 test -n "$tmp" && test -d "$tmp"
27683 } ||
27685 tmp=./conf$$-$RANDOM
27686 (umask 077 && mkdir "$tmp")
27687 } ||
27689 echo "$me: cannot create a temporary directory in ." >&2
27690 { (exit 1); exit 1; }
27694 # Set up the sed scripts for CONFIG_FILES section.
27697 # No need to generate the scripts if there are no CONFIG_FILES.
27698 # This happens for instance when ./config.status config.h
27699 if test -n "$CONFIG_FILES"; then
27701 _ACEOF
27705 ac_delim='%!_!# '
27706 for ac_last_try in false false false false false :; do
27707 cat >conf$$subs.sed <<_ACEOF
27708 SHELL!$SHELL$ac_delim
27709 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27710 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27711 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27712 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27713 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27714 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27715 exec_prefix!$exec_prefix$ac_delim
27716 prefix!$prefix$ac_delim
27717 program_transform_name!$program_transform_name$ac_delim
27718 bindir!$bindir$ac_delim
27719 sbindir!$sbindir$ac_delim
27720 libexecdir!$libexecdir$ac_delim
27721 datarootdir!$datarootdir$ac_delim
27722 datadir!$datadir$ac_delim
27723 sysconfdir!$sysconfdir$ac_delim
27724 sharedstatedir!$sharedstatedir$ac_delim
27725 localstatedir!$localstatedir$ac_delim
27726 includedir!$includedir$ac_delim
27727 oldincludedir!$oldincludedir$ac_delim
27728 docdir!$docdir$ac_delim
27729 infodir!$infodir$ac_delim
27730 htmldir!$htmldir$ac_delim
27731 dvidir!$dvidir$ac_delim
27732 pdfdir!$pdfdir$ac_delim
27733 psdir!$psdir$ac_delim
27734 libdir!$libdir$ac_delim
27735 localedir!$localedir$ac_delim
27736 mandir!$mandir$ac_delim
27737 DEFS!$DEFS$ac_delim
27738 ECHO_C!$ECHO_C$ac_delim
27739 ECHO_N!$ECHO_N$ac_delim
27740 ECHO_T!$ECHO_T$ac_delim
27741 LIBS!$LIBS$ac_delim
27742 build_alias!$build_alias$ac_delim
27743 host_alias!$host_alias$ac_delim
27744 target_alias!$target_alias$ac_delim
27745 configure_args!$configure_args$ac_delim
27746 PG_MAJORVERSION!$PG_MAJORVERSION$ac_delim
27747 build!$build$ac_delim
27748 build_cpu!$build_cpu$ac_delim
27749 build_vendor!$build_vendor$ac_delim
27750 build_os!$build_os$ac_delim
27751 host!$host$ac_delim
27752 host_cpu!$host_cpu$ac_delim
27753 host_vendor!$host_vendor$ac_delim
27754 host_os!$host_os$ac_delim
27755 PORTNAME!$PORTNAME$ac_delim
27756 enable_nls!$enable_nls$ac_delim
27757 WANTED_LANGUAGES!$WANTED_LANGUAGES$ac_delim
27758 default_port!$default_port$ac_delim
27759 enable_shared!$enable_shared$ac_delim
27760 enable_rpath!$enable_rpath$ac_delim
27761 enable_debug!$enable_debug$ac_delim
27762 enable_profiling!$enable_profiling$ac_delim
27763 GCOV!$GCOV$ac_delim
27764 LCOV!$LCOV$ac_delim
27765 GENHTML!$GENHTML$ac_delim
27766 enable_coverage!$enable_coverage$ac_delim
27767 DTRACE!$DTRACE$ac_delim
27768 DTRACEFLAGS!$DTRACEFLAGS$ac_delim
27769 enable_dtrace!$enable_dtrace$ac_delim
27770 CC!$CC$ac_delim
27771 CFLAGS!$CFLAGS$ac_delim
27772 LDFLAGS!$LDFLAGS$ac_delim
27773 CPPFLAGS!$CPPFLAGS$ac_delim
27774 ac_ct_CC!$ac_ct_CC$ac_delim
27775 EXEEXT!$EXEEXT$ac_delim
27776 OBJEXT!$OBJEXT$ac_delim
27777 SUN_STUDIO_CC!$SUN_STUDIO_CC$ac_delim
27778 CPP!$CPP$ac_delim
27779 GCC!$GCC$ac_delim
27780 TAS!$TAS$ac_delim
27781 autodepend!$autodepend$ac_delim
27782 INCLUDES!$INCLUDES$ac_delim
27783 enable_thread_safety!$enable_thread_safety$ac_delim
27784 with_tcl!$with_tcl$ac_delim
27785 with_perl!$with_perl$ac_delim
27786 with_python!$with_python$ac_delim
27787 with_gssapi!$with_gssapi$ac_delim
27788 with_krb5!$with_krb5$ac_delim
27789 krb_srvtab!$krb_srvtab$ac_delim
27790 with_pam!$with_pam$ac_delim
27791 with_ldap!$with_ldap$ac_delim
27792 with_bonjour!$with_bonjour$ac_delim
27793 with_openssl!$with_openssl$ac_delim
27794 with_ossp_uuid!$with_ossp_uuid$ac_delim
27795 XML2_CONFIG!$XML2_CONFIG$ac_delim
27796 with_libxml!$with_libxml$ac_delim
27797 with_libxslt!$with_libxslt$ac_delim
27798 with_system_tzdata!$with_system_tzdata$ac_delim
27799 with_zlib!$with_zlib$ac_delim
27800 GREP!$GREP$ac_delim
27801 EGREP!$EGREP$ac_delim
27802 ELF_SYS!$ELF_SYS$ac_delim
27803 LDFLAGS_SL!$LDFLAGS_SL$ac_delim
27804 LD!$LD$ac_delim
27805 _ACEOF
27807 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27808 break
27809 elif $ac_last_try; then
27810 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27811 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27812 { (exit 1); exit 1; }; }
27813 else
27814 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27816 done
27818 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27819 if test -n "$ac_eof"; then
27820 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27821 ac_eof=`expr $ac_eof + 1`
27824 cat >>$CONFIG_STATUS <<_ACEOF
27825 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27826 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27827 _ACEOF
27828 sed '
27829 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27830 s/^/s,@/; s/!/@,|#_!!_#|/
27833 s/'"$ac_delim"'$/,g/; t
27834 s/$/\\/; p
27835 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27836 ' >>$CONFIG_STATUS <conf$$subs.sed
27837 rm -f conf$$subs.sed
27838 cat >>$CONFIG_STATUS <<_ACEOF
27839 CEOF$ac_eof
27840 _ACEOF
27843 ac_delim='%!_!# '
27844 for ac_last_try in false false false false false :; do
27845 cat >conf$$subs.sed <<_ACEOF
27846 with_gnu_ld!$with_gnu_ld$ac_delim
27847 ld_R_works!$ld_R_works$ac_delim
27848 RANLIB!$RANLIB$ac_delim
27849 STRIP!$STRIP$ac_delim
27850 STRIP_STATIC_LIB!$STRIP_STATIC_LIB$ac_delim
27851 STRIP_SHARED_LIB!$STRIP_SHARED_LIB$ac_delim
27852 AR!$AR$ac_delim
27853 DLLTOOL!$DLLTOOL$ac_delim
27854 DLLWRAP!$DLLWRAP$ac_delim
27855 WINDRES!$WINDRES$ac_delim
27856 TAR!$TAR$ac_delim
27857 LN_S!$LN_S$ac_delim
27858 AWK!$AWK$ac_delim
27859 BISON!$BISON$ac_delim
27860 BISONFLAGS!$BISONFLAGS$ac_delim
27861 FLEX!$FLEX$ac_delim
27862 FLEXFLAGS!$FLEXFLAGS$ac_delim
27863 PERL!$PERL$ac_delim
27864 perl_archlibexp!$perl_archlibexp$ac_delim
27865 perl_privlibexp!$perl_privlibexp$ac_delim
27866 perl_useshrplib!$perl_useshrplib$ac_delim
27867 perl_embed_ldflags!$perl_embed_ldflags$ac_delim
27868 PYTHON!$PYTHON$ac_delim
27869 python_version!$python_version$ac_delim
27870 python_configdir!$python_configdir$ac_delim
27871 python_includespec!$python_includespec$ac_delim
27872 python_libdir!$python_libdir$ac_delim
27873 python_libspec!$python_libspec$ac_delim
27874 python_additional_libs!$python_additional_libs$ac_delim
27875 ZIC!$ZIC$ac_delim
27876 OSSP_UUID_LIBS!$OSSP_UUID_LIBS$ac_delim
27877 HAVE_IPV6!$HAVE_IPV6$ac_delim
27878 LIBOBJS!$LIBOBJS$ac_delim
27879 acx_pthread_config!$acx_pthread_config$ac_delim
27880 PTHREAD_CC!$PTHREAD_CC$ac_delim
27881 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
27882 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
27883 LDAP_LIBS_FE!$LDAP_LIBS_FE$ac_delim
27884 LDAP_LIBS_BE!$LDAP_LIBS_BE$ac_delim
27885 HAVE_POSIX_SIGNALS!$HAVE_POSIX_SIGNALS$ac_delim
27886 MSGFMT!$MSGFMT$ac_delim
27887 MSGMERGE!$MSGMERGE$ac_delim
27888 XGETTEXT!$XGETTEXT$ac_delim
27889 TCLSH!$TCLSH$ac_delim
27890 TCL_CONFIG_SH!$TCL_CONFIG_SH$ac_delim
27891 TCL_INCLUDE_SPEC!$TCL_INCLUDE_SPEC$ac_delim
27892 TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim
27893 TCL_LIBS!$TCL_LIBS$ac_delim
27894 TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim
27895 TCL_SHARED_BUILD!$TCL_SHARED_BUILD$ac_delim
27896 TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim
27897 NSGMLS!$NSGMLS$ac_delim
27898 JADE!$JADE$ac_delim
27899 have_docbook!$have_docbook$ac_delim
27900 DOCBOOKSTYLE!$DOCBOOKSTYLE$ac_delim
27901 COLLATEINDEX!$COLLATEINDEX$ac_delim
27902 SGMLSPL!$SGMLSPL$ac_delim
27903 DOCBOOK2MAN!$DOCBOOK2MAN$ac_delim
27904 vpath_build!$vpath_build$ac_delim
27905 LTLIBOBJS!$LTLIBOBJS$ac_delim
27906 _ACEOF
27908 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 60; then
27909 break
27910 elif $ac_last_try; then
27911 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27912 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27913 { (exit 1); exit 1; }; }
27914 else
27915 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27917 done
27919 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27920 if test -n "$ac_eof"; then
27921 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27922 ac_eof=`expr $ac_eof + 1`
27925 cat >>$CONFIG_STATUS <<_ACEOF
27926 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27927 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27928 _ACEOF
27929 sed '
27930 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27931 s/^/s,@/; s/!/@,|#_!!_#|/
27934 s/'"$ac_delim"'$/,g/; t
27935 s/$/\\/; p
27936 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27937 ' >>$CONFIG_STATUS <conf$$subs.sed
27938 rm -f conf$$subs.sed
27939 cat >>$CONFIG_STATUS <<_ACEOF
27940 :end
27941 s/|#_!!_#|//g
27942 CEOF$ac_eof
27943 _ACEOF
27946 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27947 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27948 # trailing colons and then remove the whole line if VPATH becomes empty
27949 # (actually we leave an empty line to preserve line numbers).
27950 if test "x$srcdir" = x.; then
27951 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27952 s/:*\$(srcdir):*/:/
27953 s/:*\${srcdir}:*/:/
27954 s/:*@srcdir@:*/:/
27955 s/^\([^=]*=[ ]*\):*/\1/
27956 s/:*$//
27957 s/^[^=]*=[ ]*$//
27961 cat >>$CONFIG_STATUS <<\_ACEOF
27962 fi # test -n "$CONFIG_FILES"
27965 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS
27967 case $ac_tag in
27968 :[FHLC]) ac_mode=$ac_tag; continue;;
27969 esac
27970 case $ac_mode$ac_tag in
27971 :[FHL]*:*);;
27972 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27973 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27974 { (exit 1); exit 1; }; };;
27975 :[FH]-) ac_tag=-:-;;
27976 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27977 esac
27978 ac_save_IFS=$IFS
27979 IFS=:
27980 set x $ac_tag
27981 IFS=$ac_save_IFS
27982 shift
27983 ac_file=$1
27984 shift
27986 case $ac_mode in
27987 :L) ac_source=$1;;
27988 :[FH])
27989 ac_file_inputs=
27990 for ac_f
27992 case $ac_f in
27993 -) ac_f="$tmp/stdin";;
27994 *) # Look for the file first in the build tree, then in the source tree
27995 # (if the path is not absolute). The absolute path cannot be DOS-style,
27996 # because $ac_f cannot contain `:'.
27997 test -f "$ac_f" ||
27998 case $ac_f in
27999 [\\/$]*) false;;
28000 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28001 esac ||
28002 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
28003 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
28004 { (exit 1); exit 1; }; };;
28005 esac
28006 ac_file_inputs="$ac_file_inputs $ac_f"
28007 done
28009 # Let's still pretend it is `configure' which instantiates (i.e., don't
28010 # use $as_me), people would be surprised to read:
28011 # /* config.h. Generated by config.status. */
28012 configure_input="Generated from "`IFS=:
28013 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
28014 if test x"$ac_file" != x-; then
28015 configure_input="$ac_file. $configure_input"
28016 { echo "$as_me:$LINENO: creating $ac_file" >&5
28017 echo "$as_me: creating $ac_file" >&6;}
28020 case $ac_tag in
28021 *:-:* | *:-) cat >"$tmp/stdin";;
28022 esac
28024 esac
28026 ac_dir=`$as_dirname -- "$ac_file" ||
28027 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28028 X"$ac_file" : 'X\(//\)[^/]' \| \
28029 X"$ac_file" : 'X\(//\)$' \| \
28030 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28031 echo X"$ac_file" |
28032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28033 s//\1/
28036 /^X\(\/\/\)[^/].*/{
28037 s//\1/
28040 /^X\(\/\/\)$/{
28041 s//\1/
28044 /^X\(\/\).*/{
28045 s//\1/
28048 s/.*/./; q'`
28049 { as_dir="$ac_dir"
28050 case $as_dir in #(
28051 -*) as_dir=./$as_dir;;
28052 esac
28053 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28054 as_dirs=
28055 while :; do
28056 case $as_dir in #(
28057 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28058 *) as_qdir=$as_dir;;
28059 esac
28060 as_dirs="'$as_qdir' $as_dirs"
28061 as_dir=`$as_dirname -- "$as_dir" ||
28062 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28063 X"$as_dir" : 'X\(//\)[^/]' \| \
28064 X"$as_dir" : 'X\(//\)$' \| \
28065 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28066 echo X"$as_dir" |
28067 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28068 s//\1/
28071 /^X\(\/\/\)[^/].*/{
28072 s//\1/
28075 /^X\(\/\/\)$/{
28076 s//\1/
28079 /^X\(\/\).*/{
28080 s//\1/
28083 s/.*/./; q'`
28084 test -d "$as_dir" && break
28085 done
28086 test -z "$as_dirs" || eval "mkdir $as_dirs"
28087 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28088 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28089 { (exit 1); exit 1; }; }; }
28090 ac_builddir=.
28092 case "$ac_dir" in
28093 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28095 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28096 # A ".." for each directory in $ac_dir_suffix.
28097 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
28098 case $ac_top_builddir_sub in
28099 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28100 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28101 esac ;;
28102 esac
28103 ac_abs_top_builddir=$ac_pwd
28104 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28105 # for backward compatibility:
28106 ac_top_builddir=$ac_top_build_prefix
28108 case $srcdir in
28109 .) # We are building in place.
28110 ac_srcdir=.
28111 ac_top_srcdir=$ac_top_builddir_sub
28112 ac_abs_top_srcdir=$ac_pwd ;;
28113 [\\/]* | ?:[\\/]* ) # Absolute name.
28114 ac_srcdir=$srcdir$ac_dir_suffix;
28115 ac_top_srcdir=$srcdir
28116 ac_abs_top_srcdir=$srcdir ;;
28117 *) # Relative name.
28118 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28119 ac_top_srcdir=$ac_top_build_prefix$srcdir
28120 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28121 esac
28122 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28125 case $ac_mode in
28128 # CONFIG_FILE
28131 _ACEOF
28133 cat >>$CONFIG_STATUS <<\_ACEOF
28134 # If the template does not know about datarootdir, expand it.
28135 # FIXME: This hack should be removed a few years after 2.60.
28136 ac_datarootdir_hack=; ac_datarootdir_seen=
28138 case `sed -n '/datarootdir/ {
28142 /@datadir@/p
28143 /@docdir@/p
28144 /@infodir@/p
28145 /@localedir@/p
28146 /@mandir@/p
28147 ' $ac_file_inputs` in
28148 *datarootdir*) ac_datarootdir_seen=yes;;
28149 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28150 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28151 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28152 _ACEOF
28153 cat >>$CONFIG_STATUS <<_ACEOF
28154 ac_datarootdir_hack='
28155 s&@datadir@&$datadir&g
28156 s&@docdir@&$docdir&g
28157 s&@infodir@&$infodir&g
28158 s&@localedir@&$localedir&g
28159 s&@mandir@&$mandir&g
28160 s&\\\${datarootdir}&$datarootdir&g' ;;
28161 esac
28162 _ACEOF
28164 # Neutralize VPATH when `$srcdir' = `.'.
28165 # Shell code in configure.ac might set extrasub.
28166 # FIXME: do we really want to maintain this feature?
28167 cat >>$CONFIG_STATUS <<_ACEOF
28168 sed "$ac_vpsub
28169 $extrasub
28170 _ACEOF
28171 cat >>$CONFIG_STATUS <<\_ACEOF
28173 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28174 s&@configure_input@&$configure_input&;t t
28175 s&@top_builddir@&$ac_top_builddir_sub&;t t
28176 s&@srcdir@&$ac_srcdir&;t t
28177 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28178 s&@top_srcdir@&$ac_top_srcdir&;t t
28179 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28180 s&@builddir@&$ac_builddir&;t t
28181 s&@abs_builddir@&$ac_abs_builddir&;t t
28182 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28183 $ac_datarootdir_hack
28184 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
28186 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28187 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28188 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28189 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28190 which seems to be undefined. Please make sure it is defined." >&5
28191 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28192 which seems to be undefined. Please make sure it is defined." >&2;}
28194 rm -f "$tmp/stdin"
28195 case $ac_file in
28196 -) cat "$tmp/out"; rm -f "$tmp/out";;
28197 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
28198 esac
28202 # CONFIG_HEADER
28204 _ACEOF
28206 # Transform confdefs.h into a sed script `conftest.defines', that
28207 # substitutes the proper values into config.h.in to produce config.h.
28208 rm -f conftest.defines conftest.tail
28209 # First, append a space to every undef/define line, to ease matching.
28210 echo 's/$/ /' >conftest.defines
28211 # Then, protect against being on the right side of a sed subst, or in
28212 # an unquoted here document, in config.status. If some macros were
28213 # called several times there might be several #defines for the same
28214 # symbol, which is useless. But do not sort them, since the last
28215 # AC_DEFINE must be honored.
28216 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28217 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
28218 # NAME is the cpp macro being defined, VALUE is the value it is being given.
28219 # PARAMS is the parameter list in the macro definition--in most cases, it's
28220 # just an empty string.
28221 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
28222 ac_dB='\\)[ (].*,\\1define\\2'
28223 ac_dC=' '
28224 ac_dD=' ,'
28226 uniq confdefs.h |
28227 sed -n '
28228 t rset
28229 :rset
28230 s/^[ ]*#[ ]*define[ ][ ]*//
28231 t ok
28234 s/[\\&,]/\\&/g
28235 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
28236 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
28237 ' >>conftest.defines
28239 # Remove the space that was appended to ease matching.
28240 # Then replace #undef with comments. This is necessary, for
28241 # example, in the case of _POSIX_SOURCE, which is predefined and required
28242 # on some systems where configure will not decide to define it.
28243 # (The regexp can be short, since the line contains either #define or #undef.)
28244 echo 's/ $//
28245 s,^[ #]*u.*,/* & */,' >>conftest.defines
28247 # Break up conftest.defines:
28248 ac_max_sed_lines=50
28250 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
28251 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
28252 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
28253 # et cetera.
28254 ac_in='$ac_file_inputs'
28255 ac_out='"$tmp/out1"'
28256 ac_nxt='"$tmp/out2"'
28258 while :
28260 # Write a here document:
28261 cat >>$CONFIG_STATUS <<_ACEOF
28262 # First, check the format of the line:
28263 cat >"\$tmp/defines.sed" <<\\CEOF
28264 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
28265 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
28267 :def
28268 _ACEOF
28269 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
28270 echo 'CEOF
28271 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
28272 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
28273 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
28274 grep . conftest.tail >/dev/null || break
28275 rm -f conftest.defines
28276 mv conftest.tail conftest.defines
28277 done
28278 rm -f conftest.defines conftest.tail
28280 echo "ac_result=$ac_in" >>$CONFIG_STATUS
28281 cat >>$CONFIG_STATUS <<\_ACEOF
28282 if test x"$ac_file" != x-; then
28283 echo "/* $configure_input */" >"$tmp/config.h"
28284 cat "$ac_result" >>"$tmp/config.h"
28285 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
28286 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28287 echo "$as_me: $ac_file is unchanged" >&6;}
28288 else
28289 rm -f $ac_file
28290 mv "$tmp/config.h" $ac_file
28292 else
28293 echo "/* $configure_input */"
28294 cat "$ac_result"
28296 rm -f "$tmp/out12"
28300 # CONFIG_LINK
28303 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
28304 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
28306 if test ! -r "$srcdir/$ac_source"; then
28307 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
28308 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
28309 { (exit 1); exit 1; }; }
28311 rm -f "$ac_file"
28313 # Try a relative symlink, then a hard link, then a copy.
28314 case $srcdir in
28315 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
28316 *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;;
28317 esac
28318 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
28319 ln "$srcdir/$ac_source" "$ac_file" 2>/dev/null ||
28320 cp -p "$srcdir/$ac_source" "$ac_file" ||
28321 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
28322 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
28323 { (exit 1); exit 1; }; }
28325 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
28326 echo "$as_me: executing $ac_file commands" >&6;}
28328 esac
28331 case $ac_file$ac_mode in
28332 "check_win32_symlinks":C)
28333 # Links sometimes fail undetected on Mingw -
28334 # so here we detect it and warn the user
28335 for FILE in $CONFIG_LINKS
28337 # test -e works for symlinks in the MinGW console
28338 test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
28339 echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
28340 done
28342 "src/include/pg_config.h":H)
28343 # Update timestamp for pg_config.h (see Makefile.global)
28344 echo >src/include/stamp-h
28347 esac
28348 done # for ac_tag
28351 { (exit 0); exit 0; }
28352 _ACEOF
28353 chmod +x $CONFIG_STATUS
28354 ac_clean_files=$ac_clean_files_save
28357 # configure is writing to config.log, and then calls config.status.
28358 # config.status does its own redirection, appending to config.log.
28359 # Unfortunately, on DOS this fails, as config.log is still kept open
28360 # by configure, so config.status won't be able to write to it; its
28361 # output is simply discarded. So we exec the FD to /dev/null,
28362 # effectively closing config.log, so it can be properly (re)opened and
28363 # appended to by config.status. When coming back to configure, we
28364 # need to make the FD available again.
28365 if test "$no_create" != yes; then
28366 ac_cs_success=:
28367 ac_config_status_args=
28368 test "$silent" = yes &&
28369 ac_config_status_args="$ac_config_status_args --quiet"
28370 exec 5>/dev/null
28371 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28372 exec 5>>config.log
28373 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28374 # would make configure fail if this is the last instruction.
28375 $ac_cs_success || { (exit 1); exit 1; }
28379 # Warn about unknown options
28380 for pgac_var in `set | sed 's/=.*//' | $EGREP 'with_|enable_'`; do
28381 for pgac_arg in $pgac_args with_gnu_ld; do
28382 if test "$pgac_var" = "$pgac_arg"; then
28383 continue 2
28385 done
28386 pgac_txt=`echo $pgac_var | sed 's/_/-/g'`
28387 { echo "$as_me:$LINENO: WARNING: option ignored: --$pgac_txt" >&5
28388 echo "$as_me: WARNING: option ignored: --$pgac_txt" >&2;}
28389 done