Fix pg_dump/pg_restore's ExecuteSqlCommand() to behave suitably if PQexec
[PostgreSQL.git] / configure
blobf6815d3b1ce5d68d432d53044710a636847a65d9
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for PostgreSQL 8.4devel.
5 # Report bugs to <pgsql-bugs@postgresql.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 1996-2008, PostgreSQL Global Development Group
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 emulate sh
21 NULLCMD=:
22 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in
28 *posix*) set -o posix ;;
29 esac
36 # PATH needs CR
37 # Avoid depending upon Character Ranges.
38 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41 as_cr_digits='0123456789'
42 as_cr_alnum=$as_cr_Letters$as_cr_digits
44 # The user is always right.
45 if test "${PATH_SEPARATOR+set}" != set; then
46 echo "#! /bin/sh" >conf$$.sh
47 echo "exit 0" >>conf$$.sh
48 chmod +x conf$$.sh
49 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50 PATH_SEPARATOR=';'
51 else
52 PATH_SEPARATOR=:
54 rm -f conf$$.sh
57 # Support unset when possible.
58 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
59 as_unset=unset
60 else
61 as_unset=false
65 # IFS
66 # We need space, tab and new line, in precisely that order. Quoting is
67 # there to prevent editors from complaining about space-tab.
68 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
69 # splitting by setting IFS to empty value.)
70 as_nl='
72 IFS=" "" $as_nl"
74 # Find who we are. Look in the path if we contain no directory separator.
75 case $0 in
76 *[\\/]* ) as_myself=$0 ;;
77 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
78 for as_dir in $PATH
80 IFS=$as_save_IFS
81 test -z "$as_dir" && as_dir=.
82 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
83 done
84 IFS=$as_save_IFS
87 esac
88 # We did not find ourselves, most probably we were run as `sh COMMAND'
89 # in which case we are not to be found in the path.
90 if test "x$as_myself" = x; then
91 as_myself=$0
93 if test ! -f "$as_myself"; then
94 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
95 { (exit 1); exit 1; }
98 # Work around bugs in pre-3.0 UWIN ksh.
99 for as_var in ENV MAIL MAILPATH
100 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
101 done
102 PS1='$ '
103 PS2='> '
104 PS4='+ '
106 # NLS nuisances.
107 for as_var in \
108 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
109 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 LC_TELEPHONE LC_TIME
112 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
113 eval $as_var=C; export $as_var
114 else
115 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117 done
119 # Required to use basename.
120 if expr a : '\(a\)' >/dev/null 2>&1 &&
121 test "X`expr 00001 : '.*\(...\)'`" = X001; then
122 as_expr=expr
123 else
124 as_expr=false
127 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
128 as_basename=basename
129 else
130 as_basename=false
134 # Name of the executable.
135 as_me=`$as_basename -- "$0" ||
136 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
137 X"$0" : 'X\(//\)$' \| \
138 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139 echo X/"$0" |
140 sed '/^.*\/\([^/][^/]*\)\/*$/{
141 s//\1/
144 /^X\/\(\/\/\)$/{
145 s//\1/
148 /^X\/\(\/\).*/{
149 s//\1/
152 s/.*/./; q'`
154 # CDPATH.
155 $as_unset CDPATH
158 if test "x$CONFIG_SHELL" = x; then
159 if (eval ":") 2>/dev/null; then
160 as_have_required=yes
161 else
162 as_have_required=no
165 if test $as_have_required = yes && (eval ":
166 (as_func_return () {
167 (exit \$1)
169 as_func_success () {
170 as_func_return 0
172 as_func_failure () {
173 as_func_return 1
175 as_func_ret_success () {
176 return 0
178 as_func_ret_failure () {
179 return 1
182 exitcode=0
183 if as_func_success; then
185 else
186 exitcode=1
187 echo as_func_success failed.
190 if as_func_failure; then
191 exitcode=1
192 echo as_func_failure succeeded.
195 if as_func_ret_success; then
197 else
198 exitcode=1
199 echo as_func_ret_success failed.
202 if as_func_ret_failure; then
203 exitcode=1
204 echo as_func_ret_failure succeeded.
207 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 else
210 exitcode=1
211 echo positional parameters were not saved.
214 test \$exitcode = 0) || { (exit 1); exit 1; }
217 as_lineno_1=\$LINENO
218 as_lineno_2=\$LINENO
219 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
220 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
221 ") 2> /dev/null; then
223 else
224 as_candidate_shells=
225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
226 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
228 IFS=$as_save_IFS
229 test -z "$as_dir" && as_dir=.
230 case $as_dir in
232 for as_base in sh bash ksh sh5; do
233 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
234 done;;
235 esac
236 done
237 IFS=$as_save_IFS
240 for as_shell in $as_candidate_shells $SHELL; do
241 # Try only shells that exist, to save several forks.
242 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
243 { ("$as_shell") 2> /dev/null <<\_ASEOF
244 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245 emulate sh
246 NULLCMD=:
247 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
248 # is contrary to our usage. Disable this feature.
249 alias -g '${1+"$@"}'='"$@"'
250 setopt NO_GLOB_SUBST
251 else
252 case `(set -o) 2>/dev/null` in
253 *posix*) set -o posix ;;
254 esac
260 _ASEOF
261 }; then
262 CONFIG_SHELL=$as_shell
263 as_have_required=yes
264 if { "$as_shell" 2> /dev/null <<\_ASEOF
265 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 emulate sh
267 NULLCMD=:
268 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
269 # is contrary to our usage. Disable this feature.
270 alias -g '${1+"$@"}'='"$@"'
271 setopt NO_GLOB_SUBST
272 else
273 case `(set -o) 2>/dev/null` in
274 *posix*) set -o posix ;;
275 esac
281 (as_func_return () {
282 (exit $1)
284 as_func_success () {
285 as_func_return 0
287 as_func_failure () {
288 as_func_return 1
290 as_func_ret_success () {
291 return 0
293 as_func_ret_failure () {
294 return 1
297 exitcode=0
298 if as_func_success; then
300 else
301 exitcode=1
302 echo as_func_success failed.
305 if as_func_failure; then
306 exitcode=1
307 echo as_func_failure succeeded.
310 if as_func_ret_success; then
312 else
313 exitcode=1
314 echo as_func_ret_success failed.
317 if as_func_ret_failure; then
318 exitcode=1
319 echo as_func_ret_failure succeeded.
322 if ( set x; as_func_ret_success y && test x = "$1" ); then
324 else
325 exitcode=1
326 echo positional parameters were not saved.
329 test $exitcode = 0) || { (exit 1); exit 1; }
332 as_lineno_1=$LINENO
333 as_lineno_2=$LINENO
334 test "x$as_lineno_1" != "x$as_lineno_2" &&
335 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
337 _ASEOF
338 }; then
339 break
344 done
346 if test "x$CONFIG_SHELL" != x; then
347 for as_var in BASH_ENV ENV
348 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349 done
350 export CONFIG_SHELL
351 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
355 if test $as_have_required = no; then
356 echo This script requires a shell more modern than all the
357 echo shells that I found on your system. Please install a
358 echo modern shell, or manually run the script under such a
359 echo shell if you do have one.
360 { (exit 1); exit 1; }
370 (eval "as_func_return () {
371 (exit \$1)
373 as_func_success () {
374 as_func_return 0
376 as_func_failure () {
377 as_func_return 1
379 as_func_ret_success () {
380 return 0
382 as_func_ret_failure () {
383 return 1
386 exitcode=0
387 if as_func_success; then
389 else
390 exitcode=1
391 echo as_func_success failed.
394 if as_func_failure; then
395 exitcode=1
396 echo as_func_failure succeeded.
399 if as_func_ret_success; then
401 else
402 exitcode=1
403 echo as_func_ret_success failed.
406 if as_func_ret_failure; then
407 exitcode=1
408 echo as_func_ret_failure succeeded.
411 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 else
414 exitcode=1
415 echo positional parameters were not saved.
418 test \$exitcode = 0") || {
419 echo No shell found that supports shell functions.
420 echo Please tell autoconf@gnu.org about your system,
421 echo including any error possibly output before this
422 echo message
427 as_lineno_1=$LINENO
428 as_lineno_2=$LINENO
429 test "x$as_lineno_1" != "x$as_lineno_2" &&
430 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
432 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
433 # uniformly replaced by the line number. The first 'sed' inserts a
434 # line-number line after each line using $LINENO; the second 'sed'
435 # does the real work. The second script uses 'N' to pair each
436 # line-number line with the line containing $LINENO, and appends
437 # trailing '-' during substitution so that $LINENO is not a special
438 # case at line end.
439 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
440 # scripts with optimization help from Paolo Bonzini. Blame Lee
441 # E. McMahon (1931-1989) for sed's syntax. :-)
442 sed -n '
444 /[$]LINENO/=
445 ' <$as_myself |
446 sed '
447 s/[$]LINENO.*/&-/
448 t lineno
450 :lineno
452 :loop
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454 t loop
455 s/-\n.*//
456 ' >$as_me.lineno &&
457 chmod +x "$as_me.lineno" ||
458 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
459 { (exit 1); exit 1; }; }
461 # Don't try to exec as it changes $[0], causing all sort of problems
462 # (the dirname of $[0] is not the place where we might find the
463 # original and so on. Autoconf is especially sensitive to this).
464 . "./$as_me.lineno"
465 # Exit status is that of the last command.
466 exit
470 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
471 as_dirname=dirname
472 else
473 as_dirname=false
476 ECHO_C= ECHO_N= ECHO_T=
477 case `echo -n x` in
478 -n*)
479 case `echo 'x\c'` in
480 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 *) ECHO_C='\c';;
482 esac;;
484 ECHO_N='-n';;
485 esac
487 if expr a : '\(a\)' >/dev/null 2>&1 &&
488 test "X`expr 00001 : '.*\(...\)'`" = X001; then
489 as_expr=expr
490 else
491 as_expr=false
494 rm -f conf$$ conf$$.exe conf$$.file
495 if test -d conf$$.dir; then
496 rm -f conf$$.dir/conf$$.file
497 else
498 rm -f conf$$.dir
499 mkdir conf$$.dir
501 echo >conf$$.file
502 if ln -s conf$$.file conf$$ 2>/dev/null; then
503 as_ln_s='ln -s'
504 # ... but there are two gotchas:
505 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
506 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
507 # In both cases, we have to default to `cp -p'.
508 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
509 as_ln_s='cp -p'
510 elif ln conf$$.file conf$$ 2>/dev/null; then
511 as_ln_s=ln
512 else
513 as_ln_s='cp -p'
515 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
516 rmdir conf$$.dir 2>/dev/null
518 if mkdir -p . 2>/dev/null; then
519 as_mkdir_p=:
520 else
521 test -d ./-p && rmdir ./-p
522 as_mkdir_p=false
525 if test -x / >/dev/null 2>&1; then
526 as_test_x='test -x'
527 else
528 if ls -dL / >/dev/null 2>&1; then
529 as_ls_L_option=L
530 else
531 as_ls_L_option=
533 as_test_x='
534 eval sh -c '\''
535 if test -d "$1"; then
536 test -d "$1/.";
537 else
538 case $1 in
539 -*)set "./$1";;
540 esac;
541 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
542 ???[sx]*):;;*)false;;esac;fi
543 '\'' sh
546 as_executable_p=$as_test_x
548 # Sed expression to map a string onto a valid CPP name.
549 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
551 # Sed expression to map a string onto a valid variable name.
552 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
556 exec 7<&0 </dev/null 6>&1
558 # Name of the host.
559 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
560 # so uname gets run too.
561 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564 # Initializations.
566 ac_default_prefix=/usr/local
567 ac_clean_files=
568 ac_config_libobj_dir=.
569 LIBOBJS=
570 cross_compiling=no
571 subdirs=
572 MFLAGS=
573 MAKEFLAGS=
574 SHELL=${CONFIG_SHELL-/bin/sh}
576 # Identity of this package.
577 PACKAGE_NAME='PostgreSQL'
578 PACKAGE_TARNAME='postgresql'
579 PACKAGE_VERSION='8.4devel'
580 PACKAGE_STRING='PostgreSQL 8.4devel'
581 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
583 ac_unique_file="src/backend/access/common/heaptuple.c"
584 ac_default_prefix=/usr/local/pgsql
585 # Factoring default headers for most tests.
586 ac_includes_default="\
587 #include <stdio.h>
588 #ifdef HAVE_SYS_TYPES_H
589 # include <sys/types.h>
590 #endif
591 #ifdef HAVE_SYS_STAT_H
592 # include <sys/stat.h>
593 #endif
594 #ifdef STDC_HEADERS
595 # include <stdlib.h>
596 # include <stddef.h>
597 #else
598 # ifdef HAVE_STDLIB_H
599 # include <stdlib.h>
600 # endif
601 #endif
602 #ifdef HAVE_STRING_H
603 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 # include <memory.h>
605 # endif
606 # include <string.h>
607 #endif
608 #ifdef HAVE_STRINGS_H
609 # include <strings.h>
610 #endif
611 #ifdef HAVE_INTTYPES_H
612 # include <inttypes.h>
613 #endif
614 #ifdef HAVE_STDINT_H
615 # include <stdint.h>
616 #endif
617 #ifdef HAVE_UNISTD_H
618 # include <unistd.h>
619 #endif"
621 ac_subst_vars='SHELL
622 PATH_SEPARATOR
623 PACKAGE_NAME
624 PACKAGE_TARNAME
625 PACKAGE_VERSION
626 PACKAGE_STRING
627 PACKAGE_BUGREPORT
628 exec_prefix
629 prefix
630 program_transform_name
631 bindir
632 sbindir
633 libexecdir
634 datarootdir
635 datadir
636 sysconfdir
637 sharedstatedir
638 localstatedir
639 includedir
640 oldincludedir
641 docdir
642 infodir
643 htmldir
644 dvidir
645 pdfdir
646 psdir
647 libdir
648 localedir
649 mandir
650 DEFS
651 ECHO_C
652 ECHO_N
653 ECHO_T
654 LIBS
655 build_alias
656 host_alias
657 target_alias
658 configure_args
659 build
660 build_cpu
661 build_vendor
662 build_os
663 host
664 host_cpu
665 host_vendor
666 host_os
667 PORTNAME
668 enable_nls
669 WANTED_LANGUAGES
670 default_port
671 enable_shared
672 enable_rpath
673 enable_debug
674 enable_profiling
675 DTRACE
676 DTRACEFLAGS
677 enable_dtrace
679 CFLAGS
680 LDFLAGS
681 CPPFLAGS
682 ac_ct_CC
683 EXEEXT
684 OBJEXT
688 autodepend
689 INCLUDES
690 enable_thread_safety
691 with_tcl
692 with_perl
693 with_python
694 with_gssapi
695 with_krb5
696 krb_srvtab
697 with_pam
698 with_ldap
699 with_bonjour
700 with_openssl
701 with_ossp_uuid
702 XML2_CONFIG
703 with_libxml
704 with_libxslt
705 with_system_tzdata
706 with_zlib
707 GREP
708 EGREP
709 ELF_SYS
710 LDFLAGS_SL
712 with_gnu_ld
713 ld_R_works
714 RANLIB
715 STRIP
716 STRIP_STATIC_LIB
717 STRIP_SHARED_LIB
719 LN_S
721 YACC
722 YFLAGS
723 FLEX
724 FLEXFLAGS
725 PERL
726 perl_archlibexp
727 perl_privlibexp
728 perl_useshrplib
729 perl_embed_ldflags
730 PYTHON
731 python_version
732 python_configdir
733 python_includespec
734 python_libdir
735 python_libspec
736 python_additional_libs
737 OSSP_UUID_LIBS
738 HAVE_IPV6
739 LIBOBJS
740 acx_pthread_config
741 PTHREAD_CC
742 PTHREAD_LIBS
743 PTHREAD_CFLAGS
744 LDAP_LIBS_FE
745 LDAP_LIBS_BE
746 HAVE_POSIX_SIGNALS
747 MSGFMT
748 MSGMERGE
749 XGETTEXT
750 TCLSH
751 TCL_CONFIG_SH
752 TCL_INCLUDE_SPEC
753 TCL_LIB_FILE
754 TCL_LIBS
755 TCL_LIB_SPEC
756 TCL_SHARED_BUILD
757 TCL_SHLIB_LD_LIBS
758 NSGMLS
759 JADE
760 have_docbook
761 DOCBOOKSTYLE
762 COLLATEINDEX
763 SGMLSPL
764 vpath_build
765 LTLIBOBJS'
766 ac_subst_files=''
767 ac_precious_vars='build_alias
768 host_alias
769 target_alias
771 CFLAGS
772 LDFLAGS
773 LIBS
774 CPPFLAGS
776 LDFLAGS_SL
777 DOCBOOKSTYLE'
780 # Initialize some variables set by options.
781 ac_init_help=
782 ac_init_version=false
783 # The variables have the same names as the options, with
784 # dashes changed to underlines.
785 cache_file=/dev/null
786 exec_prefix=NONE
787 no_create=
788 no_recursion=
789 prefix=NONE
790 program_prefix=NONE
791 program_suffix=NONE
792 program_transform_name=s,x,x,
793 silent=
794 site=
795 srcdir=
796 verbose=
797 x_includes=NONE
798 x_libraries=NONE
800 # Installation directory options.
801 # These are left unexpanded so users can "make install exec_prefix=/foo"
802 # and all the variables that are supposed to be based on exec_prefix
803 # by default will actually change.
804 # Use braces instead of parens because sh, perl, etc. also accept them.
805 # (The list follows the same order as the GNU Coding Standards.)
806 bindir='${exec_prefix}/bin'
807 sbindir='${exec_prefix}/sbin'
808 libexecdir='${exec_prefix}/libexec'
809 datarootdir='${prefix}/share'
810 datadir='${datarootdir}'
811 sysconfdir='${prefix}/etc'
812 sharedstatedir='${prefix}/com'
813 localstatedir='${prefix}/var'
814 includedir='${prefix}/include'
815 oldincludedir='/usr/include'
816 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
817 infodir='${datarootdir}/info'
818 htmldir='${docdir}'
819 dvidir='${docdir}'
820 pdfdir='${docdir}'
821 psdir='${docdir}'
822 libdir='${exec_prefix}/lib'
823 localedir='${datarootdir}/locale'
824 mandir='${datarootdir}/man'
826 ac_prev=
827 ac_dashdash=
828 for ac_option
830 # If the previous option needs an argument, assign it.
831 if test -n "$ac_prev"; then
832 eval $ac_prev=\$ac_option
833 ac_prev=
834 continue
837 case $ac_option in
838 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
839 *) ac_optarg=yes ;;
840 esac
842 # Accept the important Cygnus configure options, so we can diagnose typos.
844 case $ac_dashdash$ac_option in
846 ac_dashdash=yes ;;
848 -bindir | --bindir | --bindi | --bind | --bin | --bi)
849 ac_prev=bindir ;;
850 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
851 bindir=$ac_optarg ;;
853 -build | --build | --buil | --bui | --bu)
854 ac_prev=build_alias ;;
855 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
856 build_alias=$ac_optarg ;;
858 -cache-file | --cache-file | --cache-fil | --cache-fi \
859 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
860 ac_prev=cache_file ;;
861 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
862 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
863 cache_file=$ac_optarg ;;
865 --config-cache | -C)
866 cache_file=config.cache ;;
868 -datadir | --datadir | --datadi | --datad)
869 ac_prev=datadir ;;
870 -datadir=* | --datadir=* | --datadi=* | --datad=*)
871 datadir=$ac_optarg ;;
873 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
874 | --dataroo | --dataro | --datar)
875 ac_prev=datarootdir ;;
876 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
877 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
878 datarootdir=$ac_optarg ;;
880 -disable-* | --disable-*)
881 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
882 # Reject names that are not valid shell variable names.
883 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
884 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
885 { (exit 1); exit 1; }; }
886 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
887 eval enable_$ac_feature=no ;;
889 -docdir | --docdir | --docdi | --doc | --do)
890 ac_prev=docdir ;;
891 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
892 docdir=$ac_optarg ;;
894 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
895 ac_prev=dvidir ;;
896 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
897 dvidir=$ac_optarg ;;
899 -enable-* | --enable-*)
900 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
901 # Reject names that are not valid shell variable names.
902 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
903 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
904 { (exit 1); exit 1; }; }
905 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
906 eval enable_$ac_feature=\$ac_optarg ;;
908 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
909 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
910 | --exec | --exe | --ex)
911 ac_prev=exec_prefix ;;
912 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
913 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
914 | --exec=* | --exe=* | --ex=*)
915 exec_prefix=$ac_optarg ;;
917 -gas | --gas | --ga | --g)
918 # Obsolete; use --with-gas.
919 with_gas=yes ;;
921 -help | --help | --hel | --he | -h)
922 ac_init_help=long ;;
923 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
924 ac_init_help=recursive ;;
925 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
926 ac_init_help=short ;;
928 -host | --host | --hos | --ho)
929 ac_prev=host_alias ;;
930 -host=* | --host=* | --hos=* | --ho=*)
931 host_alias=$ac_optarg ;;
933 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
934 ac_prev=htmldir ;;
935 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
936 | --ht=*)
937 htmldir=$ac_optarg ;;
939 -includedir | --includedir | --includedi | --included | --include \
940 | --includ | --inclu | --incl | --inc)
941 ac_prev=includedir ;;
942 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
943 | --includ=* | --inclu=* | --incl=* | --inc=*)
944 includedir=$ac_optarg ;;
946 -infodir | --infodir | --infodi | --infod | --info | --inf)
947 ac_prev=infodir ;;
948 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
949 infodir=$ac_optarg ;;
951 -libdir | --libdir | --libdi | --libd)
952 ac_prev=libdir ;;
953 -libdir=* | --libdir=* | --libdi=* | --libd=*)
954 libdir=$ac_optarg ;;
956 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
957 | --libexe | --libex | --libe)
958 ac_prev=libexecdir ;;
959 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
960 | --libexe=* | --libex=* | --libe=*)
961 libexecdir=$ac_optarg ;;
963 -localedir | --localedir | --localedi | --localed | --locale)
964 ac_prev=localedir ;;
965 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
966 localedir=$ac_optarg ;;
968 -localstatedir | --localstatedir | --localstatedi | --localstated \
969 | --localstate | --localstat | --localsta | --localst | --locals)
970 ac_prev=localstatedir ;;
971 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
972 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
973 localstatedir=$ac_optarg ;;
975 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
976 ac_prev=mandir ;;
977 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
978 mandir=$ac_optarg ;;
980 -nfp | --nfp | --nf)
981 # Obsolete; use --without-fp.
982 with_fp=no ;;
984 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
985 | --no-cr | --no-c | -n)
986 no_create=yes ;;
988 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
989 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
990 no_recursion=yes ;;
992 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
993 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
994 | --oldin | --oldi | --old | --ol | --o)
995 ac_prev=oldincludedir ;;
996 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
997 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
998 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
999 oldincludedir=$ac_optarg ;;
1001 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1002 ac_prev=prefix ;;
1003 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1004 prefix=$ac_optarg ;;
1006 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1007 | --program-pre | --program-pr | --program-p)
1008 ac_prev=program_prefix ;;
1009 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1010 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1011 program_prefix=$ac_optarg ;;
1013 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1014 | --program-suf | --program-su | --program-s)
1015 ac_prev=program_suffix ;;
1016 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1017 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1018 program_suffix=$ac_optarg ;;
1020 -program-transform-name | --program-transform-name \
1021 | --program-transform-nam | --program-transform-na \
1022 | --program-transform-n | --program-transform- \
1023 | --program-transform | --program-transfor \
1024 | --program-transfo | --program-transf \
1025 | --program-trans | --program-tran \
1026 | --progr-tra | --program-tr | --program-t)
1027 ac_prev=program_transform_name ;;
1028 -program-transform-name=* | --program-transform-name=* \
1029 | --program-transform-nam=* | --program-transform-na=* \
1030 | --program-transform-n=* | --program-transform-=* \
1031 | --program-transform=* | --program-transfor=* \
1032 | --program-transfo=* | --program-transf=* \
1033 | --program-trans=* | --program-tran=* \
1034 | --progr-tra=* | --program-tr=* | --program-t=*)
1035 program_transform_name=$ac_optarg ;;
1037 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1038 ac_prev=pdfdir ;;
1039 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1040 pdfdir=$ac_optarg ;;
1042 -psdir | --psdir | --psdi | --psd | --ps)
1043 ac_prev=psdir ;;
1044 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1045 psdir=$ac_optarg ;;
1047 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1048 | -silent | --silent | --silen | --sile | --sil)
1049 silent=yes ;;
1051 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1052 ac_prev=sbindir ;;
1053 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1054 | --sbi=* | --sb=*)
1055 sbindir=$ac_optarg ;;
1057 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1058 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1059 | --sharedst | --shareds | --shared | --share | --shar \
1060 | --sha | --sh)
1061 ac_prev=sharedstatedir ;;
1062 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1063 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1064 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1065 | --sha=* | --sh=*)
1066 sharedstatedir=$ac_optarg ;;
1068 -site | --site | --sit)
1069 ac_prev=site ;;
1070 -site=* | --site=* | --sit=*)
1071 site=$ac_optarg ;;
1073 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1074 ac_prev=srcdir ;;
1075 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1076 srcdir=$ac_optarg ;;
1078 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1079 | --syscon | --sysco | --sysc | --sys | --sy)
1080 ac_prev=sysconfdir ;;
1081 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1082 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1083 sysconfdir=$ac_optarg ;;
1085 -target | --target | --targe | --targ | --tar | --ta | --t)
1086 ac_prev=target_alias ;;
1087 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1088 target_alias=$ac_optarg ;;
1090 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1091 verbose=yes ;;
1093 -version | --version | --versio | --versi | --vers | -V)
1094 ac_init_version=: ;;
1096 -with-* | --with-*)
1097 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1098 # Reject names that are not valid shell variable names.
1099 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1100 { echo "$as_me: error: invalid package name: $ac_package" >&2
1101 { (exit 1); exit 1; }; }
1102 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1103 eval with_$ac_package=\$ac_optarg ;;
1105 -without-* | --without-*)
1106 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1109 { echo "$as_me: error: invalid package name: $ac_package" >&2
1110 { (exit 1); exit 1; }; }
1111 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1112 eval with_$ac_package=no ;;
1114 --x)
1115 # Obsolete; use --with-x.
1116 with_x=yes ;;
1118 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1119 | --x-incl | --x-inc | --x-in | --x-i)
1120 ac_prev=x_includes ;;
1121 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1122 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1123 x_includes=$ac_optarg ;;
1125 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1126 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1127 ac_prev=x_libraries ;;
1128 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1129 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1130 x_libraries=$ac_optarg ;;
1132 -*) { echo "$as_me: error: unrecognized option: $ac_option
1133 Try \`$0 --help' for more information." >&2
1134 { (exit 1); exit 1; }; }
1137 *=*)
1138 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1141 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1142 { (exit 1); exit 1; }; }
1143 eval $ac_envvar=\$ac_optarg
1144 export $ac_envvar ;;
1147 # FIXME: should be removed in autoconf 3.0.
1148 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1149 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1150 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1151 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1154 esac
1155 done
1157 if test -n "$ac_prev"; then
1158 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1159 { echo "$as_me: error: missing argument to $ac_option" >&2
1160 { (exit 1); exit 1; }; }
1163 # Be sure to have absolute directory names.
1164 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1165 datadir sysconfdir sharedstatedir localstatedir includedir \
1166 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1167 libdir localedir mandir
1169 eval ac_val=\$$ac_var
1170 case $ac_val in
1171 [\\/$]* | ?:[\\/]* ) continue;;
1172 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1173 esac
1174 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1175 { (exit 1); exit 1; }; }
1176 done
1178 # There might be people who depend on the old broken behavior: `$host'
1179 # used to hold the argument of --host etc.
1180 # FIXME: To remove some day.
1181 build=$build_alias
1182 host=$host_alias
1183 target=$target_alias
1185 # FIXME: To remove some day.
1186 if test "x$host_alias" != x; then
1187 if test "x$build_alias" = x; then
1188 cross_compiling=maybe
1189 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1190 If a cross compiler is detected then cross compile mode will be used." >&2
1191 elif test "x$build_alias" != "x$host_alias"; then
1192 cross_compiling=yes
1196 ac_tool_prefix=
1197 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1199 test "$silent" = yes && exec 6>/dev/null
1202 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1203 ac_ls_di=`ls -di .` &&
1204 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1205 { echo "$as_me: error: Working directory cannot be determined" >&2
1206 { (exit 1); exit 1; }; }
1207 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1208 { echo "$as_me: error: pwd does not report name of working directory" >&2
1209 { (exit 1); exit 1; }; }
1212 # Find the source files, if location was not specified.
1213 if test -z "$srcdir"; then
1214 ac_srcdir_defaulted=yes
1215 # Try the directory containing this script, then the parent directory.
1216 ac_confdir=`$as_dirname -- "$0" ||
1217 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1218 X"$0" : 'X\(//\)[^/]' \| \
1219 X"$0" : 'X\(//\)$' \| \
1220 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1221 echo X"$0" |
1222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1223 s//\1/
1226 /^X\(\/\/\)[^/].*/{
1227 s//\1/
1230 /^X\(\/\/\)$/{
1231 s//\1/
1234 /^X\(\/\).*/{
1235 s//\1/
1238 s/.*/./; q'`
1239 srcdir=$ac_confdir
1240 if test ! -r "$srcdir/$ac_unique_file"; then
1241 srcdir=..
1243 else
1244 ac_srcdir_defaulted=no
1246 if test ! -r "$srcdir/$ac_unique_file"; then
1247 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1248 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1249 { (exit 1); exit 1; }; }
1251 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1252 ac_abs_confdir=`(
1253 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1254 { (exit 1); exit 1; }; }
1255 pwd)`
1256 # When building in place, set srcdir=.
1257 if test "$ac_abs_confdir" = "$ac_pwd"; then
1258 srcdir=.
1260 # Remove unnecessary trailing slashes from srcdir.
1261 # Double slashes in file names in object file debugging info
1262 # mess up M-x gdb in Emacs.
1263 case $srcdir in
1264 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1265 esac
1266 for ac_var in $ac_precious_vars; do
1267 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1268 eval ac_env_${ac_var}_value=\$${ac_var}
1269 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1270 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1271 done
1274 # Report the --help message.
1276 if test "$ac_init_help" = "long"; then
1277 # Omit some internal or obsolete options to make the list less imposing.
1278 # This message is too long to be a string in the A/UX 3.1 sh.
1279 cat <<_ACEOF
1280 \`configure' configures PostgreSQL 8.4devel to adapt to many kinds of systems.
1282 Usage: $0 [OPTION]... [VAR=VALUE]...
1284 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1285 VAR=VALUE. See below for descriptions of some of the useful variables.
1287 Defaults for the options are specified in brackets.
1289 Configuration:
1290 -h, --help display this help and exit
1291 --help=short display options specific to this package
1292 --help=recursive display the short help of all the included packages
1293 -V, --version display version information and exit
1294 -q, --quiet, --silent do not print \`checking...' messages
1295 --cache-file=FILE cache test results in FILE [disabled]
1296 -C, --config-cache alias for \`--cache-file=config.cache'
1297 -n, --no-create do not create output files
1298 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1300 Installation directories:
1301 --prefix=PREFIX install architecture-independent files in PREFIX
1302 [$ac_default_prefix]
1303 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1304 [PREFIX]
1306 By default, \`make install' will install all the files in
1307 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1308 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1309 for instance \`--prefix=\$HOME'.
1311 For better control, use the options below.
1313 Fine tuning of the installation directories:
1314 --bindir=DIR user executables [EPREFIX/bin]
1315 --sbindir=DIR system admin executables [EPREFIX/sbin]
1316 --libexecdir=DIR program executables [EPREFIX/libexec]
1317 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1318 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1319 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1320 --libdir=DIR object code libraries [EPREFIX/lib]
1321 --includedir=DIR C header files [PREFIX/include]
1322 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1323 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1324 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1325 --infodir=DIR info documentation [DATAROOTDIR/info]
1326 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1327 --mandir=DIR man documentation [DATAROOTDIR/man]
1328 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1329 --htmldir=DIR html documentation [DOCDIR]
1330 --dvidir=DIR dvi documentation [DOCDIR]
1331 --pdfdir=DIR pdf documentation [DOCDIR]
1332 --psdir=DIR ps documentation [DOCDIR]
1333 _ACEOF
1335 cat <<\_ACEOF
1337 System types:
1338 --build=BUILD configure for building on BUILD [guessed]
1339 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1340 _ACEOF
1343 if test -n "$ac_init_help"; then
1344 case $ac_init_help in
1345 short | recursive ) echo "Configuration of PostgreSQL 8.4devel:";;
1346 esac
1347 cat <<\_ACEOF
1349 Optional Features:
1350 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1351 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1352 --disable-integer-datetimes disable 64-bit integer date/time support
1353 --enable-nls[=LANGUAGES] enable Native Language Support
1354 --disable-shared do not build shared libraries
1355 --disable-rpath do not embed shared library search path in executables
1356 --disable-spinlocks do not use spinlocks
1357 --enable-debug build with debugging symbols (-g)
1358 --enable-profiling build with profiling enabled
1359 --enable-dtrace build with DTrace support
1360 --enable-depend turn on automatic dependency tracking
1361 --enable-cassert enable assertion checks (for debugging)
1362 --enable-thread-safety make client libraries thread-safe
1363 --enable-thread-safety-force force thread-safety despite thread test failure
1364 --disable-float4-byval disable float4 passed by value
1365 --disable-float8-byval disable float8 passed by value
1366 --disable-largefile omit support for large files
1368 Optional Packages:
1369 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1370 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1372 --with-includes=DIRS look for additional header files in DIRS
1373 --with-libraries=DIRS look for additional libraries in DIRS
1374 --with-libs=DIRS alternative spelling of --with-libraries
1375 --with-pgport=PORTNUM set default port number [5432]
1376 --with-blocksize=BLOCKSIZE set table block size in kB [8]
1377 --with-segsize=SEGSIZE set table segment size in GB [1]
1378 --with-wal-blocksize=BLOCKSIZE set WAL block size in kB [8]
1379 --with-wal-segsize=SEGSIZE set WAL segment size in MB [16]
1380 --with-tcl build Tcl modules (PL/Tcl)
1381 --with-tclconfig=DIR tclConfig.sh is in DIR
1382 --with-perl build Perl modules (PL/Perl)
1383 --with-python build Python modules (PL/Python)
1384 --with-gssapi build with GSSAPI support
1385 --with-krb5 build with Kerberos 5 support
1386 --with-krb-srvnam=NAME default service principal name in Kerberos [postgres]
1387 --with-pam build with PAM support
1388 --with-ldap build with LDAP support
1389 --with-bonjour build with Bonjour support
1390 --with-openssl build with OpenSSL support
1391 --without-readline do not use GNU Readline nor BSD Libedit for editing
1392 --with-libedit-preferred prefer BSD Libedit over GNU Readline
1393 --with-ossp-uuid use OSSP UUID library when building contrib/uuid-ossp
1394 --with-libxml build with XML support
1395 --with-libxslt use XSLT support when building contrib/xml2
1396 --with-system-tzdata=DIR use system time zone data in DIR
1397 --without-zlib do not use Zlib
1398 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1400 Some influential environment variables:
1401 CC C compiler command
1402 CFLAGS C compiler flags
1403 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1404 nonstandard directory <lib dir>
1405 LIBS libraries to pass to the linker, e.g. -l<library>
1406 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1407 you have headers in a nonstandard directory <include dir>
1408 CPP C preprocessor
1409 LDFLAGS_SL
1410 DOCBOOKSTYLE
1411 location of DocBook stylesheets
1413 Use these variables to override the choices made by `configure' or to help
1414 it to find libraries and programs with nonstandard names/locations.
1416 Report bugs to <pgsql-bugs@postgresql.org>.
1417 _ACEOF
1418 ac_status=$?
1421 if test "$ac_init_help" = "recursive"; then
1422 # If there are subdirs, report their specific --help.
1423 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1424 test -d "$ac_dir" || continue
1425 ac_builddir=.
1427 case "$ac_dir" in
1428 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1430 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1431 # A ".." for each directory in $ac_dir_suffix.
1432 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1433 case $ac_top_builddir_sub in
1434 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1435 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1436 esac ;;
1437 esac
1438 ac_abs_top_builddir=$ac_pwd
1439 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1440 # for backward compatibility:
1441 ac_top_builddir=$ac_top_build_prefix
1443 case $srcdir in
1444 .) # We are building in place.
1445 ac_srcdir=.
1446 ac_top_srcdir=$ac_top_builddir_sub
1447 ac_abs_top_srcdir=$ac_pwd ;;
1448 [\\/]* | ?:[\\/]* ) # Absolute name.
1449 ac_srcdir=$srcdir$ac_dir_suffix;
1450 ac_top_srcdir=$srcdir
1451 ac_abs_top_srcdir=$srcdir ;;
1452 *) # Relative name.
1453 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1454 ac_top_srcdir=$ac_top_build_prefix$srcdir
1455 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1456 esac
1457 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1459 cd "$ac_dir" || { ac_status=$?; continue; }
1460 # Check for guested configure.
1461 if test -f "$ac_srcdir/configure.gnu"; then
1462 echo &&
1463 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1464 elif test -f "$ac_srcdir/configure"; then
1465 echo &&
1466 $SHELL "$ac_srcdir/configure" --help=recursive
1467 else
1468 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1469 fi || ac_status=$?
1470 cd "$ac_pwd" || { ac_status=$?; break; }
1471 done
1474 test -n "$ac_init_help" && exit $ac_status
1475 if $ac_init_version; then
1476 cat <<\_ACEOF
1477 PostgreSQL configure 8.4devel
1478 generated by GNU Autoconf 2.61
1480 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1481 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1482 This configure script is free software; the Free Software Foundation
1483 gives unlimited permission to copy, distribute and modify it.
1485 Copyright (c) 1996-2008, PostgreSQL Global Development Group
1486 _ACEOF
1487 exit
1489 cat >config.log <<_ACEOF
1490 This file contains any messages produced by compilers while
1491 running configure, to aid debugging if configure makes a mistake.
1493 It was created by PostgreSQL $as_me 8.4devel, which was
1494 generated by GNU Autoconf 2.61. Invocation command line was
1496 $ $0 $@
1498 _ACEOF
1499 exec 5>>config.log
1501 cat <<_ASUNAME
1502 ## --------- ##
1503 ## Platform. ##
1504 ## --------- ##
1506 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1507 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1508 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1509 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1510 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1512 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1513 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1515 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1516 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1517 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1518 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1519 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1520 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1521 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1523 _ASUNAME
1525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1526 for as_dir in $PATH
1528 IFS=$as_save_IFS
1529 test -z "$as_dir" && as_dir=.
1530 echo "PATH: $as_dir"
1531 done
1532 IFS=$as_save_IFS
1534 } >&5
1536 cat >&5 <<_ACEOF
1539 ## ----------- ##
1540 ## Core tests. ##
1541 ## ----------- ##
1543 _ACEOF
1546 # Keep a trace of the command line.
1547 # Strip out --no-create and --no-recursion so they do not pile up.
1548 # Strip out --silent because we don't want to record it for future runs.
1549 # Also quote any args containing shell meta-characters.
1550 # Make two passes to allow for proper duplicate-argument suppression.
1551 ac_configure_args=
1552 ac_configure_args0=
1553 ac_configure_args1=
1554 ac_must_keep_next=false
1555 for ac_pass in 1 2
1557 for ac_arg
1559 case $ac_arg in
1560 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1561 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1562 | -silent | --silent | --silen | --sile | --sil)
1563 continue ;;
1564 *\'*)
1565 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1566 esac
1567 case $ac_pass in
1568 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1570 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1571 if test $ac_must_keep_next = true; then
1572 ac_must_keep_next=false # Got value, back to normal.
1573 else
1574 case $ac_arg in
1575 *=* | --config-cache | -C | -disable-* | --disable-* \
1576 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1577 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1578 | -with-* | --with-* | -without-* | --without-* | --x)
1579 case "$ac_configure_args0 " in
1580 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1581 esac
1583 -* ) ac_must_keep_next=true ;;
1584 esac
1586 ac_configure_args="$ac_configure_args '$ac_arg'"
1588 esac
1589 done
1590 done
1591 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1592 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1594 # When interrupted or exit'd, cleanup temporary files, and complete
1595 # config.log. We remove comments because anyway the quotes in there
1596 # would cause problems or look ugly.
1597 # WARNING: Use '\'' to represent an apostrophe within the trap.
1598 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1599 trap 'exit_status=$?
1600 # Save into config.log some information that might help in debugging.
1602 echo
1604 cat <<\_ASBOX
1605 ## ---------------- ##
1606 ## Cache variables. ##
1607 ## ---------------- ##
1608 _ASBOX
1609 echo
1610 # The following way of writing the cache mishandles newlines in values,
1612 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1613 eval ac_val=\$$ac_var
1614 case $ac_val in #(
1615 *${as_nl}*)
1616 case $ac_var in #(
1617 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1618 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1619 esac
1620 case $ac_var in #(
1621 _ | IFS | as_nl) ;; #(
1622 *) $as_unset $ac_var ;;
1623 esac ;;
1624 esac
1625 done
1626 (set) 2>&1 |
1627 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1628 *${as_nl}ac_space=\ *)
1629 sed -n \
1630 "s/'\''/'\''\\\\'\'''\''/g;
1631 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1632 ;; #(
1634 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1636 esac |
1637 sort
1639 echo
1641 cat <<\_ASBOX
1642 ## ----------------- ##
1643 ## Output variables. ##
1644 ## ----------------- ##
1645 _ASBOX
1646 echo
1647 for ac_var in $ac_subst_vars
1649 eval ac_val=\$$ac_var
1650 case $ac_val in
1651 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1652 esac
1653 echo "$ac_var='\''$ac_val'\''"
1654 done | sort
1655 echo
1657 if test -n "$ac_subst_files"; then
1658 cat <<\_ASBOX
1659 ## ------------------- ##
1660 ## File substitutions. ##
1661 ## ------------------- ##
1662 _ASBOX
1663 echo
1664 for ac_var in $ac_subst_files
1666 eval ac_val=\$$ac_var
1667 case $ac_val in
1668 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1669 esac
1670 echo "$ac_var='\''$ac_val'\''"
1671 done | sort
1672 echo
1675 if test -s confdefs.h; then
1676 cat <<\_ASBOX
1677 ## ----------- ##
1678 ## confdefs.h. ##
1679 ## ----------- ##
1680 _ASBOX
1681 echo
1682 cat confdefs.h
1683 echo
1685 test "$ac_signal" != 0 &&
1686 echo "$as_me: caught signal $ac_signal"
1687 echo "$as_me: exit $exit_status"
1688 } >&5
1689 rm -f core *.core core.conftest.* &&
1690 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1691 exit $exit_status
1693 for ac_signal in 1 2 13 15; do
1694 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1695 done
1696 ac_signal=0
1698 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1699 rm -f -r conftest* confdefs.h
1701 # Predefined preprocessor variables.
1703 cat >>confdefs.h <<_ACEOF
1704 #define PACKAGE_NAME "$PACKAGE_NAME"
1705 _ACEOF
1708 cat >>confdefs.h <<_ACEOF
1709 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1710 _ACEOF
1713 cat >>confdefs.h <<_ACEOF
1714 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1715 _ACEOF
1718 cat >>confdefs.h <<_ACEOF
1719 #define PACKAGE_STRING "$PACKAGE_STRING"
1720 _ACEOF
1723 cat >>confdefs.h <<_ACEOF
1724 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1725 _ACEOF
1728 # Let the site file select an alternate cache file if it wants to.
1729 # Prefer explicitly selected file to automatically selected ones.
1730 if test -n "$CONFIG_SITE"; then
1731 set x "$CONFIG_SITE"
1732 elif test "x$prefix" != xNONE; then
1733 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1734 else
1735 set x "$ac_default_prefix/share/config.site" \
1736 "$ac_default_prefix/etc/config.site"
1738 shift
1739 for ac_site_file
1741 if test -r "$ac_site_file"; then
1742 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1743 echo "$as_me: loading site script $ac_site_file" >&6;}
1744 sed 's/^/| /' "$ac_site_file" >&5
1745 . "$ac_site_file"
1747 done
1749 if test -r "$cache_file"; then
1750 # Some versions of bash will fail to source /dev/null (special
1751 # files actually), so we avoid doing that.
1752 if test -f "$cache_file"; then
1753 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1754 echo "$as_me: loading cache $cache_file" >&6;}
1755 case $cache_file in
1756 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1757 *) . "./$cache_file";;
1758 esac
1760 else
1761 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1762 echo "$as_me: creating cache $cache_file" >&6;}
1763 >$cache_file
1766 # Check that the precious variables saved in the cache have kept the same
1767 # value.
1768 ac_cache_corrupted=false
1769 for ac_var in $ac_precious_vars; do
1770 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1771 eval ac_new_set=\$ac_env_${ac_var}_set
1772 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1773 eval ac_new_val=\$ac_env_${ac_var}_value
1774 case $ac_old_set,$ac_new_set in
1775 set,)
1776 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1777 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1778 ac_cache_corrupted=: ;;
1779 ,set)
1780 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1781 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1782 ac_cache_corrupted=: ;;
1783 ,);;
1785 if test "x$ac_old_val" != "x$ac_new_val"; then
1786 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1787 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1788 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1789 echo "$as_me: former value: $ac_old_val" >&2;}
1790 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1791 echo "$as_me: current value: $ac_new_val" >&2;}
1792 ac_cache_corrupted=:
1793 fi;;
1794 esac
1795 # Pass precious variables to config.status.
1796 if test "$ac_new_set" = set; then
1797 case $ac_new_val in
1798 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1799 *) ac_arg=$ac_var=$ac_new_val ;;
1800 esac
1801 case " $ac_configure_args " in
1802 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1803 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1804 esac
1806 done
1807 if $ac_cache_corrupted; then
1808 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1809 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1810 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1811 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1812 { (exit 1); exit 1; }; }
1839 ac_ext=c
1840 ac_cpp='$CPP $CPPFLAGS'
1841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1850 ac_aux_dir=
1851 for ac_dir in config "$srcdir"/config; do
1852 if test -f "$ac_dir/install-sh"; then
1853 ac_aux_dir=$ac_dir
1854 ac_install_sh="$ac_aux_dir/install-sh -c"
1855 break
1856 elif test -f "$ac_dir/install.sh"; then
1857 ac_aux_dir=$ac_dir
1858 ac_install_sh="$ac_aux_dir/install.sh -c"
1859 break
1860 elif test -f "$ac_dir/shtool"; then
1861 ac_aux_dir=$ac_dir
1862 ac_install_sh="$ac_aux_dir/shtool install -c"
1863 break
1865 done
1866 if test -z "$ac_aux_dir"; then
1867 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1868 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1869 { (exit 1); exit 1; }; }
1872 # These three variables are undocumented and unsupported,
1873 # and are intended to be withdrawn in a future Autoconf release.
1874 # They can cause serious problems if a builder's source tree is in a directory
1875 # whose full name contains unusual characters.
1876 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1877 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1878 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1882 configure_args=$ac_configure_args
1886 cat >>confdefs.h <<_ACEOF
1887 #define PG_VERSION "$PACKAGE_VERSION"
1888 _ACEOF
1891 # Make sure we can run config.sub.
1892 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1893 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1894 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1895 { (exit 1); exit 1; }; }
1897 { echo "$as_me:$LINENO: checking build system type" >&5
1898 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1899 if test "${ac_cv_build+set}" = set; then
1900 echo $ECHO_N "(cached) $ECHO_C" >&6
1901 else
1902 ac_build_alias=$build_alias
1903 test "x$ac_build_alias" = x &&
1904 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1905 test "x$ac_build_alias" = x &&
1906 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1907 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1908 { (exit 1); exit 1; }; }
1909 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1910 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1911 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1912 { (exit 1); exit 1; }; }
1915 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1916 echo "${ECHO_T}$ac_cv_build" >&6; }
1917 case $ac_cv_build in
1918 *-*-*) ;;
1919 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1920 echo "$as_me: error: invalid value of canonical build" >&2;}
1921 { (exit 1); exit 1; }; };;
1922 esac
1923 build=$ac_cv_build
1924 ac_save_IFS=$IFS; IFS='-'
1925 set x $ac_cv_build
1926 shift
1927 build_cpu=$1
1928 build_vendor=$2
1929 shift; shift
1930 # Remember, the first character of IFS is used to create $*,
1931 # except with old shells:
1932 build_os=$*
1933 IFS=$ac_save_IFS
1934 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1937 { echo "$as_me:$LINENO: checking host system type" >&5
1938 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1939 if test "${ac_cv_host+set}" = set; then
1940 echo $ECHO_N "(cached) $ECHO_C" >&6
1941 else
1942 if test "x$host_alias" = x; then
1943 ac_cv_host=$ac_cv_build
1944 else
1945 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1946 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1947 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1948 { (exit 1); exit 1; }; }
1952 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1953 echo "${ECHO_T}$ac_cv_host" >&6; }
1954 case $ac_cv_host in
1955 *-*-*) ;;
1956 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1957 echo "$as_me: error: invalid value of canonical host" >&2;}
1958 { (exit 1); exit 1; }; };;
1959 esac
1960 host=$ac_cv_host
1961 ac_save_IFS=$IFS; IFS='-'
1962 set x $ac_cv_host
1963 shift
1964 host_cpu=$1
1965 host_vendor=$2
1966 shift; shift
1967 # Remember, the first character of IFS is used to create $*,
1968 # except with old shells:
1969 host_os=$*
1970 IFS=$ac_save_IFS
1971 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1975 template=
1976 { echo "$as_me:$LINENO: checking which template to use" >&5
1977 echo $ECHO_N "checking which template to use... $ECHO_C" >&6; }
1980 pgac_args="$pgac_args with_template"
1983 # Check whether --with-template was given.
1984 if test "${with_template+set}" = set; then
1985 withval=$with_template;
1986 case $withval in
1987 yes)
1988 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1989 echo "$as_me: error: argument required for --with-template option" >&2;}
1990 { (exit 1); exit 1; }; }
1993 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1994 echo "$as_me: error: argument required for --with-template option" >&2;}
1995 { (exit 1); exit 1; }; }
1999 case $withval in
2000 list) echo; ls "$srcdir/src/template"; exit;;
2001 *) if test -f "$srcdir/src/template/$with_template" ; then
2002 template=$withval
2003 else
2004 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2005 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2006 { (exit 1); exit 1; }; }
2007 fi;;
2008 esac
2011 esac
2013 else
2015 # --with-template not given
2017 case $host_os in
2018 aix*) template=aix ;;
2019 bsdi*) template=bsdi ;;
2020 cygwin*) template=cygwin ;;
2021 darwin*) template=darwin ;;
2022 dgux*) template=dgux ;;
2023 freebsd*) template=freebsd ;;
2024 hpux*) template=hpux ;;
2025 irix*) template=irix ;;
2026 linux*|gnu*|k*bsd*-gnu)
2027 template=linux ;;
2028 mingw*) template=win32 ;;
2029 netbsd*) template=netbsd ;;
2030 nextstep*) template=nextstep ;;
2031 openbsd*) template=openbsd ;;
2032 osf*) template=osf ;;
2033 sco*) template=sco ;;
2034 solaris*) template=solaris ;;
2035 sunos*) template=sunos4 ;;
2036 sysv4.2*)
2037 case $host_vendor in
2038 univel) template=univel ;;
2039 esac ;;
2040 sysv4*) template=svr4 ;;
2041 sysv5*) template=unixware ;;
2042 ultrix*) template=ultrix4 ;;
2043 esac
2045 if test x"$template" = x"" ; then
2046 { { echo "$as_me:$LINENO: error:
2047 *******************************************************************
2048 PostgreSQL has apparently not been ported to your platform yet.
2049 To try a manual configuration, look into the src/template directory
2050 for a similar platform and use the '--with-template=' option.
2052 Please also contact <pgsql-ports@postgresql.org> to see about
2053 rectifying this. Include the above 'checking host system type...'
2054 line.
2055 *******************************************************************
2056 " >&5
2057 echo "$as_me: error:
2058 *******************************************************************
2059 PostgreSQL has apparently not been ported to your platform yet.
2060 To try a manual configuration, look into the src/template directory
2061 for a similar platform and use the '--with-template=' option.
2063 Please also contact <pgsql-ports@postgresql.org> to see about
2064 rectifying this. Include the above 'checking host system type...'
2065 line.
2066 *******************************************************************
2067 " >&2;}
2068 { (exit 1); exit 1; }; }
2076 { echo "$as_me:$LINENO: result: $template" >&5
2077 echo "${ECHO_T}$template" >&6; }
2079 PORTNAME=$template
2082 # Initialize default assumption that we do not need separate assembly code
2083 # for TAS (test-and-set). This can be overridden by the template file
2084 # when it's executed.
2085 need_tas=no
2086 tas_file=dummy.s
2091 ## Command line options
2095 # Add non-standard directories to the include path
2098 pgac_args="$pgac_args with_includes"
2101 # Check whether --with-includes was given.
2102 if test "${with_includes+set}" = set; then
2103 withval=$with_includes;
2104 case $withval in
2105 yes)
2106 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2107 echo "$as_me: error: argument required for --with-includes option" >&2;}
2108 { (exit 1); exit 1; }; }
2111 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2112 echo "$as_me: error: argument required for --with-includes option" >&2;}
2113 { (exit 1); exit 1; }; }
2118 esac
2126 # Add non-standard directories to the library search path
2129 pgac_args="$pgac_args with_libraries"
2132 # Check whether --with-libraries was given.
2133 if test "${with_libraries+set}" = set; then
2134 withval=$with_libraries;
2135 case $withval in
2136 yes)
2137 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2138 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2139 { (exit 1); exit 1; }; }
2142 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2143 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2144 { (exit 1); exit 1; }; }
2147 LIBRARY_DIRS=$withval
2149 esac
2156 pgac_args="$pgac_args with_libs"
2159 # Check whether --with-libs was given.
2160 if test "${with_libs+set}" = set; then
2161 withval=$with_libs;
2162 case $withval in
2163 yes)
2164 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2165 echo "$as_me: error: argument required for --with-libs option" >&2;}
2166 { (exit 1); exit 1; }; }
2169 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2170 echo "$as_me: error: argument required for --with-libs option" >&2;}
2171 { (exit 1); exit 1; }; }
2174 LIBRARY_DIRS=$withval
2176 esac
2184 # 64-bit integer date/time storage: enabled by default.
2186 { echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2187 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6; }
2189 pgac_args="$pgac_args enable_integer_datetimes"
2191 # Check whether --enable-integer-datetimes was given.
2192 if test "${enable_integer_datetimes+set}" = set; then
2193 enableval=$enable_integer_datetimes;
2194 case $enableval in
2195 yes)
2197 cat >>confdefs.h <<\_ACEOF
2198 #define USE_INTEGER_DATETIMES 1
2199 _ACEOF
2206 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2207 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2208 { (exit 1); exit 1; }; }
2210 esac
2212 else
2213 enable_integer_datetimes=yes
2215 cat >>confdefs.h <<\_ACEOF
2216 #define USE_INTEGER_DATETIMES 1
2217 _ACEOF
2222 { echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2223 echo "${ECHO_T}$enable_integer_datetimes" >&6; }
2227 # NLS
2229 { echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2230 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6; }
2232 pgac_args="$pgac_args enable_nls"
2234 # Check whether --enable-nls was given.
2235 if test "${enable_nls+set}" = set; then
2236 enableval=$enable_nls;
2237 case $enableval in
2238 yes)
2245 enable_nls=yes
2246 WANTED_LANGUAGES=$enableval
2248 esac
2250 else
2251 enable_nls=no
2256 if test "$enable_nls" = yes; then
2258 cat >>confdefs.h <<\_ACEOF
2259 #define ENABLE_NLS 1
2260 _ACEOF
2264 { echo "$as_me:$LINENO: result: $enable_nls" >&5
2265 echo "${ECHO_T}$enable_nls" >&6; }
2270 # Default port number (--with-pgport), default 5432
2272 { echo "$as_me:$LINENO: checking for default port number" >&5
2273 echo $ECHO_N "checking for default port number... $ECHO_C" >&6; }
2275 pgac_args="$pgac_args with_pgport"
2278 # Check whether --with-pgport was given.
2279 if test "${with_pgport+set}" = set; then
2280 withval=$with_pgport;
2281 case $withval in
2282 yes)
2283 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2284 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2285 { (exit 1); exit 1; }; }
2288 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2289 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2290 { (exit 1); exit 1; }; }
2293 default_port=$withval
2295 esac
2297 else
2298 default_port=5432
2302 { echo "$as_me:$LINENO: result: $default_port" >&5
2303 echo "${ECHO_T}$default_port" >&6; }
2304 # Need both of these because some places want an integer and some a string
2306 cat >>confdefs.h <<_ACEOF
2307 #define DEF_PGPORT ${default_port}
2308 _ACEOF
2311 cat >>confdefs.h <<_ACEOF
2312 #define DEF_PGPORT_STR "${default_port}"
2313 _ACEOF
2318 # Option to disable shared libraries
2321 pgac_args="$pgac_args enable_shared"
2323 # Check whether --enable-shared was given.
2324 if test "${enable_shared+set}" = set; then
2325 enableval=$enable_shared;
2326 case $enableval in
2327 yes)
2334 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2335 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2336 { (exit 1); exit 1; }; }
2338 esac
2340 else
2341 enable_shared=yes
2349 # '-rpath'-like feature can be disabled
2352 pgac_args="$pgac_args enable_rpath"
2354 # Check whether --enable-rpath was given.
2355 if test "${enable_rpath+set}" = set; then
2356 enableval=$enable_rpath;
2357 case $enableval in
2358 yes)
2365 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2366 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2367 { (exit 1); exit 1; }; }
2369 esac
2371 else
2372 enable_rpath=yes
2380 # Spinlocks
2383 pgac_args="$pgac_args enable_spinlocks"
2385 # Check whether --enable-spinlocks was given.
2386 if test "${enable_spinlocks+set}" = set; then
2387 enableval=$enable_spinlocks;
2388 case $enableval in
2389 yes)
2396 { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2397 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2398 { (exit 1); exit 1; }; }
2400 esac
2402 else
2403 enable_spinlocks=yes
2410 # --enable-debug adds -g to compiler flags
2413 pgac_args="$pgac_args enable_debug"
2415 # Check whether --enable-debug was given.
2416 if test "${enable_debug+set}" = set; then
2417 enableval=$enable_debug;
2418 case $enableval in
2419 yes)
2426 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2427 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2428 { (exit 1); exit 1; }; }
2430 esac
2432 else
2433 enable_debug=no
2441 # --enable-profiling enables gcc profiling
2444 pgac_args="$pgac_args enable_profiling"
2446 # Check whether --enable-profiling was given.
2447 if test "${enable_profiling+set}" = set; then
2448 enableval=$enable_profiling;
2449 case $enableval in
2450 yes)
2457 { { echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2458 echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2459 { (exit 1); exit 1; }; }
2461 esac
2463 else
2464 enable_profiling=no
2472 # DTrace
2475 pgac_args="$pgac_args enable_dtrace"
2477 # Check whether --enable-dtrace was given.
2478 if test "${enable_dtrace+set}" = set; then
2479 enableval=$enable_dtrace;
2480 case $enableval in
2481 yes)
2483 cat >>confdefs.h <<\_ACEOF
2484 #define ENABLE_DTRACE 1
2485 _ACEOF
2487 for ac_prog in dtrace
2489 # Extract the first word of "$ac_prog", so it can be a program name with args.
2490 set dummy $ac_prog; ac_word=$2
2491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2493 if test "${ac_cv_prog_DTRACE+set}" = set; then
2494 echo $ECHO_N "(cached) $ECHO_C" >&6
2495 else
2496 if test -n "$DTRACE"; then
2497 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2498 else
2499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500 for as_dir in $PATH
2502 IFS=$as_save_IFS
2503 test -z "$as_dir" && as_dir=.
2504 for ac_exec_ext in '' $ac_executable_extensions; do
2505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2506 ac_cv_prog_DTRACE="$ac_prog"
2507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2508 break 2
2510 done
2511 done
2512 IFS=$as_save_IFS
2516 DTRACE=$ac_cv_prog_DTRACE
2517 if test -n "$DTRACE"; then
2518 { echo "$as_me:$LINENO: result: $DTRACE" >&5
2519 echo "${ECHO_T}$DTRACE" >&6; }
2520 else
2521 { echo "$as_me:$LINENO: result: no" >&5
2522 echo "${ECHO_T}no" >&6; }
2526 test -n "$DTRACE" && break
2527 done
2529 if test -z "$DTRACE"; then
2530 { { echo "$as_me:$LINENO: error: dtrace not found" >&5
2531 echo "$as_me: error: dtrace not found" >&2;}
2532 { (exit 1); exit 1; }; }
2540 { { echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2541 echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2542 { (exit 1); exit 1; }; }
2544 esac
2546 else
2547 enable_dtrace=no
2555 # Block size
2557 { echo "$as_me:$LINENO: checking for block size" >&5
2558 echo $ECHO_N "checking for block size... $ECHO_C" >&6; }
2560 pgac_args="$pgac_args with_blocksize"
2563 # Check whether --with-blocksize was given.
2564 if test "${with_blocksize+set}" = set; then
2565 withval=$with_blocksize;
2566 case $withval in
2567 yes)
2568 { { echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2569 echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2570 { (exit 1); exit 1; }; }
2573 { { echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2574 echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2575 { (exit 1); exit 1; }; }
2578 blocksize=$withval
2580 esac
2582 else
2583 blocksize=8
2587 case ${blocksize} in
2588 1) BLCKSZ=1024;;
2589 2) BLCKSZ=2048;;
2590 4) BLCKSZ=4096;;
2591 8) BLCKSZ=8192;;
2592 16) BLCKSZ=16384;;
2593 32) BLCKSZ=32768;;
2594 *) { { echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2595 echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2596 { (exit 1); exit 1; }; }
2597 esac
2598 { echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2599 echo "${ECHO_T}${blocksize}kB" >&6; }
2602 cat >>confdefs.h <<_ACEOF
2603 #define BLCKSZ ${BLCKSZ}
2604 _ACEOF
2608 # Relation segment size
2610 { echo "$as_me:$LINENO: checking for segment size" >&5
2611 echo $ECHO_N "checking for segment size... $ECHO_C" >&6; }
2613 pgac_args="$pgac_args with_segsize"
2616 # Check whether --with-segsize was given.
2617 if test "${with_segsize+set}" = set; then
2618 withval=$with_segsize;
2619 case $withval in
2620 yes)
2621 { { echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2622 echo "$as_me: error: argument required for --with-segsize option" >&2;}
2623 { (exit 1); exit 1; }; }
2626 { { echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2627 echo "$as_me: error: argument required for --with-segsize option" >&2;}
2628 { (exit 1); exit 1; }; }
2631 segsize=$withval
2633 esac
2635 else
2636 segsize=1
2640 # this expression is set up to avoid unnecessary integer overflow
2641 # blocksize is already guaranteed to be a factor of 1024
2642 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2643 test $? -eq 0 || exit 1
2644 { echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2645 echo "${ECHO_T}${segsize}GB" >&6; }
2648 cat >>confdefs.h <<_ACEOF
2649 #define RELSEG_SIZE ${RELSEG_SIZE}
2650 _ACEOF
2654 # WAL block size
2656 { echo "$as_me:$LINENO: checking for WAL block size" >&5
2657 echo $ECHO_N "checking for WAL block size... $ECHO_C" >&6; }
2659 pgac_args="$pgac_args with_wal_blocksize"
2662 # Check whether --with-wal-blocksize was given.
2663 if test "${with_wal_blocksize+set}" = set; then
2664 withval=$with_wal_blocksize;
2665 case $withval in
2666 yes)
2667 { { echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2668 echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2669 { (exit 1); exit 1; }; }
2672 { { echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2673 echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2674 { (exit 1); exit 1; }; }
2677 wal_blocksize=$withval
2679 esac
2681 else
2682 wal_blocksize=8
2686 case ${wal_blocksize} in
2687 1) XLOG_BLCKSZ=1024;;
2688 2) XLOG_BLCKSZ=2048;;
2689 4) XLOG_BLCKSZ=4096;;
2690 8) XLOG_BLCKSZ=8192;;
2691 16) XLOG_BLCKSZ=16384;;
2692 32) XLOG_BLCKSZ=32768;;
2693 64) XLOG_BLCKSZ=65536;;
2694 *) { { echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
2695 echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2696 { (exit 1); exit 1; }; }
2697 esac
2698 { echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
2699 echo "${ECHO_T}${wal_blocksize}kB" >&6; }
2702 cat >>confdefs.h <<_ACEOF
2703 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
2704 _ACEOF
2708 # WAL segment size
2710 { echo "$as_me:$LINENO: checking for WAL segment size" >&5
2711 echo $ECHO_N "checking for WAL segment size... $ECHO_C" >&6; }
2713 pgac_args="$pgac_args with_wal_segsize"
2716 # Check whether --with-wal-segsize was given.
2717 if test "${with_wal_segsize+set}" = set; then
2718 withval=$with_wal_segsize;
2719 case $withval in
2720 yes)
2721 { { echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
2722 echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
2723 { (exit 1); exit 1; }; }
2726 { { echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
2727 echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
2728 { (exit 1); exit 1; }; }
2731 wal_segsize=$withval
2733 esac
2735 else
2736 wal_segsize=16
2740 case ${wal_segsize} in
2741 1) ;;
2742 2) ;;
2743 4) ;;
2744 8) ;;
2745 16) ;;
2746 32) ;;
2747 64) ;;
2748 *) { { echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
2749 echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2750 { (exit 1); exit 1; }; }
2751 esac
2752 { echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
2753 echo "${ECHO_T}${wal_segsize}MB" >&6; }
2756 cat >>confdefs.h <<_ACEOF
2757 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
2758 _ACEOF
2762 # C compiler
2765 # For historical reasons you can also use --with-CC to specify the C compiler
2766 # to use, although the standard way to do this is to set the CC environment
2767 # variable.
2769 pgac_args="$pgac_args with_CC"
2772 # Check whether --with-CC was given.
2773 if test "${with_CC+set}" = set; then
2774 withval=$with_CC;
2775 case $withval in
2776 yes)
2777 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2778 echo "$as_me: error: argument required for --with-CC option" >&2;}
2779 { (exit 1); exit 1; }; }
2782 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2783 echo "$as_me: error: argument required for --with-CC option" >&2;}
2784 { (exit 1); exit 1; }; }
2787 CC=$with_CC
2789 esac
2795 case $template in
2796 aix) pgac_cc_list="gcc xlc";;
2797 irix) pgac_cc_list="cc";; # no gcc
2798 *) pgac_cc_list="gcc cc";;
2799 esac
2801 ac_ext=c
2802 ac_cpp='$CPP $CPPFLAGS'
2803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2806 if test -n "$ac_tool_prefix"; then
2807 for ac_prog in $pgac_cc_list
2809 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2810 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2813 if test "${ac_cv_prog_CC+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2815 else
2816 if test -n "$CC"; then
2817 ac_cv_prog_CC="$CC" # Let the user override the test.
2818 else
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820 for as_dir in $PATH
2822 IFS=$as_save_IFS
2823 test -z "$as_dir" && as_dir=.
2824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2826 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2828 break 2
2830 done
2831 done
2832 IFS=$as_save_IFS
2836 CC=$ac_cv_prog_CC
2837 if test -n "$CC"; then
2838 { echo "$as_me:$LINENO: result: $CC" >&5
2839 echo "${ECHO_T}$CC" >&6; }
2840 else
2841 { echo "$as_me:$LINENO: result: no" >&5
2842 echo "${ECHO_T}no" >&6; }
2846 test -n "$CC" && break
2847 done
2849 if test -z "$CC"; then
2850 ac_ct_CC=$CC
2851 for ac_prog in $pgac_cc_list
2853 # Extract the first word of "$ac_prog", so it can be a program name with args.
2854 set dummy $ac_prog; ac_word=$2
2855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2857 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2858 echo $ECHO_N "(cached) $ECHO_C" >&6
2859 else
2860 if test -n "$ac_ct_CC"; then
2861 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2862 else
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864 for as_dir in $PATH
2866 IFS=$as_save_IFS
2867 test -z "$as_dir" && as_dir=.
2868 for ac_exec_ext in '' $ac_executable_extensions; do
2869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2870 ac_cv_prog_ac_ct_CC="$ac_prog"
2871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2872 break 2
2874 done
2875 done
2876 IFS=$as_save_IFS
2880 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2881 if test -n "$ac_ct_CC"; then
2882 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2883 echo "${ECHO_T}$ac_ct_CC" >&6; }
2884 else
2885 { echo "$as_me:$LINENO: result: no" >&5
2886 echo "${ECHO_T}no" >&6; }
2890 test -n "$ac_ct_CC" && break
2891 done
2893 if test "x$ac_ct_CC" = x; then
2894 CC=""
2895 else
2896 case $cross_compiling:$ac_tool_warned in
2897 yes:)
2898 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2899 whose name does not start with the host triplet. If you think this
2900 configuration is useful to you, please write to autoconf@gnu.org." >&5
2901 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2902 whose name does not start with the host triplet. If you think this
2903 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2904 ac_tool_warned=yes ;;
2905 esac
2906 CC=$ac_ct_CC
2911 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2912 See \`config.log' for more details." >&5
2913 echo "$as_me: error: no acceptable C compiler found in \$PATH
2914 See \`config.log' for more details." >&2;}
2915 { (exit 1); exit 1; }; }
2917 # Provide some information about the compiler.
2918 echo "$as_me:$LINENO: checking for C compiler version" >&5
2919 ac_compiler=`set X $ac_compile; echo $2`
2920 { (ac_try="$ac_compiler --version >&5"
2921 case "(($ac_try" in
2922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2923 *) ac_try_echo=$ac_try;;
2924 esac
2925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2926 (eval "$ac_compiler --version >&5") 2>&5
2927 ac_status=$?
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); }
2930 { (ac_try="$ac_compiler -v >&5"
2931 case "(($ac_try" in
2932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933 *) ac_try_echo=$ac_try;;
2934 esac
2935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2936 (eval "$ac_compiler -v >&5") 2>&5
2937 ac_status=$?
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }
2940 { (ac_try="$ac_compiler -V >&5"
2941 case "(($ac_try" in
2942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943 *) ac_try_echo=$ac_try;;
2944 esac
2945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2946 (eval "$ac_compiler -V >&5") 2>&5
2947 ac_status=$?
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); }
2951 cat >conftest.$ac_ext <<_ACEOF
2952 /* confdefs.h. */
2953 _ACEOF
2954 cat confdefs.h >>conftest.$ac_ext
2955 cat >>conftest.$ac_ext <<_ACEOF
2956 /* end confdefs.h. */
2959 main ()
2963 return 0;
2965 _ACEOF
2966 ac_clean_files_save=$ac_clean_files
2967 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2968 # Try to create an executable without -o first, disregard a.out.
2969 # It will help us diagnose broken compilers, and finding out an intuition
2970 # of exeext.
2971 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2972 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2973 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2975 # List of possible output files, starting from the most likely.
2976 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2977 # only as a last resort. b.out is created by i960 compilers.
2978 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2980 # The IRIX 6 linker writes into existing files which may not be
2981 # executable, retaining their permissions. Remove them first so a
2982 # subsequent execution test works.
2983 ac_rmfiles=
2984 for ac_file in $ac_files
2986 case $ac_file in
2987 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2988 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2989 esac
2990 done
2991 rm -f $ac_rmfiles
2993 if { (ac_try="$ac_link_default"
2994 case "(($ac_try" in
2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996 *) ac_try_echo=$ac_try;;
2997 esac
2998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2999 (eval "$ac_link_default") 2>&5
3000 ac_status=$?
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); }; then
3003 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3004 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3005 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3006 # so that the user can short-circuit this test for compilers unknown to
3007 # Autoconf.
3008 for ac_file in $ac_files ''
3010 test -f "$ac_file" || continue
3011 case $ac_file in
3012 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3014 [ab].out )
3015 # We found the default executable, but exeext='' is most
3016 # certainly right.
3017 break;;
3018 *.* )
3019 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3020 then :; else
3021 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3023 # We set ac_cv_exeext here because the later test for it is not
3024 # safe: cross compilers may not add the suffix if given an `-o'
3025 # argument, so we may need to know it at that point already.
3026 # Even if this section looks crufty: it has the advantage of
3027 # actually working.
3028 break;;
3030 break;;
3031 esac
3032 done
3033 test "$ac_cv_exeext" = no && ac_cv_exeext=
3035 else
3036 ac_file=''
3039 { echo "$as_me:$LINENO: result: $ac_file" >&5
3040 echo "${ECHO_T}$ac_file" >&6; }
3041 if test -z "$ac_file"; then
3042 echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3045 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3046 See \`config.log' for more details." >&5
3047 echo "$as_me: error: C compiler cannot create executables
3048 See \`config.log' for more details." >&2;}
3049 { (exit 77); exit 77; }; }
3052 ac_exeext=$ac_cv_exeext
3054 # Check that the compiler produces executables we can run. If not, either
3055 # the compiler is broken, or we cross compile.
3056 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3057 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3058 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3059 # If not cross compiling, check that we can run a simple program.
3060 if test "$cross_compiling" != yes; then
3061 if { ac_try='./$ac_file'
3062 { (case "(($ac_try" in
3063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064 *) ac_try_echo=$ac_try;;
3065 esac
3066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067 (eval "$ac_try") 2>&5
3068 ac_status=$?
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); }; }; then
3071 cross_compiling=no
3072 else
3073 if test "$cross_compiling" = maybe; then
3074 cross_compiling=yes
3075 else
3076 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3077 If you meant to cross compile, use \`--host'.
3078 See \`config.log' for more details." >&5
3079 echo "$as_me: error: cannot run C compiled programs.
3080 If you meant to cross compile, use \`--host'.
3081 See \`config.log' for more details." >&2;}
3082 { (exit 1); exit 1; }; }
3086 { echo "$as_me:$LINENO: result: yes" >&5
3087 echo "${ECHO_T}yes" >&6; }
3089 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3090 ac_clean_files=$ac_clean_files_save
3091 # Check that the compiler produces executables we can run. If not, either
3092 # the compiler is broken, or we cross compile.
3093 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3094 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3095 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3096 echo "${ECHO_T}$cross_compiling" >&6; }
3098 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3099 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3100 if { (ac_try="$ac_link"
3101 case "(($ac_try" in
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3104 esac
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106 (eval "$ac_link") 2>&5
3107 ac_status=$?
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); }; then
3110 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3111 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3112 # work properly (i.e., refer to `conftest.exe'), while it won't with
3113 # `rm'.
3114 for ac_file in conftest.exe conftest conftest.*; do
3115 test -f "$ac_file" || continue
3116 case $ac_file in
3117 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3118 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3119 break;;
3120 * ) break;;
3121 esac
3122 done
3123 else
3124 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3125 See \`config.log' for more details." >&5
3126 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3127 See \`config.log' for more details." >&2;}
3128 { (exit 1); exit 1; }; }
3131 rm -f conftest$ac_cv_exeext
3132 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3133 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3135 rm -f conftest.$ac_ext
3136 EXEEXT=$ac_cv_exeext
3137 ac_exeext=$EXEEXT
3138 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3139 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3140 if test "${ac_cv_objext+set}" = set; then
3141 echo $ECHO_N "(cached) $ECHO_C" >&6
3142 else
3143 cat >conftest.$ac_ext <<_ACEOF
3144 /* confdefs.h. */
3145 _ACEOF
3146 cat confdefs.h >>conftest.$ac_ext
3147 cat >>conftest.$ac_ext <<_ACEOF
3148 /* end confdefs.h. */
3151 main ()
3155 return 0;
3157 _ACEOF
3158 rm -f conftest.o conftest.obj
3159 if { (ac_try="$ac_compile"
3160 case "(($ac_try" in
3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3163 esac
3164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165 (eval "$ac_compile") 2>&5
3166 ac_status=$?
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; then
3169 for ac_file in conftest.o conftest.obj conftest.*; do
3170 test -f "$ac_file" || continue;
3171 case $ac_file in
3172 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3173 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3174 break;;
3175 esac
3176 done
3177 else
3178 echo "$as_me: failed program was:" >&5
3179 sed 's/^/| /' conftest.$ac_ext >&5
3181 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3182 See \`config.log' for more details." >&5
3183 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3184 See \`config.log' for more details." >&2;}
3185 { (exit 1); exit 1; }; }
3188 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3190 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3191 echo "${ECHO_T}$ac_cv_objext" >&6; }
3192 OBJEXT=$ac_cv_objext
3193 ac_objext=$OBJEXT
3194 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3195 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3196 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3197 echo $ECHO_N "(cached) $ECHO_C" >&6
3198 else
3199 cat >conftest.$ac_ext <<_ACEOF
3200 /* confdefs.h. */
3201 _ACEOF
3202 cat confdefs.h >>conftest.$ac_ext
3203 cat >>conftest.$ac_ext <<_ACEOF
3204 /* end confdefs.h. */
3207 main ()
3209 #ifndef __GNUC__
3210 choke me
3211 #endif
3214 return 0;
3216 _ACEOF
3217 rm -f conftest.$ac_objext
3218 if { (ac_try="$ac_compile"
3219 case "(($ac_try" in
3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221 *) ac_try_echo=$ac_try;;
3222 esac
3223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3224 (eval "$ac_compile") 2>conftest.er1
3225 ac_status=$?
3226 grep -v '^ *+' conftest.er1 >conftest.err
3227 rm -f conftest.er1
3228 cat conftest.err >&5
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); } && {
3231 test -z "$ac_c_werror_flag" ||
3232 test ! -s conftest.err
3233 } && test -s conftest.$ac_objext; then
3234 ac_compiler_gnu=yes
3235 else
3236 echo "$as_me: failed program was:" >&5
3237 sed 's/^/| /' conftest.$ac_ext >&5
3239 ac_compiler_gnu=no
3242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3243 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3246 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3247 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3248 GCC=`test $ac_compiler_gnu = yes && echo yes`
3249 ac_test_CFLAGS=${CFLAGS+set}
3250 ac_save_CFLAGS=$CFLAGS
3251 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3252 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3253 if test "${ac_cv_prog_cc_g+set}" = set; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
3255 else
3256 ac_save_c_werror_flag=$ac_c_werror_flag
3257 ac_c_werror_flag=yes
3258 ac_cv_prog_cc_g=no
3259 CFLAGS="-g"
3260 cat >conftest.$ac_ext <<_ACEOF
3261 /* confdefs.h. */
3262 _ACEOF
3263 cat confdefs.h >>conftest.$ac_ext
3264 cat >>conftest.$ac_ext <<_ACEOF
3265 /* end confdefs.h. */
3268 main ()
3272 return 0;
3274 _ACEOF
3275 rm -f conftest.$ac_objext
3276 if { (ac_try="$ac_compile"
3277 case "(($ac_try" in
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3280 esac
3281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3282 (eval "$ac_compile") 2>conftest.er1
3283 ac_status=$?
3284 grep -v '^ *+' conftest.er1 >conftest.err
3285 rm -f conftest.er1
3286 cat conftest.err >&5
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); } && {
3289 test -z "$ac_c_werror_flag" ||
3290 test ! -s conftest.err
3291 } && test -s conftest.$ac_objext; then
3292 ac_cv_prog_cc_g=yes
3293 else
3294 echo "$as_me: failed program was:" >&5
3295 sed 's/^/| /' conftest.$ac_ext >&5
3297 CFLAGS=""
3298 cat >conftest.$ac_ext <<_ACEOF
3299 /* confdefs.h. */
3300 _ACEOF
3301 cat confdefs.h >>conftest.$ac_ext
3302 cat >>conftest.$ac_ext <<_ACEOF
3303 /* end confdefs.h. */
3306 main ()
3310 return 0;
3312 _ACEOF
3313 rm -f conftest.$ac_objext
3314 if { (ac_try="$ac_compile"
3315 case "(($ac_try" in
3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3318 esac
3319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3320 (eval "$ac_compile") 2>conftest.er1
3321 ac_status=$?
3322 grep -v '^ *+' conftest.er1 >conftest.err
3323 rm -f conftest.er1
3324 cat conftest.err >&5
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); } && {
3327 test -z "$ac_c_werror_flag" ||
3328 test ! -s conftest.err
3329 } && test -s conftest.$ac_objext; then
3331 else
3332 echo "$as_me: failed program was:" >&5
3333 sed 's/^/| /' conftest.$ac_ext >&5
3335 ac_c_werror_flag=$ac_save_c_werror_flag
3336 CFLAGS="-g"
3337 cat >conftest.$ac_ext <<_ACEOF
3338 /* confdefs.h. */
3339 _ACEOF
3340 cat confdefs.h >>conftest.$ac_ext
3341 cat >>conftest.$ac_ext <<_ACEOF
3342 /* end confdefs.h. */
3345 main ()
3349 return 0;
3351 _ACEOF
3352 rm -f conftest.$ac_objext
3353 if { (ac_try="$ac_compile"
3354 case "(($ac_try" in
3355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3356 *) ac_try_echo=$ac_try;;
3357 esac
3358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3359 (eval "$ac_compile") 2>conftest.er1
3360 ac_status=$?
3361 grep -v '^ *+' conftest.er1 >conftest.err
3362 rm -f conftest.er1
3363 cat conftest.err >&5
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); } && {
3366 test -z "$ac_c_werror_flag" ||
3367 test ! -s conftest.err
3368 } && test -s conftest.$ac_objext; then
3369 ac_cv_prog_cc_g=yes
3370 else
3371 echo "$as_me: failed program was:" >&5
3372 sed 's/^/| /' conftest.$ac_ext >&5
3377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3384 ac_c_werror_flag=$ac_save_c_werror_flag
3386 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3387 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3388 if test "$ac_test_CFLAGS" = set; then
3389 CFLAGS=$ac_save_CFLAGS
3390 elif test $ac_cv_prog_cc_g = yes; then
3391 if test "$GCC" = yes; then
3392 CFLAGS="-g -O2"
3393 else
3394 CFLAGS="-g"
3396 else
3397 if test "$GCC" = yes; then
3398 CFLAGS="-O2"
3399 else
3400 CFLAGS=
3403 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3404 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3405 if test "${ac_cv_prog_cc_c89+set}" = set; then
3406 echo $ECHO_N "(cached) $ECHO_C" >&6
3407 else
3408 ac_cv_prog_cc_c89=no
3409 ac_save_CC=$CC
3410 cat >conftest.$ac_ext <<_ACEOF
3411 /* confdefs.h. */
3412 _ACEOF
3413 cat confdefs.h >>conftest.$ac_ext
3414 cat >>conftest.$ac_ext <<_ACEOF
3415 /* end confdefs.h. */
3416 #include <stdarg.h>
3417 #include <stdio.h>
3418 #include <sys/types.h>
3419 #include <sys/stat.h>
3420 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3421 struct buf { int x; };
3422 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3423 static char *e (p, i)
3424 char **p;
3425 int i;
3427 return p[i];
3429 static char *f (char * (*g) (char **, int), char **p, ...)
3431 char *s;
3432 va_list v;
3433 va_start (v,p);
3434 s = g (p, va_arg (v,int));
3435 va_end (v);
3436 return s;
3439 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3440 function prototypes and stuff, but not '\xHH' hex character constants.
3441 These don't provoke an error unfortunately, instead are silently treated
3442 as 'x'. The following induces an error, until -std is added to get
3443 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3444 array size at least. It's necessary to write '\x00'==0 to get something
3445 that's true only with -std. */
3446 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3448 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3449 inside strings and character constants. */
3450 #define FOO(x) 'x'
3451 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3453 int test (int i, double x);
3454 struct s1 {int (*f) (int a);};
3455 struct s2 {int (*f) (double a);};
3456 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3457 int argc;
3458 char **argv;
3460 main ()
3462 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3464 return 0;
3466 _ACEOF
3467 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3468 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3470 CC="$ac_save_CC $ac_arg"
3471 rm -f conftest.$ac_objext
3472 if { (ac_try="$ac_compile"
3473 case "(($ac_try" in
3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475 *) ac_try_echo=$ac_try;;
3476 esac
3477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3478 (eval "$ac_compile") 2>conftest.er1
3479 ac_status=$?
3480 grep -v '^ *+' conftest.er1 >conftest.err
3481 rm -f conftest.er1
3482 cat conftest.err >&5
3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); } && {
3485 test -z "$ac_c_werror_flag" ||
3486 test ! -s conftest.err
3487 } && test -s conftest.$ac_objext; then
3488 ac_cv_prog_cc_c89=$ac_arg
3489 else
3490 echo "$as_me: failed program was:" >&5
3491 sed 's/^/| /' conftest.$ac_ext >&5
3496 rm -f core conftest.err conftest.$ac_objext
3497 test "x$ac_cv_prog_cc_c89" != "xno" && break
3498 done
3499 rm -f conftest.$ac_ext
3500 CC=$ac_save_CC
3503 # AC_CACHE_VAL
3504 case "x$ac_cv_prog_cc_c89" in
3506 { echo "$as_me:$LINENO: result: none needed" >&5
3507 echo "${ECHO_T}none needed" >&6; } ;;
3508 xno)
3509 { echo "$as_me:$LINENO: result: unsupported" >&5
3510 echo "${ECHO_T}unsupported" >&6; } ;;
3512 CC="$CC $ac_cv_prog_cc_c89"
3513 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3514 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3515 esac
3518 ac_ext=c
3519 ac_cpp='$CPP $CPPFLAGS'
3520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3525 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3526 # but has idiosyncrasies of its own. We assume icc will define
3527 # __INTEL_COMPILER regardless of CFLAGS.
3529 cat >conftest.$ac_ext <<_ACEOF
3530 /* confdefs.h. */
3531 _ACEOF
3532 cat confdefs.h >>conftest.$ac_ext
3533 cat >>conftest.$ac_ext <<_ACEOF
3534 /* end confdefs.h. */
3537 main ()
3539 #ifndef __INTEL_COMPILER
3540 choke me
3541 #endif
3543 return 0;
3545 _ACEOF
3546 rm -f conftest.$ac_objext
3547 if { (ac_try="$ac_compile"
3548 case "(($ac_try" in
3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550 *) ac_try_echo=$ac_try;;
3551 esac
3552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3553 (eval "$ac_compile") 2>conftest.er1
3554 ac_status=$?
3555 grep -v '^ *+' conftest.er1 >conftest.err
3556 rm -f conftest.er1
3557 cat conftest.err >&5
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); } && {
3560 test -z "$ac_c_werror_flag" ||
3561 test ! -s conftest.err
3562 } && test -s conftest.$ac_objext; then
3563 ICC=yes
3564 else
3565 echo "$as_me: failed program was:" >&5
3566 sed 's/^/| /' conftest.$ac_ext >&5
3568 ICC=no
3571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3573 unset CFLAGS
3576 # Read the template
3578 . "$srcdir/src/template/$template" || exit
3580 # CFLAGS are selected so:
3581 # If the user specifies something in the environment, that is used.
3582 # else: If the template file set something, that is used.
3583 # else: If the compiler is GCC, then we use -O2.
3584 # else: If the compiler is something else, then we use -0.
3586 if test "$ac_env_CFLAGS_set" = set; then
3587 CFLAGS=$ac_env_CFLAGS_value
3588 elif test "${CFLAGS+set}" = set; then
3589 : # (keep what template set)
3590 elif test "$GCC" = yes; then
3591 CFLAGS="-O2"
3592 else
3593 # if the user selected debug mode, don't use -O
3594 if test "$enable_debug" != yes; then
3595 CFLAGS="-O"
3599 # Some versions of GCC support some additional useful warning flags.
3600 # Check whether they are supported, and add them to CFLAGS if so.
3601 # ICC pretends to be GCC but it's lying; it doesn't support these options.
3603 if test "$GCC" = yes -a "$ICC" = no; then
3604 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith -Winline"
3605 # These work in some but not all gcc versions
3606 { echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
3607 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6; }
3608 pgac_save_CFLAGS=$CFLAGS
3609 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
3610 cat >conftest.$ac_ext <<_ACEOF
3611 /* confdefs.h. */
3612 _ACEOF
3613 cat confdefs.h >>conftest.$ac_ext
3614 cat >>conftest.$ac_ext <<_ACEOF
3615 /* end confdefs.h. */
3618 main ()
3622 return 0;
3624 _ACEOF
3625 rm -f conftest.$ac_objext
3626 if { (ac_try="$ac_compile"
3627 case "(($ac_try" in
3628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629 *) ac_try_echo=$ac_try;;
3630 esac
3631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3632 (eval "$ac_compile") 2>conftest.er1
3633 ac_status=$?
3634 grep -v '^ *+' conftest.er1 >conftest.err
3635 rm -f conftest.er1
3636 cat conftest.err >&5
3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638 (exit $ac_status); } && {
3639 test -z "$ac_c_werror_flag" ||
3640 test ! -s conftest.err
3641 } && test -s conftest.$ac_objext; then
3642 { echo "$as_me:$LINENO: result: yes" >&5
3643 echo "${ECHO_T}yes" >&6; }
3644 else
3645 echo "$as_me: failed program was:" >&5
3646 sed 's/^/| /' conftest.$ac_ext >&5
3648 CFLAGS="$pgac_save_CFLAGS"
3649 { echo "$as_me:$LINENO: result: no" >&5
3650 echo "${ECHO_T}no" >&6; }
3653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3655 { echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
3656 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6; }
3657 pgac_save_CFLAGS=$CFLAGS
3658 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
3659 cat >conftest.$ac_ext <<_ACEOF
3660 /* confdefs.h. */
3661 _ACEOF
3662 cat confdefs.h >>conftest.$ac_ext
3663 cat >>conftest.$ac_ext <<_ACEOF
3664 /* end confdefs.h. */
3667 main ()
3671 return 0;
3673 _ACEOF
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 { echo "$as_me:$LINENO: result: yes" >&5
3692 echo "${ECHO_T}yes" >&6; }
3693 else
3694 echo "$as_me: failed program was:" >&5
3695 sed 's/^/| /' conftest.$ac_ext >&5
3697 CFLAGS="$pgac_save_CFLAGS"
3698 { echo "$as_me:$LINENO: result: no" >&5
3699 echo "${ECHO_T}no" >&6; }
3702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3704 # Disable strict-aliasing rules; needed for gcc 3.3+
3705 { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3706 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
3707 pgac_save_CFLAGS=$CFLAGS
3708 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
3709 cat >conftest.$ac_ext <<_ACEOF
3710 /* confdefs.h. */
3711 _ACEOF
3712 cat confdefs.h >>conftest.$ac_ext
3713 cat >>conftest.$ac_ext <<_ACEOF
3714 /* end confdefs.h. */
3717 main ()
3721 return 0;
3723 _ACEOF
3724 rm -f conftest.$ac_objext
3725 if { (ac_try="$ac_compile"
3726 case "(($ac_try" in
3727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3728 *) ac_try_echo=$ac_try;;
3729 esac
3730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3731 (eval "$ac_compile") 2>conftest.er1
3732 ac_status=$?
3733 grep -v '^ *+' conftest.er1 >conftest.err
3734 rm -f conftest.er1
3735 cat conftest.err >&5
3736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737 (exit $ac_status); } && {
3738 test -z "$ac_c_werror_flag" ||
3739 test ! -s conftest.err
3740 } && test -s conftest.$ac_objext; then
3741 { echo "$as_me:$LINENO: result: yes" >&5
3742 echo "${ECHO_T}yes" >&6; }
3743 else
3744 echo "$as_me: failed program was:" >&5
3745 sed 's/^/| /' conftest.$ac_ext >&5
3747 CFLAGS="$pgac_save_CFLAGS"
3748 { echo "$as_me:$LINENO: result: no" >&5
3749 echo "${ECHO_T}no" >&6; }
3752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3754 # Disable optimizations that assume no overflow; needed for gcc 4.3+
3755 { echo "$as_me:$LINENO: checking if $CC supports -fwrapv" >&5
3756 echo $ECHO_N "checking if $CC supports -fwrapv... $ECHO_C" >&6; }
3757 pgac_save_CFLAGS=$CFLAGS
3758 CFLAGS="$pgac_save_CFLAGS -fwrapv"
3759 cat >conftest.$ac_ext <<_ACEOF
3760 /* confdefs.h. */
3761 _ACEOF
3762 cat confdefs.h >>conftest.$ac_ext
3763 cat >>conftest.$ac_ext <<_ACEOF
3764 /* end confdefs.h. */
3767 main ()
3771 return 0;
3773 _ACEOF
3774 rm -f conftest.$ac_objext
3775 if { (ac_try="$ac_compile"
3776 case "(($ac_try" in
3777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3778 *) ac_try_echo=$ac_try;;
3779 esac
3780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3781 (eval "$ac_compile") 2>conftest.er1
3782 ac_status=$?
3783 grep -v '^ *+' conftest.er1 >conftest.err
3784 rm -f conftest.er1
3785 cat conftest.err >&5
3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); } && {
3788 test -z "$ac_c_werror_flag" ||
3789 test ! -s conftest.err
3790 } && test -s conftest.$ac_objext; then
3791 { echo "$as_me:$LINENO: result: yes" >&5
3792 echo "${ECHO_T}yes" >&6; }
3793 else
3794 echo "$as_me: failed program was:" >&5
3795 sed 's/^/| /' conftest.$ac_ext >&5
3797 CFLAGS="$pgac_save_CFLAGS"
3798 { echo "$as_me:$LINENO: result: no" >&5
3799 echo "${ECHO_T}no" >&6; }
3802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3804 elif test "$ICC" = yes; then
3805 # Intel's compiler has a bug/misoptimization in checking for
3806 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
3807 { echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
3808 echo $ECHO_N "checking if $CC supports -mp1... $ECHO_C" >&6; }
3809 pgac_save_CFLAGS=$CFLAGS
3810 CFLAGS="$pgac_save_CFLAGS -mp1"
3811 cat >conftest.$ac_ext <<_ACEOF
3812 /* confdefs.h. */
3813 _ACEOF
3814 cat confdefs.h >>conftest.$ac_ext
3815 cat >>conftest.$ac_ext <<_ACEOF
3816 /* end confdefs.h. */
3819 main ()
3823 return 0;
3825 _ACEOF
3826 rm -f conftest.$ac_objext
3827 if { (ac_try="$ac_compile"
3828 case "(($ac_try" in
3829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3830 *) ac_try_echo=$ac_try;;
3831 esac
3832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3833 (eval "$ac_compile") 2>conftest.er1
3834 ac_status=$?
3835 grep -v '^ *+' conftest.er1 >conftest.err
3836 rm -f conftest.er1
3837 cat conftest.err >&5
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); } && {
3840 test -z "$ac_c_werror_flag" ||
3841 test ! -s conftest.err
3842 } && test -s conftest.$ac_objext; then
3843 { echo "$as_me:$LINENO: result: yes" >&5
3844 echo "${ECHO_T}yes" >&6; }
3845 else
3846 echo "$as_me: failed program was:" >&5
3847 sed 's/^/| /' conftest.$ac_ext >&5
3849 CFLAGS="$pgac_save_CFLAGS"
3850 { echo "$as_me:$LINENO: result: no" >&5
3851 echo "${ECHO_T}no" >&6; }
3854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3856 # Make sure strict aliasing is off (though this is said to be the default)
3857 { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3858 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
3859 pgac_save_CFLAGS=$CFLAGS
3860 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
3861 cat >conftest.$ac_ext <<_ACEOF
3862 /* confdefs.h. */
3863 _ACEOF
3864 cat confdefs.h >>conftest.$ac_ext
3865 cat >>conftest.$ac_ext <<_ACEOF
3866 /* end confdefs.h. */
3869 main ()
3873 return 0;
3875 _ACEOF
3876 rm -f conftest.$ac_objext
3877 if { (ac_try="$ac_compile"
3878 case "(($ac_try" in
3879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880 *) ac_try_echo=$ac_try;;
3881 esac
3882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3883 (eval "$ac_compile") 2>conftest.er1
3884 ac_status=$?
3885 grep -v '^ *+' conftest.er1 >conftest.err
3886 rm -f conftest.er1
3887 cat conftest.err >&5
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); } && {
3890 test -z "$ac_c_werror_flag" ||
3891 test ! -s conftest.err
3892 } && test -s conftest.$ac_objext; then
3893 { echo "$as_me:$LINENO: result: yes" >&5
3894 echo "${ECHO_T}yes" >&6; }
3895 else
3896 echo "$as_me: failed program was:" >&5
3897 sed 's/^/| /' conftest.$ac_ext >&5
3899 CFLAGS="$pgac_save_CFLAGS"
3900 { echo "$as_me:$LINENO: result: no" >&5
3901 echo "${ECHO_T}no" >&6; }
3904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3906 elif test x"${CC}" = x"xlc"; then
3907 # AIX xlc has to have strict aliasing turned off too
3908 { echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
3909 echo $ECHO_N "checking if $CC supports -qnoansialias... $ECHO_C" >&6; }
3910 pgac_save_CFLAGS=$CFLAGS
3911 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
3912 cat >conftest.$ac_ext <<_ACEOF
3913 /* confdefs.h. */
3914 _ACEOF
3915 cat confdefs.h >>conftest.$ac_ext
3916 cat >>conftest.$ac_ext <<_ACEOF
3917 /* end confdefs.h. */
3920 main ()
3924 return 0;
3926 _ACEOF
3927 rm -f conftest.$ac_objext
3928 if { (ac_try="$ac_compile"
3929 case "(($ac_try" in
3930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3931 *) ac_try_echo=$ac_try;;
3932 esac
3933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3934 (eval "$ac_compile") 2>conftest.er1
3935 ac_status=$?
3936 grep -v '^ *+' conftest.er1 >conftest.err
3937 rm -f conftest.er1
3938 cat conftest.err >&5
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); } && {
3941 test -z "$ac_c_werror_flag" ||
3942 test ! -s conftest.err
3943 } && test -s conftest.$ac_objext; then
3944 { echo "$as_me:$LINENO: result: yes" >&5
3945 echo "${ECHO_T}yes" >&6; }
3946 else
3947 echo "$as_me: failed program was:" >&5
3948 sed 's/^/| /' conftest.$ac_ext >&5
3950 CFLAGS="$pgac_save_CFLAGS"
3951 { echo "$as_me:$LINENO: result: no" >&5
3952 echo "${ECHO_T}no" >&6; }
3955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3959 # supply -g if --enable-debug
3960 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
3961 CFLAGS="$CFLAGS -g"
3964 # enable profiling if --enable-profiling
3965 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
3966 if test "$GCC" = yes; then
3968 cat >>confdefs.h <<\_ACEOF
3969 #define PROFILE_PID_DIR 1
3970 _ACEOF
3972 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
3973 else
3974 { { echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
3975 echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
3976 { (exit 1); exit 1; }; }
3980 # We already have this in Makefile.win32, but configure needs it too
3981 if test "$PORTNAME" = "win32"; then
3982 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
3985 # Check if the compiler still works with the template settings
3986 { echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
3987 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6; }
3988 cat >conftest.$ac_ext <<_ACEOF
3989 /* confdefs.h. */
3990 _ACEOF
3991 cat confdefs.h >>conftest.$ac_ext
3992 cat >>conftest.$ac_ext <<_ACEOF
3993 /* end confdefs.h. */
3996 main ()
3998 return 0;
4000 return 0;
4002 _ACEOF
4003 rm -f conftest.$ac_objext conftest$ac_exeext
4004 if { (ac_try="$ac_link"
4005 case "(($ac_try" in
4006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4007 *) ac_try_echo=$ac_try;;
4008 esac
4009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4010 (eval "$ac_link") 2>conftest.er1
4011 ac_status=$?
4012 grep -v '^ *+' conftest.er1 >conftest.err
4013 rm -f conftest.er1
4014 cat conftest.err >&5
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); } && {
4017 test -z "$ac_c_werror_flag" ||
4018 test ! -s conftest.err
4019 } && test -s conftest$ac_exeext &&
4020 $as_test_x conftest$ac_exeext; then
4021 { echo "$as_me:$LINENO: result: yes" >&5
4022 echo "${ECHO_T}yes" >&6; }
4023 else
4024 echo "$as_me: failed program was:" >&5
4025 sed 's/^/| /' conftest.$ac_ext >&5
4027 { echo "$as_me:$LINENO: result: no" >&5
4028 echo "${ECHO_T}no" >&6; }
4029 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
4030 echo "$as_me: error: cannot proceed" >&2;}
4031 { (exit 1); exit 1; }; }
4034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4035 conftest$ac_exeext conftest.$ac_ext
4037 # Defend against gcc -ffast-math
4038 if test "$GCC" = yes; then
4039 cat >conftest.$ac_ext <<_ACEOF
4040 /* confdefs.h. */
4041 _ACEOF
4042 cat confdefs.h >>conftest.$ac_ext
4043 cat >>conftest.$ac_ext <<_ACEOF
4044 /* end confdefs.h. */
4047 main ()
4049 #ifdef __FAST_MATH__
4050 choke me
4051 #endif
4053 return 0;
4055 _ACEOF
4056 rm -f conftest.$ac_objext
4057 if { (ac_try="$ac_compile"
4058 case "(($ac_try" in
4059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4060 *) ac_try_echo=$ac_try;;
4061 esac
4062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4063 (eval "$ac_compile") 2>conftest.er1
4064 ac_status=$?
4065 grep -v '^ *+' conftest.er1 >conftest.err
4066 rm -f conftest.er1
4067 cat conftest.err >&5
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); } && {
4070 test -z "$ac_c_werror_flag" ||
4071 test ! -s conftest.err
4072 } && test -s conftest.$ac_objext; then
4074 else
4075 echo "$as_me: failed program was:" >&5
4076 sed 's/^/| /' conftest.$ac_ext >&5
4078 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4079 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4080 { (exit 1); exit 1; }; }
4083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4086 ac_ext=c
4087 ac_cpp='$CPP $CPPFLAGS'
4088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4091 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4092 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4093 # On Suns, sometimes $CPP names a directory.
4094 if test -n "$CPP" && test -d "$CPP"; then
4095 CPP=
4097 if test -z "$CPP"; then
4098 if test "${ac_cv_prog_CPP+set}" = set; then
4099 echo $ECHO_N "(cached) $ECHO_C" >&6
4100 else
4101 # Double quotes because CPP needs to be expanded
4102 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4104 ac_preproc_ok=false
4105 for ac_c_preproc_warn_flag in '' yes
4107 # Use a header file that comes with gcc, so configuring glibc
4108 # with a fresh cross-compiler works.
4109 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4110 # <limits.h> exists even on freestanding compilers.
4111 # On the NeXT, cc -E runs the code through the compiler's parser,
4112 # not just through cpp. "Syntax error" is here to catch this case.
4113 cat >conftest.$ac_ext <<_ACEOF
4114 /* confdefs.h. */
4115 _ACEOF
4116 cat confdefs.h >>conftest.$ac_ext
4117 cat >>conftest.$ac_ext <<_ACEOF
4118 /* end confdefs.h. */
4119 #ifdef __STDC__
4120 # include <limits.h>
4121 #else
4122 # include <assert.h>
4123 #endif
4124 Syntax error
4125 _ACEOF
4126 if { (ac_try="$ac_cpp conftest.$ac_ext"
4127 case "(($ac_try" in
4128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129 *) ac_try_echo=$ac_try;;
4130 esac
4131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4133 ac_status=$?
4134 grep -v '^ *+' conftest.er1 >conftest.err
4135 rm -f conftest.er1
4136 cat conftest.err >&5
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); } >/dev/null && {
4139 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4140 test ! -s conftest.err
4141 }; then
4143 else
4144 echo "$as_me: failed program was:" >&5
4145 sed 's/^/| /' conftest.$ac_ext >&5
4147 # Broken: fails on valid input.
4148 continue
4151 rm -f conftest.err conftest.$ac_ext
4153 # OK, works on sane cases. Now check whether nonexistent headers
4154 # can be detected and how.
4155 cat >conftest.$ac_ext <<_ACEOF
4156 /* confdefs.h. */
4157 _ACEOF
4158 cat confdefs.h >>conftest.$ac_ext
4159 cat >>conftest.$ac_ext <<_ACEOF
4160 /* end confdefs.h. */
4161 #include <ac_nonexistent.h>
4162 _ACEOF
4163 if { (ac_try="$ac_cpp conftest.$ac_ext"
4164 case "(($ac_try" in
4165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4166 *) ac_try_echo=$ac_try;;
4167 esac
4168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4169 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4170 ac_status=$?
4171 grep -v '^ *+' conftest.er1 >conftest.err
4172 rm -f conftest.er1
4173 cat conftest.err >&5
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); } >/dev/null && {
4176 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4177 test ! -s conftest.err
4178 }; then
4179 # Broken: success on invalid input.
4180 continue
4181 else
4182 echo "$as_me: failed program was:" >&5
4183 sed 's/^/| /' conftest.$ac_ext >&5
4185 # Passes both tests.
4186 ac_preproc_ok=:
4187 break
4190 rm -f conftest.err conftest.$ac_ext
4192 done
4193 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4194 rm -f conftest.err conftest.$ac_ext
4195 if $ac_preproc_ok; then
4196 break
4199 done
4200 ac_cv_prog_CPP=$CPP
4203 CPP=$ac_cv_prog_CPP
4204 else
4205 ac_cv_prog_CPP=$CPP
4207 { echo "$as_me:$LINENO: result: $CPP" >&5
4208 echo "${ECHO_T}$CPP" >&6; }
4209 ac_preproc_ok=false
4210 for ac_c_preproc_warn_flag in '' yes
4212 # Use a header file that comes with gcc, so configuring glibc
4213 # with a fresh cross-compiler works.
4214 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4215 # <limits.h> exists even on freestanding compilers.
4216 # On the NeXT, cc -E runs the code through the compiler's parser,
4217 # not just through cpp. "Syntax error" is here to catch this case.
4218 cat >conftest.$ac_ext <<_ACEOF
4219 /* confdefs.h. */
4220 _ACEOF
4221 cat confdefs.h >>conftest.$ac_ext
4222 cat >>conftest.$ac_ext <<_ACEOF
4223 /* end confdefs.h. */
4224 #ifdef __STDC__
4225 # include <limits.h>
4226 #else
4227 # include <assert.h>
4228 #endif
4229 Syntax error
4230 _ACEOF
4231 if { (ac_try="$ac_cpp conftest.$ac_ext"
4232 case "(($ac_try" in
4233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4234 *) ac_try_echo=$ac_try;;
4235 esac
4236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4237 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4238 ac_status=$?
4239 grep -v '^ *+' conftest.er1 >conftest.err
4240 rm -f conftest.er1
4241 cat conftest.err >&5
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); } >/dev/null && {
4244 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4245 test ! -s conftest.err
4246 }; then
4248 else
4249 echo "$as_me: failed program was:" >&5
4250 sed 's/^/| /' conftest.$ac_ext >&5
4252 # Broken: fails on valid input.
4253 continue
4256 rm -f conftest.err conftest.$ac_ext
4258 # OK, works on sane cases. Now check whether nonexistent headers
4259 # can be detected and how.
4260 cat >conftest.$ac_ext <<_ACEOF
4261 /* confdefs.h. */
4262 _ACEOF
4263 cat confdefs.h >>conftest.$ac_ext
4264 cat >>conftest.$ac_ext <<_ACEOF
4265 /* end confdefs.h. */
4266 #include <ac_nonexistent.h>
4267 _ACEOF
4268 if { (ac_try="$ac_cpp conftest.$ac_ext"
4269 case "(($ac_try" in
4270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271 *) ac_try_echo=$ac_try;;
4272 esac
4273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4275 ac_status=$?
4276 grep -v '^ *+' conftest.er1 >conftest.err
4277 rm -f conftest.er1
4278 cat conftest.err >&5
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); } >/dev/null && {
4281 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4282 test ! -s conftest.err
4283 }; then
4284 # Broken: success on invalid input.
4285 continue
4286 else
4287 echo "$as_me: failed program was:" >&5
4288 sed 's/^/| /' conftest.$ac_ext >&5
4290 # Passes both tests.
4291 ac_preproc_ok=:
4292 break
4295 rm -f conftest.err conftest.$ac_ext
4297 done
4298 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4299 rm -f conftest.err conftest.$ac_ext
4300 if $ac_preproc_ok; then
4302 else
4303 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4304 See \`config.log' for more details." >&5
4305 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4306 See \`config.log' for more details." >&2;}
4307 { (exit 1); exit 1; }; }
4310 ac_ext=c
4311 ac_cpp='$CPP $CPPFLAGS'
4312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4318 # Create compiler version string
4319 if test x"$GCC" = x"yes" ; then
4320 cc_string="GCC `${CC} --version | sed q`"
4321 else
4322 cc_string=$CC
4325 cat >>confdefs.h <<_ACEOF
4326 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
4327 _ACEOF
4332 # Set up TAS assembly code if needed; the template file has now had its
4333 # chance to request this.
4335 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
4338 if test "$need_tas" = yes ; then
4339 TAS=tas.o
4340 else
4341 TAS=""
4347 # Automatic dependency tracking
4350 pgac_args="$pgac_args enable_depend"
4352 # Check whether --enable-depend was given.
4353 if test "${enable_depend+set}" = set; then
4354 enableval=$enable_depend;
4355 case $enableval in
4356 yes)
4357 autodepend=yes
4363 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
4364 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
4365 { (exit 1); exit 1; }; }
4367 esac
4369 else
4370 enable_depend=no
4379 # Enable assert checks
4382 pgac_args="$pgac_args enable_cassert"
4384 # Check whether --enable-cassert was given.
4385 if test "${enable_cassert+set}" = set; then
4386 enableval=$enable_cassert;
4387 case $enableval in
4388 yes)
4390 cat >>confdefs.h <<\_ACEOF
4391 #define USE_ASSERT_CHECKING 1
4392 _ACEOF
4399 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
4400 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
4401 { (exit 1); exit 1; }; }
4403 esac
4405 else
4406 enable_cassert=no
4414 # Include directories
4416 ac_save_IFS=$IFS
4417 IFS="${IFS}${PATH_SEPARATOR}"
4418 # SRCH_INC comes from the template file
4419 for dir in $with_includes $SRCH_INC; do
4420 if test -d "$dir"; then
4421 INCLUDES="$INCLUDES -I$dir"
4422 else
4423 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
4424 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
4426 done
4427 IFS=$ac_save_IFS
4432 # Library directories
4434 ac_save_IFS=$IFS
4435 IFS="${IFS}${PATH_SEPARATOR}"
4436 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
4437 for dir in $LIBRARY_DIRS $SRCH_LIB; do
4438 if test -d "$dir"; then
4439 LIBDIRS="$LIBDIRS -L$dir"
4440 else
4441 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
4442 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
4444 done
4445 IFS=$ac_save_IFS
4448 # Enable thread-safe client libraries
4450 { echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
4451 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6; }
4452 if test "$PORTNAME" != "win32"; then
4454 pgac_args="$pgac_args enable_thread_safety"
4456 # Check whether --enable-thread-safety was given.
4457 if test "${enable_thread_safety+set}" = set; then
4458 enableval=$enable_thread_safety;
4459 case $enableval in
4460 yes)
4467 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4468 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4469 { (exit 1); exit 1; }; }
4471 esac
4473 else
4474 enable_thread_safety=no
4479 else
4480 # Win32 should always use threads
4482 pgac_args="$pgac_args enable_thread_safety"
4484 # Check whether --enable-thread-safety was given.
4485 if test "${enable_thread_safety+set}" = set; then
4486 enableval=$enable_thread_safety;
4487 case $enableval in
4488 yes)
4495 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4496 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4497 { (exit 1); exit 1; }; }
4499 esac
4501 else
4502 enable_thread_safety=yes
4510 pgac_args="$pgac_args enable_thread_safety_force"
4512 # Check whether --enable-thread-safety-force was given.
4513 if test "${enable_thread_safety_force+set}" = set; then
4514 enableval=$enable_thread_safety_force;
4515 case $enableval in
4516 yes)
4523 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
4524 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
4525 { (exit 1); exit 1; }; }
4527 esac
4529 else
4530 enable_thread_safety_force=no
4535 if test "$enable_thread_safety" = yes -o \
4536 "$enable_thread_safety_force" = yes; then
4537 enable_thread_safety="yes" # for 'force'
4539 cat >>confdefs.h <<\_ACEOF
4540 #define ENABLE_THREAD_SAFETY 1
4541 _ACEOF
4544 { echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
4545 echo "${ECHO_T}$enable_thread_safety" >&6; }
4549 # Optionally build Tcl modules (PL/Tcl)
4551 { echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
4552 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6; }
4554 pgac_args="$pgac_args with_tcl"
4557 # Check whether --with-tcl was given.
4558 if test "${with_tcl+set}" = set; then
4559 withval=$with_tcl;
4560 case $withval in
4561 yes)
4568 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
4569 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
4570 { (exit 1); exit 1; }; }
4572 esac
4574 else
4575 with_tcl=no
4580 { echo "$as_me:$LINENO: result: $with_tcl" >&5
4581 echo "${ECHO_T}$with_tcl" >&6; }
4584 # We see if the path to the Tcl/Tk configuration scripts is specified.
4585 # This will override the use of tclsh to find the paths to search.
4588 pgac_args="$pgac_args with_tclconfig"
4591 # Check whether --with-tclconfig was given.
4592 if test "${with_tclconfig+set}" = set; then
4593 withval=$with_tclconfig;
4594 case $withval in
4595 yes)
4596 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4597 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4598 { (exit 1); exit 1; }; }
4601 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4602 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4603 { (exit 1); exit 1; }; }
4608 esac
4615 # Optionally build Perl modules (PL/Perl)
4617 { echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
4618 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6; }
4620 pgac_args="$pgac_args with_perl"
4623 # Check whether --with-perl was given.
4624 if test "${with_perl+set}" = set; then
4625 withval=$with_perl;
4626 case $withval in
4627 yes)
4634 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
4635 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
4636 { (exit 1); exit 1; }; }
4638 esac
4640 else
4641 with_perl=no
4646 { echo "$as_me:$LINENO: result: $with_perl" >&5
4647 echo "${ECHO_T}$with_perl" >&6; }
4651 # Optionally build Python modules (PL/Python)
4653 { echo "$as_me:$LINENO: checking whether to build Python modules" >&5
4654 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6; }
4656 pgac_args="$pgac_args with_python"
4659 # Check whether --with-python was given.
4660 if test "${with_python+set}" = set; then
4661 withval=$with_python;
4662 case $withval in
4663 yes)
4670 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
4671 echo "$as_me: error: no argument expected for --with-python option" >&2;}
4672 { (exit 1); exit 1; }; }
4674 esac
4676 else
4677 with_python=no
4682 { echo "$as_me:$LINENO: result: $with_python" >&5
4683 echo "${ECHO_T}$with_python" >&6; }
4687 # GSSAPI
4689 { echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
4690 echo $ECHO_N "checking whether to build with GSSAPI support... $ECHO_C" >&6; }
4692 pgac_args="$pgac_args with_gssapi"
4695 # Check whether --with-gssapi was given.
4696 if test "${with_gssapi+set}" = set; then
4697 withval=$with_gssapi;
4698 case $withval in
4699 yes)
4702 cat >>confdefs.h <<\_ACEOF
4703 #define ENABLE_GSS 1
4704 _ACEOF
4706 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
4713 { { echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
4714 echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
4715 { (exit 1); exit 1; }; }
4717 esac
4719 else
4720 with_gssapi=no
4725 { echo "$as_me:$LINENO: result: $with_gssapi" >&5
4726 echo "${ECHO_T}$with_gssapi" >&6; }
4730 # Kerberos 5
4732 { echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
4733 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6; }
4735 pgac_args="$pgac_args with_krb5"
4738 # Check whether --with-krb5 was given.
4739 if test "${with_krb5+set}" = set; then
4740 withval=$with_krb5;
4741 case $withval in
4742 yes)
4745 cat >>confdefs.h <<\_ACEOF
4746 #define KRB5 1
4747 _ACEOF
4749 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
4756 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
4757 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
4758 { (exit 1); exit 1; }; }
4760 esac
4762 else
4763 with_krb5=no
4768 { echo "$as_me:$LINENO: result: $with_krb5" >&5
4769 echo "${ECHO_T}$with_krb5" >&6; }
4777 # Kerberos configuration parameters
4780 pgac_args="$pgac_args with_krb_srvnam"
4783 # Check whether --with-krb-srvnam was given.
4784 if test "${with_krb_srvnam+set}" = set; then
4785 withval=$with_krb_srvnam;
4786 case $withval in
4787 yes)
4788 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
4789 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
4790 { (exit 1); exit 1; }; }
4793 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
4794 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
4795 { (exit 1); exit 1; }; }
4800 esac
4802 else
4803 with_krb_srvnam="postgres"
4808 cat >>confdefs.h <<_ACEOF
4809 #define PG_KRB_SRVNAM "$with_krb_srvnam"
4810 _ACEOF
4815 # PAM
4817 { echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
4818 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6; }
4820 pgac_args="$pgac_args with_pam"
4823 # Check whether --with-pam was given.
4824 if test "${with_pam+set}" = set; then
4825 withval=$with_pam;
4826 case $withval in
4827 yes)
4829 cat >>confdefs.h <<\_ACEOF
4830 #define USE_PAM 1
4831 _ACEOF
4838 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
4839 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
4840 { (exit 1); exit 1; }; }
4842 esac
4844 else
4845 with_pam=no
4850 { echo "$as_me:$LINENO: result: $with_pam" >&5
4851 echo "${ECHO_T}$with_pam" >&6; }
4856 # LDAP
4858 { echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
4859 echo $ECHO_N "checking whether to build with LDAP support... $ECHO_C" >&6; }
4861 pgac_args="$pgac_args with_ldap"
4864 # Check whether --with-ldap was given.
4865 if test "${with_ldap+set}" = set; then
4866 withval=$with_ldap;
4867 case $withval in
4868 yes)
4870 cat >>confdefs.h <<\_ACEOF
4871 #define USE_LDAP 1
4872 _ACEOF
4879 { { echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
4880 echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
4881 { (exit 1); exit 1; }; }
4883 esac
4885 else
4886 with_ldap=no
4891 { echo "$as_me:$LINENO: result: $with_ldap" >&5
4892 echo "${ECHO_T}$with_ldap" >&6; }
4897 # Bonjour
4899 { echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
4900 echo $ECHO_N "checking whether to build with Bonjour support... $ECHO_C" >&6; }
4902 pgac_args="$pgac_args with_bonjour"
4905 # Check whether --with-bonjour was given.
4906 if test "${with_bonjour+set}" = set; then
4907 withval=$with_bonjour;
4908 case $withval in
4909 yes)
4911 cat >>confdefs.h <<\_ACEOF
4912 #define USE_BONJOUR 1
4913 _ACEOF
4920 { { echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
4921 echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
4922 { (exit 1); exit 1; }; }
4924 esac
4926 else
4927 with_bonjour=no
4932 { echo "$as_me:$LINENO: result: $with_bonjour" >&5
4933 echo "${ECHO_T}$with_bonjour" >&6; }
4938 # OpenSSL
4940 { echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
4941 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6; }
4943 pgac_args="$pgac_args with_openssl"
4946 # Check whether --with-openssl was given.
4947 if test "${with_openssl+set}" = set; then
4948 withval=$with_openssl;
4949 case $withval in
4950 yes)
4952 cat >>confdefs.h <<\_ACEOF
4953 #define USE_SSL 1
4954 _ACEOF
4961 { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
4962 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
4963 { (exit 1); exit 1; }; }
4965 esac
4967 else
4968 with_openssl=no
4973 { echo "$as_me:$LINENO: result: $with_openssl" >&5
4974 echo "${ECHO_T}$with_openssl" >&6; }
4979 # Readline
4982 pgac_args="$pgac_args with_readline"
4985 # Check whether --with-readline was given.
4986 if test "${with_readline+set}" = set; then
4987 withval=$with_readline;
4988 case $withval in
4989 yes)
4996 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
4997 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
4998 { (exit 1); exit 1; }; }
5000 esac
5002 else
5003 with_readline=yes
5008 # readline on MinGW has problems with backslashes in psql and other bugs.
5009 # This is particularly a problem with non-US code pages.
5010 # Therefore disable its use until we understand the cause. 2004-07-20
5011 if test "$PORTNAME" = "win32"; then
5012 if test "$with_readline" = yes; then
5013 { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5014 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5015 with_readline=no
5021 # Prefer libedit
5024 pgac_args="$pgac_args with_libedit_preferred"
5027 # Check whether --with-libedit-preferred was given.
5028 if test "${with_libedit_preferred+set}" = set; then
5029 withval=$with_libedit_preferred;
5030 case $withval in
5031 yes)
5038 { { echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5039 echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5040 { (exit 1); exit 1; }; }
5042 esac
5044 else
5045 with_libedit_preferred=no
5053 # OSSP UUID library
5056 pgac_args="$pgac_args with_ossp_uuid"
5059 # Check whether --with-ossp-uuid was given.
5060 if test "${with_ossp_uuid+set}" = set; then
5061 withval=$with_ossp_uuid;
5062 case $withval in
5063 yes)
5070 { { echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5071 echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5072 { (exit 1); exit 1; }; }
5074 esac
5076 else
5077 with_ossp_uuid=no
5086 # XML
5089 pgac_args="$pgac_args with_libxml"
5092 # Check whether --with-libxml was given.
5093 if test "${with_libxml+set}" = set; then
5094 withval=$with_libxml;
5095 case $withval in
5096 yes)
5098 cat >>confdefs.h <<\_ACEOF
5099 #define USE_LIBXML 1
5100 _ACEOF
5107 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5108 echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5109 { (exit 1); exit 1; }; }
5111 esac
5113 else
5114 with_libxml=no
5120 if test "$with_libxml" = yes ; then
5121 for ac_prog in xml2-config
5123 # Extract the first word of "$ac_prog", so it can be a program name with args.
5124 set dummy $ac_prog; ac_word=$2
5125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5127 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5128 echo $ECHO_N "(cached) $ECHO_C" >&6
5129 else
5130 if test -n "$XML2_CONFIG"; then
5131 ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5132 else
5133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134 for as_dir in $PATH
5136 IFS=$as_save_IFS
5137 test -z "$as_dir" && as_dir=.
5138 for ac_exec_ext in '' $ac_executable_extensions; do
5139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5140 ac_cv_prog_XML2_CONFIG="$ac_prog"
5141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5142 break 2
5144 done
5145 done
5146 IFS=$as_save_IFS
5150 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5151 if test -n "$XML2_CONFIG"; then
5152 { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5153 echo "${ECHO_T}$XML2_CONFIG" >&6; }
5154 else
5155 { echo "$as_me:$LINENO: result: no" >&5
5156 echo "${ECHO_T}no" >&6; }
5160 test -n "$XML2_CONFIG" && break
5161 done
5163 if test -n "$XML2_CONFIG"; then
5164 for pgac_option in `$XML2_CONFIG --cflags`; do
5165 case $pgac_option in
5166 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5167 esac
5168 done
5169 for pgac_option in `$XML2_CONFIG --libs`; do
5170 case $pgac_option in
5171 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5172 esac
5173 done
5180 # XSLT
5183 pgac_args="$pgac_args with_libxslt"
5186 # Check whether --with-libxslt was given.
5187 if test "${with_libxslt+set}" = set; then
5188 withval=$with_libxslt;
5189 case $withval in
5190 yes)
5192 cat >>confdefs.h <<\_ACEOF
5193 #define USE_LIBXSLT 1
5194 _ACEOF
5201 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5202 echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5203 { (exit 1); exit 1; }; }
5205 esac
5207 else
5208 with_libxslt=no
5218 # tzdata
5221 pgac_args="$pgac_args with_system_tzdata"
5224 # Check whether --with-system-tzdata was given.
5225 if test "${with_system_tzdata+set}" = set; then
5226 withval=$with_system_tzdata;
5227 case $withval in
5228 yes)
5229 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5230 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5231 { (exit 1); exit 1; }; }
5234 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5235 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5236 { (exit 1); exit 1; }; }
5241 esac
5249 # Zlib
5252 pgac_args="$pgac_args with_zlib"
5255 # Check whether --with-zlib was given.
5256 if test "${with_zlib+set}" = set; then
5257 withval=$with_zlib;
5258 case $withval in
5259 yes)
5266 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5267 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5268 { (exit 1); exit 1; }; }
5270 esac
5272 else
5273 with_zlib=yes
5281 # Elf
5284 # Assume system is ELF if it predefines __ELF__ as 1,
5285 # otherwise believe host_os based default.
5286 case $host_os in
5287 freebsd1*|freebsd2*) elf=no;;
5288 freebsd3*|freebsd4*) elf=yes;;
5289 esac
5292 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5293 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5294 if test "${ac_cv_path_GREP+set}" = set; then
5295 echo $ECHO_N "(cached) $ECHO_C" >&6
5296 else
5297 # Extract the first word of "grep ggrep" to use in msg output
5298 if test -z "$GREP"; then
5299 set dummy grep ggrep; ac_prog_name=$2
5300 if test "${ac_cv_path_GREP+set}" = set; then
5301 echo $ECHO_N "(cached) $ECHO_C" >&6
5302 else
5303 ac_path_GREP_found=false
5304 # Loop through the user's path and test for each of PROGNAME-LIST
5305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5306 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5308 IFS=$as_save_IFS
5309 test -z "$as_dir" && as_dir=.
5310 for ac_prog in grep ggrep; do
5311 for ac_exec_ext in '' $ac_executable_extensions; do
5312 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5313 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5314 # Check for GNU ac_path_GREP and select it if it is found.
5315 # Check for GNU $ac_path_GREP
5316 case `"$ac_path_GREP" --version 2>&1` in
5317 *GNU*)
5318 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5320 ac_count=0
5321 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5322 while :
5324 cat "conftest.in" "conftest.in" >"conftest.tmp"
5325 mv "conftest.tmp" "conftest.in"
5326 cp "conftest.in" "conftest.nl"
5327 echo 'GREP' >> "conftest.nl"
5328 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5329 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5330 ac_count=`expr $ac_count + 1`
5331 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5332 # Best one so far, save it but keep looking for a better one
5333 ac_cv_path_GREP="$ac_path_GREP"
5334 ac_path_GREP_max=$ac_count
5336 # 10*(2^10) chars as input seems more than enough
5337 test $ac_count -gt 10 && break
5338 done
5339 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5340 esac
5343 $ac_path_GREP_found && break 3
5344 done
5345 done
5347 done
5348 IFS=$as_save_IFS
5353 GREP="$ac_cv_path_GREP"
5354 if test -z "$GREP"; then
5355 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5356 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5357 { (exit 1); exit 1; }; }
5360 else
5361 ac_cv_path_GREP=$GREP
5366 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5367 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5368 GREP="$ac_cv_path_GREP"
5371 { echo "$as_me:$LINENO: checking for egrep" >&5
5372 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5373 if test "${ac_cv_path_EGREP+set}" = set; then
5374 echo $ECHO_N "(cached) $ECHO_C" >&6
5375 else
5376 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5377 then ac_cv_path_EGREP="$GREP -E"
5378 else
5379 # Extract the first word of "egrep" to use in msg output
5380 if test -z "$EGREP"; then
5381 set dummy egrep; ac_prog_name=$2
5382 if test "${ac_cv_path_EGREP+set}" = set; then
5383 echo $ECHO_N "(cached) $ECHO_C" >&6
5384 else
5385 ac_path_EGREP_found=false
5386 # Loop through the user's path and test for each of PROGNAME-LIST
5387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5390 IFS=$as_save_IFS
5391 test -z "$as_dir" && as_dir=.
5392 for ac_prog in egrep; do
5393 for ac_exec_ext in '' $ac_executable_extensions; do
5394 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5395 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5396 # Check for GNU ac_path_EGREP and select it if it is found.
5397 # Check for GNU $ac_path_EGREP
5398 case `"$ac_path_EGREP" --version 2>&1` in
5399 *GNU*)
5400 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5402 ac_count=0
5403 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5404 while :
5406 cat "conftest.in" "conftest.in" >"conftest.tmp"
5407 mv "conftest.tmp" "conftest.in"
5408 cp "conftest.in" "conftest.nl"
5409 echo 'EGREP' >> "conftest.nl"
5410 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5411 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5412 ac_count=`expr $ac_count + 1`
5413 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5414 # Best one so far, save it but keep looking for a better one
5415 ac_cv_path_EGREP="$ac_path_EGREP"
5416 ac_path_EGREP_max=$ac_count
5418 # 10*(2^10) chars as input seems more than enough
5419 test $ac_count -gt 10 && break
5420 done
5421 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5422 esac
5425 $ac_path_EGREP_found && break 3
5426 done
5427 done
5429 done
5430 IFS=$as_save_IFS
5435 EGREP="$ac_cv_path_EGREP"
5436 if test -z "$EGREP"; then
5437 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5438 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5439 { (exit 1); exit 1; }; }
5442 else
5443 ac_cv_path_EGREP=$EGREP
5449 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5450 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5451 EGREP="$ac_cv_path_EGREP"
5454 cat >conftest.$ac_ext <<_ACEOF
5455 /* confdefs.h. */
5456 _ACEOF
5457 cat confdefs.h >>conftest.$ac_ext
5458 cat >>conftest.$ac_ext <<_ACEOF
5459 /* end confdefs.h. */
5460 #if __ELF__
5462 #endif
5464 _ACEOF
5465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5466 $EGREP "yes" >/dev/null 2>&1; then
5467 ELF_SYS=true
5468 else
5469 if test "X$elf" = "Xyes" ; then
5470 ELF_SYS=true
5471 else
5472 ELF_SYS=
5475 rm -f conftest*
5480 # Assignments
5483 CPPFLAGS="$CPPFLAGS $INCLUDES"
5484 LDFLAGS="$LDFLAGS $LIBDIRS"
5489 # Check whether --with-gnu-ld was given.
5490 if test "${with_gnu_ld+set}" = set; then
5491 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5492 else
5493 with_gnu_ld=no
5496 ac_prog=ld
5497 if test "$GCC" = yes; then
5498 # Check if gcc -print-prog-name=ld gives a path.
5499 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5500 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
5501 case $host in
5502 *-*-mingw*)
5503 # gcc leaves a trailing carriage return which upsets mingw
5504 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5506 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5507 esac
5508 case "$ac_prog" in
5509 # Accept absolute paths.
5510 [\\/]* | [A-Za-z]:[\\/]*)
5511 re_direlt='/[^/][^/]*/\.\./'
5512 # Canonicalize the path of ld
5513 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5514 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5515 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5516 done
5517 test -z "$LD" && LD="$ac_prog"
5520 # If it fails, then pretend we aren't using GCC.
5521 ac_prog=ld
5524 # If it is relative, then search for the first ld in PATH.
5525 with_gnu_ld=unknown
5527 esac
5528 elif test "$with_gnu_ld" = yes; then
5529 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5530 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5531 else
5532 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5533 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5535 if test "${ac_cv_path_LD+set}" = set; then
5536 echo $ECHO_N "(cached) $ECHO_C" >&6
5537 else
5538 if test -z "$LD"; then
5539 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5540 for ac_dir in $PATH; do
5541 test -z "$ac_dir" && ac_dir=.
5542 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5543 ac_cv_path_LD="$ac_dir/$ac_prog"
5544 # Check to see if the program is GNU ld. I'd rather use --version,
5545 # but apparently some GNU ld's only accept -v.
5546 # Break only if it was the GNU/non-GNU ld that we prefer.
5547 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5548 test "$with_gnu_ld" != no && break
5549 else
5550 test "$with_gnu_ld" != yes && break
5553 done
5554 IFS="$ac_save_ifs"
5555 else
5556 ac_cv_path_LD="$LD" # Let the user override the test with a path.
5560 LD="$ac_cv_path_LD"
5561 if test -n "$LD"; then
5562 { echo "$as_me:$LINENO: result: $LD" >&5
5563 echo "${ECHO_T}$LD" >&6; }
5564 else
5565 { echo "$as_me:$LINENO: result: no" >&5
5566 echo "${ECHO_T}no" >&6; }
5568 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5569 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5570 { (exit 1); exit 1; }; }
5571 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5572 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5573 if test "${ac_cv_prog_gnu_ld+set}" = set; then
5574 echo $ECHO_N "(cached) $ECHO_C" >&6
5575 else
5576 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5577 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5578 ac_cv_prog_gnu_ld=yes
5579 else
5580 ac_cv_prog_gnu_ld=no
5583 { echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
5584 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6; }
5585 with_gnu_ld=$ac_cv_prog_gnu_ld
5590 case $host_os in sysv5*)
5591 { echo "$as_me:$LINENO: checking whether ld -R works" >&5
5592 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6; }
5593 if test "${pgac_cv_prog_ld_R+set}" = set; then
5594 echo $ECHO_N "(cached) $ECHO_C" >&6
5595 else
5597 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
5598 cat >conftest.$ac_ext <<_ACEOF
5599 /* confdefs.h. */
5600 _ACEOF
5601 cat confdefs.h >>conftest.$ac_ext
5602 cat >>conftest.$ac_ext <<_ACEOF
5603 /* end confdefs.h. */
5606 main ()
5610 return 0;
5612 _ACEOF
5613 rm -f conftest.$ac_objext conftest$ac_exeext
5614 if { (ac_try="$ac_link"
5615 case "(($ac_try" in
5616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5617 *) ac_try_echo=$ac_try;;
5618 esac
5619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5620 (eval "$ac_link") 2>conftest.er1
5621 ac_status=$?
5622 grep -v '^ *+' conftest.er1 >conftest.err
5623 rm -f conftest.er1
5624 cat conftest.err >&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); } && {
5627 test -z "$ac_c_werror_flag" ||
5628 test ! -s conftest.err
5629 } && test -s conftest$ac_exeext &&
5630 $as_test_x conftest$ac_exeext; then
5631 pgac_cv_prog_ld_R=yes
5632 else
5633 echo "$as_me: failed program was:" >&5
5634 sed 's/^/| /' conftest.$ac_ext >&5
5636 pgac_cv_prog_ld_R=no
5639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5640 conftest$ac_exeext conftest.$ac_ext
5641 LDFLAGS=$pgac_save_LDFLAGS
5644 { echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
5645 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6; }
5646 ld_R_works=$pgac_cv_prog_ld_R
5648 esac
5649 if test -n "$ac_tool_prefix"; then
5650 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5651 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5652 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5654 if test "${ac_cv_prog_RANLIB+set}" = set; then
5655 echo $ECHO_N "(cached) $ECHO_C" >&6
5656 else
5657 if test -n "$RANLIB"; then
5658 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5659 else
5660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5661 for as_dir in $PATH
5663 IFS=$as_save_IFS
5664 test -z "$as_dir" && as_dir=.
5665 for ac_exec_ext in '' $ac_executable_extensions; do
5666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5667 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5669 break 2
5671 done
5672 done
5673 IFS=$as_save_IFS
5677 RANLIB=$ac_cv_prog_RANLIB
5678 if test -n "$RANLIB"; then
5679 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5680 echo "${ECHO_T}$RANLIB" >&6; }
5681 else
5682 { echo "$as_me:$LINENO: result: no" >&5
5683 echo "${ECHO_T}no" >&6; }
5688 if test -z "$ac_cv_prog_RANLIB"; then
5689 ac_ct_RANLIB=$RANLIB
5690 # Extract the first word of "ranlib", so it can be a program name with args.
5691 set dummy ranlib; ac_word=$2
5692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5694 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5695 echo $ECHO_N "(cached) $ECHO_C" >&6
5696 else
5697 if test -n "$ac_ct_RANLIB"; then
5698 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5699 else
5700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5701 for as_dir in $PATH
5703 IFS=$as_save_IFS
5704 test -z "$as_dir" && as_dir=.
5705 for ac_exec_ext in '' $ac_executable_extensions; do
5706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5707 ac_cv_prog_ac_ct_RANLIB="ranlib"
5708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5709 break 2
5711 done
5712 done
5713 IFS=$as_save_IFS
5717 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5718 if test -n "$ac_ct_RANLIB"; then
5719 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5720 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5721 else
5722 { echo "$as_me:$LINENO: result: no" >&5
5723 echo "${ECHO_T}no" >&6; }
5726 if test "x$ac_ct_RANLIB" = x; then
5727 RANLIB=":"
5728 else
5729 case $cross_compiling:$ac_tool_warned in
5730 yes:)
5731 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5732 whose name does not start with the host triplet. If you think this
5733 configuration is useful to you, please write to autoconf@gnu.org." >&5
5734 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5735 whose name does not start with the host triplet. If you think this
5736 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5737 ac_tool_warned=yes ;;
5738 esac
5739 RANLIB=$ac_ct_RANLIB
5741 else
5742 RANLIB="$ac_cv_prog_RANLIB"
5746 if test -n "$ac_tool_prefix"; then
5747 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5748 set dummy ${ac_tool_prefix}strip; ac_word=$2
5749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5751 if test "${ac_cv_prog_STRIP+set}" = set; then
5752 echo $ECHO_N "(cached) $ECHO_C" >&6
5753 else
5754 if test -n "$STRIP"; then
5755 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5756 else
5757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758 for as_dir in $PATH
5760 IFS=$as_save_IFS
5761 test -z "$as_dir" && as_dir=.
5762 for ac_exec_ext in '' $ac_executable_extensions; do
5763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5764 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5766 break 2
5768 done
5769 done
5770 IFS=$as_save_IFS
5774 STRIP=$ac_cv_prog_STRIP
5775 if test -n "$STRIP"; then
5776 { echo "$as_me:$LINENO: result: $STRIP" >&5
5777 echo "${ECHO_T}$STRIP" >&6; }
5778 else
5779 { echo "$as_me:$LINENO: result: no" >&5
5780 echo "${ECHO_T}no" >&6; }
5785 if test -z "$ac_cv_prog_STRIP"; then
5786 ac_ct_STRIP=$STRIP
5787 # Extract the first word of "strip", so it can be a program name with args.
5788 set dummy strip; ac_word=$2
5789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5791 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5792 echo $ECHO_N "(cached) $ECHO_C" >&6
5793 else
5794 if test -n "$ac_ct_STRIP"; then
5795 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5796 else
5797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5798 for as_dir in $PATH
5800 IFS=$as_save_IFS
5801 test -z "$as_dir" && as_dir=.
5802 for ac_exec_ext in '' $ac_executable_extensions; do
5803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5804 ac_cv_prog_ac_ct_STRIP="strip"
5805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5806 break 2
5808 done
5809 done
5810 IFS=$as_save_IFS
5814 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5815 if test -n "$ac_ct_STRIP"; then
5816 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5817 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5818 else
5819 { echo "$as_me:$LINENO: result: no" >&5
5820 echo "${ECHO_T}no" >&6; }
5823 if test "x$ac_ct_STRIP" = x; then
5824 STRIP=":"
5825 else
5826 case $cross_compiling:$ac_tool_warned in
5827 yes:)
5828 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5829 whose name does not start with the host triplet. If you think this
5830 configuration is useful to you, please write to autoconf@gnu.org." >&5
5831 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5832 whose name does not start with the host triplet. If you think this
5833 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5834 ac_tool_warned=yes ;;
5835 esac
5836 STRIP=$ac_ct_STRIP
5838 else
5839 STRIP="$ac_cv_prog_STRIP"
5843 { echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
5844 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6; }
5845 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
5846 STRIP_STATIC_LIB="$STRIP -x"
5847 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
5848 { echo "$as_me:$LINENO: result: yes" >&5
5849 echo "${ECHO_T}yes" >&6; }
5850 else
5851 STRIP_STATIC_LIB=:
5852 STRIP_SHARED_LIB=:
5853 { echo "$as_me:$LINENO: result: no" >&5
5854 echo "${ECHO_T}no" >&6; }
5860 # Extract the first word of "tar", so it can be a program name with args.
5861 set dummy tar; ac_word=$2
5862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5864 if test "${ac_cv_path_TAR+set}" = set; then
5865 echo $ECHO_N "(cached) $ECHO_C" >&6
5866 else
5867 case $TAR in
5868 [\\/]* | ?:[\\/]*)
5869 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873 for as_dir in $PATH
5875 IFS=$as_save_IFS
5876 test -z "$as_dir" && as_dir=.
5877 for ac_exec_ext in '' $ac_executable_extensions; do
5878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5879 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5881 break 2
5883 done
5884 done
5885 IFS=$as_save_IFS
5888 esac
5890 TAR=$ac_cv_path_TAR
5891 if test -n "$TAR"; then
5892 { echo "$as_me:$LINENO: result: $TAR" >&5
5893 echo "${ECHO_T}$TAR" >&6; }
5894 else
5895 { echo "$as_me:$LINENO: result: no" >&5
5896 echo "${ECHO_T}no" >&6; }
5900 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5901 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5902 LN_S=$as_ln_s
5903 if test "$LN_S" = "ln -s"; then
5904 { echo "$as_me:$LINENO: result: yes" >&5
5905 echo "${ECHO_T}yes" >&6; }
5906 else
5907 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5908 echo "${ECHO_T}no, using $LN_S" >&6; }
5911 for ac_prog in gawk mawk nawk awk
5913 # Extract the first word of "$ac_prog", so it can be a program name with args.
5914 set dummy $ac_prog; ac_word=$2
5915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5917 if test "${ac_cv_prog_AWK+set}" = set; then
5918 echo $ECHO_N "(cached) $ECHO_C" >&6
5919 else
5920 if test -n "$AWK"; then
5921 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5922 else
5923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924 for as_dir in $PATH
5926 IFS=$as_save_IFS
5927 test -z "$as_dir" && as_dir=.
5928 for ac_exec_ext in '' $ac_executable_extensions; do
5929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5930 ac_cv_prog_AWK="$ac_prog"
5931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5932 break 2
5934 done
5935 done
5936 IFS=$as_save_IFS
5940 AWK=$ac_cv_prog_AWK
5941 if test -n "$AWK"; then
5942 { echo "$as_me:$LINENO: result: $AWK" >&5
5943 echo "${ECHO_T}$AWK" >&6; }
5944 else
5945 { echo "$as_me:$LINENO: result: no" >&5
5946 echo "${ECHO_T}no" >&6; }
5950 test -n "$AWK" && break
5951 done
5954 # Let the user override the search
5955 if test -z "$YACC"; then
5956 for ac_prog in 'bison -y'
5958 # Extract the first word of "$ac_prog", so it can be a program name with args.
5959 set dummy $ac_prog; ac_word=$2
5960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5962 if test "${ac_cv_prog_YACC+set}" = set; then
5963 echo $ECHO_N "(cached) $ECHO_C" >&6
5964 else
5965 if test -n "$YACC"; then
5966 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5967 else
5968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969 for as_dir in $PATH
5971 IFS=$as_save_IFS
5972 test -z "$as_dir" && as_dir=.
5973 for ac_exec_ext in '' $ac_executable_extensions; do
5974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5975 ac_cv_prog_YACC="$ac_prog"
5976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5977 break 2
5979 done
5980 done
5981 IFS=$as_save_IFS
5985 YACC=$ac_cv_prog_YACC
5986 if test -n "$YACC"; then
5987 { echo "$as_me:$LINENO: result: $YACC" >&5
5988 echo "${ECHO_T}$YACC" >&6; }
5989 else
5990 { echo "$as_me:$LINENO: result: no" >&5
5991 echo "${ECHO_T}no" >&6; }
5995 test -n "$YACC" && break
5996 done
6000 if test "$YACC"; then
6001 pgac_yacc_version=`$YACC --version 2>/dev/null | sed q`
6002 { echo "$as_me:$LINENO: using $pgac_yacc_version" >&5
6003 echo "$as_me: using $pgac_yacc_version" >&6;}
6004 if echo "$pgac_yacc_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
6005 then
6006 { echo "$as_me:$LINENO: WARNING:
6007 *** The installed version of Bison is too old to use with PostgreSQL.
6008 *** Bison version 1.875 or later is required." >&5
6009 echo "$as_me: WARNING:
6010 *** The installed version of Bison is too old to use with PostgreSQL.
6011 *** Bison version 1.875 or later is required." >&2;}
6012 YACC=""
6016 if test -z "$YACC"; then
6017 { echo "$as_me:$LINENO: WARNING:
6018 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6019 *** change any of the parser definition files. You can obtain Bison from
6020 *** a GNU mirror site. (If you are using the official distribution of
6021 *** PostgreSQL then you do not need to worry about this, because the Bison
6022 *** output is pre-generated.) To use a different yacc program (possible,
6023 *** but not recommended), set the environment variable YACC before running
6024 *** 'configure'." >&5
6025 echo "$as_me: WARNING:
6026 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6027 *** change any of the parser definition files. You can obtain Bison from
6028 *** a GNU mirror site. (If you are using the official distribution of
6029 *** PostgreSQL then you do not need to worry about this, because the Bison
6030 *** output is pre-generated.) To use a different yacc program (possible,
6031 *** but not recommended), set the environment variable YACC before running
6032 *** 'configure'." >&2;}
6034 # We don't need AC_SUBST(YACC) because AC_PATH_PROG did it
6037 { echo "$as_me:$LINENO: checking for flex" >&5
6038 echo $ECHO_N "checking for flex... $ECHO_C" >&6; }
6039 if test "${pgac_cv_path_flex+set}" = set; then
6040 echo $ECHO_N "(cached) $ECHO_C" >&6
6041 else
6042 # Let the user override the test
6043 if test -n "$FLEX"; then
6044 pgac_cv_path_flex=$FLEX
6045 else
6046 pgac_save_IFS=$IFS
6047 IFS=$PATH_SEPARATOR
6048 for pgac_dir in $PATH; do
6049 IFS=$pgac_save_IFS
6050 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
6051 pgac_dir=`pwd`
6053 for pgac_prog in flex lex; do
6054 pgac_candidate="$pgac_dir/$pgac_prog"
6055 if test -f "$pgac_candidate" \
6056 && $pgac_candidate --version </dev/null >/dev/null 2>&1
6057 then
6058 echo '%%' > conftest.l
6059 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
6060 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
6061 pgac_broken_flex=$pgac_candidate
6062 continue
6065 pgac_cv_path_flex=$pgac_candidate
6066 break 2
6069 done
6070 done
6071 rm -f conftest.l lex.yy.c
6072 : ${pgac_cv_path_flex=no}
6076 { echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
6077 echo "${ECHO_T}$pgac_cv_path_flex" >&6; }
6078 if test x"$pgac_cv_path_flex" = x"no"; then
6079 if test -n "$pgac_broken_flex"; then
6080 { echo "$as_me:$LINENO: WARNING:
6081 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
6082 *** should get version 2.5.4 or later." >&5
6083 echo "$as_me: WARNING:
6084 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
6085 *** should get version 2.5.4 or later." >&2;}
6088 { echo "$as_me:$LINENO: WARNING:
6089 *** Without Flex you will not be able to build PostgreSQL from CVS or
6090 *** change any of the scanner definition files. You can obtain Flex from
6091 *** a GNU mirror site. (If you are using the official distribution of
6092 *** PostgreSQL then you do not need to worry about this because the Flex
6093 *** output is pre-generated.)" >&5
6094 echo "$as_me: WARNING:
6095 *** Without Flex you will not be able to build PostgreSQL from CVS or
6096 *** change any of the scanner definition files. You can obtain Flex from
6097 *** a GNU mirror site. (If you are using the official distribution of
6098 *** PostgreSQL then you do not need to worry about this because the Flex
6099 *** output is pre-generated.)" >&2;}
6101 FLEX=
6102 else
6103 FLEX=$pgac_cv_path_flex
6104 pgac_flex_version=`$FLEX -V 2>/dev/null`
6105 { echo "$as_me:$LINENO: using $pgac_flex_version" >&5
6106 echo "$as_me: using $pgac_flex_version" >&6;}
6113 # Extract the first word of "perl", so it can be a program name with args.
6114 set dummy perl; 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_path_PERL+set}" = set; then
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
6119 else
6120 case $PERL in
6121 [\\/]* | ?:[\\/]*)
6122 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6126 for as_dir in $PATH
6128 IFS=$as_save_IFS
6129 test -z "$as_dir" && as_dir=.
6130 for ac_exec_ext in '' $ac_executable_extensions; do
6131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6132 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6134 break 2
6136 done
6137 done
6138 IFS=$as_save_IFS
6141 esac
6143 PERL=$ac_cv_path_PERL
6144 if test -n "$PERL"; then
6145 { echo "$as_me:$LINENO: result: $PERL" >&5
6146 echo "${ECHO_T}$PERL" >&6; }
6147 else
6148 { echo "$as_me:$LINENO: result: no" >&5
6149 echo "${ECHO_T}no" >&6; }
6153 if test "$with_perl" = yes; then
6155 { echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
6156 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6; }
6157 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
6158 { echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
6159 echo "${ECHO_T}$perl_archlibexp" >&6; }
6160 { echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
6161 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6; }
6162 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
6163 { echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
6164 echo "${ECHO_T}$perl_privlibexp" >&6; }
6165 { echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
6166 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6; }
6167 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
6168 { echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
6169 echo "${ECHO_T}$perl_useshrplib" >&6; }
6171 { echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
6172 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6; }
6173 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
6174 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
6175 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
6176 { echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
6177 echo "${ECHO_T}$perl_embed_ldflags" >&6; }
6180 if test "$with_python" = yes; then
6181 # Extract the first word of "python", so it can be a program name with args.
6182 set dummy python; ac_word=$2
6183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6185 if test "${ac_cv_path_PYTHON+set}" = set; then
6186 echo $ECHO_N "(cached) $ECHO_C" >&6
6187 else
6188 case $PYTHON in
6189 [\\/]* | ?:[\\/]*)
6190 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
6193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194 for as_dir in $PATH
6196 IFS=$as_save_IFS
6197 test -z "$as_dir" && as_dir=.
6198 for ac_exec_ext in '' $ac_executable_extensions; do
6199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6200 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
6201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6202 break 2
6204 done
6205 done
6206 IFS=$as_save_IFS
6209 esac
6211 PYTHON=$ac_cv_path_PYTHON
6212 if test -n "$PYTHON"; then
6213 { echo "$as_me:$LINENO: result: $PYTHON" >&5
6214 echo "${ECHO_T}$PYTHON" >&6; }
6215 else
6216 { echo "$as_me:$LINENO: result: no" >&5
6217 echo "${ECHO_T}no" >&6; }
6221 if test x"$PYTHON" = x""; then
6222 { { echo "$as_me:$LINENO: error: Python not found" >&5
6223 echo "$as_me: error: Python not found" >&2;}
6224 { (exit 1); exit 1; }; }
6228 { echo "$as_me:$LINENO: checking for Python distutils module" >&5
6229 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6; }
6230 if "${PYTHON}" 2>&- -c 'import distutils'
6231 then
6232 { echo "$as_me:$LINENO: result: yes" >&5
6233 echo "${ECHO_T}yes" >&6; }
6234 else
6235 { echo "$as_me:$LINENO: result: no" >&5
6236 echo "${ECHO_T}no" >&6; }
6237 { { echo "$as_me:$LINENO: error: distutils module not found" >&5
6238 echo "$as_me: error: distutils module not found" >&2;}
6239 { (exit 1); exit 1; }; }
6241 { echo "$as_me:$LINENO: checking Python configuration directory" >&5
6242 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6; }
6243 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
6244 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')"`
6245 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print '-I'+distutils.sysconfig.get_python_inc()"`
6247 # This should be enough of a message.
6248 { echo "$as_me:$LINENO: result: $python_configdir" >&5
6249 echo "${ECHO_T}$python_configdir" >&6; }
6252 { echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
6253 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6; }
6255 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR')))"`
6256 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY')))"`
6257 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('SO')))"`
6258 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
6260 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
6261 then
6262 # New way: use the official shared library
6263 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
6264 python_libspec="-L${python_libdir} -l${ldlibrary}"
6265 else
6266 # Old way: use libpython from python_configdir
6267 python_libdir="${python_configdir}"
6268 python_libspec="-L${python_libdir} -lpython${python_version}"
6271 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS')))"`
6273 { echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
6274 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6; }
6277 # threaded python is not supported on bsd's
6278 { echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
6279 echo $ECHO_N "checking whether Python is compiled with thread support... $ECHO_C" >&6; }
6280 pythreads=`${PYTHON} -c "import sys; print int('thread' in sys.builtin_module_names)"`
6281 if test "$pythreads" = "1"; then
6282 { echo "$as_me:$LINENO: result: yes" >&5
6283 echo "${ECHO_T}yes" >&6; }
6284 case $host_os in
6285 openbsd*|freebsd*)
6286 { { echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
6287 echo "$as_me: error: threaded Python not supported on this platform" >&2;}
6288 { (exit 1); exit 1; }; }
6290 esac
6291 else
6292 { echo "$as_me:$LINENO: result: no" >&5
6293 echo "${ECHO_T}no" >&6; }
6299 # Supply a numeric version string for use by 3rd party add-ons
6300 # awk -F is a regex on some platforms, and not on others, so make "." a tab
6301 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
6302 tr '.' ' ' |
6303 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
6305 cat >>confdefs.h <<_ACEOF
6306 #define PG_VERSION_NUM $PG_VERSION_NUM
6307 _ACEOF
6311 ## Libraries
6313 ## Most libraries are included only if they demonstrably provide a function
6314 ## we need, but libm is an exception: always include it, because there are
6315 ## too many compilers that play cute optimization games that will break
6316 ## probes for standard functions such as pow().
6320 { echo "$as_me:$LINENO: checking for main in -lm" >&5
6321 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
6322 if test "${ac_cv_lib_m_main+set}" = set; then
6323 echo $ECHO_N "(cached) $ECHO_C" >&6
6324 else
6325 ac_check_lib_save_LIBS=$LIBS
6326 LIBS="-lm $LIBS"
6327 cat >conftest.$ac_ext <<_ACEOF
6328 /* confdefs.h. */
6329 _ACEOF
6330 cat confdefs.h >>conftest.$ac_ext
6331 cat >>conftest.$ac_ext <<_ACEOF
6332 /* end confdefs.h. */
6336 main ()
6338 return main ();
6340 return 0;
6342 _ACEOF
6343 rm -f conftest.$ac_objext conftest$ac_exeext
6344 if { (ac_try="$ac_link"
6345 case "(($ac_try" in
6346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6347 *) ac_try_echo=$ac_try;;
6348 esac
6349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6350 (eval "$ac_link") 2>conftest.er1
6351 ac_status=$?
6352 grep -v '^ *+' conftest.er1 >conftest.err
6353 rm -f conftest.er1
6354 cat conftest.err >&5
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); } && {
6357 test -z "$ac_c_werror_flag" ||
6358 test ! -s conftest.err
6359 } && test -s conftest$ac_exeext &&
6360 $as_test_x conftest$ac_exeext; then
6361 ac_cv_lib_m_main=yes
6362 else
6363 echo "$as_me: failed program was:" >&5
6364 sed 's/^/| /' conftest.$ac_ext >&5
6366 ac_cv_lib_m_main=no
6369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6370 conftest$ac_exeext conftest.$ac_ext
6371 LIBS=$ac_check_lib_save_LIBS
6373 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
6374 echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
6375 if test $ac_cv_lib_m_main = yes; then
6376 cat >>confdefs.h <<_ACEOF
6377 #define HAVE_LIBM 1
6378 _ACEOF
6380 LIBS="-lm $LIBS"
6384 { echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
6385 echo $ECHO_N "checking for library containing setproctitle... $ECHO_C" >&6; }
6386 if test "${ac_cv_search_setproctitle+set}" = set; then
6387 echo $ECHO_N "(cached) $ECHO_C" >&6
6388 else
6389 ac_func_search_save_LIBS=$LIBS
6390 cat >conftest.$ac_ext <<_ACEOF
6391 /* confdefs.h. */
6392 _ACEOF
6393 cat confdefs.h >>conftest.$ac_ext
6394 cat >>conftest.$ac_ext <<_ACEOF
6395 /* end confdefs.h. */
6397 /* Override any GCC internal prototype to avoid an error.
6398 Use char because int might match the return type of a GCC
6399 builtin and then its argument prototype would still apply. */
6400 #ifdef __cplusplus
6401 extern "C"
6402 #endif
6403 char setproctitle ();
6405 main ()
6407 return setproctitle ();
6409 return 0;
6411 _ACEOF
6412 for ac_lib in '' util; do
6413 if test -z "$ac_lib"; then
6414 ac_res="none required"
6415 else
6416 ac_res=-l$ac_lib
6417 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6419 rm -f conftest.$ac_objext conftest$ac_exeext
6420 if { (ac_try="$ac_link"
6421 case "(($ac_try" in
6422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6423 *) ac_try_echo=$ac_try;;
6424 esac
6425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6426 (eval "$ac_link") 2>conftest.er1
6427 ac_status=$?
6428 grep -v '^ *+' conftest.er1 >conftest.err
6429 rm -f conftest.er1
6430 cat conftest.err >&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); } && {
6433 test -z "$ac_c_werror_flag" ||
6434 test ! -s conftest.err
6435 } && test -s conftest$ac_exeext &&
6436 $as_test_x conftest$ac_exeext; then
6437 ac_cv_search_setproctitle=$ac_res
6438 else
6439 echo "$as_me: failed program was:" >&5
6440 sed 's/^/| /' conftest.$ac_ext >&5
6445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6446 conftest$ac_exeext
6447 if test "${ac_cv_search_setproctitle+set}" = set; then
6448 break
6450 done
6451 if test "${ac_cv_search_setproctitle+set}" = set; then
6453 else
6454 ac_cv_search_setproctitle=no
6456 rm conftest.$ac_ext
6457 LIBS=$ac_func_search_save_LIBS
6459 { echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
6460 echo "${ECHO_T}$ac_cv_search_setproctitle" >&6; }
6461 ac_res=$ac_cv_search_setproctitle
6462 if test "$ac_res" != no; then
6463 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6467 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
6468 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
6469 if test "${ac_cv_search_dlopen+set}" = set; then
6470 echo $ECHO_N "(cached) $ECHO_C" >&6
6471 else
6472 ac_func_search_save_LIBS=$LIBS
6473 cat >conftest.$ac_ext <<_ACEOF
6474 /* confdefs.h. */
6475 _ACEOF
6476 cat confdefs.h >>conftest.$ac_ext
6477 cat >>conftest.$ac_ext <<_ACEOF
6478 /* end confdefs.h. */
6480 /* Override any GCC internal prototype to avoid an error.
6481 Use char because int might match the return type of a GCC
6482 builtin and then its argument prototype would still apply. */
6483 #ifdef __cplusplus
6484 extern "C"
6485 #endif
6486 char dlopen ();
6488 main ()
6490 return dlopen ();
6492 return 0;
6494 _ACEOF
6495 for ac_lib in '' dl; do
6496 if test -z "$ac_lib"; then
6497 ac_res="none required"
6498 else
6499 ac_res=-l$ac_lib
6500 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6502 rm -f conftest.$ac_objext conftest$ac_exeext
6503 if { (ac_try="$ac_link"
6504 case "(($ac_try" in
6505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6506 *) ac_try_echo=$ac_try;;
6507 esac
6508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6509 (eval "$ac_link") 2>conftest.er1
6510 ac_status=$?
6511 grep -v '^ *+' conftest.er1 >conftest.err
6512 rm -f conftest.er1
6513 cat conftest.err >&5
6514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515 (exit $ac_status); } && {
6516 test -z "$ac_c_werror_flag" ||
6517 test ! -s conftest.err
6518 } && test -s conftest$ac_exeext &&
6519 $as_test_x conftest$ac_exeext; then
6520 ac_cv_search_dlopen=$ac_res
6521 else
6522 echo "$as_me: failed program was:" >&5
6523 sed 's/^/| /' conftest.$ac_ext >&5
6528 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6529 conftest$ac_exeext
6530 if test "${ac_cv_search_dlopen+set}" = set; then
6531 break
6533 done
6534 if test "${ac_cv_search_dlopen+set}" = set; then
6536 else
6537 ac_cv_search_dlopen=no
6539 rm conftest.$ac_ext
6540 LIBS=$ac_func_search_save_LIBS
6542 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
6543 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
6544 ac_res=$ac_cv_search_dlopen
6545 if test "$ac_res" != no; then
6546 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6550 { echo "$as_me:$LINENO: checking for library containing socket" >&5
6551 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
6552 if test "${ac_cv_search_socket+set}" = set; then
6553 echo $ECHO_N "(cached) $ECHO_C" >&6
6554 else
6555 ac_func_search_save_LIBS=$LIBS
6556 cat >conftest.$ac_ext <<_ACEOF
6557 /* confdefs.h. */
6558 _ACEOF
6559 cat confdefs.h >>conftest.$ac_ext
6560 cat >>conftest.$ac_ext <<_ACEOF
6561 /* end confdefs.h. */
6563 /* Override any GCC internal prototype to avoid an error.
6564 Use char because int might match the return type of a GCC
6565 builtin and then its argument prototype would still apply. */
6566 #ifdef __cplusplus
6567 extern "C"
6568 #endif
6569 char socket ();
6571 main ()
6573 return socket ();
6575 return 0;
6577 _ACEOF
6578 for ac_lib in '' socket wsock32; do
6579 if test -z "$ac_lib"; then
6580 ac_res="none required"
6581 else
6582 ac_res=-l$ac_lib
6583 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6585 rm -f conftest.$ac_objext conftest$ac_exeext
6586 if { (ac_try="$ac_link"
6587 case "(($ac_try" in
6588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6589 *) ac_try_echo=$ac_try;;
6590 esac
6591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6592 (eval "$ac_link") 2>conftest.er1
6593 ac_status=$?
6594 grep -v '^ *+' conftest.er1 >conftest.err
6595 rm -f conftest.er1
6596 cat conftest.err >&5
6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); } && {
6599 test -z "$ac_c_werror_flag" ||
6600 test ! -s conftest.err
6601 } && test -s conftest$ac_exeext &&
6602 $as_test_x conftest$ac_exeext; then
6603 ac_cv_search_socket=$ac_res
6604 else
6605 echo "$as_me: failed program was:" >&5
6606 sed 's/^/| /' conftest.$ac_ext >&5
6611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6612 conftest$ac_exeext
6613 if test "${ac_cv_search_socket+set}" = set; then
6614 break
6616 done
6617 if test "${ac_cv_search_socket+set}" = set; then
6619 else
6620 ac_cv_search_socket=no
6622 rm conftest.$ac_ext
6623 LIBS=$ac_func_search_save_LIBS
6625 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
6626 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
6627 ac_res=$ac_cv_search_socket
6628 if test "$ac_res" != no; then
6629 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6633 { echo "$as_me:$LINENO: checking for library containing shl_load" >&5
6634 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; }
6635 if test "${ac_cv_search_shl_load+set}" = set; then
6636 echo $ECHO_N "(cached) $ECHO_C" >&6
6637 else
6638 ac_func_search_save_LIBS=$LIBS
6639 cat >conftest.$ac_ext <<_ACEOF
6640 /* confdefs.h. */
6641 _ACEOF
6642 cat confdefs.h >>conftest.$ac_ext
6643 cat >>conftest.$ac_ext <<_ACEOF
6644 /* end confdefs.h. */
6646 /* Override any GCC internal prototype to avoid an error.
6647 Use char because int might match the return type of a GCC
6648 builtin and then its argument prototype would still apply. */
6649 #ifdef __cplusplus
6650 extern "C"
6651 #endif
6652 char shl_load ();
6654 main ()
6656 return shl_load ();
6658 return 0;
6660 _ACEOF
6661 for ac_lib in '' dld; do
6662 if test -z "$ac_lib"; then
6663 ac_res="none required"
6664 else
6665 ac_res=-l$ac_lib
6666 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6668 rm -f conftest.$ac_objext conftest$ac_exeext
6669 if { (ac_try="$ac_link"
6670 case "(($ac_try" in
6671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6672 *) ac_try_echo=$ac_try;;
6673 esac
6674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6675 (eval "$ac_link") 2>conftest.er1
6676 ac_status=$?
6677 grep -v '^ *+' conftest.er1 >conftest.err
6678 rm -f conftest.er1
6679 cat conftest.err >&5
6680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); } && {
6682 test -z "$ac_c_werror_flag" ||
6683 test ! -s conftest.err
6684 } && test -s conftest$ac_exeext &&
6685 $as_test_x conftest$ac_exeext; then
6686 ac_cv_search_shl_load=$ac_res
6687 else
6688 echo "$as_me: failed program was:" >&5
6689 sed 's/^/| /' conftest.$ac_ext >&5
6694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6695 conftest$ac_exeext
6696 if test "${ac_cv_search_shl_load+set}" = set; then
6697 break
6699 done
6700 if test "${ac_cv_search_shl_load+set}" = set; then
6702 else
6703 ac_cv_search_shl_load=no
6705 rm conftest.$ac_ext
6706 LIBS=$ac_func_search_save_LIBS
6708 { echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
6709 echo "${ECHO_T}$ac_cv_search_shl_load" >&6; }
6710 ac_res=$ac_cv_search_shl_load
6711 if test "$ac_res" != no; then
6712 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6716 # We only use libld in port/dynloader/aix.c
6717 case $host_os in
6718 aix*)
6719 { echo "$as_me:$LINENO: checking for library containing ldopen" >&5
6720 echo $ECHO_N "checking for library containing ldopen... $ECHO_C" >&6; }
6721 if test "${ac_cv_search_ldopen+set}" = set; then
6722 echo $ECHO_N "(cached) $ECHO_C" >&6
6723 else
6724 ac_func_search_save_LIBS=$LIBS
6725 cat >conftest.$ac_ext <<_ACEOF
6726 /* confdefs.h. */
6727 _ACEOF
6728 cat confdefs.h >>conftest.$ac_ext
6729 cat >>conftest.$ac_ext <<_ACEOF
6730 /* end confdefs.h. */
6732 /* Override any GCC internal prototype to avoid an error.
6733 Use char because int might match the return type of a GCC
6734 builtin and then its argument prototype would still apply. */
6735 #ifdef __cplusplus
6736 extern "C"
6737 #endif
6738 char ldopen ();
6740 main ()
6742 return ldopen ();
6744 return 0;
6746 _ACEOF
6747 for ac_lib in '' ld; do
6748 if test -z "$ac_lib"; then
6749 ac_res="none required"
6750 else
6751 ac_res=-l$ac_lib
6752 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6754 rm -f conftest.$ac_objext conftest$ac_exeext
6755 if { (ac_try="$ac_link"
6756 case "(($ac_try" in
6757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6758 *) ac_try_echo=$ac_try;;
6759 esac
6760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6761 (eval "$ac_link") 2>conftest.er1
6762 ac_status=$?
6763 grep -v '^ *+' conftest.er1 >conftest.err
6764 rm -f conftest.er1
6765 cat conftest.err >&5
6766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767 (exit $ac_status); } && {
6768 test -z "$ac_c_werror_flag" ||
6769 test ! -s conftest.err
6770 } && test -s conftest$ac_exeext &&
6771 $as_test_x conftest$ac_exeext; then
6772 ac_cv_search_ldopen=$ac_res
6773 else
6774 echo "$as_me: failed program was:" >&5
6775 sed 's/^/| /' conftest.$ac_ext >&5
6780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6781 conftest$ac_exeext
6782 if test "${ac_cv_search_ldopen+set}" = set; then
6783 break
6785 done
6786 if test "${ac_cv_search_ldopen+set}" = set; then
6788 else
6789 ac_cv_search_ldopen=no
6791 rm conftest.$ac_ext
6792 LIBS=$ac_func_search_save_LIBS
6794 { echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
6795 echo "${ECHO_T}$ac_cv_search_ldopen" >&6; }
6796 ac_res=$ac_cv_search_ldopen
6797 if test "$ac_res" != no; then
6798 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6803 esac
6804 { echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
6805 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6; }
6806 if test "${ac_cv_search_getopt_long+set}" = set; then
6807 echo $ECHO_N "(cached) $ECHO_C" >&6
6808 else
6809 ac_func_search_save_LIBS=$LIBS
6810 cat >conftest.$ac_ext <<_ACEOF
6811 /* confdefs.h. */
6812 _ACEOF
6813 cat confdefs.h >>conftest.$ac_ext
6814 cat >>conftest.$ac_ext <<_ACEOF
6815 /* end confdefs.h. */
6817 /* Override any GCC internal prototype to avoid an error.
6818 Use char because int might match the return type of a GCC
6819 builtin and then its argument prototype would still apply. */
6820 #ifdef __cplusplus
6821 extern "C"
6822 #endif
6823 char getopt_long ();
6825 main ()
6827 return getopt_long ();
6829 return 0;
6831 _ACEOF
6832 for ac_lib in '' getopt gnugetopt; do
6833 if test -z "$ac_lib"; then
6834 ac_res="none required"
6835 else
6836 ac_res=-l$ac_lib
6837 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6839 rm -f conftest.$ac_objext conftest$ac_exeext
6840 if { (ac_try="$ac_link"
6841 case "(($ac_try" in
6842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6843 *) ac_try_echo=$ac_try;;
6844 esac
6845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6846 (eval "$ac_link") 2>conftest.er1
6847 ac_status=$?
6848 grep -v '^ *+' conftest.er1 >conftest.err
6849 rm -f conftest.er1
6850 cat conftest.err >&5
6851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); } && {
6853 test -z "$ac_c_werror_flag" ||
6854 test ! -s conftest.err
6855 } && test -s conftest$ac_exeext &&
6856 $as_test_x conftest$ac_exeext; then
6857 ac_cv_search_getopt_long=$ac_res
6858 else
6859 echo "$as_me: failed program was:" >&5
6860 sed 's/^/| /' conftest.$ac_ext >&5
6865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6866 conftest$ac_exeext
6867 if test "${ac_cv_search_getopt_long+set}" = set; then
6868 break
6870 done
6871 if test "${ac_cv_search_getopt_long+set}" = set; then
6873 else
6874 ac_cv_search_getopt_long=no
6876 rm conftest.$ac_ext
6877 LIBS=$ac_func_search_save_LIBS
6879 { echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
6880 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6; }
6881 ac_res=$ac_cv_search_getopt_long
6882 if test "$ac_res" != no; then
6883 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6887 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
6888 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
6889 if test "${ac_cv_search_crypt+set}" = set; then
6890 echo $ECHO_N "(cached) $ECHO_C" >&6
6891 else
6892 ac_func_search_save_LIBS=$LIBS
6893 cat >conftest.$ac_ext <<_ACEOF
6894 /* confdefs.h. */
6895 _ACEOF
6896 cat confdefs.h >>conftest.$ac_ext
6897 cat >>conftest.$ac_ext <<_ACEOF
6898 /* end confdefs.h. */
6900 /* Override any GCC internal prototype to avoid an error.
6901 Use char because int might match the return type of a GCC
6902 builtin and then its argument prototype would still apply. */
6903 #ifdef __cplusplus
6904 extern "C"
6905 #endif
6906 char crypt ();
6908 main ()
6910 return crypt ();
6912 return 0;
6914 _ACEOF
6915 for ac_lib in '' crypt; do
6916 if test -z "$ac_lib"; then
6917 ac_res="none required"
6918 else
6919 ac_res=-l$ac_lib
6920 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6922 rm -f conftest.$ac_objext conftest$ac_exeext
6923 if { (ac_try="$ac_link"
6924 case "(($ac_try" in
6925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6926 *) ac_try_echo=$ac_try;;
6927 esac
6928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6929 (eval "$ac_link") 2>conftest.er1
6930 ac_status=$?
6931 grep -v '^ *+' conftest.er1 >conftest.err
6932 rm -f conftest.er1
6933 cat conftest.err >&5
6934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935 (exit $ac_status); } && {
6936 test -z "$ac_c_werror_flag" ||
6937 test ! -s conftest.err
6938 } && test -s conftest$ac_exeext &&
6939 $as_test_x conftest$ac_exeext; then
6940 ac_cv_search_crypt=$ac_res
6941 else
6942 echo "$as_me: failed program was:" >&5
6943 sed 's/^/| /' conftest.$ac_ext >&5
6948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6949 conftest$ac_exeext
6950 if test "${ac_cv_search_crypt+set}" = set; then
6951 break
6953 done
6954 if test "${ac_cv_search_crypt+set}" = set; then
6956 else
6957 ac_cv_search_crypt=no
6959 rm conftest.$ac_ext
6960 LIBS=$ac_func_search_save_LIBS
6962 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
6963 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
6964 ac_res=$ac_cv_search_crypt
6965 if test "$ac_res" != no; then
6966 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6970 # Solaris:
6971 { echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
6972 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6; }
6973 if test "${ac_cv_search_fdatasync+set}" = set; then
6974 echo $ECHO_N "(cached) $ECHO_C" >&6
6975 else
6976 ac_func_search_save_LIBS=$LIBS
6977 cat >conftest.$ac_ext <<_ACEOF
6978 /* confdefs.h. */
6979 _ACEOF
6980 cat confdefs.h >>conftest.$ac_ext
6981 cat >>conftest.$ac_ext <<_ACEOF
6982 /* end confdefs.h. */
6984 /* Override any GCC internal prototype to avoid an error.
6985 Use char because int might match the return type of a GCC
6986 builtin and then its argument prototype would still apply. */
6987 #ifdef __cplusplus
6988 extern "C"
6989 #endif
6990 char fdatasync ();
6992 main ()
6994 return fdatasync ();
6996 return 0;
6998 _ACEOF
6999 for ac_lib in '' rt posix4; do
7000 if test -z "$ac_lib"; then
7001 ac_res="none required"
7002 else
7003 ac_res=-l$ac_lib
7004 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7006 rm -f conftest.$ac_objext conftest$ac_exeext
7007 if { (ac_try="$ac_link"
7008 case "(($ac_try" in
7009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7010 *) ac_try_echo=$ac_try;;
7011 esac
7012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7013 (eval "$ac_link") 2>conftest.er1
7014 ac_status=$?
7015 grep -v '^ *+' conftest.er1 >conftest.err
7016 rm -f conftest.er1
7017 cat conftest.err >&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); } && {
7020 test -z "$ac_c_werror_flag" ||
7021 test ! -s conftest.err
7022 } && test -s conftest$ac_exeext &&
7023 $as_test_x conftest$ac_exeext; then
7024 ac_cv_search_fdatasync=$ac_res
7025 else
7026 echo "$as_me: failed program was:" >&5
7027 sed 's/^/| /' conftest.$ac_ext >&5
7032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7033 conftest$ac_exeext
7034 if test "${ac_cv_search_fdatasync+set}" = set; then
7035 break
7037 done
7038 if test "${ac_cv_search_fdatasync+set}" = set; then
7040 else
7041 ac_cv_search_fdatasync=no
7043 rm conftest.$ac_ext
7044 LIBS=$ac_func_search_save_LIBS
7046 { echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
7047 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6; }
7048 ac_res=$ac_cv_search_fdatasync
7049 if test "$ac_res" != no; then
7050 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7054 # Cygwin:
7055 { echo "$as_me:$LINENO: checking for library containing shmget" >&5
7056 echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6; }
7057 if test "${ac_cv_search_shmget+set}" = set; then
7058 echo $ECHO_N "(cached) $ECHO_C" >&6
7059 else
7060 ac_func_search_save_LIBS=$LIBS
7061 cat >conftest.$ac_ext <<_ACEOF
7062 /* confdefs.h. */
7063 _ACEOF
7064 cat confdefs.h >>conftest.$ac_ext
7065 cat >>conftest.$ac_ext <<_ACEOF
7066 /* end confdefs.h. */
7068 /* Override any GCC internal prototype to avoid an error.
7069 Use char because int might match the return type of a GCC
7070 builtin and then its argument prototype would still apply. */
7071 #ifdef __cplusplus
7072 extern "C"
7073 #endif
7074 char shmget ();
7076 main ()
7078 return shmget ();
7080 return 0;
7082 _ACEOF
7083 for ac_lib in '' cygipc; do
7084 if test -z "$ac_lib"; then
7085 ac_res="none required"
7086 else
7087 ac_res=-l$ac_lib
7088 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7090 rm -f conftest.$ac_objext conftest$ac_exeext
7091 if { (ac_try="$ac_link"
7092 case "(($ac_try" in
7093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7094 *) ac_try_echo=$ac_try;;
7095 esac
7096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7097 (eval "$ac_link") 2>conftest.er1
7098 ac_status=$?
7099 grep -v '^ *+' conftest.er1 >conftest.err
7100 rm -f conftest.er1
7101 cat conftest.err >&5
7102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103 (exit $ac_status); } && {
7104 test -z "$ac_c_werror_flag" ||
7105 test ! -s conftest.err
7106 } && test -s conftest$ac_exeext &&
7107 $as_test_x conftest$ac_exeext; then
7108 ac_cv_search_shmget=$ac_res
7109 else
7110 echo "$as_me: failed program was:" >&5
7111 sed 's/^/| /' conftest.$ac_ext >&5
7116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7117 conftest$ac_exeext
7118 if test "${ac_cv_search_shmget+set}" = set; then
7119 break
7121 done
7122 if test "${ac_cv_search_shmget+set}" = set; then
7124 else
7125 ac_cv_search_shmget=no
7127 rm conftest.$ac_ext
7128 LIBS=$ac_func_search_save_LIBS
7130 { echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
7131 echo "${ECHO_T}$ac_cv_search_shmget" >&6; }
7132 ac_res=$ac_cv_search_shmget
7133 if test "$ac_res" != no; then
7134 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7139 if test "$with_readline" = yes; then
7142 if test "${pgac_cv_check_readline+set}" = set; then
7143 echo $ECHO_N "(cached) $ECHO_C" >&6
7144 else
7145 pgac_cv_check_readline=no
7146 pgac_save_LIBS=$LIBS
7147 if test x"$with_libedit_preferred" != x"yes"
7148 then READLINE_ORDER="-lreadline -ledit"
7149 else READLINE_ORDER="-ledit -lreadline"
7151 for pgac_rllib in $READLINE_ORDER ; do
7152 { echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
7153 echo $ECHO_N "checking for ${pgac_rllib}... $ECHO_C" >&6; }
7154 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
7155 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
7156 cat >conftest.$ac_ext <<_ACEOF
7157 /* confdefs.h. */
7158 _ACEOF
7159 cat confdefs.h >>conftest.$ac_ext
7160 cat >>conftest.$ac_ext <<_ACEOF
7161 /* end confdefs.h. */
7163 /* Override any GCC internal prototype to avoid an error.
7164 Use char because int might match the return type of a GCC
7165 builtin and then its argument prototype would still apply. */
7166 #ifdef __cplusplus
7167 extern "C"
7168 #endif
7169 char readline ();
7171 main ()
7173 return readline ();
7175 return 0;
7177 _ACEOF
7178 rm -f conftest.$ac_objext conftest$ac_exeext
7179 if { (ac_try="$ac_link"
7180 case "(($ac_try" in
7181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7182 *) ac_try_echo=$ac_try;;
7183 esac
7184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7185 (eval "$ac_link") 2>conftest.er1
7186 ac_status=$?
7187 grep -v '^ *+' conftest.er1 >conftest.err
7188 rm -f conftest.er1
7189 cat conftest.err >&5
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); } && {
7192 test -z "$ac_c_werror_flag" ||
7193 test ! -s conftest.err
7194 } && test -s conftest$ac_exeext &&
7195 $as_test_x conftest$ac_exeext; then
7197 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
7198 # recognize dependent libraries; assume curses is needed if we didn't
7199 # find any dependency.
7200 case $host_os in
7201 netbsd* | openbsd* | irix*)
7202 if test x"$pgac_lib" = x"" ; then
7203 pgac_lib=" -lcurses"
7204 fi ;;
7205 esac
7207 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
7208 break
7210 else
7211 echo "$as_me: failed program was:" >&5
7212 sed 's/^/| /' conftest.$ac_ext >&5
7217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7218 conftest$ac_exeext conftest.$ac_ext
7219 done
7220 if test "$pgac_cv_check_readline" != no ; then
7221 { echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
7222 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6; }
7223 break
7224 else
7225 { echo "$as_me:$LINENO: result: no" >&5
7226 echo "${ECHO_T}no" >&6; }
7228 done
7229 LIBS=$pgac_save_LIBS
7233 if test "$pgac_cv_check_readline" != no ; then
7234 LIBS="$pgac_cv_check_readline $LIBS"
7236 cat >>confdefs.h <<\_ACEOF
7237 #define HAVE_LIBREADLINE 1
7238 _ACEOF
7243 if test x"$pgac_cv_check_readline" = x"no"; then
7244 { { echo "$as_me:$LINENO: error: readline library not found
7245 If you have readline already installed, see config.log for details on the
7246 failure. It is possible the compiler isn't looking in the proper directory.
7247 Use --without-readline to disable readline support." >&5
7248 echo "$as_me: error: readline library not found
7249 If you have readline already installed, see config.log for details on the
7250 failure. It is possible the compiler isn't looking in the proper directory.
7251 Use --without-readline to disable readline support." >&2;}
7252 { (exit 1); exit 1; }; }
7256 if test "$with_zlib" = yes; then
7258 { echo "$as_me:$LINENO: checking for inflate in -lz" >&5
7259 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6; }
7260 if test "${ac_cv_lib_z_inflate+set}" = set; then
7261 echo $ECHO_N "(cached) $ECHO_C" >&6
7262 else
7263 ac_check_lib_save_LIBS=$LIBS
7264 LIBS="-lz $LIBS"
7265 cat >conftest.$ac_ext <<_ACEOF
7266 /* confdefs.h. */
7267 _ACEOF
7268 cat confdefs.h >>conftest.$ac_ext
7269 cat >>conftest.$ac_ext <<_ACEOF
7270 /* end confdefs.h. */
7272 /* Override any GCC internal prototype to avoid an error.
7273 Use char because int might match the return type of a GCC
7274 builtin and then its argument prototype would still apply. */
7275 #ifdef __cplusplus
7276 extern "C"
7277 #endif
7278 char inflate ();
7280 main ()
7282 return inflate ();
7284 return 0;
7286 _ACEOF
7287 rm -f conftest.$ac_objext conftest$ac_exeext
7288 if { (ac_try="$ac_link"
7289 case "(($ac_try" in
7290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7291 *) ac_try_echo=$ac_try;;
7292 esac
7293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7294 (eval "$ac_link") 2>conftest.er1
7295 ac_status=$?
7296 grep -v '^ *+' conftest.er1 >conftest.err
7297 rm -f conftest.er1
7298 cat conftest.err >&5
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); } && {
7301 test -z "$ac_c_werror_flag" ||
7302 test ! -s conftest.err
7303 } && test -s conftest$ac_exeext &&
7304 $as_test_x conftest$ac_exeext; then
7305 ac_cv_lib_z_inflate=yes
7306 else
7307 echo "$as_me: failed program was:" >&5
7308 sed 's/^/| /' conftest.$ac_ext >&5
7310 ac_cv_lib_z_inflate=no
7313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7314 conftest$ac_exeext conftest.$ac_ext
7315 LIBS=$ac_check_lib_save_LIBS
7317 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
7318 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6; }
7319 if test $ac_cv_lib_z_inflate = yes; then
7320 cat >>confdefs.h <<_ACEOF
7321 #define HAVE_LIBZ 1
7322 _ACEOF
7324 LIBS="-lz $LIBS"
7326 else
7327 { { echo "$as_me:$LINENO: error: zlib library not found
7328 If you have zlib already installed, see config.log for details on the
7329 failure. It is possible the compiler isn't looking in the proper directory.
7330 Use --without-zlib to disable zlib support." >&5
7331 echo "$as_me: error: zlib library not found
7332 If you have zlib already installed, see config.log for details on the
7333 failure. It is possible the compiler isn't looking in the proper directory.
7334 Use --without-zlib to disable zlib support." >&2;}
7335 { (exit 1); exit 1; }; }
7340 if test "$enable_spinlocks" = yes; then
7342 cat >>confdefs.h <<\_ACEOF
7343 #define HAVE_SPINLOCKS 1
7344 _ACEOF
7346 else
7347 { echo "$as_me:$LINENO: WARNING:
7348 *** Not using spinlocks will cause poor performance." >&5
7349 echo "$as_me: WARNING:
7350 *** Not using spinlocks will cause poor performance." >&2;}
7353 if test "$with_gssapi" = yes ; then
7354 if test "$PORTNAME" != "win32"; then
7355 { echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
7356 echo $ECHO_N "checking for library containing gss_init_sec_context... $ECHO_C" >&6; }
7357 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7358 echo $ECHO_N "(cached) $ECHO_C" >&6
7359 else
7360 ac_func_search_save_LIBS=$LIBS
7361 cat >conftest.$ac_ext <<_ACEOF
7362 /* confdefs.h. */
7363 _ACEOF
7364 cat confdefs.h >>conftest.$ac_ext
7365 cat >>conftest.$ac_ext <<_ACEOF
7366 /* end confdefs.h. */
7368 /* Override any GCC internal prototype to avoid an error.
7369 Use char because int might match the return type of a GCC
7370 builtin and then its argument prototype would still apply. */
7371 #ifdef __cplusplus
7372 extern "C"
7373 #endif
7374 char gss_init_sec_context ();
7376 main ()
7378 return gss_init_sec_context ();
7380 return 0;
7382 _ACEOF
7383 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
7384 if test -z "$ac_lib"; then
7385 ac_res="none required"
7386 else
7387 ac_res=-l$ac_lib
7388 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7390 rm -f conftest.$ac_objext conftest$ac_exeext
7391 if { (ac_try="$ac_link"
7392 case "(($ac_try" in
7393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7394 *) ac_try_echo=$ac_try;;
7395 esac
7396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7397 (eval "$ac_link") 2>conftest.er1
7398 ac_status=$?
7399 grep -v '^ *+' conftest.er1 >conftest.err
7400 rm -f conftest.er1
7401 cat conftest.err >&5
7402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403 (exit $ac_status); } && {
7404 test -z "$ac_c_werror_flag" ||
7405 test ! -s conftest.err
7406 } && test -s conftest$ac_exeext &&
7407 $as_test_x conftest$ac_exeext; then
7408 ac_cv_search_gss_init_sec_context=$ac_res
7409 else
7410 echo "$as_me: failed program was:" >&5
7411 sed 's/^/| /' conftest.$ac_ext >&5
7416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7417 conftest$ac_exeext
7418 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7419 break
7421 done
7422 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7424 else
7425 ac_cv_search_gss_init_sec_context=no
7427 rm conftest.$ac_ext
7428 LIBS=$ac_func_search_save_LIBS
7430 { echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
7431 echo "${ECHO_T}$ac_cv_search_gss_init_sec_context" >&6; }
7432 ac_res=$ac_cv_search_gss_init_sec_context
7433 if test "$ac_res" != no; then
7434 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7436 else
7437 { { echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
7438 echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
7439 { (exit 1); exit 1; }; }
7442 else
7443 LIBS="$LIBS -lgssapi32"
7447 if test "$with_krb5" = yes ; then
7448 if test "$PORTNAME" != "win32"; then
7449 { echo "$as_me:$LINENO: checking for library containing com_err" >&5
7450 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
7451 if test "${ac_cv_search_com_err+set}" = set; then
7452 echo $ECHO_N "(cached) $ECHO_C" >&6
7453 else
7454 ac_func_search_save_LIBS=$LIBS
7455 cat >conftest.$ac_ext <<_ACEOF
7456 /* confdefs.h. */
7457 _ACEOF
7458 cat confdefs.h >>conftest.$ac_ext
7459 cat >>conftest.$ac_ext <<_ACEOF
7460 /* end confdefs.h. */
7462 /* Override any GCC internal prototype to avoid an error.
7463 Use char because int might match the return type of a GCC
7464 builtin and then its argument prototype would still apply. */
7465 #ifdef __cplusplus
7466 extern "C"
7467 #endif
7468 char com_err ();
7470 main ()
7472 return com_err ();
7474 return 0;
7476 _ACEOF
7477 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err; do
7478 if test -z "$ac_lib"; then
7479 ac_res="none required"
7480 else
7481 ac_res=-l$ac_lib
7482 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7484 rm -f conftest.$ac_objext conftest$ac_exeext
7485 if { (ac_try="$ac_link"
7486 case "(($ac_try" in
7487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7488 *) ac_try_echo=$ac_try;;
7489 esac
7490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7491 (eval "$ac_link") 2>conftest.er1
7492 ac_status=$?
7493 grep -v '^ *+' conftest.er1 >conftest.err
7494 rm -f conftest.er1
7495 cat conftest.err >&5
7496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497 (exit $ac_status); } && {
7498 test -z "$ac_c_werror_flag" ||
7499 test ! -s conftest.err
7500 } && test -s conftest$ac_exeext &&
7501 $as_test_x conftest$ac_exeext; then
7502 ac_cv_search_com_err=$ac_res
7503 else
7504 echo "$as_me: failed program was:" >&5
7505 sed 's/^/| /' conftest.$ac_ext >&5
7510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7511 conftest$ac_exeext
7512 if test "${ac_cv_search_com_err+set}" = set; then
7513 break
7515 done
7516 if test "${ac_cv_search_com_err+set}" = set; then
7518 else
7519 ac_cv_search_com_err=no
7521 rm conftest.$ac_ext
7522 LIBS=$ac_func_search_save_LIBS
7524 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
7525 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
7526 ac_res=$ac_cv_search_com_err
7527 if test "$ac_res" != no; then
7528 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7530 else
7531 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
7532 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
7533 { (exit 1); exit 1; }; }
7536 { echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
7537 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6; }
7538 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7539 echo $ECHO_N "(cached) $ECHO_C" >&6
7540 else
7541 ac_func_search_save_LIBS=$LIBS
7542 cat >conftest.$ac_ext <<_ACEOF
7543 /* confdefs.h. */
7544 _ACEOF
7545 cat confdefs.h >>conftest.$ac_ext
7546 cat >>conftest.$ac_ext <<_ACEOF
7547 /* end confdefs.h. */
7549 /* Override any GCC internal prototype to avoid an error.
7550 Use char because int might match the return type of a GCC
7551 builtin and then its argument prototype would still apply. */
7552 #ifdef __cplusplus
7553 extern "C"
7554 #endif
7555 char krb5_sendauth ();
7557 main ()
7559 return krb5_sendauth ();
7561 return 0;
7563 _ACEOF
7564 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
7565 if test -z "$ac_lib"; then
7566 ac_res="none required"
7567 else
7568 ac_res=-l$ac_lib
7569 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7571 rm -f conftest.$ac_objext conftest$ac_exeext
7572 if { (ac_try="$ac_link"
7573 case "(($ac_try" in
7574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7575 *) ac_try_echo=$ac_try;;
7576 esac
7577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7578 (eval "$ac_link") 2>conftest.er1
7579 ac_status=$?
7580 grep -v '^ *+' conftest.er1 >conftest.err
7581 rm -f conftest.er1
7582 cat conftest.err >&5
7583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584 (exit $ac_status); } && {
7585 test -z "$ac_c_werror_flag" ||
7586 test ! -s conftest.err
7587 } && test -s conftest$ac_exeext &&
7588 $as_test_x conftest$ac_exeext; then
7589 ac_cv_search_krb5_sendauth=$ac_res
7590 else
7591 echo "$as_me: failed program was:" >&5
7592 sed 's/^/| /' conftest.$ac_ext >&5
7597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7598 conftest$ac_exeext
7599 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7600 break
7602 done
7603 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7605 else
7606 ac_cv_search_krb5_sendauth=no
7608 rm conftest.$ac_ext
7609 LIBS=$ac_func_search_save_LIBS
7611 { echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
7612 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6; }
7613 ac_res=$ac_cv_search_krb5_sendauth
7614 if test "$ac_res" != no; then
7615 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7617 else
7618 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
7619 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
7620 { (exit 1); exit 1; }; }
7623 else
7624 { echo "$as_me:$LINENO: checking for library containing com_err" >&5
7625 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
7626 if test "${ac_cv_search_com_err+set}" = set; then
7627 echo $ECHO_N "(cached) $ECHO_C" >&6
7628 else
7629 ac_func_search_save_LIBS=$LIBS
7630 cat >conftest.$ac_ext <<_ACEOF
7631 /* confdefs.h. */
7632 _ACEOF
7633 cat confdefs.h >>conftest.$ac_ext
7634 cat >>conftest.$ac_ext <<_ACEOF
7635 /* end confdefs.h. */
7637 /* Override any GCC internal prototype to avoid an error.
7638 Use char because int might match the return type of a GCC
7639 builtin and then its argument prototype would still apply. */
7640 #ifdef __cplusplus
7641 extern "C"
7642 #endif
7643 char com_err ();
7645 main ()
7647 return com_err ();
7649 return 0;
7651 _ACEOF
7652 for ac_lib in '' 'comerr32 -lkrb5_32'; do
7653 if test -z "$ac_lib"; then
7654 ac_res="none required"
7655 else
7656 ac_res=-l$ac_lib
7657 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7659 rm -f conftest.$ac_objext conftest$ac_exeext
7660 if { (ac_try="$ac_link"
7661 case "(($ac_try" in
7662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7663 *) ac_try_echo=$ac_try;;
7664 esac
7665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7666 (eval "$ac_link") 2>conftest.er1
7667 ac_status=$?
7668 grep -v '^ *+' conftest.er1 >conftest.err
7669 rm -f conftest.er1
7670 cat conftest.err >&5
7671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); } && {
7673 test -z "$ac_c_werror_flag" ||
7674 test ! -s conftest.err
7675 } && test -s conftest$ac_exeext &&
7676 $as_test_x conftest$ac_exeext; then
7677 ac_cv_search_com_err=$ac_res
7678 else
7679 echo "$as_me: failed program was:" >&5
7680 sed 's/^/| /' conftest.$ac_ext >&5
7685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7686 conftest$ac_exeext
7687 if test "${ac_cv_search_com_err+set}" = set; then
7688 break
7690 done
7691 if test "${ac_cv_search_com_err+set}" = set; then
7693 else
7694 ac_cv_search_com_err=no
7696 rm conftest.$ac_ext
7697 LIBS=$ac_func_search_save_LIBS
7699 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
7700 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
7701 ac_res=$ac_cv_search_com_err
7702 if test "$ac_res" != no; then
7703 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7705 else
7706 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
7707 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
7708 { (exit 1); exit 1; }; }
7714 if test "$with_openssl" = yes ; then
7715 if test "$PORTNAME" != "win32"; then
7717 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
7718 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6; }
7719 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
7720 echo $ECHO_N "(cached) $ECHO_C" >&6
7721 else
7722 ac_check_lib_save_LIBS=$LIBS
7723 LIBS="-lcrypto $LIBS"
7724 cat >conftest.$ac_ext <<_ACEOF
7725 /* confdefs.h. */
7726 _ACEOF
7727 cat confdefs.h >>conftest.$ac_ext
7728 cat >>conftest.$ac_ext <<_ACEOF
7729 /* end confdefs.h. */
7731 /* Override any GCC internal prototype to avoid an error.
7732 Use char because int might match the return type of a GCC
7733 builtin and then its argument prototype would still apply. */
7734 #ifdef __cplusplus
7735 extern "C"
7736 #endif
7737 char CRYPTO_new_ex_data ();
7739 main ()
7741 return CRYPTO_new_ex_data ();
7743 return 0;
7745 _ACEOF
7746 rm -f conftest.$ac_objext conftest$ac_exeext
7747 if { (ac_try="$ac_link"
7748 case "(($ac_try" in
7749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7750 *) ac_try_echo=$ac_try;;
7751 esac
7752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7753 (eval "$ac_link") 2>conftest.er1
7754 ac_status=$?
7755 grep -v '^ *+' conftest.er1 >conftest.err
7756 rm -f conftest.er1
7757 cat conftest.err >&5
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); } && {
7760 test -z "$ac_c_werror_flag" ||
7761 test ! -s conftest.err
7762 } && test -s conftest$ac_exeext &&
7763 $as_test_x conftest$ac_exeext; then
7764 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
7765 else
7766 echo "$as_me: failed program was:" >&5
7767 sed 's/^/| /' conftest.$ac_ext >&5
7769 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
7772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7773 conftest$ac_exeext conftest.$ac_ext
7774 LIBS=$ac_check_lib_save_LIBS
7776 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
7777 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
7778 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
7779 cat >>confdefs.h <<_ACEOF
7780 #define HAVE_LIBCRYPTO 1
7781 _ACEOF
7783 LIBS="-lcrypto $LIBS"
7785 else
7786 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
7787 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
7788 { (exit 1); exit 1; }; }
7792 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
7793 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
7794 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
7795 echo $ECHO_N "(cached) $ECHO_C" >&6
7796 else
7797 ac_check_lib_save_LIBS=$LIBS
7798 LIBS="-lssl $LIBS"
7799 cat >conftest.$ac_ext <<_ACEOF
7800 /* confdefs.h. */
7801 _ACEOF
7802 cat confdefs.h >>conftest.$ac_ext
7803 cat >>conftest.$ac_ext <<_ACEOF
7804 /* end confdefs.h. */
7806 /* Override any GCC internal prototype to avoid an error.
7807 Use char because int might match the return type of a GCC
7808 builtin and then its argument prototype would still apply. */
7809 #ifdef __cplusplus
7810 extern "C"
7811 #endif
7812 char SSL_library_init ();
7814 main ()
7816 return SSL_library_init ();
7818 return 0;
7820 _ACEOF
7821 rm -f conftest.$ac_objext conftest$ac_exeext
7822 if { (ac_try="$ac_link"
7823 case "(($ac_try" in
7824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7825 *) ac_try_echo=$ac_try;;
7826 esac
7827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7828 (eval "$ac_link") 2>conftest.er1
7829 ac_status=$?
7830 grep -v '^ *+' conftest.er1 >conftest.err
7831 rm -f conftest.er1
7832 cat conftest.err >&5
7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); } && {
7835 test -z "$ac_c_werror_flag" ||
7836 test ! -s conftest.err
7837 } && test -s conftest$ac_exeext &&
7838 $as_test_x conftest$ac_exeext; then
7839 ac_cv_lib_ssl_SSL_library_init=yes
7840 else
7841 echo "$as_me: failed program was:" >&5
7842 sed 's/^/| /' conftest.$ac_ext >&5
7844 ac_cv_lib_ssl_SSL_library_init=no
7847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7848 conftest$ac_exeext conftest.$ac_ext
7849 LIBS=$ac_check_lib_save_LIBS
7851 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
7852 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
7853 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
7854 cat >>confdefs.h <<_ACEOF
7855 #define HAVE_LIBSSL 1
7856 _ACEOF
7858 LIBS="-lssl $LIBS"
7860 else
7861 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
7862 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
7863 { (exit 1); exit 1; }; }
7866 else
7868 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
7869 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6; }
7870 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
7871 echo $ECHO_N "(cached) $ECHO_C" >&6
7872 else
7873 ac_check_lib_save_LIBS=$LIBS
7874 LIBS="-leay32 $LIBS"
7875 cat >conftest.$ac_ext <<_ACEOF
7876 /* confdefs.h. */
7877 _ACEOF
7878 cat confdefs.h >>conftest.$ac_ext
7879 cat >>conftest.$ac_ext <<_ACEOF
7880 /* end confdefs.h. */
7882 /* Override any GCC internal prototype to avoid an error.
7883 Use char because int might match the return type of a GCC
7884 builtin and then its argument prototype would still apply. */
7885 #ifdef __cplusplus
7886 extern "C"
7887 #endif
7888 char CRYPTO_new_ex_data ();
7890 main ()
7892 return CRYPTO_new_ex_data ();
7894 return 0;
7896 _ACEOF
7897 rm -f conftest.$ac_objext conftest$ac_exeext
7898 if { (ac_try="$ac_link"
7899 case "(($ac_try" in
7900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7901 *) ac_try_echo=$ac_try;;
7902 esac
7903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7904 (eval "$ac_link") 2>conftest.er1
7905 ac_status=$?
7906 grep -v '^ *+' conftest.er1 >conftest.err
7907 rm -f conftest.er1
7908 cat conftest.err >&5
7909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 (exit $ac_status); } && {
7911 test -z "$ac_c_werror_flag" ||
7912 test ! -s conftest.err
7913 } && test -s conftest$ac_exeext &&
7914 $as_test_x conftest$ac_exeext; then
7915 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
7916 else
7917 echo "$as_me: failed program was:" >&5
7918 sed 's/^/| /' conftest.$ac_ext >&5
7920 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
7923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7924 conftest$ac_exeext conftest.$ac_ext
7925 LIBS=$ac_check_lib_save_LIBS
7927 { echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
7928 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
7929 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
7930 cat >>confdefs.h <<_ACEOF
7931 #define HAVE_LIBEAY32 1
7932 _ACEOF
7934 LIBS="-leay32 $LIBS"
7936 else
7937 { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
7938 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
7939 { (exit 1); exit 1; }; }
7943 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
7944 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6; }
7945 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
7946 echo $ECHO_N "(cached) $ECHO_C" >&6
7947 else
7948 ac_check_lib_save_LIBS=$LIBS
7949 LIBS="-lssleay32 $LIBS"
7950 cat >conftest.$ac_ext <<_ACEOF
7951 /* confdefs.h. */
7952 _ACEOF
7953 cat confdefs.h >>conftest.$ac_ext
7954 cat >>conftest.$ac_ext <<_ACEOF
7955 /* end confdefs.h. */
7957 /* Override any GCC internal prototype to avoid an error.
7958 Use char because int might match the return type of a GCC
7959 builtin and then its argument prototype would still apply. */
7960 #ifdef __cplusplus
7961 extern "C"
7962 #endif
7963 char SSL_library_init ();
7965 main ()
7967 return SSL_library_init ();
7969 return 0;
7971 _ACEOF
7972 rm -f conftest.$ac_objext conftest$ac_exeext
7973 if { (ac_try="$ac_link"
7974 case "(($ac_try" in
7975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7976 *) ac_try_echo=$ac_try;;
7977 esac
7978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7979 (eval "$ac_link") 2>conftest.er1
7980 ac_status=$?
7981 grep -v '^ *+' conftest.er1 >conftest.err
7982 rm -f conftest.er1
7983 cat conftest.err >&5
7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); } && {
7986 test -z "$ac_c_werror_flag" ||
7987 test ! -s conftest.err
7988 } && test -s conftest$ac_exeext &&
7989 $as_test_x conftest$ac_exeext; then
7990 ac_cv_lib_ssleay32_SSL_library_init=yes
7991 else
7992 echo "$as_me: failed program was:" >&5
7993 sed 's/^/| /' conftest.$ac_ext >&5
7995 ac_cv_lib_ssleay32_SSL_library_init=no
7998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7999 conftest$ac_exeext conftest.$ac_ext
8000 LIBS=$ac_check_lib_save_LIBS
8002 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
8003 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
8004 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
8005 cat >>confdefs.h <<_ACEOF
8006 #define HAVE_LIBSSLEAY32 1
8007 _ACEOF
8009 LIBS="-lssleay32 $LIBS"
8011 else
8012 { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
8013 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
8014 { (exit 1); exit 1; }; }
8020 if test "$with_pam" = yes ; then
8022 { echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
8023 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6; }
8024 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
8025 echo $ECHO_N "(cached) $ECHO_C" >&6
8026 else
8027 ac_check_lib_save_LIBS=$LIBS
8028 LIBS="-lpam $LIBS"
8029 cat >conftest.$ac_ext <<_ACEOF
8030 /* confdefs.h. */
8031 _ACEOF
8032 cat confdefs.h >>conftest.$ac_ext
8033 cat >>conftest.$ac_ext <<_ACEOF
8034 /* end confdefs.h. */
8036 /* Override any GCC internal prototype to avoid an error.
8037 Use char because int might match the return type of a GCC
8038 builtin and then its argument prototype would still apply. */
8039 #ifdef __cplusplus
8040 extern "C"
8041 #endif
8042 char pam_start ();
8044 main ()
8046 return pam_start ();
8048 return 0;
8050 _ACEOF
8051 rm -f conftest.$ac_objext conftest$ac_exeext
8052 if { (ac_try="$ac_link"
8053 case "(($ac_try" in
8054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8055 *) ac_try_echo=$ac_try;;
8056 esac
8057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8058 (eval "$ac_link") 2>conftest.er1
8059 ac_status=$?
8060 grep -v '^ *+' conftest.er1 >conftest.err
8061 rm -f conftest.er1
8062 cat conftest.err >&5
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); } && {
8065 test -z "$ac_c_werror_flag" ||
8066 test ! -s conftest.err
8067 } && test -s conftest$ac_exeext &&
8068 $as_test_x conftest$ac_exeext; then
8069 ac_cv_lib_pam_pam_start=yes
8070 else
8071 echo "$as_me: failed program was:" >&5
8072 sed 's/^/| /' conftest.$ac_ext >&5
8074 ac_cv_lib_pam_pam_start=no
8077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8078 conftest$ac_exeext conftest.$ac_ext
8079 LIBS=$ac_check_lib_save_LIBS
8081 { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
8082 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6; }
8083 if test $ac_cv_lib_pam_pam_start = yes; then
8084 cat >>confdefs.h <<_ACEOF
8085 #define HAVE_LIBPAM 1
8086 _ACEOF
8088 LIBS="-lpam $LIBS"
8090 else
8091 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
8092 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
8093 { (exit 1); exit 1; }; }
8098 if test "$with_libxml" = yes ; then
8100 { echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
8101 echo $ECHO_N "checking for xmlSaveToBuffer in -lxml2... $ECHO_C" >&6; }
8102 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
8103 echo $ECHO_N "(cached) $ECHO_C" >&6
8104 else
8105 ac_check_lib_save_LIBS=$LIBS
8106 LIBS="-lxml2 $LIBS"
8107 cat >conftest.$ac_ext <<_ACEOF
8108 /* confdefs.h. */
8109 _ACEOF
8110 cat confdefs.h >>conftest.$ac_ext
8111 cat >>conftest.$ac_ext <<_ACEOF
8112 /* end confdefs.h. */
8114 /* Override any GCC internal prototype to avoid an error.
8115 Use char because int might match the return type of a GCC
8116 builtin and then its argument prototype would still apply. */
8117 #ifdef __cplusplus
8118 extern "C"
8119 #endif
8120 char xmlSaveToBuffer ();
8122 main ()
8124 return xmlSaveToBuffer ();
8126 return 0;
8128 _ACEOF
8129 rm -f conftest.$ac_objext conftest$ac_exeext
8130 if { (ac_try="$ac_link"
8131 case "(($ac_try" in
8132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8133 *) ac_try_echo=$ac_try;;
8134 esac
8135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8136 (eval "$ac_link") 2>conftest.er1
8137 ac_status=$?
8138 grep -v '^ *+' conftest.er1 >conftest.err
8139 rm -f conftest.er1
8140 cat conftest.err >&5
8141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142 (exit $ac_status); } && {
8143 test -z "$ac_c_werror_flag" ||
8144 test ! -s conftest.err
8145 } && test -s conftest$ac_exeext &&
8146 $as_test_x conftest$ac_exeext; then
8147 ac_cv_lib_xml2_xmlSaveToBuffer=yes
8148 else
8149 echo "$as_me: failed program was:" >&5
8150 sed 's/^/| /' conftest.$ac_ext >&5
8152 ac_cv_lib_xml2_xmlSaveToBuffer=no
8155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8156 conftest$ac_exeext conftest.$ac_ext
8157 LIBS=$ac_check_lib_save_LIBS
8159 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
8160 echo "${ECHO_T}$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
8161 if test $ac_cv_lib_xml2_xmlSaveToBuffer = yes; then
8162 cat >>confdefs.h <<_ACEOF
8163 #define HAVE_LIBXML2 1
8164 _ACEOF
8166 LIBS="-lxml2 $LIBS"
8168 else
8169 { { echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
8170 echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
8171 { (exit 1); exit 1; }; }
8176 if test "$with_libxslt" = yes ; then
8178 { echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
8179 echo $ECHO_N "checking for xsltCleanupGlobals in -lxslt... $ECHO_C" >&6; }
8180 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
8181 echo $ECHO_N "(cached) $ECHO_C" >&6
8182 else
8183 ac_check_lib_save_LIBS=$LIBS
8184 LIBS="-lxslt $LIBS"
8185 cat >conftest.$ac_ext <<_ACEOF
8186 /* confdefs.h. */
8187 _ACEOF
8188 cat confdefs.h >>conftest.$ac_ext
8189 cat >>conftest.$ac_ext <<_ACEOF
8190 /* end confdefs.h. */
8192 /* Override any GCC internal prototype to avoid an error.
8193 Use char because int might match the return type of a GCC
8194 builtin and then its argument prototype would still apply. */
8195 #ifdef __cplusplus
8196 extern "C"
8197 #endif
8198 char xsltCleanupGlobals ();
8200 main ()
8202 return xsltCleanupGlobals ();
8204 return 0;
8206 _ACEOF
8207 rm -f conftest.$ac_objext conftest$ac_exeext
8208 if { (ac_try="$ac_link"
8209 case "(($ac_try" in
8210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8211 *) ac_try_echo=$ac_try;;
8212 esac
8213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8214 (eval "$ac_link") 2>conftest.er1
8215 ac_status=$?
8216 grep -v '^ *+' conftest.er1 >conftest.err
8217 rm -f conftest.er1
8218 cat conftest.err >&5
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); } && {
8221 test -z "$ac_c_werror_flag" ||
8222 test ! -s conftest.err
8223 } && test -s conftest$ac_exeext &&
8224 $as_test_x conftest$ac_exeext; then
8225 ac_cv_lib_xslt_xsltCleanupGlobals=yes
8226 else
8227 echo "$as_me: failed program was:" >&5
8228 sed 's/^/| /' conftest.$ac_ext >&5
8230 ac_cv_lib_xslt_xsltCleanupGlobals=no
8233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8234 conftest$ac_exeext conftest.$ac_ext
8235 LIBS=$ac_check_lib_save_LIBS
8237 { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
8238 echo "${ECHO_T}$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
8239 if test $ac_cv_lib_xslt_xsltCleanupGlobals = yes; then
8240 cat >>confdefs.h <<_ACEOF
8241 #define HAVE_LIBXSLT 1
8242 _ACEOF
8244 LIBS="-lxslt $LIBS"
8246 else
8247 { { echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
8248 echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
8249 { (exit 1); exit 1; }; }
8254 # for contrib/uuid-ossp
8255 if test "$with_ossp_uuid" = yes ; then
8256 { echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
8257 echo $ECHO_N "checking for uuid_export in -lossp-uuid... $ECHO_C" >&6; }
8258 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
8259 echo $ECHO_N "(cached) $ECHO_C" >&6
8260 else
8261 ac_check_lib_save_LIBS=$LIBS
8262 LIBS="-lossp-uuid $LIBS"
8263 cat >conftest.$ac_ext <<_ACEOF
8264 /* confdefs.h. */
8265 _ACEOF
8266 cat confdefs.h >>conftest.$ac_ext
8267 cat >>conftest.$ac_ext <<_ACEOF
8268 /* end confdefs.h. */
8270 /* Override any GCC internal prototype to avoid an error.
8271 Use char because int might match the return type of a GCC
8272 builtin and then its argument prototype would still apply. */
8273 #ifdef __cplusplus
8274 extern "C"
8275 #endif
8276 char uuid_export ();
8278 main ()
8280 return uuid_export ();
8282 return 0;
8284 _ACEOF
8285 rm -f conftest.$ac_objext conftest$ac_exeext
8286 if { (ac_try="$ac_link"
8287 case "(($ac_try" in
8288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8289 *) ac_try_echo=$ac_try;;
8290 esac
8291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8292 (eval "$ac_link") 2>conftest.er1
8293 ac_status=$?
8294 grep -v '^ *+' conftest.er1 >conftest.err
8295 rm -f conftest.er1
8296 cat conftest.err >&5
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); } && {
8299 test -z "$ac_c_werror_flag" ||
8300 test ! -s conftest.err
8301 } && test -s conftest$ac_exeext &&
8302 $as_test_x conftest$ac_exeext; then
8303 ac_cv_lib_ossp_uuid_uuid_export=yes
8304 else
8305 echo "$as_me: failed program was:" >&5
8306 sed 's/^/| /' conftest.$ac_ext >&5
8308 ac_cv_lib_ossp_uuid_uuid_export=no
8311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8312 conftest$ac_exeext conftest.$ac_ext
8313 LIBS=$ac_check_lib_save_LIBS
8315 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
8316 echo "${ECHO_T}$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
8317 if test $ac_cv_lib_ossp_uuid_uuid_export = yes; then
8318 OSSP_UUID_LIBS="-lossp-uuid"
8319 else
8320 { echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
8321 echo $ECHO_N "checking for uuid_export in -luuid... $ECHO_C" >&6; }
8322 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
8323 echo $ECHO_N "(cached) $ECHO_C" >&6
8324 else
8325 ac_check_lib_save_LIBS=$LIBS
8326 LIBS="-luuid $LIBS"
8327 cat >conftest.$ac_ext <<_ACEOF
8328 /* confdefs.h. */
8329 _ACEOF
8330 cat confdefs.h >>conftest.$ac_ext
8331 cat >>conftest.$ac_ext <<_ACEOF
8332 /* end confdefs.h. */
8334 /* Override any GCC internal prototype to avoid an error.
8335 Use char because int might match the return type of a GCC
8336 builtin and then its argument prototype would still apply. */
8337 #ifdef __cplusplus
8338 extern "C"
8339 #endif
8340 char uuid_export ();
8342 main ()
8344 return uuid_export ();
8346 return 0;
8348 _ACEOF
8349 rm -f conftest.$ac_objext conftest$ac_exeext
8350 if { (ac_try="$ac_link"
8351 case "(($ac_try" in
8352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8353 *) ac_try_echo=$ac_try;;
8354 esac
8355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8356 (eval "$ac_link") 2>conftest.er1
8357 ac_status=$?
8358 grep -v '^ *+' conftest.er1 >conftest.err
8359 rm -f conftest.er1
8360 cat conftest.err >&5
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); } && {
8363 test -z "$ac_c_werror_flag" ||
8364 test ! -s conftest.err
8365 } && test -s conftest$ac_exeext &&
8366 $as_test_x conftest$ac_exeext; then
8367 ac_cv_lib_uuid_uuid_export=yes
8368 else
8369 echo "$as_me: failed program was:" >&5
8370 sed 's/^/| /' conftest.$ac_ext >&5
8372 ac_cv_lib_uuid_uuid_export=no
8375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8376 conftest$ac_exeext conftest.$ac_ext
8377 LIBS=$ac_check_lib_save_LIBS
8379 { echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
8380 echo "${ECHO_T}$ac_cv_lib_uuid_uuid_export" >&6; }
8381 if test $ac_cv_lib_uuid_uuid_export = yes; then
8382 OSSP_UUID_LIBS="-luuid"
8383 else
8384 { { echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
8385 echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
8386 { (exit 1); exit 1; }; }
8396 ## Header files
8399 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8400 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8401 if test "${ac_cv_header_stdc+set}" = set; then
8402 echo $ECHO_N "(cached) $ECHO_C" >&6
8403 else
8404 cat >conftest.$ac_ext <<_ACEOF
8405 /* confdefs.h. */
8406 _ACEOF
8407 cat confdefs.h >>conftest.$ac_ext
8408 cat >>conftest.$ac_ext <<_ACEOF
8409 /* end confdefs.h. */
8410 #include <stdlib.h>
8411 #include <stdarg.h>
8412 #include <string.h>
8413 #include <float.h>
8416 main ()
8420 return 0;
8422 _ACEOF
8423 rm -f conftest.$ac_objext
8424 if { (ac_try="$ac_compile"
8425 case "(($ac_try" in
8426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8427 *) ac_try_echo=$ac_try;;
8428 esac
8429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8430 (eval "$ac_compile") 2>conftest.er1
8431 ac_status=$?
8432 grep -v '^ *+' conftest.er1 >conftest.err
8433 rm -f conftest.er1
8434 cat conftest.err >&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); } && {
8437 test -z "$ac_c_werror_flag" ||
8438 test ! -s conftest.err
8439 } && test -s conftest.$ac_objext; then
8440 ac_cv_header_stdc=yes
8441 else
8442 echo "$as_me: failed program was:" >&5
8443 sed 's/^/| /' conftest.$ac_ext >&5
8445 ac_cv_header_stdc=no
8448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8450 if test $ac_cv_header_stdc = yes; then
8451 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8452 cat >conftest.$ac_ext <<_ACEOF
8453 /* confdefs.h. */
8454 _ACEOF
8455 cat confdefs.h >>conftest.$ac_ext
8456 cat >>conftest.$ac_ext <<_ACEOF
8457 /* end confdefs.h. */
8458 #include <string.h>
8460 _ACEOF
8461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8462 $EGREP "memchr" >/dev/null 2>&1; then
8464 else
8465 ac_cv_header_stdc=no
8467 rm -f conftest*
8471 if test $ac_cv_header_stdc = yes; then
8472 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8473 cat >conftest.$ac_ext <<_ACEOF
8474 /* confdefs.h. */
8475 _ACEOF
8476 cat confdefs.h >>conftest.$ac_ext
8477 cat >>conftest.$ac_ext <<_ACEOF
8478 /* end confdefs.h. */
8479 #include <stdlib.h>
8481 _ACEOF
8482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8483 $EGREP "free" >/dev/null 2>&1; then
8485 else
8486 ac_cv_header_stdc=no
8488 rm -f conftest*
8492 if test $ac_cv_header_stdc = yes; then
8493 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8494 if test "$cross_compiling" = yes; then
8496 else
8497 cat >conftest.$ac_ext <<_ACEOF
8498 /* confdefs.h. */
8499 _ACEOF
8500 cat confdefs.h >>conftest.$ac_ext
8501 cat >>conftest.$ac_ext <<_ACEOF
8502 /* end confdefs.h. */
8503 #include <ctype.h>
8504 #include <stdlib.h>
8505 #if ((' ' & 0x0FF) == 0x020)
8506 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8507 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8508 #else
8509 # define ISLOWER(c) \
8510 (('a' <= (c) && (c) <= 'i') \
8511 || ('j' <= (c) && (c) <= 'r') \
8512 || ('s' <= (c) && (c) <= 'z'))
8513 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8514 #endif
8516 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8518 main ()
8520 int i;
8521 for (i = 0; i < 256; i++)
8522 if (XOR (islower (i), ISLOWER (i))
8523 || toupper (i) != TOUPPER (i))
8524 return 2;
8525 return 0;
8527 _ACEOF
8528 rm -f conftest$ac_exeext
8529 if { (ac_try="$ac_link"
8530 case "(($ac_try" in
8531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8532 *) ac_try_echo=$ac_try;;
8533 esac
8534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8535 (eval "$ac_link") 2>&5
8536 ac_status=$?
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8539 { (case "(($ac_try" in
8540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8541 *) ac_try_echo=$ac_try;;
8542 esac
8543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8544 (eval "$ac_try") 2>&5
8545 ac_status=$?
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); }; }; then
8549 else
8550 echo "$as_me: program exited with status $ac_status" >&5
8551 echo "$as_me: failed program was:" >&5
8552 sed 's/^/| /' conftest.$ac_ext >&5
8554 ( exit $ac_status )
8555 ac_cv_header_stdc=no
8557 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8563 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8564 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8565 if test $ac_cv_header_stdc = yes; then
8567 cat >>confdefs.h <<\_ACEOF
8568 #define STDC_HEADERS 1
8569 _ACEOF
8573 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8583 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8584 inttypes.h stdint.h unistd.h
8586 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8587 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8589 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8590 echo $ECHO_N "(cached) $ECHO_C" >&6
8591 else
8592 cat >conftest.$ac_ext <<_ACEOF
8593 /* confdefs.h. */
8594 _ACEOF
8595 cat confdefs.h >>conftest.$ac_ext
8596 cat >>conftest.$ac_ext <<_ACEOF
8597 /* end confdefs.h. */
8598 $ac_includes_default
8600 #include <$ac_header>
8601 _ACEOF
8602 rm -f conftest.$ac_objext
8603 if { (ac_try="$ac_compile"
8604 case "(($ac_try" in
8605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8606 *) ac_try_echo=$ac_try;;
8607 esac
8608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8609 (eval "$ac_compile") 2>conftest.er1
8610 ac_status=$?
8611 grep -v '^ *+' conftest.er1 >conftest.err
8612 rm -f conftest.er1
8613 cat conftest.err >&5
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); } && {
8616 test -z "$ac_c_werror_flag" ||
8617 test ! -s conftest.err
8618 } && test -s conftest.$ac_objext; then
8619 eval "$as_ac_Header=yes"
8620 else
8621 echo "$as_me: failed program was:" >&5
8622 sed 's/^/| /' conftest.$ac_ext >&5
8624 eval "$as_ac_Header=no"
8627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8629 ac_res=`eval echo '${'$as_ac_Header'}'`
8630 { echo "$as_me:$LINENO: result: $ac_res" >&5
8631 echo "${ECHO_T}$ac_res" >&6; }
8632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8633 cat >>confdefs.h <<_ACEOF
8634 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8635 _ACEOF
8639 done
8668 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 utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
8670 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8672 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8674 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8675 echo $ECHO_N "(cached) $ECHO_C" >&6
8677 ac_res=`eval echo '${'$as_ac_Header'}'`
8678 { echo "$as_me:$LINENO: result: $ac_res" >&5
8679 echo "${ECHO_T}$ac_res" >&6; }
8680 else
8681 # Is the header compilable?
8682 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8683 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8684 cat >conftest.$ac_ext <<_ACEOF
8685 /* confdefs.h. */
8686 _ACEOF
8687 cat confdefs.h >>conftest.$ac_ext
8688 cat >>conftest.$ac_ext <<_ACEOF
8689 /* end confdefs.h. */
8690 $ac_includes_default
8691 #include <$ac_header>
8692 _ACEOF
8693 rm -f conftest.$ac_objext
8694 if { (ac_try="$ac_compile"
8695 case "(($ac_try" in
8696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8697 *) ac_try_echo=$ac_try;;
8698 esac
8699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8700 (eval "$ac_compile") 2>conftest.er1
8701 ac_status=$?
8702 grep -v '^ *+' conftest.er1 >conftest.err
8703 rm -f conftest.er1
8704 cat conftest.err >&5
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); } && {
8707 test -z "$ac_c_werror_flag" ||
8708 test ! -s conftest.err
8709 } && test -s conftest.$ac_objext; then
8710 ac_header_compiler=yes
8711 else
8712 echo "$as_me: failed program was:" >&5
8713 sed 's/^/| /' conftest.$ac_ext >&5
8715 ac_header_compiler=no
8718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8719 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8720 echo "${ECHO_T}$ac_header_compiler" >&6; }
8722 # Is the header present?
8723 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8724 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8725 cat >conftest.$ac_ext <<_ACEOF
8726 /* confdefs.h. */
8727 _ACEOF
8728 cat confdefs.h >>conftest.$ac_ext
8729 cat >>conftest.$ac_ext <<_ACEOF
8730 /* end confdefs.h. */
8731 #include <$ac_header>
8732 _ACEOF
8733 if { (ac_try="$ac_cpp conftest.$ac_ext"
8734 case "(($ac_try" in
8735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8736 *) ac_try_echo=$ac_try;;
8737 esac
8738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8740 ac_status=$?
8741 grep -v '^ *+' conftest.er1 >conftest.err
8742 rm -f conftest.er1
8743 cat conftest.err >&5
8744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745 (exit $ac_status); } >/dev/null && {
8746 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8747 test ! -s conftest.err
8748 }; then
8749 ac_header_preproc=yes
8750 else
8751 echo "$as_me: failed program was:" >&5
8752 sed 's/^/| /' conftest.$ac_ext >&5
8754 ac_header_preproc=no
8757 rm -f conftest.err conftest.$ac_ext
8758 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8759 echo "${ECHO_T}$ac_header_preproc" >&6; }
8761 # So? What about this header?
8762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8763 yes:no: )
8764 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8765 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8767 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8768 ac_header_preproc=yes
8770 no:yes:* )
8771 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8772 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8773 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8774 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8775 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8776 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8777 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8778 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8780 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8781 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8782 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8783 ( cat <<\_ASBOX
8784 ## ---------------------------------------- ##
8785 ## Report this to pgsql-bugs@postgresql.org ##
8786 ## ---------------------------------------- ##
8787 _ASBOX
8788 ) | sed "s/^/$as_me: WARNING: /" >&2
8790 esac
8791 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8794 echo $ECHO_N "(cached) $ECHO_C" >&6
8795 else
8796 eval "$as_ac_Header=\$ac_header_preproc"
8798 ac_res=`eval echo '${'$as_ac_Header'}'`
8799 { echo "$as_me:$LINENO: result: $ac_res" >&5
8800 echo "${ECHO_T}$ac_res" >&6; }
8803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8804 cat >>confdefs.h <<_ACEOF
8805 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8806 _ACEOF
8810 done
8813 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
8814 # netinet/in.h is included first.
8816 for ac_header in netinet/in.h
8818 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8820 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8823 echo $ECHO_N "(cached) $ECHO_C" >&6
8825 ac_res=`eval echo '${'$as_ac_Header'}'`
8826 { echo "$as_me:$LINENO: result: $ac_res" >&5
8827 echo "${ECHO_T}$ac_res" >&6; }
8828 else
8829 # Is the header compilable?
8830 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8831 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8832 cat >conftest.$ac_ext <<_ACEOF
8833 /* confdefs.h. */
8834 _ACEOF
8835 cat confdefs.h >>conftest.$ac_ext
8836 cat >>conftest.$ac_ext <<_ACEOF
8837 /* end confdefs.h. */
8838 $ac_includes_default
8839 #include <$ac_header>
8840 _ACEOF
8841 rm -f conftest.$ac_objext
8842 if { (ac_try="$ac_compile"
8843 case "(($ac_try" in
8844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8845 *) ac_try_echo=$ac_try;;
8846 esac
8847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8848 (eval "$ac_compile") 2>conftest.er1
8849 ac_status=$?
8850 grep -v '^ *+' conftest.er1 >conftest.err
8851 rm -f conftest.er1
8852 cat conftest.err >&5
8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 (exit $ac_status); } && {
8855 test -z "$ac_c_werror_flag" ||
8856 test ! -s conftest.err
8857 } && test -s conftest.$ac_objext; then
8858 ac_header_compiler=yes
8859 else
8860 echo "$as_me: failed program was:" >&5
8861 sed 's/^/| /' conftest.$ac_ext >&5
8863 ac_header_compiler=no
8866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8867 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8868 echo "${ECHO_T}$ac_header_compiler" >&6; }
8870 # Is the header present?
8871 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8872 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8873 cat >conftest.$ac_ext <<_ACEOF
8874 /* confdefs.h. */
8875 _ACEOF
8876 cat confdefs.h >>conftest.$ac_ext
8877 cat >>conftest.$ac_ext <<_ACEOF
8878 /* end confdefs.h. */
8879 #include <$ac_header>
8880 _ACEOF
8881 if { (ac_try="$ac_cpp conftest.$ac_ext"
8882 case "(($ac_try" in
8883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8884 *) ac_try_echo=$ac_try;;
8885 esac
8886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8887 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8888 ac_status=$?
8889 grep -v '^ *+' conftest.er1 >conftest.err
8890 rm -f conftest.er1
8891 cat conftest.err >&5
8892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893 (exit $ac_status); } >/dev/null && {
8894 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8895 test ! -s conftest.err
8896 }; then
8897 ac_header_preproc=yes
8898 else
8899 echo "$as_me: failed program was:" >&5
8900 sed 's/^/| /' conftest.$ac_ext >&5
8902 ac_header_preproc=no
8905 rm -f conftest.err conftest.$ac_ext
8906 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8907 echo "${ECHO_T}$ac_header_preproc" >&6; }
8909 # So? What about this header?
8910 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8911 yes:no: )
8912 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8913 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8915 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8916 ac_header_preproc=yes
8918 no:yes:* )
8919 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8920 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8921 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8922 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8923 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8924 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8925 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8926 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8928 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8929 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8930 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8931 ( cat <<\_ASBOX
8932 ## ---------------------------------------- ##
8933 ## Report this to pgsql-bugs@postgresql.org ##
8934 ## ---------------------------------------- ##
8935 _ASBOX
8936 ) | sed "s/^/$as_me: WARNING: /" >&2
8938 esac
8939 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8942 echo $ECHO_N "(cached) $ECHO_C" >&6
8943 else
8944 eval "$as_ac_Header=\$ac_header_preproc"
8946 ac_res=`eval echo '${'$as_ac_Header'}'`
8947 { echo "$as_me:$LINENO: result: $ac_res" >&5
8948 echo "${ECHO_T}$ac_res" >&6; }
8951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8952 cat >>confdefs.h <<_ACEOF
8953 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8954 _ACEOF
8958 done
8961 for ac_header in netinet/tcp.h
8963 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8964 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8967 echo $ECHO_N "(cached) $ECHO_C" >&6
8968 else
8969 cat >conftest.$ac_ext <<_ACEOF
8970 /* confdefs.h. */
8971 _ACEOF
8972 cat confdefs.h >>conftest.$ac_ext
8973 cat >>conftest.$ac_ext <<_ACEOF
8974 /* end confdefs.h. */
8975 $ac_includes_default
8976 #ifdef HAVE_NETINET_IN_H
8977 #include <netinet/in.h>
8978 #endif
8981 #include <$ac_header>
8982 _ACEOF
8983 rm -f conftest.$ac_objext
8984 if { (ac_try="$ac_compile"
8985 case "(($ac_try" in
8986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8987 *) ac_try_echo=$ac_try;;
8988 esac
8989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8990 (eval "$ac_compile") 2>conftest.er1
8991 ac_status=$?
8992 grep -v '^ *+' conftest.er1 >conftest.err
8993 rm -f conftest.er1
8994 cat conftest.err >&5
8995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996 (exit $ac_status); } && {
8997 test -z "$ac_c_werror_flag" ||
8998 test ! -s conftest.err
8999 } && test -s conftest.$ac_objext; then
9000 eval "$as_ac_Header=yes"
9001 else
9002 echo "$as_me: failed program was:" >&5
9003 sed 's/^/| /' conftest.$ac_ext >&5
9005 eval "$as_ac_Header=no"
9008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9010 ac_res=`eval echo '${'$as_ac_Header'}'`
9011 { echo "$as_me:$LINENO: result: $ac_res" >&5
9012 echo "${ECHO_T}$ac_res" >&6; }
9013 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9014 cat >>confdefs.h <<_ACEOF
9015 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9016 _ACEOF
9020 done
9023 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
9025 for ac_header in readline/readline.h
9027 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9029 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9032 echo $ECHO_N "(cached) $ECHO_C" >&6
9034 ac_res=`eval echo '${'$as_ac_Header'}'`
9035 { echo "$as_me:$LINENO: result: $ac_res" >&5
9036 echo "${ECHO_T}$ac_res" >&6; }
9037 else
9038 # Is the header compilable?
9039 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9040 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9041 cat >conftest.$ac_ext <<_ACEOF
9042 /* confdefs.h. */
9043 _ACEOF
9044 cat confdefs.h >>conftest.$ac_ext
9045 cat >>conftest.$ac_ext <<_ACEOF
9046 /* end confdefs.h. */
9047 $ac_includes_default
9048 #include <$ac_header>
9049 _ACEOF
9050 rm -f conftest.$ac_objext
9051 if { (ac_try="$ac_compile"
9052 case "(($ac_try" in
9053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9054 *) ac_try_echo=$ac_try;;
9055 esac
9056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9057 (eval "$ac_compile") 2>conftest.er1
9058 ac_status=$?
9059 grep -v '^ *+' conftest.er1 >conftest.err
9060 rm -f conftest.er1
9061 cat conftest.err >&5
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); } && {
9064 test -z "$ac_c_werror_flag" ||
9065 test ! -s conftest.err
9066 } && test -s conftest.$ac_objext; then
9067 ac_header_compiler=yes
9068 else
9069 echo "$as_me: failed program was:" >&5
9070 sed 's/^/| /' conftest.$ac_ext >&5
9072 ac_header_compiler=no
9075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9076 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9077 echo "${ECHO_T}$ac_header_compiler" >&6; }
9079 # Is the header present?
9080 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9081 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9082 cat >conftest.$ac_ext <<_ACEOF
9083 /* confdefs.h. */
9084 _ACEOF
9085 cat confdefs.h >>conftest.$ac_ext
9086 cat >>conftest.$ac_ext <<_ACEOF
9087 /* end confdefs.h. */
9088 #include <$ac_header>
9089 _ACEOF
9090 if { (ac_try="$ac_cpp conftest.$ac_ext"
9091 case "(($ac_try" in
9092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9093 *) ac_try_echo=$ac_try;;
9094 esac
9095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9097 ac_status=$?
9098 grep -v '^ *+' conftest.er1 >conftest.err
9099 rm -f conftest.er1
9100 cat conftest.err >&5
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); } >/dev/null && {
9103 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9104 test ! -s conftest.err
9105 }; then
9106 ac_header_preproc=yes
9107 else
9108 echo "$as_me: failed program was:" >&5
9109 sed 's/^/| /' conftest.$ac_ext >&5
9111 ac_header_preproc=no
9114 rm -f conftest.err conftest.$ac_ext
9115 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9116 echo "${ECHO_T}$ac_header_preproc" >&6; }
9118 # So? What about this header?
9119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9120 yes:no: )
9121 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9122 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9124 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9125 ac_header_preproc=yes
9127 no:yes:* )
9128 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9129 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9130 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9131 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9132 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9133 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9134 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9135 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9137 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9138 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9139 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9140 ( cat <<\_ASBOX
9141 ## ---------------------------------------- ##
9142 ## Report this to pgsql-bugs@postgresql.org ##
9143 ## ---------------------------------------- ##
9144 _ASBOX
9145 ) | sed "s/^/$as_me: WARNING: /" >&2
9147 esac
9148 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9151 echo $ECHO_N "(cached) $ECHO_C" >&6
9152 else
9153 eval "$as_ac_Header=\$ac_header_preproc"
9155 ac_res=`eval echo '${'$as_ac_Header'}'`
9156 { echo "$as_me:$LINENO: result: $ac_res" >&5
9157 echo "${ECHO_T}$ac_res" >&6; }
9160 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9161 cat >>confdefs.h <<_ACEOF
9162 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9163 _ACEOF
9165 else
9167 for ac_header in readline.h
9169 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9171 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9174 echo $ECHO_N "(cached) $ECHO_C" >&6
9176 ac_res=`eval echo '${'$as_ac_Header'}'`
9177 { echo "$as_me:$LINENO: result: $ac_res" >&5
9178 echo "${ECHO_T}$ac_res" >&6; }
9179 else
9180 # Is the header compilable?
9181 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9182 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9183 cat >conftest.$ac_ext <<_ACEOF
9184 /* confdefs.h. */
9185 _ACEOF
9186 cat confdefs.h >>conftest.$ac_ext
9187 cat >>conftest.$ac_ext <<_ACEOF
9188 /* end confdefs.h. */
9189 $ac_includes_default
9190 #include <$ac_header>
9191 _ACEOF
9192 rm -f conftest.$ac_objext
9193 if { (ac_try="$ac_compile"
9194 case "(($ac_try" in
9195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9196 *) ac_try_echo=$ac_try;;
9197 esac
9198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9199 (eval "$ac_compile") 2>conftest.er1
9200 ac_status=$?
9201 grep -v '^ *+' conftest.er1 >conftest.err
9202 rm -f conftest.er1
9203 cat conftest.err >&5
9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205 (exit $ac_status); } && {
9206 test -z "$ac_c_werror_flag" ||
9207 test ! -s conftest.err
9208 } && test -s conftest.$ac_objext; then
9209 ac_header_compiler=yes
9210 else
9211 echo "$as_me: failed program was:" >&5
9212 sed 's/^/| /' conftest.$ac_ext >&5
9214 ac_header_compiler=no
9217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9218 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9219 echo "${ECHO_T}$ac_header_compiler" >&6; }
9221 # Is the header present?
9222 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9223 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9224 cat >conftest.$ac_ext <<_ACEOF
9225 /* confdefs.h. */
9226 _ACEOF
9227 cat confdefs.h >>conftest.$ac_ext
9228 cat >>conftest.$ac_ext <<_ACEOF
9229 /* end confdefs.h. */
9230 #include <$ac_header>
9231 _ACEOF
9232 if { (ac_try="$ac_cpp conftest.$ac_ext"
9233 case "(($ac_try" in
9234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9235 *) ac_try_echo=$ac_try;;
9236 esac
9237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9238 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9239 ac_status=$?
9240 grep -v '^ *+' conftest.er1 >conftest.err
9241 rm -f conftest.er1
9242 cat conftest.err >&5
9243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244 (exit $ac_status); } >/dev/null && {
9245 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9246 test ! -s conftest.err
9247 }; then
9248 ac_header_preproc=yes
9249 else
9250 echo "$as_me: failed program was:" >&5
9251 sed 's/^/| /' conftest.$ac_ext >&5
9253 ac_header_preproc=no
9256 rm -f conftest.err conftest.$ac_ext
9257 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9258 echo "${ECHO_T}$ac_header_preproc" >&6; }
9260 # So? What about this header?
9261 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9262 yes:no: )
9263 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9264 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9266 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9267 ac_header_preproc=yes
9269 no:yes:* )
9270 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9271 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9272 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9273 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9274 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9275 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9276 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9277 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9279 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9280 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9281 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9282 ( cat <<\_ASBOX
9283 ## ---------------------------------------- ##
9284 ## Report this to pgsql-bugs@postgresql.org ##
9285 ## ---------------------------------------- ##
9286 _ASBOX
9287 ) | sed "s/^/$as_me: WARNING: /" >&2
9289 esac
9290 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9293 echo $ECHO_N "(cached) $ECHO_C" >&6
9294 else
9295 eval "$as_ac_Header=\$ac_header_preproc"
9297 ac_res=`eval echo '${'$as_ac_Header'}'`
9298 { echo "$as_me:$LINENO: result: $ac_res" >&5
9299 echo "${ECHO_T}$ac_res" >&6; }
9302 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9303 cat >>confdefs.h <<_ACEOF
9304 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9305 _ACEOF
9307 else
9308 { { echo "$as_me:$LINENO: error: readline header not found
9309 If you have readline already installed, see config.log for details on the
9310 failure. It is possible the compiler isn't looking in the proper directory.
9311 Use --without-readline to disable readline support." >&5
9312 echo "$as_me: error: readline header not found
9313 If you have readline already installed, see config.log for details on the
9314 failure. It is possible the compiler isn't looking in the proper directory.
9315 Use --without-readline to disable readline support." >&2;}
9316 { (exit 1); exit 1; }; }
9319 done
9323 done
9326 for ac_header in readline/history.h
9328 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9330 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9333 echo $ECHO_N "(cached) $ECHO_C" >&6
9335 ac_res=`eval echo '${'$as_ac_Header'}'`
9336 { echo "$as_me:$LINENO: result: $ac_res" >&5
9337 echo "${ECHO_T}$ac_res" >&6; }
9338 else
9339 # Is the header compilable?
9340 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9341 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9342 cat >conftest.$ac_ext <<_ACEOF
9343 /* confdefs.h. */
9344 _ACEOF
9345 cat confdefs.h >>conftest.$ac_ext
9346 cat >>conftest.$ac_ext <<_ACEOF
9347 /* end confdefs.h. */
9348 $ac_includes_default
9349 #include <$ac_header>
9350 _ACEOF
9351 rm -f conftest.$ac_objext
9352 if { (ac_try="$ac_compile"
9353 case "(($ac_try" in
9354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9355 *) ac_try_echo=$ac_try;;
9356 esac
9357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9358 (eval "$ac_compile") 2>conftest.er1
9359 ac_status=$?
9360 grep -v '^ *+' conftest.er1 >conftest.err
9361 rm -f conftest.er1
9362 cat conftest.err >&5
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); } && {
9365 test -z "$ac_c_werror_flag" ||
9366 test ! -s conftest.err
9367 } && test -s conftest.$ac_objext; then
9368 ac_header_compiler=yes
9369 else
9370 echo "$as_me: failed program was:" >&5
9371 sed 's/^/| /' conftest.$ac_ext >&5
9373 ac_header_compiler=no
9376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9377 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9378 echo "${ECHO_T}$ac_header_compiler" >&6; }
9380 # Is the header present?
9381 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9382 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9383 cat >conftest.$ac_ext <<_ACEOF
9384 /* confdefs.h. */
9385 _ACEOF
9386 cat confdefs.h >>conftest.$ac_ext
9387 cat >>conftest.$ac_ext <<_ACEOF
9388 /* end confdefs.h. */
9389 #include <$ac_header>
9390 _ACEOF
9391 if { (ac_try="$ac_cpp conftest.$ac_ext"
9392 case "(($ac_try" in
9393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9394 *) ac_try_echo=$ac_try;;
9395 esac
9396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9397 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9398 ac_status=$?
9399 grep -v '^ *+' conftest.er1 >conftest.err
9400 rm -f conftest.er1
9401 cat conftest.err >&5
9402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 (exit $ac_status); } >/dev/null && {
9404 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9405 test ! -s conftest.err
9406 }; then
9407 ac_header_preproc=yes
9408 else
9409 echo "$as_me: failed program was:" >&5
9410 sed 's/^/| /' conftest.$ac_ext >&5
9412 ac_header_preproc=no
9415 rm -f conftest.err conftest.$ac_ext
9416 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9417 echo "${ECHO_T}$ac_header_preproc" >&6; }
9419 # So? What about this header?
9420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9421 yes:no: )
9422 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9423 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9425 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9426 ac_header_preproc=yes
9428 no:yes:* )
9429 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9430 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9431 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9432 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9433 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9434 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9435 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9436 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9438 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9439 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9440 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9441 ( cat <<\_ASBOX
9442 ## ---------------------------------------- ##
9443 ## Report this to pgsql-bugs@postgresql.org ##
9444 ## ---------------------------------------- ##
9445 _ASBOX
9446 ) | sed "s/^/$as_me: WARNING: /" >&2
9448 esac
9449 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9451 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9452 echo $ECHO_N "(cached) $ECHO_C" >&6
9453 else
9454 eval "$as_ac_Header=\$ac_header_preproc"
9456 ac_res=`eval echo '${'$as_ac_Header'}'`
9457 { echo "$as_me:$LINENO: result: $ac_res" >&5
9458 echo "${ECHO_T}$ac_res" >&6; }
9461 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9462 cat >>confdefs.h <<_ACEOF
9463 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9464 _ACEOF
9466 else
9468 for ac_header in history.h
9470 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9472 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9475 echo $ECHO_N "(cached) $ECHO_C" >&6
9477 ac_res=`eval echo '${'$as_ac_Header'}'`
9478 { echo "$as_me:$LINENO: result: $ac_res" >&5
9479 echo "${ECHO_T}$ac_res" >&6; }
9480 else
9481 # Is the header compilable?
9482 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9483 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9484 cat >conftest.$ac_ext <<_ACEOF
9485 /* confdefs.h. */
9486 _ACEOF
9487 cat confdefs.h >>conftest.$ac_ext
9488 cat >>conftest.$ac_ext <<_ACEOF
9489 /* end confdefs.h. */
9490 $ac_includes_default
9491 #include <$ac_header>
9492 _ACEOF
9493 rm -f conftest.$ac_objext
9494 if { (ac_try="$ac_compile"
9495 case "(($ac_try" in
9496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9497 *) ac_try_echo=$ac_try;;
9498 esac
9499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9500 (eval "$ac_compile") 2>conftest.er1
9501 ac_status=$?
9502 grep -v '^ *+' conftest.er1 >conftest.err
9503 rm -f conftest.er1
9504 cat conftest.err >&5
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); } && {
9507 test -z "$ac_c_werror_flag" ||
9508 test ! -s conftest.err
9509 } && test -s conftest.$ac_objext; then
9510 ac_header_compiler=yes
9511 else
9512 echo "$as_me: failed program was:" >&5
9513 sed 's/^/| /' conftest.$ac_ext >&5
9515 ac_header_compiler=no
9518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9519 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9520 echo "${ECHO_T}$ac_header_compiler" >&6; }
9522 # Is the header present?
9523 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9525 cat >conftest.$ac_ext <<_ACEOF
9526 /* confdefs.h. */
9527 _ACEOF
9528 cat confdefs.h >>conftest.$ac_ext
9529 cat >>conftest.$ac_ext <<_ACEOF
9530 /* end confdefs.h. */
9531 #include <$ac_header>
9532 _ACEOF
9533 if { (ac_try="$ac_cpp conftest.$ac_ext"
9534 case "(($ac_try" in
9535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9536 *) ac_try_echo=$ac_try;;
9537 esac
9538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9540 ac_status=$?
9541 grep -v '^ *+' conftest.er1 >conftest.err
9542 rm -f conftest.er1
9543 cat conftest.err >&5
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); } >/dev/null && {
9546 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9547 test ! -s conftest.err
9548 }; then
9549 ac_header_preproc=yes
9550 else
9551 echo "$as_me: failed program was:" >&5
9552 sed 's/^/| /' conftest.$ac_ext >&5
9554 ac_header_preproc=no
9557 rm -f conftest.err conftest.$ac_ext
9558 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9559 echo "${ECHO_T}$ac_header_preproc" >&6; }
9561 # So? What about this header?
9562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9563 yes:no: )
9564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9567 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9568 ac_header_preproc=yes
9570 no:yes:* )
9571 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9572 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9573 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9574 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9575 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9576 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9577 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9578 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9581 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9582 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9583 ( cat <<\_ASBOX
9584 ## ---------------------------------------- ##
9585 ## Report this to pgsql-bugs@postgresql.org ##
9586 ## ---------------------------------------- ##
9587 _ASBOX
9588 ) | sed "s/^/$as_me: WARNING: /" >&2
9590 esac
9591 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9594 echo $ECHO_N "(cached) $ECHO_C" >&6
9595 else
9596 eval "$as_ac_Header=\$ac_header_preproc"
9598 ac_res=`eval echo '${'$as_ac_Header'}'`
9599 { echo "$as_me:$LINENO: result: $ac_res" >&5
9600 echo "${ECHO_T}$ac_res" >&6; }
9603 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9604 cat >>confdefs.h <<_ACEOF
9605 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9606 _ACEOF
9608 else
9609 { { echo "$as_me:$LINENO: error: history header not found
9610 If you have readline already installed, see config.log for details on the
9611 failure. It is possible the compiler isn't looking in the proper directory.
9612 Use --without-readline to disable readline support." >&5
9613 echo "$as_me: error: history header not found
9614 If you have readline already installed, see config.log for details on the
9615 failure. It is possible the compiler isn't looking in the proper directory.
9616 Use --without-readline to disable readline support." >&2;}
9617 { (exit 1); exit 1; }; }
9620 done
9624 done
9628 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
9629 # Some installations of libedit usurp /usr/include/readline/, which seems
9630 # bad practice, since in combined installations readline will have its headers
9631 # there. We might have to resort to AC_EGREP checks to make sure we found
9632 # the proper header...
9634 for ac_header in editline/readline.h
9636 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9638 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9641 echo $ECHO_N "(cached) $ECHO_C" >&6
9643 ac_res=`eval echo '${'$as_ac_Header'}'`
9644 { echo "$as_me:$LINENO: result: $ac_res" >&5
9645 echo "${ECHO_T}$ac_res" >&6; }
9646 else
9647 # Is the header compilable?
9648 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9649 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9650 cat >conftest.$ac_ext <<_ACEOF
9651 /* confdefs.h. */
9652 _ACEOF
9653 cat confdefs.h >>conftest.$ac_ext
9654 cat >>conftest.$ac_ext <<_ACEOF
9655 /* end confdefs.h. */
9656 $ac_includes_default
9657 #include <$ac_header>
9658 _ACEOF
9659 rm -f conftest.$ac_objext
9660 if { (ac_try="$ac_compile"
9661 case "(($ac_try" in
9662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9663 *) ac_try_echo=$ac_try;;
9664 esac
9665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9666 (eval "$ac_compile") 2>conftest.er1
9667 ac_status=$?
9668 grep -v '^ *+' conftest.er1 >conftest.err
9669 rm -f conftest.er1
9670 cat conftest.err >&5
9671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672 (exit $ac_status); } && {
9673 test -z "$ac_c_werror_flag" ||
9674 test ! -s conftest.err
9675 } && test -s conftest.$ac_objext; then
9676 ac_header_compiler=yes
9677 else
9678 echo "$as_me: failed program was:" >&5
9679 sed 's/^/| /' conftest.$ac_ext >&5
9681 ac_header_compiler=no
9684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9685 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9686 echo "${ECHO_T}$ac_header_compiler" >&6; }
9688 # Is the header present?
9689 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9690 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9691 cat >conftest.$ac_ext <<_ACEOF
9692 /* confdefs.h. */
9693 _ACEOF
9694 cat confdefs.h >>conftest.$ac_ext
9695 cat >>conftest.$ac_ext <<_ACEOF
9696 /* end confdefs.h. */
9697 #include <$ac_header>
9698 _ACEOF
9699 if { (ac_try="$ac_cpp conftest.$ac_ext"
9700 case "(($ac_try" in
9701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9702 *) ac_try_echo=$ac_try;;
9703 esac
9704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9706 ac_status=$?
9707 grep -v '^ *+' conftest.er1 >conftest.err
9708 rm -f conftest.er1
9709 cat conftest.err >&5
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); } >/dev/null && {
9712 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9713 test ! -s conftest.err
9714 }; then
9715 ac_header_preproc=yes
9716 else
9717 echo "$as_me: failed program was:" >&5
9718 sed 's/^/| /' conftest.$ac_ext >&5
9720 ac_header_preproc=no
9723 rm -f conftest.err conftest.$ac_ext
9724 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9725 echo "${ECHO_T}$ac_header_preproc" >&6; }
9727 # So? What about this header?
9728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9729 yes:no: )
9730 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9731 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9733 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9734 ac_header_preproc=yes
9736 no:yes:* )
9737 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9738 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9739 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9740 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9741 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9742 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9743 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9744 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9746 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9747 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9748 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9749 ( cat <<\_ASBOX
9750 ## ---------------------------------------- ##
9751 ## Report this to pgsql-bugs@postgresql.org ##
9752 ## ---------------------------------------- ##
9753 _ASBOX
9754 ) | sed "s/^/$as_me: WARNING: /" >&2
9756 esac
9757 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9760 echo $ECHO_N "(cached) $ECHO_C" >&6
9761 else
9762 eval "$as_ac_Header=\$ac_header_preproc"
9764 ac_res=`eval echo '${'$as_ac_Header'}'`
9765 { echo "$as_me:$LINENO: result: $ac_res" >&5
9766 echo "${ECHO_T}$ac_res" >&6; }
9769 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9770 cat >>confdefs.h <<_ACEOF
9771 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9772 _ACEOF
9774 else
9776 for ac_header in readline.h
9778 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9780 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9783 echo $ECHO_N "(cached) $ECHO_C" >&6
9785 ac_res=`eval echo '${'$as_ac_Header'}'`
9786 { echo "$as_me:$LINENO: result: $ac_res" >&5
9787 echo "${ECHO_T}$ac_res" >&6; }
9788 else
9789 # Is the header compilable?
9790 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9791 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9792 cat >conftest.$ac_ext <<_ACEOF
9793 /* confdefs.h. */
9794 _ACEOF
9795 cat confdefs.h >>conftest.$ac_ext
9796 cat >>conftest.$ac_ext <<_ACEOF
9797 /* end confdefs.h. */
9798 $ac_includes_default
9799 #include <$ac_header>
9800 _ACEOF
9801 rm -f conftest.$ac_objext
9802 if { (ac_try="$ac_compile"
9803 case "(($ac_try" in
9804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9805 *) ac_try_echo=$ac_try;;
9806 esac
9807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9808 (eval "$ac_compile") 2>conftest.er1
9809 ac_status=$?
9810 grep -v '^ *+' conftest.er1 >conftest.err
9811 rm -f conftest.er1
9812 cat conftest.err >&5
9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814 (exit $ac_status); } && {
9815 test -z "$ac_c_werror_flag" ||
9816 test ! -s conftest.err
9817 } && test -s conftest.$ac_objext; then
9818 ac_header_compiler=yes
9819 else
9820 echo "$as_me: failed program was:" >&5
9821 sed 's/^/| /' conftest.$ac_ext >&5
9823 ac_header_compiler=no
9826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9827 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9828 echo "${ECHO_T}$ac_header_compiler" >&6; }
9830 # Is the header present?
9831 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9832 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9833 cat >conftest.$ac_ext <<_ACEOF
9834 /* confdefs.h. */
9835 _ACEOF
9836 cat confdefs.h >>conftest.$ac_ext
9837 cat >>conftest.$ac_ext <<_ACEOF
9838 /* end confdefs.h. */
9839 #include <$ac_header>
9840 _ACEOF
9841 if { (ac_try="$ac_cpp conftest.$ac_ext"
9842 case "(($ac_try" in
9843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9844 *) ac_try_echo=$ac_try;;
9845 esac
9846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9848 ac_status=$?
9849 grep -v '^ *+' conftest.er1 >conftest.err
9850 rm -f conftest.er1
9851 cat conftest.err >&5
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); } >/dev/null && {
9854 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9855 test ! -s conftest.err
9856 }; then
9857 ac_header_preproc=yes
9858 else
9859 echo "$as_me: failed program was:" >&5
9860 sed 's/^/| /' conftest.$ac_ext >&5
9862 ac_header_preproc=no
9865 rm -f conftest.err conftest.$ac_ext
9866 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9867 echo "${ECHO_T}$ac_header_preproc" >&6; }
9869 # So? What about this header?
9870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9871 yes:no: )
9872 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9873 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9875 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9876 ac_header_preproc=yes
9878 no:yes:* )
9879 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9880 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9881 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9882 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9883 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9884 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9885 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9886 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9888 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9889 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9890 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9891 ( cat <<\_ASBOX
9892 ## ---------------------------------------- ##
9893 ## Report this to pgsql-bugs@postgresql.org ##
9894 ## ---------------------------------------- ##
9895 _ASBOX
9896 ) | sed "s/^/$as_me: WARNING: /" >&2
9898 esac
9899 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9902 echo $ECHO_N "(cached) $ECHO_C" >&6
9903 else
9904 eval "$as_ac_Header=\$ac_header_preproc"
9906 ac_res=`eval echo '${'$as_ac_Header'}'`
9907 { echo "$as_me:$LINENO: result: $ac_res" >&5
9908 echo "${ECHO_T}$ac_res" >&6; }
9911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9912 cat >>confdefs.h <<_ACEOF
9913 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9914 _ACEOF
9916 else
9918 for ac_header in readline/readline.h
9920 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9922 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9925 echo $ECHO_N "(cached) $ECHO_C" >&6
9927 ac_res=`eval echo '${'$as_ac_Header'}'`
9928 { echo "$as_me:$LINENO: result: $ac_res" >&5
9929 echo "${ECHO_T}$ac_res" >&6; }
9930 else
9931 # Is the header compilable?
9932 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9933 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9934 cat >conftest.$ac_ext <<_ACEOF
9935 /* confdefs.h. */
9936 _ACEOF
9937 cat confdefs.h >>conftest.$ac_ext
9938 cat >>conftest.$ac_ext <<_ACEOF
9939 /* end confdefs.h. */
9940 $ac_includes_default
9941 #include <$ac_header>
9942 _ACEOF
9943 rm -f conftest.$ac_objext
9944 if { (ac_try="$ac_compile"
9945 case "(($ac_try" in
9946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9947 *) ac_try_echo=$ac_try;;
9948 esac
9949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9950 (eval "$ac_compile") 2>conftest.er1
9951 ac_status=$?
9952 grep -v '^ *+' conftest.er1 >conftest.err
9953 rm -f conftest.er1
9954 cat conftest.err >&5
9955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956 (exit $ac_status); } && {
9957 test -z "$ac_c_werror_flag" ||
9958 test ! -s conftest.err
9959 } && test -s conftest.$ac_objext; then
9960 ac_header_compiler=yes
9961 else
9962 echo "$as_me: failed program was:" >&5
9963 sed 's/^/| /' conftest.$ac_ext >&5
9965 ac_header_compiler=no
9968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9969 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9970 echo "${ECHO_T}$ac_header_compiler" >&6; }
9972 # Is the header present?
9973 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9974 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9975 cat >conftest.$ac_ext <<_ACEOF
9976 /* confdefs.h. */
9977 _ACEOF
9978 cat confdefs.h >>conftest.$ac_ext
9979 cat >>conftest.$ac_ext <<_ACEOF
9980 /* end confdefs.h. */
9981 #include <$ac_header>
9982 _ACEOF
9983 if { (ac_try="$ac_cpp conftest.$ac_ext"
9984 case "(($ac_try" in
9985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9986 *) ac_try_echo=$ac_try;;
9987 esac
9988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9990 ac_status=$?
9991 grep -v '^ *+' conftest.er1 >conftest.err
9992 rm -f conftest.er1
9993 cat conftest.err >&5
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); } >/dev/null && {
9996 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9997 test ! -s conftest.err
9998 }; then
9999 ac_header_preproc=yes
10000 else
10001 echo "$as_me: failed program was:" >&5
10002 sed 's/^/| /' conftest.$ac_ext >&5
10004 ac_header_preproc=no
10007 rm -f conftest.err conftest.$ac_ext
10008 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10009 echo "${ECHO_T}$ac_header_preproc" >&6; }
10011 # So? What about this header?
10012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10013 yes:no: )
10014 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10015 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10017 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10018 ac_header_preproc=yes
10020 no:yes:* )
10021 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10022 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10023 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10024 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10025 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10026 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10027 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10028 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10030 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10031 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10032 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10033 ( cat <<\_ASBOX
10034 ## ---------------------------------------- ##
10035 ## Report this to pgsql-bugs@postgresql.org ##
10036 ## ---------------------------------------- ##
10037 _ASBOX
10038 ) | sed "s/^/$as_me: WARNING: /" >&2
10040 esac
10041 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10044 echo $ECHO_N "(cached) $ECHO_C" >&6
10045 else
10046 eval "$as_ac_Header=\$ac_header_preproc"
10048 ac_res=`eval echo '${'$as_ac_Header'}'`
10049 { echo "$as_me:$LINENO: result: $ac_res" >&5
10050 echo "${ECHO_T}$ac_res" >&6; }
10053 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10054 cat >>confdefs.h <<_ACEOF
10055 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10056 _ACEOF
10058 else
10059 { { echo "$as_me:$LINENO: error: readline header not found
10060 If you have libedit already installed, see config.log for details on the
10061 failure. It is possible the compiler isn't looking in the proper directory.
10062 Use --without-readline to disable libedit support." >&5
10063 echo "$as_me: error: readline header not found
10064 If you have libedit already installed, see config.log for details on the
10065 failure. It is possible the compiler isn't looking in the proper directory.
10066 Use --without-readline to disable libedit support." >&2;}
10067 { (exit 1); exit 1; }; }
10070 done
10074 done
10078 done
10080 # Note: in a libedit installation, history.h is sometimes a dummy, and may
10081 # not be there at all. Hence, don't complain if not found. We must check
10082 # though, since in yet other versions it is an independent header.
10084 for ac_header in editline/history.h
10086 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10088 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10091 echo $ECHO_N "(cached) $ECHO_C" >&6
10093 ac_res=`eval echo '${'$as_ac_Header'}'`
10094 { echo "$as_me:$LINENO: result: $ac_res" >&5
10095 echo "${ECHO_T}$ac_res" >&6; }
10096 else
10097 # Is the header compilable?
10098 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10099 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10100 cat >conftest.$ac_ext <<_ACEOF
10101 /* confdefs.h. */
10102 _ACEOF
10103 cat confdefs.h >>conftest.$ac_ext
10104 cat >>conftest.$ac_ext <<_ACEOF
10105 /* end confdefs.h. */
10106 $ac_includes_default
10107 #include <$ac_header>
10108 _ACEOF
10109 rm -f conftest.$ac_objext
10110 if { (ac_try="$ac_compile"
10111 case "(($ac_try" in
10112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10113 *) ac_try_echo=$ac_try;;
10114 esac
10115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10116 (eval "$ac_compile") 2>conftest.er1
10117 ac_status=$?
10118 grep -v '^ *+' conftest.er1 >conftest.err
10119 rm -f conftest.er1
10120 cat conftest.err >&5
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); } && {
10123 test -z "$ac_c_werror_flag" ||
10124 test ! -s conftest.err
10125 } && test -s conftest.$ac_objext; then
10126 ac_header_compiler=yes
10127 else
10128 echo "$as_me: failed program was:" >&5
10129 sed 's/^/| /' conftest.$ac_ext >&5
10131 ac_header_compiler=no
10134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10135 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10136 echo "${ECHO_T}$ac_header_compiler" >&6; }
10138 # Is the header present?
10139 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10140 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10141 cat >conftest.$ac_ext <<_ACEOF
10142 /* confdefs.h. */
10143 _ACEOF
10144 cat confdefs.h >>conftest.$ac_ext
10145 cat >>conftest.$ac_ext <<_ACEOF
10146 /* end confdefs.h. */
10147 #include <$ac_header>
10148 _ACEOF
10149 if { (ac_try="$ac_cpp conftest.$ac_ext"
10150 case "(($ac_try" in
10151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10152 *) ac_try_echo=$ac_try;;
10153 esac
10154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10155 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10156 ac_status=$?
10157 grep -v '^ *+' conftest.er1 >conftest.err
10158 rm -f conftest.er1
10159 cat conftest.err >&5
10160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161 (exit $ac_status); } >/dev/null && {
10162 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10163 test ! -s conftest.err
10164 }; then
10165 ac_header_preproc=yes
10166 else
10167 echo "$as_me: failed program was:" >&5
10168 sed 's/^/| /' conftest.$ac_ext >&5
10170 ac_header_preproc=no
10173 rm -f conftest.err conftest.$ac_ext
10174 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10175 echo "${ECHO_T}$ac_header_preproc" >&6; }
10177 # So? What about this header?
10178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10179 yes:no: )
10180 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10181 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10183 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10184 ac_header_preproc=yes
10186 no:yes:* )
10187 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10188 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10189 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10190 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10191 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10192 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10193 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10194 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10196 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10197 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10198 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10199 ( cat <<\_ASBOX
10200 ## ---------------------------------------- ##
10201 ## Report this to pgsql-bugs@postgresql.org ##
10202 ## ---------------------------------------- ##
10203 _ASBOX
10204 ) | sed "s/^/$as_me: WARNING: /" >&2
10206 esac
10207 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10210 echo $ECHO_N "(cached) $ECHO_C" >&6
10211 else
10212 eval "$as_ac_Header=\$ac_header_preproc"
10214 ac_res=`eval echo '${'$as_ac_Header'}'`
10215 { echo "$as_me:$LINENO: result: $ac_res" >&5
10216 echo "${ECHO_T}$ac_res" >&6; }
10219 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10220 cat >>confdefs.h <<_ACEOF
10221 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10222 _ACEOF
10224 else
10226 for ac_header in history.h
10228 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10230 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10233 echo $ECHO_N "(cached) $ECHO_C" >&6
10235 ac_res=`eval echo '${'$as_ac_Header'}'`
10236 { echo "$as_me:$LINENO: result: $ac_res" >&5
10237 echo "${ECHO_T}$ac_res" >&6; }
10238 else
10239 # Is the header compilable?
10240 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10241 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10242 cat >conftest.$ac_ext <<_ACEOF
10243 /* confdefs.h. */
10244 _ACEOF
10245 cat confdefs.h >>conftest.$ac_ext
10246 cat >>conftest.$ac_ext <<_ACEOF
10247 /* end confdefs.h. */
10248 $ac_includes_default
10249 #include <$ac_header>
10250 _ACEOF
10251 rm -f conftest.$ac_objext
10252 if { (ac_try="$ac_compile"
10253 case "(($ac_try" in
10254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10255 *) ac_try_echo=$ac_try;;
10256 esac
10257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10258 (eval "$ac_compile") 2>conftest.er1
10259 ac_status=$?
10260 grep -v '^ *+' conftest.er1 >conftest.err
10261 rm -f conftest.er1
10262 cat conftest.err >&5
10263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264 (exit $ac_status); } && {
10265 test -z "$ac_c_werror_flag" ||
10266 test ! -s conftest.err
10267 } && test -s conftest.$ac_objext; then
10268 ac_header_compiler=yes
10269 else
10270 echo "$as_me: failed program was:" >&5
10271 sed 's/^/| /' conftest.$ac_ext >&5
10273 ac_header_compiler=no
10276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10277 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10278 echo "${ECHO_T}$ac_header_compiler" >&6; }
10280 # Is the header present?
10281 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10282 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10283 cat >conftest.$ac_ext <<_ACEOF
10284 /* confdefs.h. */
10285 _ACEOF
10286 cat confdefs.h >>conftest.$ac_ext
10287 cat >>conftest.$ac_ext <<_ACEOF
10288 /* end confdefs.h. */
10289 #include <$ac_header>
10290 _ACEOF
10291 if { (ac_try="$ac_cpp conftest.$ac_ext"
10292 case "(($ac_try" in
10293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10294 *) ac_try_echo=$ac_try;;
10295 esac
10296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10298 ac_status=$?
10299 grep -v '^ *+' conftest.er1 >conftest.err
10300 rm -f conftest.er1
10301 cat conftest.err >&5
10302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303 (exit $ac_status); } >/dev/null && {
10304 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10305 test ! -s conftest.err
10306 }; then
10307 ac_header_preproc=yes
10308 else
10309 echo "$as_me: failed program was:" >&5
10310 sed 's/^/| /' conftest.$ac_ext >&5
10312 ac_header_preproc=no
10315 rm -f conftest.err conftest.$ac_ext
10316 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10317 echo "${ECHO_T}$ac_header_preproc" >&6; }
10319 # So? What about this header?
10320 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10321 yes:no: )
10322 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10323 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10325 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10326 ac_header_preproc=yes
10328 no:yes:* )
10329 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10330 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10331 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10332 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10333 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10334 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10335 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10336 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10339 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10340 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10341 ( cat <<\_ASBOX
10342 ## ---------------------------------------- ##
10343 ## Report this to pgsql-bugs@postgresql.org ##
10344 ## ---------------------------------------- ##
10345 _ASBOX
10346 ) | sed "s/^/$as_me: WARNING: /" >&2
10348 esac
10349 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10352 echo $ECHO_N "(cached) $ECHO_C" >&6
10353 else
10354 eval "$as_ac_Header=\$ac_header_preproc"
10356 ac_res=`eval echo '${'$as_ac_Header'}'`
10357 { echo "$as_me:$LINENO: result: $ac_res" >&5
10358 echo "${ECHO_T}$ac_res" >&6; }
10361 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10362 cat >>confdefs.h <<_ACEOF
10363 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10364 _ACEOF
10366 else
10368 for ac_header in readline/history.h
10370 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10372 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10375 echo $ECHO_N "(cached) $ECHO_C" >&6
10377 ac_res=`eval echo '${'$as_ac_Header'}'`
10378 { echo "$as_me:$LINENO: result: $ac_res" >&5
10379 echo "${ECHO_T}$ac_res" >&6; }
10380 else
10381 # Is the header compilable?
10382 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10383 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10384 cat >conftest.$ac_ext <<_ACEOF
10385 /* confdefs.h. */
10386 _ACEOF
10387 cat confdefs.h >>conftest.$ac_ext
10388 cat >>conftest.$ac_ext <<_ACEOF
10389 /* end confdefs.h. */
10390 $ac_includes_default
10391 #include <$ac_header>
10392 _ACEOF
10393 rm -f conftest.$ac_objext
10394 if { (ac_try="$ac_compile"
10395 case "(($ac_try" in
10396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10397 *) ac_try_echo=$ac_try;;
10398 esac
10399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10400 (eval "$ac_compile") 2>conftest.er1
10401 ac_status=$?
10402 grep -v '^ *+' conftest.er1 >conftest.err
10403 rm -f conftest.er1
10404 cat conftest.err >&5
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); } && {
10407 test -z "$ac_c_werror_flag" ||
10408 test ! -s conftest.err
10409 } && test -s conftest.$ac_objext; then
10410 ac_header_compiler=yes
10411 else
10412 echo "$as_me: failed program was:" >&5
10413 sed 's/^/| /' conftest.$ac_ext >&5
10415 ac_header_compiler=no
10418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10419 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10420 echo "${ECHO_T}$ac_header_compiler" >&6; }
10422 # Is the header present?
10423 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10424 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10425 cat >conftest.$ac_ext <<_ACEOF
10426 /* confdefs.h. */
10427 _ACEOF
10428 cat confdefs.h >>conftest.$ac_ext
10429 cat >>conftest.$ac_ext <<_ACEOF
10430 /* end confdefs.h. */
10431 #include <$ac_header>
10432 _ACEOF
10433 if { (ac_try="$ac_cpp conftest.$ac_ext"
10434 case "(($ac_try" in
10435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10436 *) ac_try_echo=$ac_try;;
10437 esac
10438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10440 ac_status=$?
10441 grep -v '^ *+' conftest.er1 >conftest.err
10442 rm -f conftest.er1
10443 cat conftest.err >&5
10444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445 (exit $ac_status); } >/dev/null && {
10446 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10447 test ! -s conftest.err
10448 }; then
10449 ac_header_preproc=yes
10450 else
10451 echo "$as_me: failed program was:" >&5
10452 sed 's/^/| /' conftest.$ac_ext >&5
10454 ac_header_preproc=no
10457 rm -f conftest.err conftest.$ac_ext
10458 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10459 echo "${ECHO_T}$ac_header_preproc" >&6; }
10461 # So? What about this header?
10462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10463 yes:no: )
10464 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10465 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10467 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10468 ac_header_preproc=yes
10470 no:yes:* )
10471 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10472 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10473 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10474 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10475 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10476 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10477 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10478 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10480 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10481 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10482 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10483 ( cat <<\_ASBOX
10484 ## ---------------------------------------- ##
10485 ## Report this to pgsql-bugs@postgresql.org ##
10486 ## ---------------------------------------- ##
10487 _ASBOX
10488 ) | sed "s/^/$as_me: WARNING: /" >&2
10490 esac
10491 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10494 echo $ECHO_N "(cached) $ECHO_C" >&6
10495 else
10496 eval "$as_ac_Header=\$ac_header_preproc"
10498 ac_res=`eval echo '${'$as_ac_Header'}'`
10499 { echo "$as_me:$LINENO: result: $ac_res" >&5
10500 echo "${ECHO_T}$ac_res" >&6; }
10503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10504 cat >>confdefs.h <<_ACEOF
10505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10506 _ACEOF
10510 done
10514 done
10518 done
10522 if test "$with_zlib" = yes; then
10523 if test "${ac_cv_header_zlib_h+set}" = set; then
10524 { echo "$as_me:$LINENO: checking for zlib.h" >&5
10525 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10526 if test "${ac_cv_header_zlib_h+set}" = set; then
10527 echo $ECHO_N "(cached) $ECHO_C" >&6
10529 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10530 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10531 else
10532 # Is the header compilable?
10533 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
10534 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
10535 cat >conftest.$ac_ext <<_ACEOF
10536 /* confdefs.h. */
10537 _ACEOF
10538 cat confdefs.h >>conftest.$ac_ext
10539 cat >>conftest.$ac_ext <<_ACEOF
10540 /* end confdefs.h. */
10541 $ac_includes_default
10542 #include <zlib.h>
10543 _ACEOF
10544 rm -f conftest.$ac_objext
10545 if { (ac_try="$ac_compile"
10546 case "(($ac_try" in
10547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10548 *) ac_try_echo=$ac_try;;
10549 esac
10550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10551 (eval "$ac_compile") 2>conftest.er1
10552 ac_status=$?
10553 grep -v '^ *+' conftest.er1 >conftest.err
10554 rm -f conftest.er1
10555 cat conftest.err >&5
10556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557 (exit $ac_status); } && {
10558 test -z "$ac_c_werror_flag" ||
10559 test ! -s conftest.err
10560 } && test -s conftest.$ac_objext; then
10561 ac_header_compiler=yes
10562 else
10563 echo "$as_me: failed program was:" >&5
10564 sed 's/^/| /' conftest.$ac_ext >&5
10566 ac_header_compiler=no
10569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10570 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10571 echo "${ECHO_T}$ac_header_compiler" >&6; }
10573 # Is the header present?
10574 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
10575 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
10576 cat >conftest.$ac_ext <<_ACEOF
10577 /* confdefs.h. */
10578 _ACEOF
10579 cat confdefs.h >>conftest.$ac_ext
10580 cat >>conftest.$ac_ext <<_ACEOF
10581 /* end confdefs.h. */
10582 #include <zlib.h>
10583 _ACEOF
10584 if { (ac_try="$ac_cpp conftest.$ac_ext"
10585 case "(($ac_try" in
10586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10587 *) ac_try_echo=$ac_try;;
10588 esac
10589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10591 ac_status=$?
10592 grep -v '^ *+' conftest.er1 >conftest.err
10593 rm -f conftest.er1
10594 cat conftest.err >&5
10595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596 (exit $ac_status); } >/dev/null && {
10597 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10598 test ! -s conftest.err
10599 }; then
10600 ac_header_preproc=yes
10601 else
10602 echo "$as_me: failed program was:" >&5
10603 sed 's/^/| /' conftest.$ac_ext >&5
10605 ac_header_preproc=no
10608 rm -f conftest.err conftest.$ac_ext
10609 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10610 echo "${ECHO_T}$ac_header_preproc" >&6; }
10612 # So? What about this header?
10613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10614 yes:no: )
10615 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10616 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10617 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
10618 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
10619 ac_header_preproc=yes
10621 no:yes:* )
10622 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
10623 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
10624 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
10625 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
10626 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
10627 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
10628 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
10629 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
10630 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
10631 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
10632 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
10633 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
10634 ( cat <<\_ASBOX
10635 ## ---------------------------------------- ##
10636 ## Report this to pgsql-bugs@postgresql.org ##
10637 ## ---------------------------------------- ##
10638 _ASBOX
10639 ) | sed "s/^/$as_me: WARNING: /" >&2
10641 esac
10642 { echo "$as_me:$LINENO: checking for zlib.h" >&5
10643 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10644 if test "${ac_cv_header_zlib_h+set}" = set; then
10645 echo $ECHO_N "(cached) $ECHO_C" >&6
10646 else
10647 ac_cv_header_zlib_h=$ac_header_preproc
10649 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10650 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10653 if test $ac_cv_header_zlib_h = yes; then
10655 else
10656 { { echo "$as_me:$LINENO: error: zlib header not found
10657 If you have zlib already installed, see config.log for details on the
10658 failure. It is possible the compiler isn't looking in the proper directory.
10659 Use --without-zlib to disable zlib support." >&5
10660 echo "$as_me: error: zlib header not found
10661 If you have zlib already installed, see config.log for details on the
10662 failure. It is possible the compiler isn't looking in the proper directory.
10663 Use --without-zlib to disable zlib support." >&2;}
10664 { (exit 1); exit 1; }; }
10670 if test "$with_gssapi" = yes ; then
10672 for ac_header in gssapi/gssapi.h
10674 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10676 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10677 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10678 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10679 echo $ECHO_N "(cached) $ECHO_C" >&6
10681 ac_res=`eval echo '${'$as_ac_Header'}'`
10682 { echo "$as_me:$LINENO: result: $ac_res" >&5
10683 echo "${ECHO_T}$ac_res" >&6; }
10684 else
10685 # Is the header compilable?
10686 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10687 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10688 cat >conftest.$ac_ext <<_ACEOF
10689 /* confdefs.h. */
10690 _ACEOF
10691 cat confdefs.h >>conftest.$ac_ext
10692 cat >>conftest.$ac_ext <<_ACEOF
10693 /* end confdefs.h. */
10694 $ac_includes_default
10695 #include <$ac_header>
10696 _ACEOF
10697 rm -f conftest.$ac_objext
10698 if { (ac_try="$ac_compile"
10699 case "(($ac_try" in
10700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10701 *) ac_try_echo=$ac_try;;
10702 esac
10703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10704 (eval "$ac_compile") 2>conftest.er1
10705 ac_status=$?
10706 grep -v '^ *+' conftest.er1 >conftest.err
10707 rm -f conftest.er1
10708 cat conftest.err >&5
10709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); } && {
10711 test -z "$ac_c_werror_flag" ||
10712 test ! -s conftest.err
10713 } && test -s conftest.$ac_objext; then
10714 ac_header_compiler=yes
10715 else
10716 echo "$as_me: failed program was:" >&5
10717 sed 's/^/| /' conftest.$ac_ext >&5
10719 ac_header_compiler=no
10722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10723 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10724 echo "${ECHO_T}$ac_header_compiler" >&6; }
10726 # Is the header present?
10727 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10728 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10729 cat >conftest.$ac_ext <<_ACEOF
10730 /* confdefs.h. */
10731 _ACEOF
10732 cat confdefs.h >>conftest.$ac_ext
10733 cat >>conftest.$ac_ext <<_ACEOF
10734 /* end confdefs.h. */
10735 #include <$ac_header>
10736 _ACEOF
10737 if { (ac_try="$ac_cpp conftest.$ac_ext"
10738 case "(($ac_try" in
10739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10740 *) ac_try_echo=$ac_try;;
10741 esac
10742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10744 ac_status=$?
10745 grep -v '^ *+' conftest.er1 >conftest.err
10746 rm -f conftest.er1
10747 cat conftest.err >&5
10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); } >/dev/null && {
10750 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10751 test ! -s conftest.err
10752 }; then
10753 ac_header_preproc=yes
10754 else
10755 echo "$as_me: failed program was:" >&5
10756 sed 's/^/| /' conftest.$ac_ext >&5
10758 ac_header_preproc=no
10761 rm -f conftest.err conftest.$ac_ext
10762 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10763 echo "${ECHO_T}$ac_header_preproc" >&6; }
10765 # So? What about this header?
10766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10767 yes:no: )
10768 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10769 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10770 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10771 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10772 ac_header_preproc=yes
10774 no:yes:* )
10775 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10776 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10777 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10778 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10779 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10780 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10781 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10782 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10784 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10785 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10786 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10787 ( cat <<\_ASBOX
10788 ## ---------------------------------------- ##
10789 ## Report this to pgsql-bugs@postgresql.org ##
10790 ## ---------------------------------------- ##
10791 _ASBOX
10792 ) | sed "s/^/$as_me: WARNING: /" >&2
10794 esac
10795 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10798 echo $ECHO_N "(cached) $ECHO_C" >&6
10799 else
10800 eval "$as_ac_Header=\$ac_header_preproc"
10802 ac_res=`eval echo '${'$as_ac_Header'}'`
10803 { echo "$as_me:$LINENO: result: $ac_res" >&5
10804 echo "${ECHO_T}$ac_res" >&6; }
10807 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10808 cat >>confdefs.h <<_ACEOF
10809 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10810 _ACEOF
10812 else
10814 for ac_header in gssapi.h
10816 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10818 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10821 echo $ECHO_N "(cached) $ECHO_C" >&6
10823 ac_res=`eval echo '${'$as_ac_Header'}'`
10824 { echo "$as_me:$LINENO: result: $ac_res" >&5
10825 echo "${ECHO_T}$ac_res" >&6; }
10826 else
10827 # Is the header compilable?
10828 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10829 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10830 cat >conftest.$ac_ext <<_ACEOF
10831 /* confdefs.h. */
10832 _ACEOF
10833 cat confdefs.h >>conftest.$ac_ext
10834 cat >>conftest.$ac_ext <<_ACEOF
10835 /* end confdefs.h. */
10836 $ac_includes_default
10837 #include <$ac_header>
10838 _ACEOF
10839 rm -f conftest.$ac_objext
10840 if { (ac_try="$ac_compile"
10841 case "(($ac_try" in
10842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10843 *) ac_try_echo=$ac_try;;
10844 esac
10845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10846 (eval "$ac_compile") 2>conftest.er1
10847 ac_status=$?
10848 grep -v '^ *+' conftest.er1 >conftest.err
10849 rm -f conftest.er1
10850 cat conftest.err >&5
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); } && {
10853 test -z "$ac_c_werror_flag" ||
10854 test ! -s conftest.err
10855 } && test -s conftest.$ac_objext; then
10856 ac_header_compiler=yes
10857 else
10858 echo "$as_me: failed program was:" >&5
10859 sed 's/^/| /' conftest.$ac_ext >&5
10861 ac_header_compiler=no
10864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10865 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10866 echo "${ECHO_T}$ac_header_compiler" >&6; }
10868 # Is the header present?
10869 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10870 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10871 cat >conftest.$ac_ext <<_ACEOF
10872 /* confdefs.h. */
10873 _ACEOF
10874 cat confdefs.h >>conftest.$ac_ext
10875 cat >>conftest.$ac_ext <<_ACEOF
10876 /* end confdefs.h. */
10877 #include <$ac_header>
10878 _ACEOF
10879 if { (ac_try="$ac_cpp conftest.$ac_ext"
10880 case "(($ac_try" in
10881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10882 *) ac_try_echo=$ac_try;;
10883 esac
10884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10886 ac_status=$?
10887 grep -v '^ *+' conftest.er1 >conftest.err
10888 rm -f conftest.er1
10889 cat conftest.err >&5
10890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891 (exit $ac_status); } >/dev/null && {
10892 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10893 test ! -s conftest.err
10894 }; then
10895 ac_header_preproc=yes
10896 else
10897 echo "$as_me: failed program was:" >&5
10898 sed 's/^/| /' conftest.$ac_ext >&5
10900 ac_header_preproc=no
10903 rm -f conftest.err conftest.$ac_ext
10904 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10905 echo "${ECHO_T}$ac_header_preproc" >&6; }
10907 # So? What about this header?
10908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10909 yes:no: )
10910 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10911 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10913 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10914 ac_header_preproc=yes
10916 no:yes:* )
10917 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10918 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10919 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10920 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10921 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10922 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10923 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10924 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10926 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10927 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10928 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10929 ( cat <<\_ASBOX
10930 ## ---------------------------------------- ##
10931 ## Report this to pgsql-bugs@postgresql.org ##
10932 ## ---------------------------------------- ##
10933 _ASBOX
10934 ) | sed "s/^/$as_me: WARNING: /" >&2
10936 esac
10937 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10940 echo $ECHO_N "(cached) $ECHO_C" >&6
10941 else
10942 eval "$as_ac_Header=\$ac_header_preproc"
10944 ac_res=`eval echo '${'$as_ac_Header'}'`
10945 { echo "$as_me:$LINENO: result: $ac_res" >&5
10946 echo "${ECHO_T}$ac_res" >&6; }
10949 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10950 cat >>confdefs.h <<_ACEOF
10951 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10952 _ACEOF
10954 else
10955 { { echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
10956 echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
10957 { (exit 1); exit 1; }; }
10960 done
10964 done
10968 if test "$with_krb5" = yes ; then
10969 if test "${ac_cv_header_krb5_h+set}" = set; then
10970 { echo "$as_me:$LINENO: checking for krb5.h" >&5
10971 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
10972 if test "${ac_cv_header_krb5_h+set}" = set; then
10973 echo $ECHO_N "(cached) $ECHO_C" >&6
10975 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
10976 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
10977 else
10978 # Is the header compilable?
10979 { echo "$as_me:$LINENO: checking krb5.h usability" >&5
10980 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6; }
10981 cat >conftest.$ac_ext <<_ACEOF
10982 /* confdefs.h. */
10983 _ACEOF
10984 cat confdefs.h >>conftest.$ac_ext
10985 cat >>conftest.$ac_ext <<_ACEOF
10986 /* end confdefs.h. */
10987 $ac_includes_default
10988 #include <krb5.h>
10989 _ACEOF
10990 rm -f conftest.$ac_objext
10991 if { (ac_try="$ac_compile"
10992 case "(($ac_try" in
10993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10994 *) ac_try_echo=$ac_try;;
10995 esac
10996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10997 (eval "$ac_compile") 2>conftest.er1
10998 ac_status=$?
10999 grep -v '^ *+' conftest.er1 >conftest.err
11000 rm -f conftest.er1
11001 cat conftest.err >&5
11002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003 (exit $ac_status); } && {
11004 test -z "$ac_c_werror_flag" ||
11005 test ! -s conftest.err
11006 } && test -s conftest.$ac_objext; then
11007 ac_header_compiler=yes
11008 else
11009 echo "$as_me: failed program was:" >&5
11010 sed 's/^/| /' conftest.$ac_ext >&5
11012 ac_header_compiler=no
11015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11016 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11017 echo "${ECHO_T}$ac_header_compiler" >&6; }
11019 # Is the header present?
11020 { echo "$as_me:$LINENO: checking krb5.h presence" >&5
11021 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6; }
11022 cat >conftest.$ac_ext <<_ACEOF
11023 /* confdefs.h. */
11024 _ACEOF
11025 cat confdefs.h >>conftest.$ac_ext
11026 cat >>conftest.$ac_ext <<_ACEOF
11027 /* end confdefs.h. */
11028 #include <krb5.h>
11029 _ACEOF
11030 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
11043 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11044 test ! -s conftest.err
11045 }; then
11046 ac_header_preproc=yes
11047 else
11048 echo "$as_me: failed program was:" >&5
11049 sed 's/^/| /' conftest.$ac_ext >&5
11051 ac_header_preproc=no
11054 rm -f conftest.err conftest.$ac_ext
11055 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11056 echo "${ECHO_T}$ac_header_preproc" >&6; }
11058 # So? What about this header?
11059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11060 yes:no: )
11061 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
11062 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11063 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
11064 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
11065 ac_header_preproc=yes
11067 no:yes:* )
11068 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
11069 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
11070 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
11071 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
11072 { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
11073 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
11074 { echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
11075 echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
11076 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
11077 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
11078 { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
11079 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
11080 ( cat <<\_ASBOX
11081 ## ---------------------------------------- ##
11082 ## Report this to pgsql-bugs@postgresql.org ##
11083 ## ---------------------------------------- ##
11084 _ASBOX
11085 ) | sed "s/^/$as_me: WARNING: /" >&2
11087 esac
11088 { echo "$as_me:$LINENO: checking for krb5.h" >&5
11089 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
11090 if test "${ac_cv_header_krb5_h+set}" = set; then
11091 echo $ECHO_N "(cached) $ECHO_C" >&6
11092 else
11093 ac_cv_header_krb5_h=$ac_header_preproc
11095 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
11096 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
11099 if test $ac_cv_header_krb5_h = yes; then
11101 else
11102 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
11103 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
11104 { (exit 1); exit 1; }; }
11110 if test "$with_openssl" = yes ; then
11111 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11112 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
11113 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
11114 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11115 echo $ECHO_N "(cached) $ECHO_C" >&6
11117 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
11118 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
11119 else
11120 # Is the header compilable?
11121 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
11122 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
11123 cat >conftest.$ac_ext <<_ACEOF
11124 /* confdefs.h. */
11125 _ACEOF
11126 cat confdefs.h >>conftest.$ac_ext
11127 cat >>conftest.$ac_ext <<_ACEOF
11128 /* end confdefs.h. */
11129 $ac_includes_default
11130 #include <openssl/ssl.h>
11131 _ACEOF
11132 rm -f conftest.$ac_objext
11133 if { (ac_try="$ac_compile"
11134 case "(($ac_try" in
11135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11136 *) ac_try_echo=$ac_try;;
11137 esac
11138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11139 (eval "$ac_compile") 2>conftest.er1
11140 ac_status=$?
11141 grep -v '^ *+' conftest.er1 >conftest.err
11142 rm -f conftest.er1
11143 cat conftest.err >&5
11144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145 (exit $ac_status); } && {
11146 test -z "$ac_c_werror_flag" ||
11147 test ! -s conftest.err
11148 } && test -s conftest.$ac_objext; then
11149 ac_header_compiler=yes
11150 else
11151 echo "$as_me: failed program was:" >&5
11152 sed 's/^/| /' conftest.$ac_ext >&5
11154 ac_header_compiler=no
11157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11158 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11159 echo "${ECHO_T}$ac_header_compiler" >&6; }
11161 # Is the header present?
11162 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
11163 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
11164 cat >conftest.$ac_ext <<_ACEOF
11165 /* confdefs.h. */
11166 _ACEOF
11167 cat confdefs.h >>conftest.$ac_ext
11168 cat >>conftest.$ac_ext <<_ACEOF
11169 /* end confdefs.h. */
11170 #include <openssl/ssl.h>
11171 _ACEOF
11172 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
11185 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11186 test ! -s conftest.err
11187 }; then
11188 ac_header_preproc=yes
11189 else
11190 echo "$as_me: failed program was:" >&5
11191 sed 's/^/| /' conftest.$ac_ext >&5
11193 ac_header_preproc=no
11196 rm -f conftest.err conftest.$ac_ext
11197 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11198 echo "${ECHO_T}$ac_header_preproc" >&6; }
11200 # So? What about this header?
11201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11202 yes:no: )
11203 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
11204 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11205 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
11206 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
11207 ac_header_preproc=yes
11209 no:yes:* )
11210 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
11211 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
11212 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
11213 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
11214 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
11215 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
11216 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
11217 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
11218 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
11219 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
11220 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
11221 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
11222 ( cat <<\_ASBOX
11223 ## ---------------------------------------- ##
11224 ## Report this to pgsql-bugs@postgresql.org ##
11225 ## ---------------------------------------- ##
11226 _ASBOX
11227 ) | sed "s/^/$as_me: WARNING: /" >&2
11229 esac
11230 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
11231 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
11232 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11233 echo $ECHO_N "(cached) $ECHO_C" >&6
11234 else
11235 ac_cv_header_openssl_ssl_h=$ac_header_preproc
11237 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
11238 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
11241 if test $ac_cv_header_openssl_ssl_h = yes; then
11243 else
11244 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
11245 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
11246 { (exit 1); exit 1; }; }
11250 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11251 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
11252 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
11253 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11254 echo $ECHO_N "(cached) $ECHO_C" >&6
11256 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
11257 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
11258 else
11259 # Is the header compilable?
11260 { echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
11261 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6; }
11262 cat >conftest.$ac_ext <<_ACEOF
11263 /* confdefs.h. */
11264 _ACEOF
11265 cat confdefs.h >>conftest.$ac_ext
11266 cat >>conftest.$ac_ext <<_ACEOF
11267 /* end confdefs.h. */
11268 $ac_includes_default
11269 #include <openssl/err.h>
11270 _ACEOF
11271 rm -f conftest.$ac_objext
11272 if { (ac_try="$ac_compile"
11273 case "(($ac_try" in
11274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11275 *) ac_try_echo=$ac_try;;
11276 esac
11277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11278 (eval "$ac_compile") 2>conftest.er1
11279 ac_status=$?
11280 grep -v '^ *+' conftest.er1 >conftest.err
11281 rm -f conftest.er1
11282 cat conftest.err >&5
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); } && {
11285 test -z "$ac_c_werror_flag" ||
11286 test ! -s conftest.err
11287 } && test -s conftest.$ac_objext; then
11288 ac_header_compiler=yes
11289 else
11290 echo "$as_me: failed program was:" >&5
11291 sed 's/^/| /' conftest.$ac_ext >&5
11293 ac_header_compiler=no
11296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11297 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11298 echo "${ECHO_T}$ac_header_compiler" >&6; }
11300 # Is the header present?
11301 { echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
11302 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6; }
11303 cat >conftest.$ac_ext <<_ACEOF
11304 /* confdefs.h. */
11305 _ACEOF
11306 cat confdefs.h >>conftest.$ac_ext
11307 cat >>conftest.$ac_ext <<_ACEOF
11308 /* end confdefs.h. */
11309 #include <openssl/err.h>
11310 _ACEOF
11311 if { (ac_try="$ac_cpp conftest.$ac_ext"
11312 case "(($ac_try" in
11313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11314 *) ac_try_echo=$ac_try;;
11315 esac
11316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11318 ac_status=$?
11319 grep -v '^ *+' conftest.er1 >conftest.err
11320 rm -f conftest.er1
11321 cat conftest.err >&5
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); } >/dev/null && {
11324 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11325 test ! -s conftest.err
11326 }; then
11327 ac_header_preproc=yes
11328 else
11329 echo "$as_me: failed program was:" >&5
11330 sed 's/^/| /' conftest.$ac_ext >&5
11332 ac_header_preproc=no
11335 rm -f conftest.err conftest.$ac_ext
11336 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11337 echo "${ECHO_T}$ac_header_preproc" >&6; }
11339 # So? What about this header?
11340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11341 yes:no: )
11342 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
11343 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11344 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
11345 echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
11346 ac_header_preproc=yes
11348 no:yes:* )
11349 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
11350 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
11351 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
11352 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
11353 { echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
11354 echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
11355 { echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
11356 echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
11357 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
11358 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
11359 { echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
11360 echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
11361 ( cat <<\_ASBOX
11362 ## ---------------------------------------- ##
11363 ## Report this to pgsql-bugs@postgresql.org ##
11364 ## ---------------------------------------- ##
11365 _ASBOX
11366 ) | sed "s/^/$as_me: WARNING: /" >&2
11368 esac
11369 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
11370 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
11371 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11372 echo $ECHO_N "(cached) $ECHO_C" >&6
11373 else
11374 ac_cv_header_openssl_err_h=$ac_header_preproc
11376 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
11377 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
11380 if test $ac_cv_header_openssl_err_h = yes; then
11382 else
11383 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
11384 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
11385 { (exit 1); exit 1; }; }
11390 for ac_func in ERR_set_mark
11392 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11393 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11395 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11396 echo $ECHO_N "(cached) $ECHO_C" >&6
11397 else
11398 cat >conftest.$ac_ext <<_ACEOF
11399 /* confdefs.h. */
11400 _ACEOF
11401 cat confdefs.h >>conftest.$ac_ext
11402 cat >>conftest.$ac_ext <<_ACEOF
11403 /* end confdefs.h. */
11404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11406 #define $ac_func innocuous_$ac_func
11408 /* System header to define __stub macros and hopefully few prototypes,
11409 which can conflict with char $ac_func (); below.
11410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11411 <limits.h> exists even on freestanding compilers. */
11413 #ifdef __STDC__
11414 # include <limits.h>
11415 #else
11416 # include <assert.h>
11417 #endif
11419 #undef $ac_func
11421 /* Override any GCC internal prototype to avoid an error.
11422 Use char because int might match the return type of a GCC
11423 builtin and then its argument prototype would still apply. */
11424 #ifdef __cplusplus
11425 extern "C"
11426 #endif
11427 char $ac_func ();
11428 /* The GNU C library defines this for functions which it implements
11429 to always fail with ENOSYS. Some functions are actually named
11430 something starting with __ and the normal name is an alias. */
11431 #if defined __stub_$ac_func || defined __stub___$ac_func
11432 choke me
11433 #endif
11436 main ()
11438 return $ac_func ();
11440 return 0;
11442 _ACEOF
11443 rm -f conftest.$ac_objext conftest$ac_exeext
11444 if { (ac_try="$ac_link"
11445 case "(($ac_try" in
11446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11447 *) ac_try_echo=$ac_try;;
11448 esac
11449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11450 (eval "$ac_link") 2>conftest.er1
11451 ac_status=$?
11452 grep -v '^ *+' conftest.er1 >conftest.err
11453 rm -f conftest.er1
11454 cat conftest.err >&5
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); } && {
11457 test -z "$ac_c_werror_flag" ||
11458 test ! -s conftest.err
11459 } && test -s conftest$ac_exeext &&
11460 $as_test_x conftest$ac_exeext; then
11461 eval "$as_ac_var=yes"
11462 else
11463 echo "$as_me: failed program was:" >&5
11464 sed 's/^/| /' conftest.$ac_ext >&5
11466 eval "$as_ac_var=no"
11469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11470 conftest$ac_exeext conftest.$ac_ext
11472 ac_res=`eval echo '${'$as_ac_var'}'`
11473 { echo "$as_me:$LINENO: result: $ac_res" >&5
11474 echo "${ECHO_T}$ac_res" >&6; }
11475 if test `eval echo '${'$as_ac_var'}'` = yes; then
11476 cat >>confdefs.h <<_ACEOF
11477 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11478 _ACEOF
11481 done
11485 if test "$with_pam" = yes ; then
11487 for ac_header in security/pam_appl.h
11489 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11491 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11494 echo $ECHO_N "(cached) $ECHO_C" >&6
11496 ac_res=`eval echo '${'$as_ac_Header'}'`
11497 { echo "$as_me:$LINENO: result: $ac_res" >&5
11498 echo "${ECHO_T}$ac_res" >&6; }
11499 else
11500 # Is the header compilable?
11501 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11502 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11503 cat >conftest.$ac_ext <<_ACEOF
11504 /* confdefs.h. */
11505 _ACEOF
11506 cat confdefs.h >>conftest.$ac_ext
11507 cat >>conftest.$ac_ext <<_ACEOF
11508 /* end confdefs.h. */
11509 $ac_includes_default
11510 #include <$ac_header>
11511 _ACEOF
11512 rm -f conftest.$ac_objext
11513 if { (ac_try="$ac_compile"
11514 case "(($ac_try" in
11515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11516 *) ac_try_echo=$ac_try;;
11517 esac
11518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11519 (eval "$ac_compile") 2>conftest.er1
11520 ac_status=$?
11521 grep -v '^ *+' conftest.er1 >conftest.err
11522 rm -f conftest.er1
11523 cat conftest.err >&5
11524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); } && {
11526 test -z "$ac_c_werror_flag" ||
11527 test ! -s conftest.err
11528 } && test -s conftest.$ac_objext; then
11529 ac_header_compiler=yes
11530 else
11531 echo "$as_me: failed program was:" >&5
11532 sed 's/^/| /' conftest.$ac_ext >&5
11534 ac_header_compiler=no
11537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11538 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11539 echo "${ECHO_T}$ac_header_compiler" >&6; }
11541 # Is the header present?
11542 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11543 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11544 cat >conftest.$ac_ext <<_ACEOF
11545 /* confdefs.h. */
11546 _ACEOF
11547 cat confdefs.h >>conftest.$ac_ext
11548 cat >>conftest.$ac_ext <<_ACEOF
11549 /* end confdefs.h. */
11550 #include <$ac_header>
11551 _ACEOF
11552 if { (ac_try="$ac_cpp conftest.$ac_ext"
11553 case "(($ac_try" in
11554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11555 *) ac_try_echo=$ac_try;;
11556 esac
11557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11559 ac_status=$?
11560 grep -v '^ *+' conftest.er1 >conftest.err
11561 rm -f conftest.er1
11562 cat conftest.err >&5
11563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); } >/dev/null && {
11565 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11566 test ! -s conftest.err
11567 }; then
11568 ac_header_preproc=yes
11569 else
11570 echo "$as_me: failed program was:" >&5
11571 sed 's/^/| /' conftest.$ac_ext >&5
11573 ac_header_preproc=no
11576 rm -f conftest.err conftest.$ac_ext
11577 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11578 echo "${ECHO_T}$ac_header_preproc" >&6; }
11580 # So? What about this header?
11581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11582 yes:no: )
11583 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11584 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11586 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11587 ac_header_preproc=yes
11589 no:yes:* )
11590 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11591 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11592 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11593 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11594 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11595 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11596 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11597 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11599 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11600 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11601 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11602 ( cat <<\_ASBOX
11603 ## ---------------------------------------- ##
11604 ## Report this to pgsql-bugs@postgresql.org ##
11605 ## ---------------------------------------- ##
11606 _ASBOX
11607 ) | sed "s/^/$as_me: WARNING: /" >&2
11609 esac
11610 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11613 echo $ECHO_N "(cached) $ECHO_C" >&6
11614 else
11615 eval "$as_ac_Header=\$ac_header_preproc"
11617 ac_res=`eval echo '${'$as_ac_Header'}'`
11618 { echo "$as_me:$LINENO: result: $ac_res" >&5
11619 echo "${ECHO_T}$ac_res" >&6; }
11622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11623 cat >>confdefs.h <<_ACEOF
11624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11625 _ACEOF
11627 else
11629 for ac_header in pam/pam_appl.h
11631 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11632 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11633 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11636 echo $ECHO_N "(cached) $ECHO_C" >&6
11638 ac_res=`eval echo '${'$as_ac_Header'}'`
11639 { echo "$as_me:$LINENO: result: $ac_res" >&5
11640 echo "${ECHO_T}$ac_res" >&6; }
11641 else
11642 # Is the header compilable?
11643 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11644 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11645 cat >conftest.$ac_ext <<_ACEOF
11646 /* confdefs.h. */
11647 _ACEOF
11648 cat confdefs.h >>conftest.$ac_ext
11649 cat >>conftest.$ac_ext <<_ACEOF
11650 /* end confdefs.h. */
11651 $ac_includes_default
11652 #include <$ac_header>
11653 _ACEOF
11654 rm -f conftest.$ac_objext
11655 if { (ac_try="$ac_compile"
11656 case "(($ac_try" in
11657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11658 *) ac_try_echo=$ac_try;;
11659 esac
11660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11661 (eval "$ac_compile") 2>conftest.er1
11662 ac_status=$?
11663 grep -v '^ *+' conftest.er1 >conftest.err
11664 rm -f conftest.er1
11665 cat conftest.err >&5
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); } && {
11668 test -z "$ac_c_werror_flag" ||
11669 test ! -s conftest.err
11670 } && test -s conftest.$ac_objext; then
11671 ac_header_compiler=yes
11672 else
11673 echo "$as_me: failed program was:" >&5
11674 sed 's/^/| /' conftest.$ac_ext >&5
11676 ac_header_compiler=no
11679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11680 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11681 echo "${ECHO_T}$ac_header_compiler" >&6; }
11683 # Is the header present?
11684 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11685 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11686 cat >conftest.$ac_ext <<_ACEOF
11687 /* confdefs.h. */
11688 _ACEOF
11689 cat confdefs.h >>conftest.$ac_ext
11690 cat >>conftest.$ac_ext <<_ACEOF
11691 /* end confdefs.h. */
11692 #include <$ac_header>
11693 _ACEOF
11694 if { (ac_try="$ac_cpp conftest.$ac_ext"
11695 case "(($ac_try" in
11696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11697 *) ac_try_echo=$ac_try;;
11698 esac
11699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11700 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11701 ac_status=$?
11702 grep -v '^ *+' conftest.er1 >conftest.err
11703 rm -f conftest.er1
11704 cat conftest.err >&5
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); } >/dev/null && {
11707 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11708 test ! -s conftest.err
11709 }; then
11710 ac_header_preproc=yes
11711 else
11712 echo "$as_me: failed program was:" >&5
11713 sed 's/^/| /' conftest.$ac_ext >&5
11715 ac_header_preproc=no
11718 rm -f conftest.err conftest.$ac_ext
11719 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11720 echo "${ECHO_T}$ac_header_preproc" >&6; }
11722 # So? What about this header?
11723 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11724 yes:no: )
11725 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11726 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11728 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11729 ac_header_preproc=yes
11731 no:yes:* )
11732 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11733 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11734 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11735 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11736 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11737 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11738 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11739 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11741 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11742 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11743 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11744 ( cat <<\_ASBOX
11745 ## ---------------------------------------- ##
11746 ## Report this to pgsql-bugs@postgresql.org ##
11747 ## ---------------------------------------- ##
11748 _ASBOX
11749 ) | sed "s/^/$as_me: WARNING: /" >&2
11751 esac
11752 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11754 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11755 echo $ECHO_N "(cached) $ECHO_C" >&6
11756 else
11757 eval "$as_ac_Header=\$ac_header_preproc"
11759 ac_res=`eval echo '${'$as_ac_Header'}'`
11760 { echo "$as_me:$LINENO: result: $ac_res" >&5
11761 echo "${ECHO_T}$ac_res" >&6; }
11764 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11765 cat >>confdefs.h <<_ACEOF
11766 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11767 _ACEOF
11769 else
11770 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
11771 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
11772 { (exit 1); exit 1; }; }
11775 done
11779 done
11783 if test "$with_libxml" = yes ; then
11784 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
11785 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
11786 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
11787 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
11788 echo $ECHO_N "(cached) $ECHO_C" >&6
11790 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
11791 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
11792 else
11793 # Is the header compilable?
11794 { echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
11795 echo $ECHO_N "checking libxml/parser.h usability... $ECHO_C" >&6; }
11796 cat >conftest.$ac_ext <<_ACEOF
11797 /* confdefs.h. */
11798 _ACEOF
11799 cat confdefs.h >>conftest.$ac_ext
11800 cat >>conftest.$ac_ext <<_ACEOF
11801 /* end confdefs.h. */
11802 $ac_includes_default
11803 #include <libxml/parser.h>
11804 _ACEOF
11805 rm -f conftest.$ac_objext
11806 if { (ac_try="$ac_compile"
11807 case "(($ac_try" in
11808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11809 *) ac_try_echo=$ac_try;;
11810 esac
11811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11812 (eval "$ac_compile") 2>conftest.er1
11813 ac_status=$?
11814 grep -v '^ *+' conftest.er1 >conftest.err
11815 rm -f conftest.er1
11816 cat conftest.err >&5
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); } && {
11819 test -z "$ac_c_werror_flag" ||
11820 test ! -s conftest.err
11821 } && test -s conftest.$ac_objext; then
11822 ac_header_compiler=yes
11823 else
11824 echo "$as_me: failed program was:" >&5
11825 sed 's/^/| /' conftest.$ac_ext >&5
11827 ac_header_compiler=no
11830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11831 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11832 echo "${ECHO_T}$ac_header_compiler" >&6; }
11834 # Is the header present?
11835 { echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
11836 echo $ECHO_N "checking libxml/parser.h presence... $ECHO_C" >&6; }
11837 cat >conftest.$ac_ext <<_ACEOF
11838 /* confdefs.h. */
11839 _ACEOF
11840 cat confdefs.h >>conftest.$ac_ext
11841 cat >>conftest.$ac_ext <<_ACEOF
11842 /* end confdefs.h. */
11843 #include <libxml/parser.h>
11844 _ACEOF
11845 if { (ac_try="$ac_cpp conftest.$ac_ext"
11846 case "(($ac_try" in
11847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11848 *) ac_try_echo=$ac_try;;
11849 esac
11850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11852 ac_status=$?
11853 grep -v '^ *+' conftest.er1 >conftest.err
11854 rm -f conftest.er1
11855 cat conftest.err >&5
11856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 (exit $ac_status); } >/dev/null && {
11858 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11859 test ! -s conftest.err
11860 }; then
11861 ac_header_preproc=yes
11862 else
11863 echo "$as_me: failed program was:" >&5
11864 sed 's/^/| /' conftest.$ac_ext >&5
11866 ac_header_preproc=no
11869 rm -f conftest.err conftest.$ac_ext
11870 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11871 echo "${ECHO_T}$ac_header_preproc" >&6; }
11873 # So? What about this header?
11874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11875 yes:no: )
11876 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
11877 echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11878 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
11879 echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
11880 ac_header_preproc=yes
11882 no:yes:* )
11883 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
11884 echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
11885 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
11886 echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
11887 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
11888 echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
11889 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
11890 echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
11891 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
11892 echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
11893 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
11894 echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
11895 ( cat <<\_ASBOX
11896 ## ---------------------------------------- ##
11897 ## Report this to pgsql-bugs@postgresql.org ##
11898 ## ---------------------------------------- ##
11899 _ASBOX
11900 ) | sed "s/^/$as_me: WARNING: /" >&2
11902 esac
11903 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
11904 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
11905 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
11906 echo $ECHO_N "(cached) $ECHO_C" >&6
11907 else
11908 ac_cv_header_libxml_parser_h=$ac_header_preproc
11910 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
11911 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
11914 if test $ac_cv_header_libxml_parser_h = yes; then
11916 else
11917 { { echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
11918 echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
11919 { (exit 1); exit 1; }; }
11925 if test "$with_libxslt" = yes ; then
11926 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
11927 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
11928 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
11929 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
11930 echo $ECHO_N "(cached) $ECHO_C" >&6
11932 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
11933 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
11934 else
11935 # Is the header compilable?
11936 { echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
11937 echo $ECHO_N "checking libxslt/xslt.h usability... $ECHO_C" >&6; }
11938 cat >conftest.$ac_ext <<_ACEOF
11939 /* confdefs.h. */
11940 _ACEOF
11941 cat confdefs.h >>conftest.$ac_ext
11942 cat >>conftest.$ac_ext <<_ACEOF
11943 /* end confdefs.h. */
11944 $ac_includes_default
11945 #include <libxslt/xslt.h>
11946 _ACEOF
11947 rm -f conftest.$ac_objext
11948 if { (ac_try="$ac_compile"
11949 case "(($ac_try" in
11950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11951 *) ac_try_echo=$ac_try;;
11952 esac
11953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11954 (eval "$ac_compile") 2>conftest.er1
11955 ac_status=$?
11956 grep -v '^ *+' conftest.er1 >conftest.err
11957 rm -f conftest.er1
11958 cat conftest.err >&5
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); } && {
11961 test -z "$ac_c_werror_flag" ||
11962 test ! -s conftest.err
11963 } && test -s conftest.$ac_objext; then
11964 ac_header_compiler=yes
11965 else
11966 echo "$as_me: failed program was:" >&5
11967 sed 's/^/| /' conftest.$ac_ext >&5
11969 ac_header_compiler=no
11972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11973 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11974 echo "${ECHO_T}$ac_header_compiler" >&6; }
11976 # Is the header present?
11977 { echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
11978 echo $ECHO_N "checking libxslt/xslt.h presence... $ECHO_C" >&6; }
11979 cat >conftest.$ac_ext <<_ACEOF
11980 /* confdefs.h. */
11981 _ACEOF
11982 cat confdefs.h >>conftest.$ac_ext
11983 cat >>conftest.$ac_ext <<_ACEOF
11984 /* end confdefs.h. */
11985 #include <libxslt/xslt.h>
11986 _ACEOF
11987 if { (ac_try="$ac_cpp conftest.$ac_ext"
11988 case "(($ac_try" in
11989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11990 *) ac_try_echo=$ac_try;;
11991 esac
11992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11994 ac_status=$?
11995 grep -v '^ *+' conftest.er1 >conftest.err
11996 rm -f conftest.er1
11997 cat conftest.err >&5
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); } >/dev/null && {
12000 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12001 test ! -s conftest.err
12002 }; then
12003 ac_header_preproc=yes
12004 else
12005 echo "$as_me: failed program was:" >&5
12006 sed 's/^/| /' conftest.$ac_ext >&5
12008 ac_header_preproc=no
12011 rm -f conftest.err conftest.$ac_ext
12012 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12013 echo "${ECHO_T}$ac_header_preproc" >&6; }
12015 # So? What about this header?
12016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12017 yes:no: )
12018 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
12019 echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12020 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
12021 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
12022 ac_header_preproc=yes
12024 no:yes:* )
12025 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
12026 echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
12027 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
12028 echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
12029 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
12030 echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
12031 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
12032 echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
12033 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
12034 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
12035 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
12036 echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
12037 ( cat <<\_ASBOX
12038 ## ---------------------------------------- ##
12039 ## Report this to pgsql-bugs@postgresql.org ##
12040 ## ---------------------------------------- ##
12041 _ASBOX
12042 ) | sed "s/^/$as_me: WARNING: /" >&2
12044 esac
12045 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
12046 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
12047 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12048 echo $ECHO_N "(cached) $ECHO_C" >&6
12049 else
12050 ac_cv_header_libxslt_xslt_h=$ac_header_preproc
12052 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
12053 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
12056 if test $ac_cv_header_libxslt_xslt_h = yes; then
12058 else
12059 { { echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
12060 echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
12061 { (exit 1); exit 1; }; }
12067 if test "$with_ldap" = yes ; then
12068 if test "$PORTNAME" != "win32"; then
12070 for ac_header in ldap.h
12072 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12073 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12074 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12077 echo $ECHO_N "(cached) $ECHO_C" >&6
12079 ac_res=`eval echo '${'$as_ac_Header'}'`
12080 { echo "$as_me:$LINENO: result: $ac_res" >&5
12081 echo "${ECHO_T}$ac_res" >&6; }
12082 else
12083 # Is the header compilable?
12084 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12085 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12086 cat >conftest.$ac_ext <<_ACEOF
12087 /* confdefs.h. */
12088 _ACEOF
12089 cat confdefs.h >>conftest.$ac_ext
12090 cat >>conftest.$ac_ext <<_ACEOF
12091 /* end confdefs.h. */
12092 $ac_includes_default
12093 #include <$ac_header>
12094 _ACEOF
12095 rm -f conftest.$ac_objext
12096 if { (ac_try="$ac_compile"
12097 case "(($ac_try" in
12098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12099 *) ac_try_echo=$ac_try;;
12100 esac
12101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12102 (eval "$ac_compile") 2>conftest.er1
12103 ac_status=$?
12104 grep -v '^ *+' conftest.er1 >conftest.err
12105 rm -f conftest.er1
12106 cat conftest.err >&5
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); } && {
12109 test -z "$ac_c_werror_flag" ||
12110 test ! -s conftest.err
12111 } && test -s conftest.$ac_objext; then
12112 ac_header_compiler=yes
12113 else
12114 echo "$as_me: failed program was:" >&5
12115 sed 's/^/| /' conftest.$ac_ext >&5
12117 ac_header_compiler=no
12120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12121 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12122 echo "${ECHO_T}$ac_header_compiler" >&6; }
12124 # Is the header present?
12125 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12126 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12127 cat >conftest.$ac_ext <<_ACEOF
12128 /* confdefs.h. */
12129 _ACEOF
12130 cat confdefs.h >>conftest.$ac_ext
12131 cat >>conftest.$ac_ext <<_ACEOF
12132 /* end confdefs.h. */
12133 #include <$ac_header>
12134 _ACEOF
12135 if { (ac_try="$ac_cpp conftest.$ac_ext"
12136 case "(($ac_try" in
12137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12138 *) ac_try_echo=$ac_try;;
12139 esac
12140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12141 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12142 ac_status=$?
12143 grep -v '^ *+' conftest.er1 >conftest.err
12144 rm -f conftest.er1
12145 cat conftest.err >&5
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); } >/dev/null && {
12148 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12149 test ! -s conftest.err
12150 }; then
12151 ac_header_preproc=yes
12152 else
12153 echo "$as_me: failed program was:" >&5
12154 sed 's/^/| /' conftest.$ac_ext >&5
12156 ac_header_preproc=no
12159 rm -f conftest.err conftest.$ac_ext
12160 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12161 echo "${ECHO_T}$ac_header_preproc" >&6; }
12163 # So? What about this header?
12164 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12165 yes:no: )
12166 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12167 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12169 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12170 ac_header_preproc=yes
12172 no:yes:* )
12173 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12174 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12175 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12176 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12177 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12178 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12179 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12180 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12182 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12183 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12184 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12185 ( cat <<\_ASBOX
12186 ## ---------------------------------------- ##
12187 ## Report this to pgsql-bugs@postgresql.org ##
12188 ## ---------------------------------------- ##
12189 _ASBOX
12190 ) | sed "s/^/$as_me: WARNING: /" >&2
12192 esac
12193 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12196 echo $ECHO_N "(cached) $ECHO_C" >&6
12197 else
12198 eval "$as_ac_Header=\$ac_header_preproc"
12200 ac_res=`eval echo '${'$as_ac_Header'}'`
12201 { echo "$as_me:$LINENO: result: $ac_res" >&5
12202 echo "${ECHO_T}$ac_res" >&6; }
12205 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12206 cat >>confdefs.h <<_ACEOF
12207 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12208 _ACEOF
12210 else
12211 { { echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
12212 echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
12213 { (exit 1); exit 1; }; }
12216 done
12218 else
12220 for ac_header in winldap.h
12222 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12223 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12226 echo $ECHO_N "(cached) $ECHO_C" >&6
12227 else
12228 cat >conftest.$ac_ext <<_ACEOF
12229 /* confdefs.h. */
12230 _ACEOF
12231 cat confdefs.h >>conftest.$ac_ext
12232 cat >>conftest.$ac_ext <<_ACEOF
12233 /* end confdefs.h. */
12234 $ac_includes_default
12235 #include <windows.h>
12238 #include <$ac_header>
12239 _ACEOF
12240 rm -f conftest.$ac_objext
12241 if { (ac_try="$ac_compile"
12242 case "(($ac_try" in
12243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12244 *) ac_try_echo=$ac_try;;
12245 esac
12246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12247 (eval "$ac_compile") 2>conftest.er1
12248 ac_status=$?
12249 grep -v '^ *+' conftest.er1 >conftest.err
12250 rm -f conftest.er1
12251 cat conftest.err >&5
12252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253 (exit $ac_status); } && {
12254 test -z "$ac_c_werror_flag" ||
12255 test ! -s conftest.err
12256 } && test -s conftest.$ac_objext; then
12257 eval "$as_ac_Header=yes"
12258 else
12259 echo "$as_me: failed program was:" >&5
12260 sed 's/^/| /' conftest.$ac_ext >&5
12262 eval "$as_ac_Header=no"
12265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12267 ac_res=`eval echo '${'$as_ac_Header'}'`
12268 { echo "$as_me:$LINENO: result: $ac_res" >&5
12269 echo "${ECHO_T}$ac_res" >&6; }
12270 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12271 cat >>confdefs.h <<_ACEOF
12272 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12273 _ACEOF
12275 else
12276 { { echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
12277 echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
12278 { (exit 1); exit 1; }; }
12281 done
12286 if test "$with_bonjour" = yes ; then
12287 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12288 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
12289 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
12290 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12291 echo $ECHO_N "(cached) $ECHO_C" >&6
12293 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
12294 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
12295 else
12296 # Is the header compilable?
12297 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
12298 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6; }
12299 cat >conftest.$ac_ext <<_ACEOF
12300 /* confdefs.h. */
12301 _ACEOF
12302 cat confdefs.h >>conftest.$ac_ext
12303 cat >>conftest.$ac_ext <<_ACEOF
12304 /* end confdefs.h. */
12305 $ac_includes_default
12306 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
12307 _ACEOF
12308 rm -f conftest.$ac_objext
12309 if { (ac_try="$ac_compile"
12310 case "(($ac_try" in
12311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12312 *) ac_try_echo=$ac_try;;
12313 esac
12314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12315 (eval "$ac_compile") 2>conftest.er1
12316 ac_status=$?
12317 grep -v '^ *+' conftest.er1 >conftest.err
12318 rm -f conftest.er1
12319 cat conftest.err >&5
12320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321 (exit $ac_status); } && {
12322 test -z "$ac_c_werror_flag" ||
12323 test ! -s conftest.err
12324 } && test -s conftest.$ac_objext; then
12325 ac_header_compiler=yes
12326 else
12327 echo "$as_me: failed program was:" >&5
12328 sed 's/^/| /' conftest.$ac_ext >&5
12330 ac_header_compiler=no
12333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12334 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12335 echo "${ECHO_T}$ac_header_compiler" >&6; }
12337 # Is the header present?
12338 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
12339 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6; }
12340 cat >conftest.$ac_ext <<_ACEOF
12341 /* confdefs.h. */
12342 _ACEOF
12343 cat confdefs.h >>conftest.$ac_ext
12344 cat >>conftest.$ac_ext <<_ACEOF
12345 /* end confdefs.h. */
12346 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
12347 _ACEOF
12348 if { (ac_try="$ac_cpp conftest.$ac_ext"
12349 case "(($ac_try" in
12350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12351 *) ac_try_echo=$ac_try;;
12352 esac
12353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12354 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12355 ac_status=$?
12356 grep -v '^ *+' conftest.er1 >conftest.err
12357 rm -f conftest.er1
12358 cat conftest.err >&5
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); } >/dev/null && {
12361 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12362 test ! -s conftest.err
12363 }; then
12364 ac_header_preproc=yes
12365 else
12366 echo "$as_me: failed program was:" >&5
12367 sed 's/^/| /' conftest.$ac_ext >&5
12369 ac_header_preproc=no
12372 rm -f conftest.err conftest.$ac_ext
12373 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12374 echo "${ECHO_T}$ac_header_preproc" >&6; }
12376 # So? What about this header?
12377 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12378 yes:no: )
12379 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
12380 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12381 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
12382 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
12383 ac_header_preproc=yes
12385 no:yes:* )
12386 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
12387 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
12388 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
12389 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
12390 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
12391 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
12392 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&5
12393 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&2;}
12394 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
12395 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
12396 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
12397 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
12398 ( cat <<\_ASBOX
12399 ## ---------------------------------------- ##
12400 ## Report this to pgsql-bugs@postgresql.org ##
12401 ## ---------------------------------------- ##
12402 _ASBOX
12403 ) | sed "s/^/$as_me: WARNING: /" >&2
12405 esac
12406 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
12407 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
12408 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12409 echo $ECHO_N "(cached) $ECHO_C" >&6
12410 else
12411 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
12413 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
12414 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
12417 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
12419 else
12420 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
12421 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
12422 { (exit 1); exit 1; }; }
12428 # for contrib/uuid-ossp
12429 if test "$with_ossp_uuid" = yes ; then
12431 for ac_header in ossp/uuid.h
12433 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12435 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12438 echo $ECHO_N "(cached) $ECHO_C" >&6
12440 ac_res=`eval echo '${'$as_ac_Header'}'`
12441 { echo "$as_me:$LINENO: result: $ac_res" >&5
12442 echo "${ECHO_T}$ac_res" >&6; }
12443 else
12444 # Is the header compilable?
12445 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12446 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12447 cat >conftest.$ac_ext <<_ACEOF
12448 /* confdefs.h. */
12449 _ACEOF
12450 cat confdefs.h >>conftest.$ac_ext
12451 cat >>conftest.$ac_ext <<_ACEOF
12452 /* end confdefs.h. */
12453 $ac_includes_default
12454 #include <$ac_header>
12455 _ACEOF
12456 rm -f conftest.$ac_objext
12457 if { (ac_try="$ac_compile"
12458 case "(($ac_try" in
12459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12460 *) ac_try_echo=$ac_try;;
12461 esac
12462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12463 (eval "$ac_compile") 2>conftest.er1
12464 ac_status=$?
12465 grep -v '^ *+' conftest.er1 >conftest.err
12466 rm -f conftest.er1
12467 cat conftest.err >&5
12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); } && {
12470 test -z "$ac_c_werror_flag" ||
12471 test ! -s conftest.err
12472 } && test -s conftest.$ac_objext; then
12473 ac_header_compiler=yes
12474 else
12475 echo "$as_me: failed program was:" >&5
12476 sed 's/^/| /' conftest.$ac_ext >&5
12478 ac_header_compiler=no
12481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12482 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12483 echo "${ECHO_T}$ac_header_compiler" >&6; }
12485 # Is the header present?
12486 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12487 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12488 cat >conftest.$ac_ext <<_ACEOF
12489 /* confdefs.h. */
12490 _ACEOF
12491 cat confdefs.h >>conftest.$ac_ext
12492 cat >>conftest.$ac_ext <<_ACEOF
12493 /* end confdefs.h. */
12494 #include <$ac_header>
12495 _ACEOF
12496 if { (ac_try="$ac_cpp conftest.$ac_ext"
12497 case "(($ac_try" in
12498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12499 *) ac_try_echo=$ac_try;;
12500 esac
12501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12503 ac_status=$?
12504 grep -v '^ *+' conftest.er1 >conftest.err
12505 rm -f conftest.er1
12506 cat conftest.err >&5
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); } >/dev/null && {
12509 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12510 test ! -s conftest.err
12511 }; then
12512 ac_header_preproc=yes
12513 else
12514 echo "$as_me: failed program was:" >&5
12515 sed 's/^/| /' conftest.$ac_ext >&5
12517 ac_header_preproc=no
12520 rm -f conftest.err conftest.$ac_ext
12521 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12522 echo "${ECHO_T}$ac_header_preproc" >&6; }
12524 # So? What about this header?
12525 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12526 yes:no: )
12527 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12528 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12530 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12531 ac_header_preproc=yes
12533 no:yes:* )
12534 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12535 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12536 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12537 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12538 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12539 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12540 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12541 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12543 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12544 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12545 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12546 ( cat <<\_ASBOX
12547 ## ---------------------------------------- ##
12548 ## Report this to pgsql-bugs@postgresql.org ##
12549 ## ---------------------------------------- ##
12550 _ASBOX
12551 ) | sed "s/^/$as_me: WARNING: /" >&2
12553 esac
12554 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12557 echo $ECHO_N "(cached) $ECHO_C" >&6
12558 else
12559 eval "$as_ac_Header=\$ac_header_preproc"
12561 ac_res=`eval echo '${'$as_ac_Header'}'`
12562 { echo "$as_me:$LINENO: result: $ac_res" >&5
12563 echo "${ECHO_T}$ac_res" >&6; }
12566 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12567 cat >>confdefs.h <<_ACEOF
12568 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12569 _ACEOF
12571 else
12574 for ac_header in uuid.h
12576 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12578 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12580 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12581 echo $ECHO_N "(cached) $ECHO_C" >&6
12583 ac_res=`eval echo '${'$as_ac_Header'}'`
12584 { echo "$as_me:$LINENO: result: $ac_res" >&5
12585 echo "${ECHO_T}$ac_res" >&6; }
12586 else
12587 # Is the header compilable?
12588 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12589 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12590 cat >conftest.$ac_ext <<_ACEOF
12591 /* confdefs.h. */
12592 _ACEOF
12593 cat confdefs.h >>conftest.$ac_ext
12594 cat >>conftest.$ac_ext <<_ACEOF
12595 /* end confdefs.h. */
12596 $ac_includes_default
12597 #include <$ac_header>
12598 _ACEOF
12599 rm -f conftest.$ac_objext
12600 if { (ac_try="$ac_compile"
12601 case "(($ac_try" in
12602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12603 *) ac_try_echo=$ac_try;;
12604 esac
12605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12606 (eval "$ac_compile") 2>conftest.er1
12607 ac_status=$?
12608 grep -v '^ *+' conftest.er1 >conftest.err
12609 rm -f conftest.er1
12610 cat conftest.err >&5
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); } && {
12613 test -z "$ac_c_werror_flag" ||
12614 test ! -s conftest.err
12615 } && test -s conftest.$ac_objext; then
12616 ac_header_compiler=yes
12617 else
12618 echo "$as_me: failed program was:" >&5
12619 sed 's/^/| /' conftest.$ac_ext >&5
12621 ac_header_compiler=no
12624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12625 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12626 echo "${ECHO_T}$ac_header_compiler" >&6; }
12628 # Is the header present?
12629 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12630 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12631 cat >conftest.$ac_ext <<_ACEOF
12632 /* confdefs.h. */
12633 _ACEOF
12634 cat confdefs.h >>conftest.$ac_ext
12635 cat >>conftest.$ac_ext <<_ACEOF
12636 /* end confdefs.h. */
12637 #include <$ac_header>
12638 _ACEOF
12639 if { (ac_try="$ac_cpp conftest.$ac_ext"
12640 case "(($ac_try" in
12641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12642 *) ac_try_echo=$ac_try;;
12643 esac
12644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12645 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12646 ac_status=$?
12647 grep -v '^ *+' conftest.er1 >conftest.err
12648 rm -f conftest.er1
12649 cat conftest.err >&5
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); } >/dev/null && {
12652 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12653 test ! -s conftest.err
12654 }; then
12655 ac_header_preproc=yes
12656 else
12657 echo "$as_me: failed program was:" >&5
12658 sed 's/^/| /' conftest.$ac_ext >&5
12660 ac_header_preproc=no
12663 rm -f conftest.err conftest.$ac_ext
12664 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12665 echo "${ECHO_T}$ac_header_preproc" >&6; }
12667 # So? What about this header?
12668 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12669 yes:no: )
12670 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12671 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12673 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12674 ac_header_preproc=yes
12676 no:yes:* )
12677 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12678 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12679 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12680 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12681 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12682 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12683 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12684 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12686 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12687 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12688 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12689 ( cat <<\_ASBOX
12690 ## ---------------------------------------- ##
12691 ## Report this to pgsql-bugs@postgresql.org ##
12692 ## ---------------------------------------- ##
12693 _ASBOX
12694 ) | sed "s/^/$as_me: WARNING: /" >&2
12696 esac
12697 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12700 echo $ECHO_N "(cached) $ECHO_C" >&6
12701 else
12702 eval "$as_ac_Header=\$ac_header_preproc"
12704 ac_res=`eval echo '${'$as_ac_Header'}'`
12705 { echo "$as_me:$LINENO: result: $ac_res" >&5
12706 echo "${ECHO_T}$ac_res" >&6; }
12709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12710 cat >>confdefs.h <<_ACEOF
12711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12712 _ACEOF
12714 else
12715 { { echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
12716 echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
12717 { (exit 1); exit 1; }; }
12720 done
12724 done
12730 ## Types, structures, compiler characteristics
12733 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
12734 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
12735 if test "${ac_cv_c_bigendian+set}" = set; then
12736 echo $ECHO_N "(cached) $ECHO_C" >&6
12737 else
12738 # See if sys/param.h defines the BYTE_ORDER macro.
12739 cat >conftest.$ac_ext <<_ACEOF
12740 /* confdefs.h. */
12741 _ACEOF
12742 cat confdefs.h >>conftest.$ac_ext
12743 cat >>conftest.$ac_ext <<_ACEOF
12744 /* end confdefs.h. */
12745 #include <sys/types.h>
12746 #include <sys/param.h>
12749 main ()
12751 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
12752 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
12753 bogus endian macros
12754 #endif
12757 return 0;
12759 _ACEOF
12760 rm -f conftest.$ac_objext
12761 if { (ac_try="$ac_compile"
12762 case "(($ac_try" in
12763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12764 *) ac_try_echo=$ac_try;;
12765 esac
12766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12767 (eval "$ac_compile") 2>conftest.er1
12768 ac_status=$?
12769 grep -v '^ *+' conftest.er1 >conftest.err
12770 rm -f conftest.er1
12771 cat conftest.err >&5
12772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773 (exit $ac_status); } && {
12774 test -z "$ac_c_werror_flag" ||
12775 test ! -s conftest.err
12776 } && test -s conftest.$ac_objext; then
12777 # It does; now see whether it defined to BIG_ENDIAN or not.
12778 cat >conftest.$ac_ext <<_ACEOF
12779 /* confdefs.h. */
12780 _ACEOF
12781 cat confdefs.h >>conftest.$ac_ext
12782 cat >>conftest.$ac_ext <<_ACEOF
12783 /* end confdefs.h. */
12784 #include <sys/types.h>
12785 #include <sys/param.h>
12788 main ()
12790 #if BYTE_ORDER != BIG_ENDIAN
12791 not big endian
12792 #endif
12795 return 0;
12797 _ACEOF
12798 rm -f conftest.$ac_objext
12799 if { (ac_try="$ac_compile"
12800 case "(($ac_try" in
12801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12802 *) ac_try_echo=$ac_try;;
12803 esac
12804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12805 (eval "$ac_compile") 2>conftest.er1
12806 ac_status=$?
12807 grep -v '^ *+' conftest.er1 >conftest.err
12808 rm -f conftest.er1
12809 cat conftest.err >&5
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); } && {
12812 test -z "$ac_c_werror_flag" ||
12813 test ! -s conftest.err
12814 } && test -s conftest.$ac_objext; then
12815 ac_cv_c_bigendian=yes
12816 else
12817 echo "$as_me: failed program was:" >&5
12818 sed 's/^/| /' conftest.$ac_ext >&5
12820 ac_cv_c_bigendian=no
12823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12824 else
12825 echo "$as_me: failed program was:" >&5
12826 sed 's/^/| /' conftest.$ac_ext >&5
12828 # It does not; compile a test program.
12829 if test "$cross_compiling" = yes; then
12830 # try to guess the endianness by grepping values into an object file
12831 ac_cv_c_bigendian=unknown
12832 cat >conftest.$ac_ext <<_ACEOF
12833 /* confdefs.h. */
12834 _ACEOF
12835 cat confdefs.h >>conftest.$ac_ext
12836 cat >>conftest.$ac_ext <<_ACEOF
12837 /* end confdefs.h. */
12838 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12839 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12840 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
12841 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12842 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12843 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
12845 main ()
12847 _ascii (); _ebcdic ();
12849 return 0;
12851 _ACEOF
12852 rm -f conftest.$ac_objext
12853 if { (ac_try="$ac_compile"
12854 case "(($ac_try" in
12855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12856 *) ac_try_echo=$ac_try;;
12857 esac
12858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12859 (eval "$ac_compile") 2>conftest.er1
12860 ac_status=$?
12861 grep -v '^ *+' conftest.er1 >conftest.err
12862 rm -f conftest.er1
12863 cat conftest.err >&5
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); } && {
12866 test -z "$ac_c_werror_flag" ||
12867 test ! -s conftest.err
12868 } && test -s conftest.$ac_objext; then
12869 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
12870 ac_cv_c_bigendian=yes
12872 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12873 if test "$ac_cv_c_bigendian" = unknown; then
12874 ac_cv_c_bigendian=no
12875 else
12876 # finding both strings is unlikely to happen, but who knows?
12877 ac_cv_c_bigendian=unknown
12880 else
12881 echo "$as_me: failed program was:" >&5
12882 sed 's/^/| /' conftest.$ac_ext >&5
12887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12888 else
12889 cat >conftest.$ac_ext <<_ACEOF
12890 /* confdefs.h. */
12891 _ACEOF
12892 cat confdefs.h >>conftest.$ac_ext
12893 cat >>conftest.$ac_ext <<_ACEOF
12894 /* end confdefs.h. */
12895 $ac_includes_default
12897 main ()
12900 /* Are we little or big endian? From Harbison&Steele. */
12901 union
12903 long int l;
12904 char c[sizeof (long int)];
12905 } u;
12906 u.l = 1;
12907 return u.c[sizeof (long int) - 1] == 1;
12910 return 0;
12912 _ACEOF
12913 rm -f conftest$ac_exeext
12914 if { (ac_try="$ac_link"
12915 case "(($ac_try" in
12916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12917 *) ac_try_echo=$ac_try;;
12918 esac
12919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12920 (eval "$ac_link") 2>&5
12921 ac_status=$?
12922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12924 { (case "(($ac_try" in
12925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12926 *) ac_try_echo=$ac_try;;
12927 esac
12928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12929 (eval "$ac_try") 2>&5
12930 ac_status=$?
12931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932 (exit $ac_status); }; }; then
12933 ac_cv_c_bigendian=no
12934 else
12935 echo "$as_me: program exited with status $ac_status" >&5
12936 echo "$as_me: failed program was:" >&5
12937 sed 's/^/| /' conftest.$ac_ext >&5
12939 ( exit $ac_status )
12940 ac_cv_c_bigendian=yes
12942 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12950 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
12951 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
12952 case $ac_cv_c_bigendian in
12953 yes)
12955 cat >>confdefs.h <<\_ACEOF
12956 #define WORDS_BIGENDIAN 1
12957 _ACEOF
12962 { { echo "$as_me:$LINENO: error: unknown endianness
12963 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
12964 echo "$as_me: error: unknown endianness
12965 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
12966 { (exit 1); exit 1; }; } ;;
12967 esac
12969 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12970 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
12971 if test "${ac_cv_c_const+set}" = set; then
12972 echo $ECHO_N "(cached) $ECHO_C" >&6
12973 else
12974 cat >conftest.$ac_ext <<_ACEOF
12975 /* confdefs.h. */
12976 _ACEOF
12977 cat confdefs.h >>conftest.$ac_ext
12978 cat >>conftest.$ac_ext <<_ACEOF
12979 /* end confdefs.h. */
12982 main ()
12984 /* FIXME: Include the comments suggested by Paul. */
12985 #ifndef __cplusplus
12986 /* Ultrix mips cc rejects this. */
12987 typedef int charset[2];
12988 const charset cs;
12989 /* SunOS 4.1.1 cc rejects this. */
12990 char const *const *pcpcc;
12991 char **ppc;
12992 /* NEC SVR4.0.2 mips cc rejects this. */
12993 struct point {int x, y;};
12994 static struct point const zero = {0,0};
12995 /* AIX XL C 1.02.0.0 rejects this.
12996 It does not let you subtract one const X* pointer from another in
12997 an arm of an if-expression whose if-part is not a constant
12998 expression */
12999 const char *g = "string";
13000 pcpcc = &g + (g ? g-g : 0);
13001 /* HPUX 7.0 cc rejects these. */
13002 ++pcpcc;
13003 ppc = (char**) pcpcc;
13004 pcpcc = (char const *const *) ppc;
13005 { /* SCO 3.2v4 cc rejects this. */
13006 char *t;
13007 char const *s = 0 ? (char *) 0 : (char const *) 0;
13009 *t++ = 0;
13010 if (s) return 0;
13012 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13013 int x[] = {25, 17};
13014 const int *foo = &x[0];
13015 ++foo;
13017 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13018 typedef const int *iptr;
13019 iptr p = 0;
13020 ++p;
13022 { /* AIX XL C 1.02.0.0 rejects this saying
13023 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13024 struct s { int j; const int *ap[3]; };
13025 struct s *b; b->j = 5;
13027 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13028 const int foo = 10;
13029 if (!foo) return 0;
13031 return !cs[0] && !zero.x;
13032 #endif
13035 return 0;
13037 _ACEOF
13038 rm -f conftest.$ac_objext
13039 if { (ac_try="$ac_compile"
13040 case "(($ac_try" in
13041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13042 *) ac_try_echo=$ac_try;;
13043 esac
13044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13045 (eval "$ac_compile") 2>conftest.er1
13046 ac_status=$?
13047 grep -v '^ *+' conftest.er1 >conftest.err
13048 rm -f conftest.er1
13049 cat conftest.err >&5
13050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051 (exit $ac_status); } && {
13052 test -z "$ac_c_werror_flag" ||
13053 test ! -s conftest.err
13054 } && test -s conftest.$ac_objext; then
13055 ac_cv_c_const=yes
13056 else
13057 echo "$as_me: failed program was:" >&5
13058 sed 's/^/| /' conftest.$ac_ext >&5
13060 ac_cv_c_const=no
13063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13065 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13066 echo "${ECHO_T}$ac_cv_c_const" >&6; }
13067 if test $ac_cv_c_const = no; then
13069 cat >>confdefs.h <<\_ACEOF
13070 #define const
13071 _ACEOF
13075 { echo "$as_me:$LINENO: checking for inline" >&5
13076 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
13077 if test "${ac_cv_c_inline+set}" = set; then
13078 echo $ECHO_N "(cached) $ECHO_C" >&6
13079 else
13080 ac_cv_c_inline=no
13081 for ac_kw in inline __inline__ __inline; do
13082 cat >conftest.$ac_ext <<_ACEOF
13083 /* confdefs.h. */
13084 _ACEOF
13085 cat confdefs.h >>conftest.$ac_ext
13086 cat >>conftest.$ac_ext <<_ACEOF
13087 /* end confdefs.h. */
13088 #ifndef __cplusplus
13089 typedef int foo_t;
13090 static $ac_kw foo_t static_foo () {return 0; }
13091 $ac_kw foo_t foo () {return 0; }
13092 #endif
13094 _ACEOF
13095 rm -f conftest.$ac_objext
13096 if { (ac_try="$ac_compile"
13097 case "(($ac_try" in
13098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13099 *) ac_try_echo=$ac_try;;
13100 esac
13101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13102 (eval "$ac_compile") 2>conftest.er1
13103 ac_status=$?
13104 grep -v '^ *+' conftest.er1 >conftest.err
13105 rm -f conftest.er1
13106 cat conftest.err >&5
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); } && {
13109 test -z "$ac_c_werror_flag" ||
13110 test ! -s conftest.err
13111 } && test -s conftest.$ac_objext; then
13112 ac_cv_c_inline=$ac_kw
13113 else
13114 echo "$as_me: failed program was:" >&5
13115 sed 's/^/| /' conftest.$ac_ext >&5
13120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13121 test "$ac_cv_c_inline" != no && break
13122 done
13125 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13126 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
13129 case $ac_cv_c_inline in
13130 inline | yes) ;;
13132 case $ac_cv_c_inline in
13133 no) ac_val=;;
13134 *) ac_val=$ac_cv_c_inline;;
13135 esac
13136 cat >>confdefs.h <<_ACEOF
13137 #ifndef __cplusplus
13138 #define inline $ac_val
13139 #endif
13140 _ACEOF
13142 esac
13144 { echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
13145 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6; }
13146 if test "${ac_cv_c_stringize+set}" = set; then
13147 echo $ECHO_N "(cached) $ECHO_C" >&6
13148 else
13149 cat >conftest.$ac_ext <<_ACEOF
13150 /* confdefs.h. */
13151 _ACEOF
13152 cat confdefs.h >>conftest.$ac_ext
13153 cat >>conftest.$ac_ext <<_ACEOF
13154 /* end confdefs.h. */
13155 #define x(y) #y
13157 char *s = x(teststring);
13158 _ACEOF
13159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13160 $EGREP "#teststring" >/dev/null 2>&1; then
13161 ac_cv_c_stringize=no
13162 else
13163 ac_cv_c_stringize=yes
13165 rm -f conftest*
13168 { echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
13169 echo "${ECHO_T}$ac_cv_c_stringize" >&6; }
13170 if test $ac_cv_c_stringize = yes; then
13172 cat >>confdefs.h <<\_ACEOF
13173 #define HAVE_STRINGIZE 1
13174 _ACEOF
13178 { echo "$as_me:$LINENO: checking for signed types" >&5
13179 echo $ECHO_N "checking for signed types... $ECHO_C" >&6; }
13180 if test "${pgac_cv_c_signed+set}" = set; then
13181 echo $ECHO_N "(cached) $ECHO_C" >&6
13182 else
13183 cat >conftest.$ac_ext <<_ACEOF
13184 /* confdefs.h. */
13185 _ACEOF
13186 cat confdefs.h >>conftest.$ac_ext
13187 cat >>conftest.$ac_ext <<_ACEOF
13188 /* end confdefs.h. */
13191 main ()
13193 signed char c; signed short s; signed int i;
13195 return 0;
13197 _ACEOF
13198 rm -f conftest.$ac_objext
13199 if { (ac_try="$ac_compile"
13200 case "(($ac_try" in
13201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13202 *) ac_try_echo=$ac_try;;
13203 esac
13204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13205 (eval "$ac_compile") 2>conftest.er1
13206 ac_status=$?
13207 grep -v '^ *+' conftest.er1 >conftest.err
13208 rm -f conftest.er1
13209 cat conftest.err >&5
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); } && {
13212 test -z "$ac_c_werror_flag" ||
13213 test ! -s conftest.err
13214 } && test -s conftest.$ac_objext; then
13215 pgac_cv_c_signed=yes
13216 else
13217 echo "$as_me: failed program was:" >&5
13218 sed 's/^/| /' conftest.$ac_ext >&5
13220 pgac_cv_c_signed=no
13223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13225 { echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
13226 echo "${ECHO_T}$pgac_cv_c_signed" >&6; }
13227 if test x"$pgac_cv_c_signed" = xno ; then
13229 cat >>confdefs.h <<\_ACEOF
13230 #define signed
13231 _ACEOF
13234 { echo "$as_me:$LINENO: checking for working volatile" >&5
13235 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
13236 if test "${ac_cv_c_volatile+set}" = set; then
13237 echo $ECHO_N "(cached) $ECHO_C" >&6
13238 else
13239 cat >conftest.$ac_ext <<_ACEOF
13240 /* confdefs.h. */
13241 _ACEOF
13242 cat confdefs.h >>conftest.$ac_ext
13243 cat >>conftest.$ac_ext <<_ACEOF
13244 /* end confdefs.h. */
13247 main ()
13250 volatile int x;
13251 int * volatile y = (int *) 0;
13252 return !x && !y;
13254 return 0;
13256 _ACEOF
13257 rm -f conftest.$ac_objext
13258 if { (ac_try="$ac_compile"
13259 case "(($ac_try" in
13260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13261 *) ac_try_echo=$ac_try;;
13262 esac
13263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13264 (eval "$ac_compile") 2>conftest.er1
13265 ac_status=$?
13266 grep -v '^ *+' conftest.er1 >conftest.err
13267 rm -f conftest.er1
13268 cat conftest.err >&5
13269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270 (exit $ac_status); } && {
13271 test -z "$ac_c_werror_flag" ||
13272 test ! -s conftest.err
13273 } && test -s conftest.$ac_objext; then
13274 ac_cv_c_volatile=yes
13275 else
13276 echo "$as_me: failed program was:" >&5
13277 sed 's/^/| /' conftest.$ac_ext >&5
13279 ac_cv_c_volatile=no
13282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13284 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
13285 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
13286 if test $ac_cv_c_volatile = no; then
13288 cat >>confdefs.h <<\_ACEOF
13289 #define volatile
13290 _ACEOF
13294 { echo "$as_me:$LINENO: checking for __func__" >&5
13295 echo $ECHO_N "checking for __func__... $ECHO_C" >&6; }
13296 if test "${pgac_cv_funcname_func_support+set}" = set; then
13297 echo $ECHO_N "(cached) $ECHO_C" >&6
13298 else
13299 cat >conftest.$ac_ext <<_ACEOF
13300 /* confdefs.h. */
13301 _ACEOF
13302 cat confdefs.h >>conftest.$ac_ext
13303 cat >>conftest.$ac_ext <<_ACEOF
13304 /* end confdefs.h. */
13305 #include <stdio.h>
13307 main ()
13309 printf("%s\n", __func__);
13311 return 0;
13313 _ACEOF
13314 rm -f conftest.$ac_objext
13315 if { (ac_try="$ac_compile"
13316 case "(($ac_try" in
13317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13318 *) ac_try_echo=$ac_try;;
13319 esac
13320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13321 (eval "$ac_compile") 2>conftest.er1
13322 ac_status=$?
13323 grep -v '^ *+' conftest.er1 >conftest.err
13324 rm -f conftest.er1
13325 cat conftest.err >&5
13326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327 (exit $ac_status); } && {
13328 test -z "$ac_c_werror_flag" ||
13329 test ! -s conftest.err
13330 } && test -s conftest.$ac_objext; then
13331 pgac_cv_funcname_func_support=yes
13332 else
13333 echo "$as_me: failed program was:" >&5
13334 sed 's/^/| /' conftest.$ac_ext >&5
13336 pgac_cv_funcname_func_support=no
13339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13341 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
13342 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6; }
13343 if test x"$pgac_cv_funcname_func_support" = xyes ; then
13345 cat >>confdefs.h <<\_ACEOF
13346 #define HAVE_FUNCNAME__FUNC 1
13347 _ACEOF
13349 else
13350 { echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
13351 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6; }
13352 if test "${pgac_cv_funcname_function_support+set}" = set; then
13353 echo $ECHO_N "(cached) $ECHO_C" >&6
13354 else
13355 cat >conftest.$ac_ext <<_ACEOF
13356 /* confdefs.h. */
13357 _ACEOF
13358 cat confdefs.h >>conftest.$ac_ext
13359 cat >>conftest.$ac_ext <<_ACEOF
13360 /* end confdefs.h. */
13361 #include <stdio.h>
13363 main ()
13365 printf("%s\n", __FUNCTION__);
13367 return 0;
13369 _ACEOF
13370 rm -f conftest.$ac_objext
13371 if { (ac_try="$ac_compile"
13372 case "(($ac_try" in
13373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13374 *) ac_try_echo=$ac_try;;
13375 esac
13376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13377 (eval "$ac_compile") 2>conftest.er1
13378 ac_status=$?
13379 grep -v '^ *+' conftest.er1 >conftest.err
13380 rm -f conftest.er1
13381 cat conftest.err >&5
13382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383 (exit $ac_status); } && {
13384 test -z "$ac_c_werror_flag" ||
13385 test ! -s conftest.err
13386 } && test -s conftest.$ac_objext; then
13387 pgac_cv_funcname_function_support=yes
13388 else
13389 echo "$as_me: failed program was:" >&5
13390 sed 's/^/| /' conftest.$ac_ext >&5
13392 pgac_cv_funcname_function_support=no
13395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13397 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
13398 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6; }
13399 if test x"$pgac_cv_funcname_function_support" = xyes ; then
13401 cat >>confdefs.h <<\_ACEOF
13402 #define HAVE_FUNCNAME__FUNCTION 1
13403 _ACEOF
13407 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13408 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13409 if test "${ac_cv_struct_tm+set}" = set; then
13410 echo $ECHO_N "(cached) $ECHO_C" >&6
13411 else
13412 cat >conftest.$ac_ext <<_ACEOF
13413 /* confdefs.h. */
13414 _ACEOF
13415 cat confdefs.h >>conftest.$ac_ext
13416 cat >>conftest.$ac_ext <<_ACEOF
13417 /* end confdefs.h. */
13418 #include <sys/types.h>
13419 #include <time.h>
13422 main ()
13424 struct tm tm;
13425 int *p = &tm.tm_sec;
13426 return !p;
13428 return 0;
13430 _ACEOF
13431 rm -f conftest.$ac_objext
13432 if { (ac_try="$ac_compile"
13433 case "(($ac_try" in
13434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13435 *) ac_try_echo=$ac_try;;
13436 esac
13437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13438 (eval "$ac_compile") 2>conftest.er1
13439 ac_status=$?
13440 grep -v '^ *+' conftest.er1 >conftest.err
13441 rm -f conftest.er1
13442 cat conftest.err >&5
13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); } && {
13445 test -z "$ac_c_werror_flag" ||
13446 test ! -s conftest.err
13447 } && test -s conftest.$ac_objext; then
13448 ac_cv_struct_tm=time.h
13449 else
13450 echo "$as_me: failed program was:" >&5
13451 sed 's/^/| /' conftest.$ac_ext >&5
13453 ac_cv_struct_tm=sys/time.h
13456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13458 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13459 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13460 if test $ac_cv_struct_tm = sys/time.h; then
13462 cat >>confdefs.h <<\_ACEOF
13463 #define TM_IN_SYS_TIME 1
13464 _ACEOF
13468 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
13469 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
13470 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
13471 echo $ECHO_N "(cached) $ECHO_C" >&6
13472 else
13473 cat >conftest.$ac_ext <<_ACEOF
13474 /* confdefs.h. */
13475 _ACEOF
13476 cat confdefs.h >>conftest.$ac_ext
13477 cat >>conftest.$ac_ext <<_ACEOF
13478 /* end confdefs.h. */
13479 #include <sys/types.h>
13480 #include <$ac_cv_struct_tm>
13484 main ()
13486 static struct tm ac_aggr;
13487 if (ac_aggr.tm_zone)
13488 return 0;
13490 return 0;
13492 _ACEOF
13493 rm -f conftest.$ac_objext
13494 if { (ac_try="$ac_compile"
13495 case "(($ac_try" in
13496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13497 *) ac_try_echo=$ac_try;;
13498 esac
13499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13500 (eval "$ac_compile") 2>conftest.er1
13501 ac_status=$?
13502 grep -v '^ *+' conftest.er1 >conftest.err
13503 rm -f conftest.er1
13504 cat conftest.err >&5
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); } && {
13507 test -z "$ac_c_werror_flag" ||
13508 test ! -s conftest.err
13509 } && test -s conftest.$ac_objext; then
13510 ac_cv_member_struct_tm_tm_zone=yes
13511 else
13512 echo "$as_me: failed program was:" >&5
13513 sed 's/^/| /' conftest.$ac_ext >&5
13515 cat >conftest.$ac_ext <<_ACEOF
13516 /* confdefs.h. */
13517 _ACEOF
13518 cat confdefs.h >>conftest.$ac_ext
13519 cat >>conftest.$ac_ext <<_ACEOF
13520 /* end confdefs.h. */
13521 #include <sys/types.h>
13522 #include <$ac_cv_struct_tm>
13526 main ()
13528 static struct tm ac_aggr;
13529 if (sizeof ac_aggr.tm_zone)
13530 return 0;
13532 return 0;
13534 _ACEOF
13535 rm -f conftest.$ac_objext
13536 if { (ac_try="$ac_compile"
13537 case "(($ac_try" in
13538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13539 *) ac_try_echo=$ac_try;;
13540 esac
13541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13542 (eval "$ac_compile") 2>conftest.er1
13543 ac_status=$?
13544 grep -v '^ *+' conftest.er1 >conftest.err
13545 rm -f conftest.er1
13546 cat conftest.err >&5
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); } && {
13549 test -z "$ac_c_werror_flag" ||
13550 test ! -s conftest.err
13551 } && test -s conftest.$ac_objext; then
13552 ac_cv_member_struct_tm_tm_zone=yes
13553 else
13554 echo "$as_me: failed program was:" >&5
13555 sed 's/^/| /' conftest.$ac_ext >&5
13557 ac_cv_member_struct_tm_tm_zone=no
13560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13565 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
13566 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
13567 if test $ac_cv_member_struct_tm_tm_zone = yes; then
13569 cat >>confdefs.h <<_ACEOF
13570 #define HAVE_STRUCT_TM_TM_ZONE 1
13571 _ACEOF
13576 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
13578 cat >>confdefs.h <<\_ACEOF
13579 #define HAVE_TM_ZONE 1
13580 _ACEOF
13583 { echo "$as_me:$LINENO: checking for tzname" >&5
13584 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
13585 if test "${ac_cv_var_tzname+set}" = set; then
13586 echo $ECHO_N "(cached) $ECHO_C" >&6
13587 else
13588 cat >conftest.$ac_ext <<_ACEOF
13589 /* confdefs.h. */
13590 _ACEOF
13591 cat confdefs.h >>conftest.$ac_ext
13592 cat >>conftest.$ac_ext <<_ACEOF
13593 /* end confdefs.h. */
13594 #include <time.h>
13595 #ifndef tzname /* For SGI. */
13596 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
13597 #endif
13600 main ()
13602 atoi(*tzname);
13604 return 0;
13606 _ACEOF
13607 rm -f conftest.$ac_objext conftest$ac_exeext
13608 if { (ac_try="$ac_link"
13609 case "(($ac_try" in
13610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13611 *) ac_try_echo=$ac_try;;
13612 esac
13613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13614 (eval "$ac_link") 2>conftest.er1
13615 ac_status=$?
13616 grep -v '^ *+' conftest.er1 >conftest.err
13617 rm -f conftest.er1
13618 cat conftest.err >&5
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 (exit $ac_status); } && {
13621 test -z "$ac_c_werror_flag" ||
13622 test ! -s conftest.err
13623 } && test -s conftest$ac_exeext &&
13624 $as_test_x conftest$ac_exeext; then
13625 ac_cv_var_tzname=yes
13626 else
13627 echo "$as_me: failed program was:" >&5
13628 sed 's/^/| /' conftest.$ac_ext >&5
13630 ac_cv_var_tzname=no
13633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13634 conftest$ac_exeext conftest.$ac_ext
13636 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
13637 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
13638 if test $ac_cv_var_tzname = yes; then
13640 cat >>confdefs.h <<\_ACEOF
13641 #define HAVE_TZNAME 1
13642 _ACEOF
13646 { echo "$as_me:$LINENO: checking for union semun" >&5
13647 echo $ECHO_N "checking for union semun... $ECHO_C" >&6; }
13648 if test "${ac_cv_type_union_semun+set}" = set; then
13649 echo $ECHO_N "(cached) $ECHO_C" >&6
13650 else
13651 cat >conftest.$ac_ext <<_ACEOF
13652 /* confdefs.h. */
13653 _ACEOF
13654 cat confdefs.h >>conftest.$ac_ext
13655 cat >>conftest.$ac_ext <<_ACEOF
13656 /* end confdefs.h. */
13657 #include <sys/types.h>
13658 #include <sys/ipc.h>
13659 #include <sys/sem.h>
13661 typedef union semun ac__type_new_;
13663 main ()
13665 if ((ac__type_new_ *) 0)
13666 return 0;
13667 if (sizeof (ac__type_new_))
13668 return 0;
13670 return 0;
13672 _ACEOF
13673 rm -f conftest.$ac_objext
13674 if { (ac_try="$ac_compile"
13675 case "(($ac_try" in
13676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13677 *) ac_try_echo=$ac_try;;
13678 esac
13679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13680 (eval "$ac_compile") 2>conftest.er1
13681 ac_status=$?
13682 grep -v '^ *+' conftest.er1 >conftest.err
13683 rm -f conftest.er1
13684 cat conftest.err >&5
13685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); } && {
13687 test -z "$ac_c_werror_flag" ||
13688 test ! -s conftest.err
13689 } && test -s conftest.$ac_objext; then
13690 ac_cv_type_union_semun=yes
13691 else
13692 echo "$as_me: failed program was:" >&5
13693 sed 's/^/| /' conftest.$ac_ext >&5
13695 ac_cv_type_union_semun=no
13698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13700 { echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
13701 echo "${ECHO_T}$ac_cv_type_union_semun" >&6; }
13702 if test $ac_cv_type_union_semun = yes; then
13704 cat >>confdefs.h <<_ACEOF
13705 #define HAVE_UNION_SEMUN 1
13706 _ACEOF
13711 { echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
13712 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6; }
13713 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
13714 echo $ECHO_N "(cached) $ECHO_C" >&6
13715 else
13716 cat >conftest.$ac_ext <<_ACEOF
13717 /* confdefs.h. */
13718 _ACEOF
13719 cat confdefs.h >>conftest.$ac_ext
13720 cat >>conftest.$ac_ext <<_ACEOF
13721 /* end confdefs.h. */
13722 #include <sys/types.h>
13723 #ifdef HAVE_SYS_UN_H
13724 #include <sys/un.h>
13725 #endif
13728 typedef struct sockaddr_un ac__type_new_;
13730 main ()
13732 if ((ac__type_new_ *) 0)
13733 return 0;
13734 if (sizeof (ac__type_new_))
13735 return 0;
13737 return 0;
13739 _ACEOF
13740 rm -f conftest.$ac_objext
13741 if { (ac_try="$ac_compile"
13742 case "(($ac_try" in
13743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13744 *) ac_try_echo=$ac_try;;
13745 esac
13746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13747 (eval "$ac_compile") 2>conftest.er1
13748 ac_status=$?
13749 grep -v '^ *+' conftest.er1 >conftest.err
13750 rm -f conftest.er1
13751 cat conftest.err >&5
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); } && {
13754 test -z "$ac_c_werror_flag" ||
13755 test ! -s conftest.err
13756 } && test -s conftest.$ac_objext; then
13757 ac_cv_type_struct_sockaddr_un=yes
13758 else
13759 echo "$as_me: failed program was:" >&5
13760 sed 's/^/| /' conftest.$ac_ext >&5
13762 ac_cv_type_struct_sockaddr_un=no
13765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13767 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
13768 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6; }
13769 if test $ac_cv_type_struct_sockaddr_un = yes; then
13771 cat >>confdefs.h <<_ACEOF
13772 #define HAVE_STRUCT_SOCKADDR_UN 1
13773 _ACEOF
13776 cat >>confdefs.h <<\_ACEOF
13777 #define HAVE_UNIX_SOCKETS 1
13778 _ACEOF
13782 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
13783 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
13784 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
13785 echo $ECHO_N "(cached) $ECHO_C" >&6
13786 else
13787 cat >conftest.$ac_ext <<_ACEOF
13788 /* confdefs.h. */
13789 _ACEOF
13790 cat confdefs.h >>conftest.$ac_ext
13791 cat >>conftest.$ac_ext <<_ACEOF
13792 /* end confdefs.h. */
13793 #include <sys/types.h>
13794 #ifdef HAVE_SYS_SOCKET_H
13795 #include <sys/socket.h>
13796 #endif
13799 typedef struct sockaddr_storage ac__type_new_;
13801 main ()
13803 if ((ac__type_new_ *) 0)
13804 return 0;
13805 if (sizeof (ac__type_new_))
13806 return 0;
13808 return 0;
13810 _ACEOF
13811 rm -f conftest.$ac_objext
13812 if { (ac_try="$ac_compile"
13813 case "(($ac_try" in
13814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13815 *) ac_try_echo=$ac_try;;
13816 esac
13817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13818 (eval "$ac_compile") 2>conftest.er1
13819 ac_status=$?
13820 grep -v '^ *+' conftest.er1 >conftest.err
13821 rm -f conftest.er1
13822 cat conftest.err >&5
13823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824 (exit $ac_status); } && {
13825 test -z "$ac_c_werror_flag" ||
13826 test ! -s conftest.err
13827 } && test -s conftest.$ac_objext; then
13828 ac_cv_type_struct_sockaddr_storage=yes
13829 else
13830 echo "$as_me: failed program was:" >&5
13831 sed 's/^/| /' conftest.$ac_ext >&5
13833 ac_cv_type_struct_sockaddr_storage=no
13836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13838 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
13839 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
13840 if test $ac_cv_type_struct_sockaddr_storage = yes; then
13842 cat >>confdefs.h <<_ACEOF
13843 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13844 _ACEOF
13849 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
13850 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6; }
13851 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
13852 echo $ECHO_N "(cached) $ECHO_C" >&6
13853 else
13854 cat >conftest.$ac_ext <<_ACEOF
13855 /* confdefs.h. */
13856 _ACEOF
13857 cat confdefs.h >>conftest.$ac_ext
13858 cat >>conftest.$ac_ext <<_ACEOF
13859 /* end confdefs.h. */
13860 #include <sys/types.h>
13861 #ifdef HAVE_SYS_SOCKET_H
13862 #include <sys/socket.h>
13863 #endif
13867 main ()
13869 static struct sockaddr_storage ac_aggr;
13870 if (ac_aggr.ss_family)
13871 return 0;
13873 return 0;
13875 _ACEOF
13876 rm -f conftest.$ac_objext
13877 if { (ac_try="$ac_compile"
13878 case "(($ac_try" in
13879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13880 *) ac_try_echo=$ac_try;;
13881 esac
13882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13883 (eval "$ac_compile") 2>conftest.er1
13884 ac_status=$?
13885 grep -v '^ *+' conftest.er1 >conftest.err
13886 rm -f conftest.er1
13887 cat conftest.err >&5
13888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889 (exit $ac_status); } && {
13890 test -z "$ac_c_werror_flag" ||
13891 test ! -s conftest.err
13892 } && test -s conftest.$ac_objext; then
13893 ac_cv_member_struct_sockaddr_storage_ss_family=yes
13894 else
13895 echo "$as_me: failed program was:" >&5
13896 sed 's/^/| /' conftest.$ac_ext >&5
13898 cat >conftest.$ac_ext <<_ACEOF
13899 /* confdefs.h. */
13900 _ACEOF
13901 cat confdefs.h >>conftest.$ac_ext
13902 cat >>conftest.$ac_ext <<_ACEOF
13903 /* end confdefs.h. */
13904 #include <sys/types.h>
13905 #ifdef HAVE_SYS_SOCKET_H
13906 #include <sys/socket.h>
13907 #endif
13911 main ()
13913 static struct sockaddr_storage ac_aggr;
13914 if (sizeof ac_aggr.ss_family)
13915 return 0;
13917 return 0;
13919 _ACEOF
13920 rm -f conftest.$ac_objext
13921 if { (ac_try="$ac_compile"
13922 case "(($ac_try" in
13923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13924 *) ac_try_echo=$ac_try;;
13925 esac
13926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13927 (eval "$ac_compile") 2>conftest.er1
13928 ac_status=$?
13929 grep -v '^ *+' conftest.er1 >conftest.err
13930 rm -f conftest.er1
13931 cat conftest.err >&5
13932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933 (exit $ac_status); } && {
13934 test -z "$ac_c_werror_flag" ||
13935 test ! -s conftest.err
13936 } && test -s conftest.$ac_objext; then
13937 ac_cv_member_struct_sockaddr_storage_ss_family=yes
13938 else
13939 echo "$as_me: failed program was:" >&5
13940 sed 's/^/| /' conftest.$ac_ext >&5
13942 ac_cv_member_struct_sockaddr_storage_ss_family=no
13945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13950 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
13951 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
13952 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
13954 cat >>confdefs.h <<_ACEOF
13955 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
13956 _ACEOF
13960 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
13961 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6; }
13962 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
13963 echo $ECHO_N "(cached) $ECHO_C" >&6
13964 else
13965 cat >conftest.$ac_ext <<_ACEOF
13966 /* confdefs.h. */
13967 _ACEOF
13968 cat confdefs.h >>conftest.$ac_ext
13969 cat >>conftest.$ac_ext <<_ACEOF
13970 /* end confdefs.h. */
13971 #include <sys/types.h>
13972 #ifdef HAVE_SYS_SOCKET_H
13973 #include <sys/socket.h>
13974 #endif
13978 main ()
13980 static struct sockaddr_storage ac_aggr;
13981 if (ac_aggr.__ss_family)
13982 return 0;
13984 return 0;
13986 _ACEOF
13987 rm -f conftest.$ac_objext
13988 if { (ac_try="$ac_compile"
13989 case "(($ac_try" in
13990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13991 *) ac_try_echo=$ac_try;;
13992 esac
13993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13994 (eval "$ac_compile") 2>conftest.er1
13995 ac_status=$?
13996 grep -v '^ *+' conftest.er1 >conftest.err
13997 rm -f conftest.er1
13998 cat conftest.err >&5
13999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000 (exit $ac_status); } && {
14001 test -z "$ac_c_werror_flag" ||
14002 test ! -s conftest.err
14003 } && test -s conftest.$ac_objext; then
14004 ac_cv_member_struct_sockaddr_storage___ss_family=yes
14005 else
14006 echo "$as_me: failed program was:" >&5
14007 sed 's/^/| /' conftest.$ac_ext >&5
14009 cat >conftest.$ac_ext <<_ACEOF
14010 /* confdefs.h. */
14011 _ACEOF
14012 cat confdefs.h >>conftest.$ac_ext
14013 cat >>conftest.$ac_ext <<_ACEOF
14014 /* end confdefs.h. */
14015 #include <sys/types.h>
14016 #ifdef HAVE_SYS_SOCKET_H
14017 #include <sys/socket.h>
14018 #endif
14022 main ()
14024 static struct sockaddr_storage ac_aggr;
14025 if (sizeof ac_aggr.__ss_family)
14026 return 0;
14028 return 0;
14030 _ACEOF
14031 rm -f conftest.$ac_objext
14032 if { (ac_try="$ac_compile"
14033 case "(($ac_try" in
14034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14035 *) ac_try_echo=$ac_try;;
14036 esac
14037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14038 (eval "$ac_compile") 2>conftest.er1
14039 ac_status=$?
14040 grep -v '^ *+' conftest.er1 >conftest.err
14041 rm -f conftest.er1
14042 cat conftest.err >&5
14043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044 (exit $ac_status); } && {
14045 test -z "$ac_c_werror_flag" ||
14046 test ! -s conftest.err
14047 } && test -s conftest.$ac_objext; then
14048 ac_cv_member_struct_sockaddr_storage___ss_family=yes
14049 else
14050 echo "$as_me: failed program was:" >&5
14051 sed 's/^/| /' conftest.$ac_ext >&5
14053 ac_cv_member_struct_sockaddr_storage___ss_family=no
14056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14061 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
14062 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
14063 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
14065 cat >>confdefs.h <<_ACEOF
14066 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
14067 _ACEOF
14071 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
14072 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6; }
14073 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
14074 echo $ECHO_N "(cached) $ECHO_C" >&6
14075 else
14076 cat >conftest.$ac_ext <<_ACEOF
14077 /* confdefs.h. */
14078 _ACEOF
14079 cat confdefs.h >>conftest.$ac_ext
14080 cat >>conftest.$ac_ext <<_ACEOF
14081 /* end confdefs.h. */
14082 #include <sys/types.h>
14083 #ifdef HAVE_SYS_SOCKET_H
14084 #include <sys/socket.h>
14085 #endif
14089 main ()
14091 static struct sockaddr_storage ac_aggr;
14092 if (ac_aggr.ss_len)
14093 return 0;
14095 return 0;
14097 _ACEOF
14098 rm -f conftest.$ac_objext
14099 if { (ac_try="$ac_compile"
14100 case "(($ac_try" in
14101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14102 *) ac_try_echo=$ac_try;;
14103 esac
14104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14105 (eval "$ac_compile") 2>conftest.er1
14106 ac_status=$?
14107 grep -v '^ *+' conftest.er1 >conftest.err
14108 rm -f conftest.er1
14109 cat conftest.err >&5
14110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111 (exit $ac_status); } && {
14112 test -z "$ac_c_werror_flag" ||
14113 test ! -s conftest.err
14114 } && test -s conftest.$ac_objext; then
14115 ac_cv_member_struct_sockaddr_storage_ss_len=yes
14116 else
14117 echo "$as_me: failed program was:" >&5
14118 sed 's/^/| /' conftest.$ac_ext >&5
14120 cat >conftest.$ac_ext <<_ACEOF
14121 /* confdefs.h. */
14122 _ACEOF
14123 cat confdefs.h >>conftest.$ac_ext
14124 cat >>conftest.$ac_ext <<_ACEOF
14125 /* end confdefs.h. */
14126 #include <sys/types.h>
14127 #ifdef HAVE_SYS_SOCKET_H
14128 #include <sys/socket.h>
14129 #endif
14133 main ()
14135 static struct sockaddr_storage ac_aggr;
14136 if (sizeof ac_aggr.ss_len)
14137 return 0;
14139 return 0;
14141 _ACEOF
14142 rm -f conftest.$ac_objext
14143 if { (ac_try="$ac_compile"
14144 case "(($ac_try" in
14145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14146 *) ac_try_echo=$ac_try;;
14147 esac
14148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14149 (eval "$ac_compile") 2>conftest.er1
14150 ac_status=$?
14151 grep -v '^ *+' conftest.er1 >conftest.err
14152 rm -f conftest.er1
14153 cat conftest.err >&5
14154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155 (exit $ac_status); } && {
14156 test -z "$ac_c_werror_flag" ||
14157 test ! -s conftest.err
14158 } && test -s conftest.$ac_objext; then
14159 ac_cv_member_struct_sockaddr_storage_ss_len=yes
14160 else
14161 echo "$as_me: failed program was:" >&5
14162 sed 's/^/| /' conftest.$ac_ext >&5
14164 ac_cv_member_struct_sockaddr_storage_ss_len=no
14167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14172 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
14173 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
14174 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
14176 cat >>confdefs.h <<_ACEOF
14177 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
14178 _ACEOF
14182 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
14183 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6; }
14184 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
14185 echo $ECHO_N "(cached) $ECHO_C" >&6
14186 else
14187 cat >conftest.$ac_ext <<_ACEOF
14188 /* confdefs.h. */
14189 _ACEOF
14190 cat confdefs.h >>conftest.$ac_ext
14191 cat >>conftest.$ac_ext <<_ACEOF
14192 /* end confdefs.h. */
14193 #include <sys/types.h>
14194 #ifdef HAVE_SYS_SOCKET_H
14195 #include <sys/socket.h>
14196 #endif
14200 main ()
14202 static struct sockaddr_storage ac_aggr;
14203 if (ac_aggr.__ss_len)
14204 return 0;
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_member_struct_sockaddr_storage___ss_len=yes
14227 else
14228 echo "$as_me: failed program was:" >&5
14229 sed 's/^/| /' conftest.$ac_ext >&5
14231 cat >conftest.$ac_ext <<_ACEOF
14232 /* confdefs.h. */
14233 _ACEOF
14234 cat confdefs.h >>conftest.$ac_ext
14235 cat >>conftest.$ac_ext <<_ACEOF
14236 /* end confdefs.h. */
14237 #include <sys/types.h>
14238 #ifdef HAVE_SYS_SOCKET_H
14239 #include <sys/socket.h>
14240 #endif
14244 main ()
14246 static struct sockaddr_storage ac_aggr;
14247 if (sizeof ac_aggr.__ss_len)
14248 return 0;
14250 return 0;
14252 _ACEOF
14253 rm -f conftest.$ac_objext
14254 if { (ac_try="$ac_compile"
14255 case "(($ac_try" in
14256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14257 *) ac_try_echo=$ac_try;;
14258 esac
14259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14260 (eval "$ac_compile") 2>conftest.er1
14261 ac_status=$?
14262 grep -v '^ *+' conftest.er1 >conftest.err
14263 rm -f conftest.er1
14264 cat conftest.err >&5
14265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 (exit $ac_status); } && {
14267 test -z "$ac_c_werror_flag" ||
14268 test ! -s conftest.err
14269 } && test -s conftest.$ac_objext; then
14270 ac_cv_member_struct_sockaddr_storage___ss_len=yes
14271 else
14272 echo "$as_me: failed program was:" >&5
14273 sed 's/^/| /' conftest.$ac_ext >&5
14275 ac_cv_member_struct_sockaddr_storage___ss_len=no
14278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14283 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
14284 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
14285 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
14287 cat >>confdefs.h <<_ACEOF
14288 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
14289 _ACEOF
14293 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14294 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14295 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14296 echo $ECHO_N "(cached) $ECHO_C" >&6
14297 else
14298 cat >conftest.$ac_ext <<_ACEOF
14299 /* confdefs.h. */
14300 _ACEOF
14301 cat confdefs.h >>conftest.$ac_ext
14302 cat >>conftest.$ac_ext <<_ACEOF
14303 /* end confdefs.h. */
14304 #include <sys/types.h>
14305 #ifdef HAVE_SYS_SOCKET_H
14306 #include <sys/socket.h>
14307 #endif
14311 main ()
14313 static struct sockaddr ac_aggr;
14314 if (ac_aggr.sa_len)
14315 return 0;
14317 return 0;
14319 _ACEOF
14320 rm -f conftest.$ac_objext
14321 if { (ac_try="$ac_compile"
14322 case "(($ac_try" in
14323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14324 *) ac_try_echo=$ac_try;;
14325 esac
14326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14327 (eval "$ac_compile") 2>conftest.er1
14328 ac_status=$?
14329 grep -v '^ *+' conftest.er1 >conftest.err
14330 rm -f conftest.er1
14331 cat conftest.err >&5
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); } && {
14334 test -z "$ac_c_werror_flag" ||
14335 test ! -s conftest.err
14336 } && test -s conftest.$ac_objext; then
14337 ac_cv_member_struct_sockaddr_sa_len=yes
14338 else
14339 echo "$as_me: failed program was:" >&5
14340 sed 's/^/| /' conftest.$ac_ext >&5
14342 cat >conftest.$ac_ext <<_ACEOF
14343 /* confdefs.h. */
14344 _ACEOF
14345 cat confdefs.h >>conftest.$ac_ext
14346 cat >>conftest.$ac_ext <<_ACEOF
14347 /* end confdefs.h. */
14348 #include <sys/types.h>
14349 #ifdef HAVE_SYS_SOCKET_H
14350 #include <sys/socket.h>
14351 #endif
14355 main ()
14357 static struct sockaddr ac_aggr;
14358 if (sizeof ac_aggr.sa_len)
14359 return 0;
14361 return 0;
14363 _ACEOF
14364 rm -f conftest.$ac_objext
14365 if { (ac_try="$ac_compile"
14366 case "(($ac_try" in
14367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14368 *) ac_try_echo=$ac_try;;
14369 esac
14370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14371 (eval "$ac_compile") 2>conftest.er1
14372 ac_status=$?
14373 grep -v '^ *+' conftest.er1 >conftest.err
14374 rm -f conftest.er1
14375 cat conftest.err >&5
14376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377 (exit $ac_status); } && {
14378 test -z "$ac_c_werror_flag" ||
14379 test ! -s conftest.err
14380 } && test -s conftest.$ac_objext; then
14381 ac_cv_member_struct_sockaddr_sa_len=yes
14382 else
14383 echo "$as_me: failed program was:" >&5
14384 sed 's/^/| /' conftest.$ac_ext >&5
14386 ac_cv_member_struct_sockaddr_sa_len=no
14389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14394 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14395 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
14396 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
14398 cat >>confdefs.h <<_ACEOF
14399 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
14400 _ACEOF
14405 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
14406 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
14407 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
14408 echo $ECHO_N "(cached) $ECHO_C" >&6
14409 else
14410 cat >conftest.$ac_ext <<_ACEOF
14411 /* confdefs.h. */
14412 _ACEOF
14413 cat confdefs.h >>conftest.$ac_ext
14414 cat >>conftest.$ac_ext <<_ACEOF
14415 /* end confdefs.h. */
14416 #include <sys/types.h>
14417 #include <sys/socket.h>
14418 #include <netdb.h>
14421 typedef struct addrinfo ac__type_new_;
14423 main ()
14425 if ((ac__type_new_ *) 0)
14426 return 0;
14427 if (sizeof (ac__type_new_))
14428 return 0;
14430 return 0;
14432 _ACEOF
14433 rm -f conftest.$ac_objext
14434 if { (ac_try="$ac_compile"
14435 case "(($ac_try" in
14436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14437 *) ac_try_echo=$ac_try;;
14438 esac
14439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14440 (eval "$ac_compile") 2>conftest.er1
14441 ac_status=$?
14442 grep -v '^ *+' conftest.er1 >conftest.err
14443 rm -f conftest.er1
14444 cat conftest.err >&5
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); } && {
14447 test -z "$ac_c_werror_flag" ||
14448 test ! -s conftest.err
14449 } && test -s conftest.$ac_objext; then
14450 ac_cv_type_struct_addrinfo=yes
14451 else
14452 echo "$as_me: failed program was:" >&5
14453 sed 's/^/| /' conftest.$ac_ext >&5
14455 ac_cv_type_struct_addrinfo=no
14458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14460 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
14461 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
14462 if test $ac_cv_type_struct_addrinfo = yes; then
14464 cat >>confdefs.h <<_ACEOF
14465 #define HAVE_STRUCT_ADDRINFO 1
14466 _ACEOF
14472 { echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
14473 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6; }
14474 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
14475 echo $ECHO_N "(cached) $ECHO_C" >&6
14476 else
14477 cat >conftest.$ac_ext <<_ACEOF
14478 /* confdefs.h. */
14479 _ACEOF
14480 cat confdefs.h >>conftest.$ac_ext
14481 cat >>conftest.$ac_ext <<_ACEOF
14482 /* end confdefs.h. */
14483 #include <sys/param.h>
14484 #include <sys/types.h>
14485 #include <sys/socket.h>
14486 #include <sys/ucred.h>
14488 typedef struct cmsgcred ac__type_new_;
14490 main ()
14492 if ((ac__type_new_ *) 0)
14493 return 0;
14494 if (sizeof (ac__type_new_))
14495 return 0;
14497 return 0;
14499 _ACEOF
14500 rm -f conftest.$ac_objext
14501 if { (ac_try="$ac_compile"
14502 case "(($ac_try" in
14503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14504 *) ac_try_echo=$ac_try;;
14505 esac
14506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14507 (eval "$ac_compile") 2>conftest.er1
14508 ac_status=$?
14509 grep -v '^ *+' conftest.er1 >conftest.err
14510 rm -f conftest.er1
14511 cat conftest.err >&5
14512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513 (exit $ac_status); } && {
14514 test -z "$ac_c_werror_flag" ||
14515 test ! -s conftest.err
14516 } && test -s conftest.$ac_objext; then
14517 ac_cv_type_struct_cmsgcred=yes
14518 else
14519 echo "$as_me: failed program was:" >&5
14520 sed 's/^/| /' conftest.$ac_ext >&5
14522 ac_cv_type_struct_cmsgcred=no
14525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14527 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
14528 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6; }
14529 if test $ac_cv_type_struct_cmsgcred = yes; then
14531 cat >>confdefs.h <<_ACEOF
14532 #define HAVE_STRUCT_CMSGCRED 1
14533 _ACEOF
14537 { echo "$as_me:$LINENO: checking for struct fcred" >&5
14538 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6; }
14539 if test "${ac_cv_type_struct_fcred+set}" = set; then
14540 echo $ECHO_N "(cached) $ECHO_C" >&6
14541 else
14542 cat >conftest.$ac_ext <<_ACEOF
14543 /* confdefs.h. */
14544 _ACEOF
14545 cat confdefs.h >>conftest.$ac_ext
14546 cat >>conftest.$ac_ext <<_ACEOF
14547 /* end confdefs.h. */
14548 #include <sys/param.h>
14549 #include <sys/types.h>
14550 #include <sys/socket.h>
14551 #include <sys/ucred.h>
14553 typedef struct fcred ac__type_new_;
14555 main ()
14557 if ((ac__type_new_ *) 0)
14558 return 0;
14559 if (sizeof (ac__type_new_))
14560 return 0;
14562 return 0;
14564 _ACEOF
14565 rm -f conftest.$ac_objext
14566 if { (ac_try="$ac_compile"
14567 case "(($ac_try" in
14568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14569 *) ac_try_echo=$ac_try;;
14570 esac
14571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14572 (eval "$ac_compile") 2>conftest.er1
14573 ac_status=$?
14574 grep -v '^ *+' conftest.er1 >conftest.err
14575 rm -f conftest.er1
14576 cat conftest.err >&5
14577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578 (exit $ac_status); } && {
14579 test -z "$ac_c_werror_flag" ||
14580 test ! -s conftest.err
14581 } && test -s conftest.$ac_objext; then
14582 ac_cv_type_struct_fcred=yes
14583 else
14584 echo "$as_me: failed program was:" >&5
14585 sed 's/^/| /' conftest.$ac_ext >&5
14587 ac_cv_type_struct_fcred=no
14590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14592 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
14593 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6; }
14594 if test $ac_cv_type_struct_fcred = yes; then
14596 cat >>confdefs.h <<_ACEOF
14597 #define HAVE_STRUCT_FCRED 1
14598 _ACEOF
14602 { echo "$as_me:$LINENO: checking for struct sockcred" >&5
14603 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6; }
14604 if test "${ac_cv_type_struct_sockcred+set}" = set; then
14605 echo $ECHO_N "(cached) $ECHO_C" >&6
14606 else
14607 cat >conftest.$ac_ext <<_ACEOF
14608 /* confdefs.h. */
14609 _ACEOF
14610 cat confdefs.h >>conftest.$ac_ext
14611 cat >>conftest.$ac_ext <<_ACEOF
14612 /* end confdefs.h. */
14613 #include <sys/param.h>
14614 #include <sys/types.h>
14615 #include <sys/socket.h>
14616 #include <sys/ucred.h>
14618 typedef struct sockcred ac__type_new_;
14620 main ()
14622 if ((ac__type_new_ *) 0)
14623 return 0;
14624 if (sizeof (ac__type_new_))
14625 return 0;
14627 return 0;
14629 _ACEOF
14630 rm -f conftest.$ac_objext
14631 if { (ac_try="$ac_compile"
14632 case "(($ac_try" in
14633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14634 *) ac_try_echo=$ac_try;;
14635 esac
14636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14637 (eval "$ac_compile") 2>conftest.er1
14638 ac_status=$?
14639 grep -v '^ *+' conftest.er1 >conftest.err
14640 rm -f conftest.er1
14641 cat conftest.err >&5
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); } && {
14644 test -z "$ac_c_werror_flag" ||
14645 test ! -s conftest.err
14646 } && test -s conftest.$ac_objext; then
14647 ac_cv_type_struct_sockcred=yes
14648 else
14649 echo "$as_me: failed program was:" >&5
14650 sed 's/^/| /' conftest.$ac_ext >&5
14652 ac_cv_type_struct_sockcred=no
14655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14657 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
14658 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6; }
14659 if test $ac_cv_type_struct_sockcred = yes; then
14661 cat >>confdefs.h <<_ACEOF
14662 #define HAVE_STRUCT_SOCKCRED 1
14663 _ACEOF
14669 { echo "$as_me:$LINENO: checking for struct option" >&5
14670 echo $ECHO_N "checking for struct option... $ECHO_C" >&6; }
14671 if test "${ac_cv_type_struct_option+set}" = set; then
14672 echo $ECHO_N "(cached) $ECHO_C" >&6
14673 else
14674 cat >conftest.$ac_ext <<_ACEOF
14675 /* confdefs.h. */
14676 _ACEOF
14677 cat confdefs.h >>conftest.$ac_ext
14678 cat >>conftest.$ac_ext <<_ACEOF
14679 /* end confdefs.h. */
14680 #ifdef HAVE_GETOPT_H
14681 #include <getopt.h>
14682 #endif
14684 typedef struct option ac__type_new_;
14686 main ()
14688 if ((ac__type_new_ *) 0)
14689 return 0;
14690 if (sizeof (ac__type_new_))
14691 return 0;
14693 return 0;
14695 _ACEOF
14696 rm -f conftest.$ac_objext
14697 if { (ac_try="$ac_compile"
14698 case "(($ac_try" in
14699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14700 *) ac_try_echo=$ac_try;;
14701 esac
14702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14703 (eval "$ac_compile") 2>conftest.er1
14704 ac_status=$?
14705 grep -v '^ *+' conftest.er1 >conftest.err
14706 rm -f conftest.er1
14707 cat conftest.err >&5
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); } && {
14710 test -z "$ac_c_werror_flag" ||
14711 test ! -s conftest.err
14712 } && test -s conftest.$ac_objext; then
14713 ac_cv_type_struct_option=yes
14714 else
14715 echo "$as_me: failed program was:" >&5
14716 sed 's/^/| /' conftest.$ac_ext >&5
14718 ac_cv_type_struct_option=no
14721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14723 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
14724 echo "${ECHO_T}$ac_cv_type_struct_option" >&6; }
14725 if test $ac_cv_type_struct_option = yes; then
14727 cat >>confdefs.h <<_ACEOF
14728 #define HAVE_STRUCT_OPTION 1
14729 _ACEOF
14735 if test "$with_zlib" = yes; then
14736 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
14737 # did not). While we could work around the lack of z_streamp, it
14738 # seems unwise to encourage people to use such old zlib versions...
14739 { echo "$as_me:$LINENO: checking for z_streamp" >&5
14740 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6; }
14741 if test "${ac_cv_type_z_streamp+set}" = set; then
14742 echo $ECHO_N "(cached) $ECHO_C" >&6
14743 else
14744 cat >conftest.$ac_ext <<_ACEOF
14745 /* confdefs.h. */
14746 _ACEOF
14747 cat confdefs.h >>conftest.$ac_ext
14748 cat >>conftest.$ac_ext <<_ACEOF
14749 /* end confdefs.h. */
14750 #include <zlib.h>
14752 typedef z_streamp ac__type_new_;
14754 main ()
14756 if ((ac__type_new_ *) 0)
14757 return 0;
14758 if (sizeof (ac__type_new_))
14759 return 0;
14761 return 0;
14763 _ACEOF
14764 rm -f conftest.$ac_objext
14765 if { (ac_try="$ac_compile"
14766 case "(($ac_try" in
14767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14768 *) ac_try_echo=$ac_try;;
14769 esac
14770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14771 (eval "$ac_compile") 2>conftest.er1
14772 ac_status=$?
14773 grep -v '^ *+' conftest.er1 >conftest.err
14774 rm -f conftest.er1
14775 cat conftest.err >&5
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); } && {
14778 test -z "$ac_c_werror_flag" ||
14779 test ! -s conftest.err
14780 } && test -s conftest.$ac_objext; then
14781 ac_cv_type_z_streamp=yes
14782 else
14783 echo "$as_me: failed program was:" >&5
14784 sed 's/^/| /' conftest.$ac_ext >&5
14786 ac_cv_type_z_streamp=no
14789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14791 { echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
14792 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6; }
14793 if test $ac_cv_type_z_streamp = yes; then
14795 else
14796 { { echo "$as_me:$LINENO: error: zlib version is too old
14797 Use --without-zlib to disable zlib support." >&5
14798 echo "$as_me: error: zlib version is too old
14799 Use --without-zlib to disable zlib support." >&2;}
14800 { (exit 1); exit 1; }; }
14805 if test "$with_krb5" = yes; then
14806 # Check for differences between MIT and Heimdal (KTH) releases
14807 { echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
14808 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6; }
14809 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
14810 echo $ECHO_N "(cached) $ECHO_C" >&6
14811 else
14812 cat >conftest.$ac_ext <<_ACEOF
14813 /* confdefs.h. */
14814 _ACEOF
14815 cat confdefs.h >>conftest.$ac_ext
14816 cat >>conftest.$ac_ext <<_ACEOF
14817 /* end confdefs.h. */
14818 #include <krb5.h>
14821 main ()
14823 static krb5_ticket ac_aggr;
14824 if (ac_aggr.enc_part2)
14825 return 0;
14827 return 0;
14829 _ACEOF
14830 rm -f conftest.$ac_objext
14831 if { (ac_try="$ac_compile"
14832 case "(($ac_try" in
14833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14834 *) ac_try_echo=$ac_try;;
14835 esac
14836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14837 (eval "$ac_compile") 2>conftest.er1
14838 ac_status=$?
14839 grep -v '^ *+' conftest.er1 >conftest.err
14840 rm -f conftest.er1
14841 cat conftest.err >&5
14842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843 (exit $ac_status); } && {
14844 test -z "$ac_c_werror_flag" ||
14845 test ! -s conftest.err
14846 } && test -s conftest.$ac_objext; then
14847 ac_cv_member_krb5_ticket_enc_part2=yes
14848 else
14849 echo "$as_me: failed program was:" >&5
14850 sed 's/^/| /' conftest.$ac_ext >&5
14852 cat >conftest.$ac_ext <<_ACEOF
14853 /* confdefs.h. */
14854 _ACEOF
14855 cat confdefs.h >>conftest.$ac_ext
14856 cat >>conftest.$ac_ext <<_ACEOF
14857 /* end confdefs.h. */
14858 #include <krb5.h>
14861 main ()
14863 static krb5_ticket ac_aggr;
14864 if (sizeof ac_aggr.enc_part2)
14865 return 0;
14867 return 0;
14869 _ACEOF
14870 rm -f conftest.$ac_objext
14871 if { (ac_try="$ac_compile"
14872 case "(($ac_try" in
14873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14874 *) ac_try_echo=$ac_try;;
14875 esac
14876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14877 (eval "$ac_compile") 2>conftest.er1
14878 ac_status=$?
14879 grep -v '^ *+' conftest.er1 >conftest.err
14880 rm -f conftest.er1
14881 cat conftest.err >&5
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); } && {
14884 test -z "$ac_c_werror_flag" ||
14885 test ! -s conftest.err
14886 } && test -s conftest.$ac_objext; then
14887 ac_cv_member_krb5_ticket_enc_part2=yes
14888 else
14889 echo "$as_me: failed program was:" >&5
14890 sed 's/^/| /' conftest.$ac_ext >&5
14892 ac_cv_member_krb5_ticket_enc_part2=no
14895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14900 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
14901 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6; }
14902 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
14904 cat >>confdefs.h <<_ACEOF
14905 #define HAVE_KRB5_TICKET_ENC_PART2 1
14906 _ACEOF
14909 else
14910 { echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
14911 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6; }
14912 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
14913 echo $ECHO_N "(cached) $ECHO_C" >&6
14914 else
14915 cat >conftest.$ac_ext <<_ACEOF
14916 /* confdefs.h. */
14917 _ACEOF
14918 cat confdefs.h >>conftest.$ac_ext
14919 cat >>conftest.$ac_ext <<_ACEOF
14920 /* end confdefs.h. */
14921 #include <krb5.h>
14924 main ()
14926 static krb5_ticket ac_aggr;
14927 if (ac_aggr.client)
14928 return 0;
14930 return 0;
14932 _ACEOF
14933 rm -f conftest.$ac_objext
14934 if { (ac_try="$ac_compile"
14935 case "(($ac_try" in
14936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14937 *) ac_try_echo=$ac_try;;
14938 esac
14939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14940 (eval "$ac_compile") 2>conftest.er1
14941 ac_status=$?
14942 grep -v '^ *+' conftest.er1 >conftest.err
14943 rm -f conftest.er1
14944 cat conftest.err >&5
14945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946 (exit $ac_status); } && {
14947 test -z "$ac_c_werror_flag" ||
14948 test ! -s conftest.err
14949 } && test -s conftest.$ac_objext; then
14950 ac_cv_member_krb5_ticket_client=yes
14951 else
14952 echo "$as_me: failed program was:" >&5
14953 sed 's/^/| /' conftest.$ac_ext >&5
14955 cat >conftest.$ac_ext <<_ACEOF
14956 /* confdefs.h. */
14957 _ACEOF
14958 cat confdefs.h >>conftest.$ac_ext
14959 cat >>conftest.$ac_ext <<_ACEOF
14960 /* end confdefs.h. */
14961 #include <krb5.h>
14964 main ()
14966 static krb5_ticket ac_aggr;
14967 if (sizeof ac_aggr.client)
14968 return 0;
14970 return 0;
14972 _ACEOF
14973 rm -f conftest.$ac_objext
14974 if { (ac_try="$ac_compile"
14975 case "(($ac_try" in
14976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14977 *) ac_try_echo=$ac_try;;
14978 esac
14979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14980 (eval "$ac_compile") 2>conftest.er1
14981 ac_status=$?
14982 grep -v '^ *+' conftest.er1 >conftest.err
14983 rm -f conftest.er1
14984 cat conftest.err >&5
14985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986 (exit $ac_status); } && {
14987 test -z "$ac_c_werror_flag" ||
14988 test ! -s conftest.err
14989 } && test -s conftest.$ac_objext; then
14990 ac_cv_member_krb5_ticket_client=yes
14991 else
14992 echo "$as_me: failed program was:" >&5
14993 sed 's/^/| /' conftest.$ac_ext >&5
14995 ac_cv_member_krb5_ticket_client=no
14998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15003 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
15004 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6; }
15005 if test $ac_cv_member_krb5_ticket_client = yes; then
15007 cat >>confdefs.h <<_ACEOF
15008 #define HAVE_KRB5_TICKET_CLIENT 1
15009 _ACEOF
15012 else
15013 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
15014 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
15015 { (exit 1); exit 1; }; }
15020 { echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
15021 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6; }
15022 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
15023 echo $ECHO_N "(cached) $ECHO_C" >&6
15024 else
15025 cat >conftest.$ac_ext <<_ACEOF
15026 /* confdefs.h. */
15027 _ACEOF
15028 cat confdefs.h >>conftest.$ac_ext
15029 cat >>conftest.$ac_ext <<_ACEOF
15030 /* end confdefs.h. */
15031 #include <krb5.h>
15034 main ()
15036 static krb5_error ac_aggr;
15037 if (ac_aggr.text.data)
15038 return 0;
15040 return 0;
15042 _ACEOF
15043 rm -f conftest.$ac_objext
15044 if { (ac_try="$ac_compile"
15045 case "(($ac_try" in
15046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15047 *) ac_try_echo=$ac_try;;
15048 esac
15049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15050 (eval "$ac_compile") 2>conftest.er1
15051 ac_status=$?
15052 grep -v '^ *+' conftest.er1 >conftest.err
15053 rm -f conftest.er1
15054 cat conftest.err >&5
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); } && {
15057 test -z "$ac_c_werror_flag" ||
15058 test ! -s conftest.err
15059 } && test -s conftest.$ac_objext; then
15060 ac_cv_member_krb5_error_text_data=yes
15061 else
15062 echo "$as_me: failed program was:" >&5
15063 sed 's/^/| /' conftest.$ac_ext >&5
15065 cat >conftest.$ac_ext <<_ACEOF
15066 /* confdefs.h. */
15067 _ACEOF
15068 cat confdefs.h >>conftest.$ac_ext
15069 cat >>conftest.$ac_ext <<_ACEOF
15070 /* end confdefs.h. */
15071 #include <krb5.h>
15074 main ()
15076 static krb5_error ac_aggr;
15077 if (sizeof ac_aggr.text.data)
15078 return 0;
15080 return 0;
15082 _ACEOF
15083 rm -f conftest.$ac_objext
15084 if { (ac_try="$ac_compile"
15085 case "(($ac_try" in
15086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15087 *) ac_try_echo=$ac_try;;
15088 esac
15089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15090 (eval "$ac_compile") 2>conftest.er1
15091 ac_status=$?
15092 grep -v '^ *+' conftest.er1 >conftest.err
15093 rm -f conftest.er1
15094 cat conftest.err >&5
15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 (exit $ac_status); } && {
15097 test -z "$ac_c_werror_flag" ||
15098 test ! -s conftest.err
15099 } && test -s conftest.$ac_objext; then
15100 ac_cv_member_krb5_error_text_data=yes
15101 else
15102 echo "$as_me: failed program was:" >&5
15103 sed 's/^/| /' conftest.$ac_ext >&5
15105 ac_cv_member_krb5_error_text_data=no
15108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15113 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
15114 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6; }
15115 if test $ac_cv_member_krb5_error_text_data = yes; then
15117 cat >>confdefs.h <<_ACEOF
15118 #define HAVE_KRB5_ERROR_TEXT_DATA 1
15119 _ACEOF
15122 else
15123 { echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
15124 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6; }
15125 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
15126 echo $ECHO_N "(cached) $ECHO_C" >&6
15127 else
15128 cat >conftest.$ac_ext <<_ACEOF
15129 /* confdefs.h. */
15130 _ACEOF
15131 cat confdefs.h >>conftest.$ac_ext
15132 cat >>conftest.$ac_ext <<_ACEOF
15133 /* end confdefs.h. */
15134 #include <krb5.h>
15137 main ()
15139 static krb5_error ac_aggr;
15140 if (ac_aggr.e_data)
15141 return 0;
15143 return 0;
15145 _ACEOF
15146 rm -f conftest.$ac_objext
15147 if { (ac_try="$ac_compile"
15148 case "(($ac_try" in
15149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15150 *) ac_try_echo=$ac_try;;
15151 esac
15152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15153 (eval "$ac_compile") 2>conftest.er1
15154 ac_status=$?
15155 grep -v '^ *+' conftest.er1 >conftest.err
15156 rm -f conftest.er1
15157 cat conftest.err >&5
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); } && {
15160 test -z "$ac_c_werror_flag" ||
15161 test ! -s conftest.err
15162 } && test -s conftest.$ac_objext; then
15163 ac_cv_member_krb5_error_e_data=yes
15164 else
15165 echo "$as_me: failed program was:" >&5
15166 sed 's/^/| /' conftest.$ac_ext >&5
15168 cat >conftest.$ac_ext <<_ACEOF
15169 /* confdefs.h. */
15170 _ACEOF
15171 cat confdefs.h >>conftest.$ac_ext
15172 cat >>conftest.$ac_ext <<_ACEOF
15173 /* end confdefs.h. */
15174 #include <krb5.h>
15177 main ()
15179 static krb5_error ac_aggr;
15180 if (sizeof ac_aggr.e_data)
15181 return 0;
15183 return 0;
15185 _ACEOF
15186 rm -f conftest.$ac_objext
15187 if { (ac_try="$ac_compile"
15188 case "(($ac_try" in
15189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15190 *) ac_try_echo=$ac_try;;
15191 esac
15192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15193 (eval "$ac_compile") 2>conftest.er1
15194 ac_status=$?
15195 grep -v '^ *+' conftest.er1 >conftest.err
15196 rm -f conftest.er1
15197 cat conftest.err >&5
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 (exit $ac_status); } && {
15200 test -z "$ac_c_werror_flag" ||
15201 test ! -s conftest.err
15202 } && test -s conftest.$ac_objext; then
15203 ac_cv_member_krb5_error_e_data=yes
15204 else
15205 echo "$as_me: failed program was:" >&5
15206 sed 's/^/| /' conftest.$ac_ext >&5
15208 ac_cv_member_krb5_error_e_data=no
15211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15216 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
15217 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6; }
15218 if test $ac_cv_member_krb5_error_e_data = yes; then
15220 cat >>confdefs.h <<_ACEOF
15221 #define HAVE_KRB5_ERROR_E_DATA 1
15222 _ACEOF
15225 else
15226 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
15227 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
15228 { (exit 1); exit 1; }; }
15234 # Win32 requires headers to be loaded for __stdcall, so can't use
15235 # AC_CHECK_FUNCS here.
15236 { echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
15237 echo $ECHO_N "checking for krb5_free_unparsed_name... $ECHO_C" >&6; }
15238 cat >conftest.$ac_ext <<_ACEOF
15239 /* confdefs.h. */
15240 _ACEOF
15241 cat confdefs.h >>conftest.$ac_ext
15242 cat >>conftest.$ac_ext <<_ACEOF
15243 /* end confdefs.h. */
15244 #include <krb5.h>
15246 main ()
15248 krb5_free_unparsed_name(NULL,NULL);
15250 return 0;
15252 _ACEOF
15253 rm -f conftest.$ac_objext conftest$ac_exeext
15254 if { (ac_try="$ac_link"
15255 case "(($ac_try" in
15256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15257 *) ac_try_echo=$ac_try;;
15258 esac
15259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15260 (eval "$ac_link") 2>conftest.er1
15261 ac_status=$?
15262 grep -v '^ *+' conftest.er1 >conftest.err
15263 rm -f conftest.er1
15264 cat conftest.err >&5
15265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 (exit $ac_status); } && {
15267 test -z "$ac_c_werror_flag" ||
15268 test ! -s conftest.err
15269 } && test -s conftest$ac_exeext &&
15270 $as_test_x conftest$ac_exeext; then
15272 cat >>confdefs.h <<\_ACEOF
15273 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
15274 _ACEOF
15276 { echo "$as_me:$LINENO: result: yes" >&5
15277 echo "${ECHO_T}yes" >&6; }
15278 else
15279 echo "$as_me: failed program was:" >&5
15280 sed 's/^/| /' conftest.$ac_ext >&5
15282 { echo "$as_me:$LINENO: result: no" >&5
15283 echo "${ECHO_T}no" >&6; }
15286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15287 conftest$ac_exeext conftest.$ac_ext
15292 ## Functions, global variables
15295 { echo "$as_me:$LINENO: checking for int timezone" >&5
15296 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6; }
15297 if test "${pgac_cv_var_int_timezone+set}" = set; then
15298 echo $ECHO_N "(cached) $ECHO_C" >&6
15299 else
15300 cat >conftest.$ac_ext <<_ACEOF
15301 /* confdefs.h. */
15302 _ACEOF
15303 cat confdefs.h >>conftest.$ac_ext
15304 cat >>conftest.$ac_ext <<_ACEOF
15305 /* end confdefs.h. */
15306 #include <time.h>
15307 int res;
15309 main ()
15311 #ifndef __CYGWIN__
15312 res = timezone / 60;
15313 #else
15314 res = _timezone / 60;
15315 #endif
15317 return 0;
15319 _ACEOF
15320 rm -f conftest.$ac_objext conftest$ac_exeext
15321 if { (ac_try="$ac_link"
15322 case "(($ac_try" in
15323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15324 *) ac_try_echo=$ac_try;;
15325 esac
15326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15327 (eval "$ac_link") 2>conftest.er1
15328 ac_status=$?
15329 grep -v '^ *+' conftest.er1 >conftest.err
15330 rm -f conftest.er1
15331 cat conftest.err >&5
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); } && {
15334 test -z "$ac_c_werror_flag" ||
15335 test ! -s conftest.err
15336 } && test -s conftest$ac_exeext &&
15337 $as_test_x conftest$ac_exeext; then
15338 pgac_cv_var_int_timezone=yes
15339 else
15340 echo "$as_me: failed program was:" >&5
15341 sed 's/^/| /' conftest.$ac_ext >&5
15343 pgac_cv_var_int_timezone=no
15346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15347 conftest$ac_exeext conftest.$ac_ext
15349 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
15350 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6; }
15351 if test x"$pgac_cv_var_int_timezone" = xyes ; then
15353 cat >>confdefs.h <<\_ACEOF
15354 #define HAVE_INT_TIMEZONE
15355 _ACEOF
15358 { echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
15359 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6; }
15360 if test "${ac_cv_func_accept_return+set}" = set; then
15361 echo $ECHO_N "(cached) $ECHO_C" >&6
15362 else
15363 if test "${ac_cv_func_accept_arg1+set}" = set; then
15364 echo $ECHO_N "(cached) $ECHO_C" >&6
15365 else
15366 if test "${ac_cv_func_accept_arg2+set}" = set; then
15367 echo $ECHO_N "(cached) $ECHO_C" >&6
15368 else
15369 if test "${ac_cv_func_accept_arg3+set}" = set; then
15370 echo $ECHO_N "(cached) $ECHO_C" >&6
15371 else
15372 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
15373 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
15374 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
15375 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
15376 cat >conftest.$ac_ext <<_ACEOF
15377 /* confdefs.h. */
15378 _ACEOF
15379 cat confdefs.h >>conftest.$ac_ext
15380 cat >>conftest.$ac_ext <<_ACEOF
15381 /* end confdefs.h. */
15382 #ifdef HAVE_SYS_TYPES_H
15383 #include <sys/types.h>
15384 #endif
15385 #ifdef HAVE_SYS_SOCKET_H
15386 #include <sys/socket.h>
15387 #endif
15388 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
15390 main ()
15394 return 0;
15396 _ACEOF
15397 rm -f conftest.$ac_objext
15398 if { (ac_try="$ac_compile"
15399 case "(($ac_try" in
15400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15401 *) ac_try_echo=$ac_try;;
15402 esac
15403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15404 (eval "$ac_compile") 2>conftest.er1
15405 ac_status=$?
15406 grep -v '^ *+' conftest.er1 >conftest.err
15407 rm -f conftest.er1
15408 cat conftest.err >&5
15409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15410 (exit $ac_status); } && {
15411 test -z "$ac_c_werror_flag" ||
15412 test ! -s conftest.err
15413 } && test -s conftest.$ac_objext; then
15414 ac_not_found=no; break 4
15415 else
15416 echo "$as_me: failed program was:" >&5
15417 sed 's/^/| /' conftest.$ac_ext >&5
15419 ac_not_found=yes
15422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15423 done
15424 done
15425 done
15426 done
15427 if test "$ac_not_found" = yes; then
15428 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
15429 echo "$as_me: error: could not determine argument types" >&2;}
15430 { (exit 1); exit 1; }; }
15432 if test "$ac_cv_func_accept_arg3" = "void"; then
15433 ac_cv_func_accept_arg3=int
15443 { 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
15444 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
15446 cat >>confdefs.h <<_ACEOF
15447 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
15448 _ACEOF
15451 cat >>confdefs.h <<_ACEOF
15452 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
15453 _ACEOF
15456 cat >>confdefs.h <<_ACEOF
15457 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
15458 _ACEOF
15461 cat >>confdefs.h <<_ACEOF
15462 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
15463 _ACEOF
15466 { echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
15467 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6; }
15468 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
15469 echo $ECHO_N "(cached) $ECHO_C" >&6
15470 else
15471 cat >conftest.$ac_ext <<_ACEOF
15472 /* confdefs.h. */
15473 _ACEOF
15474 cat confdefs.h >>conftest.$ac_ext
15475 cat >>conftest.$ac_ext <<_ACEOF
15476 /* end confdefs.h. */
15477 #include <sys/time.h>
15479 main ()
15481 struct timeval *tp;
15482 struct timezone *tzp;
15483 gettimeofday(tp,tzp);
15485 return 0;
15487 _ACEOF
15488 rm -f conftest.$ac_objext
15489 if { (ac_try="$ac_compile"
15490 case "(($ac_try" in
15491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15492 *) ac_try_echo=$ac_try;;
15493 esac
15494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15495 (eval "$ac_compile") 2>conftest.er1
15496 ac_status=$?
15497 grep -v '^ *+' conftest.er1 >conftest.err
15498 rm -f conftest.er1
15499 cat conftest.err >&5
15500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501 (exit $ac_status); } && {
15502 test -z "$ac_c_werror_flag" ||
15503 test ! -s conftest.err
15504 } && test -s conftest.$ac_objext; then
15505 pgac_cv_func_gettimeofday_1arg=no
15506 else
15507 echo "$as_me: failed program was:" >&5
15508 sed 's/^/| /' conftest.$ac_ext >&5
15510 pgac_cv_func_gettimeofday_1arg=yes
15513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15515 { echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
15516 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6; }
15517 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
15519 cat >>confdefs.h <<\_ACEOF
15520 #define GETTIMEOFDAY_1ARG
15521 _ACEOF
15547 for ac_func in cbrt dlopen fcvt fdatasync getpeereid getrlimit memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
15549 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15550 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15551 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15552 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15553 echo $ECHO_N "(cached) $ECHO_C" >&6
15554 else
15555 cat >conftest.$ac_ext <<_ACEOF
15556 /* confdefs.h. */
15557 _ACEOF
15558 cat confdefs.h >>conftest.$ac_ext
15559 cat >>conftest.$ac_ext <<_ACEOF
15560 /* end confdefs.h. */
15561 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15563 #define $ac_func innocuous_$ac_func
15565 /* System header to define __stub macros and hopefully few prototypes,
15566 which can conflict with char $ac_func (); below.
15567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15568 <limits.h> exists even on freestanding compilers. */
15570 #ifdef __STDC__
15571 # include <limits.h>
15572 #else
15573 # include <assert.h>
15574 #endif
15576 #undef $ac_func
15578 /* Override any GCC internal prototype to avoid an error.
15579 Use char because int might match the return type of a GCC
15580 builtin and then its argument prototype would still apply. */
15581 #ifdef __cplusplus
15582 extern "C"
15583 #endif
15584 char $ac_func ();
15585 /* The GNU C library defines this for functions which it implements
15586 to always fail with ENOSYS. Some functions are actually named
15587 something starting with __ and the normal name is an alias. */
15588 #if defined __stub_$ac_func || defined __stub___$ac_func
15589 choke me
15590 #endif
15593 main ()
15595 return $ac_func ();
15597 return 0;
15599 _ACEOF
15600 rm -f conftest.$ac_objext conftest$ac_exeext
15601 if { (ac_try="$ac_link"
15602 case "(($ac_try" in
15603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15604 *) ac_try_echo=$ac_try;;
15605 esac
15606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15607 (eval "$ac_link") 2>conftest.er1
15608 ac_status=$?
15609 grep -v '^ *+' conftest.er1 >conftest.err
15610 rm -f conftest.er1
15611 cat conftest.err >&5
15612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613 (exit $ac_status); } && {
15614 test -z "$ac_c_werror_flag" ||
15615 test ! -s conftest.err
15616 } && test -s conftest$ac_exeext &&
15617 $as_test_x conftest$ac_exeext; then
15618 eval "$as_ac_var=yes"
15619 else
15620 echo "$as_me: failed program was:" >&5
15621 sed 's/^/| /' conftest.$ac_ext >&5
15623 eval "$as_ac_var=no"
15626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15627 conftest$ac_exeext conftest.$ac_ext
15629 ac_res=`eval echo '${'$as_ac_var'}'`
15630 { echo "$as_me:$LINENO: result: $ac_res" >&5
15631 echo "${ECHO_T}$ac_res" >&6; }
15632 if test `eval echo '${'$as_ac_var'}'` = yes; then
15633 cat >>confdefs.h <<_ACEOF
15634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15635 _ACEOF
15638 done
15641 { echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
15642 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6; }
15643 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
15644 echo $ECHO_N "(cached) $ECHO_C" >&6
15645 else
15646 cat >conftest.$ac_ext <<_ACEOF
15647 /* confdefs.h. */
15648 _ACEOF
15649 cat confdefs.h >>conftest.$ac_ext
15650 cat >>conftest.$ac_ext <<_ACEOF
15651 /* end confdefs.h. */
15652 #include <unistd.h>
15655 main ()
15657 #ifndef fdatasync
15658 (void) fdatasync;
15659 #endif
15662 return 0;
15664 _ACEOF
15665 rm -f conftest.$ac_objext
15666 if { (ac_try="$ac_compile"
15667 case "(($ac_try" in
15668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15669 *) ac_try_echo=$ac_try;;
15670 esac
15671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15672 (eval "$ac_compile") 2>conftest.er1
15673 ac_status=$?
15674 grep -v '^ *+' conftest.er1 >conftest.err
15675 rm -f conftest.er1
15676 cat conftest.err >&5
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); } && {
15679 test -z "$ac_c_werror_flag" ||
15680 test ! -s conftest.err
15681 } && test -s conftest.$ac_objext; then
15682 ac_cv_have_decl_fdatasync=yes
15683 else
15684 echo "$as_me: failed program was:" >&5
15685 sed 's/^/| /' conftest.$ac_ext >&5
15687 ac_cv_have_decl_fdatasync=no
15690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15692 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
15693 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6; }
15694 if test $ac_cv_have_decl_fdatasync = yes; then
15696 cat >>confdefs.h <<_ACEOF
15697 #define HAVE_DECL_FDATASYNC 1
15698 _ACEOF
15701 else
15702 cat >>confdefs.h <<_ACEOF
15703 #define HAVE_DECL_FDATASYNC 0
15704 _ACEOF
15710 { echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
15711 echo $ECHO_N "checking whether posix_fadvise is declared... $ECHO_C" >&6; }
15712 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
15713 echo $ECHO_N "(cached) $ECHO_C" >&6
15714 else
15715 cat >conftest.$ac_ext <<_ACEOF
15716 /* confdefs.h. */
15717 _ACEOF
15718 cat confdefs.h >>conftest.$ac_ext
15719 cat >>conftest.$ac_ext <<_ACEOF
15720 /* end confdefs.h. */
15721 #include <fcntl.h>
15724 main ()
15726 #ifndef posix_fadvise
15727 (void) posix_fadvise;
15728 #endif
15731 return 0;
15733 _ACEOF
15734 rm -f conftest.$ac_objext
15735 if { (ac_try="$ac_compile"
15736 case "(($ac_try" in
15737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15738 *) ac_try_echo=$ac_try;;
15739 esac
15740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15741 (eval "$ac_compile") 2>conftest.er1
15742 ac_status=$?
15743 grep -v '^ *+' conftest.er1 >conftest.err
15744 rm -f conftest.er1
15745 cat conftest.err >&5
15746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747 (exit $ac_status); } && {
15748 test -z "$ac_c_werror_flag" ||
15749 test ! -s conftest.err
15750 } && test -s conftest.$ac_objext; then
15751 ac_cv_have_decl_posix_fadvise=yes
15752 else
15753 echo "$as_me: failed program was:" >&5
15754 sed 's/^/| /' conftest.$ac_ext >&5
15756 ac_cv_have_decl_posix_fadvise=no
15759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15761 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
15762 echo "${ECHO_T}$ac_cv_have_decl_posix_fadvise" >&6; }
15763 if test $ac_cv_have_decl_posix_fadvise = yes; then
15765 cat >>confdefs.h <<_ACEOF
15766 #define HAVE_DECL_POSIX_FADVISE 1
15767 _ACEOF
15770 else
15771 cat >>confdefs.h <<_ACEOF
15772 #define HAVE_DECL_POSIX_FADVISE 0
15773 _ACEOF
15779 { echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
15780 echo $ECHO_N "checking whether strlcat is declared... $ECHO_C" >&6; }
15781 if test "${ac_cv_have_decl_strlcat+set}" = set; then
15782 echo $ECHO_N "(cached) $ECHO_C" >&6
15783 else
15784 cat >conftest.$ac_ext <<_ACEOF
15785 /* confdefs.h. */
15786 _ACEOF
15787 cat confdefs.h >>conftest.$ac_ext
15788 cat >>conftest.$ac_ext <<_ACEOF
15789 /* end confdefs.h. */
15790 $ac_includes_default
15792 main ()
15794 #ifndef strlcat
15795 (void) strlcat;
15796 #endif
15799 return 0;
15801 _ACEOF
15802 rm -f conftest.$ac_objext
15803 if { (ac_try="$ac_compile"
15804 case "(($ac_try" in
15805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15806 *) ac_try_echo=$ac_try;;
15807 esac
15808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15809 (eval "$ac_compile") 2>conftest.er1
15810 ac_status=$?
15811 grep -v '^ *+' conftest.er1 >conftest.err
15812 rm -f conftest.er1
15813 cat conftest.err >&5
15814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815 (exit $ac_status); } && {
15816 test -z "$ac_c_werror_flag" ||
15817 test ! -s conftest.err
15818 } && test -s conftest.$ac_objext; then
15819 ac_cv_have_decl_strlcat=yes
15820 else
15821 echo "$as_me: failed program was:" >&5
15822 sed 's/^/| /' conftest.$ac_ext >&5
15824 ac_cv_have_decl_strlcat=no
15827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15829 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
15830 echo "${ECHO_T}$ac_cv_have_decl_strlcat" >&6; }
15831 if test $ac_cv_have_decl_strlcat = yes; then
15833 cat >>confdefs.h <<_ACEOF
15834 #define HAVE_DECL_STRLCAT 1
15835 _ACEOF
15838 else
15839 cat >>confdefs.h <<_ACEOF
15840 #define HAVE_DECL_STRLCAT 0
15841 _ACEOF
15845 { echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
15846 echo $ECHO_N "checking whether strlcpy is declared... $ECHO_C" >&6; }
15847 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
15848 echo $ECHO_N "(cached) $ECHO_C" >&6
15849 else
15850 cat >conftest.$ac_ext <<_ACEOF
15851 /* confdefs.h. */
15852 _ACEOF
15853 cat confdefs.h >>conftest.$ac_ext
15854 cat >>conftest.$ac_ext <<_ACEOF
15855 /* end confdefs.h. */
15856 $ac_includes_default
15858 main ()
15860 #ifndef strlcpy
15861 (void) strlcpy;
15862 #endif
15865 return 0;
15867 _ACEOF
15868 rm -f conftest.$ac_objext
15869 if { (ac_try="$ac_compile"
15870 case "(($ac_try" in
15871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15872 *) ac_try_echo=$ac_try;;
15873 esac
15874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15875 (eval "$ac_compile") 2>conftest.er1
15876 ac_status=$?
15877 grep -v '^ *+' conftest.er1 >conftest.err
15878 rm -f conftest.er1
15879 cat conftest.err >&5
15880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881 (exit $ac_status); } && {
15882 test -z "$ac_c_werror_flag" ||
15883 test ! -s conftest.err
15884 } && test -s conftest.$ac_objext; then
15885 ac_cv_have_decl_strlcpy=yes
15886 else
15887 echo "$as_me: failed program was:" >&5
15888 sed 's/^/| /' conftest.$ac_ext >&5
15890 ac_cv_have_decl_strlcpy=no
15893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15895 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
15896 echo "${ECHO_T}$ac_cv_have_decl_strlcpy" >&6; }
15897 if test $ac_cv_have_decl_strlcpy = yes; then
15899 cat >>confdefs.h <<_ACEOF
15900 #define HAVE_DECL_STRLCPY 1
15901 _ACEOF
15904 else
15905 cat >>confdefs.h <<_ACEOF
15906 #define HAVE_DECL_STRLCPY 0
15907 _ACEOF
15913 # This is probably only present on Darwin, but may as well check always
15914 { echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
15915 echo $ECHO_N "checking whether F_FULLFSYNC is declared... $ECHO_C" >&6; }
15916 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
15917 echo $ECHO_N "(cached) $ECHO_C" >&6
15918 else
15919 cat >conftest.$ac_ext <<_ACEOF
15920 /* confdefs.h. */
15921 _ACEOF
15922 cat confdefs.h >>conftest.$ac_ext
15923 cat >>conftest.$ac_ext <<_ACEOF
15924 /* end confdefs.h. */
15925 #include <fcntl.h>
15928 main ()
15930 #ifndef F_FULLFSYNC
15931 (void) F_FULLFSYNC;
15932 #endif
15935 return 0;
15937 _ACEOF
15938 rm -f conftest.$ac_objext
15939 if { (ac_try="$ac_compile"
15940 case "(($ac_try" in
15941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15942 *) ac_try_echo=$ac_try;;
15943 esac
15944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15945 (eval "$ac_compile") 2>conftest.er1
15946 ac_status=$?
15947 grep -v '^ *+' conftest.er1 >conftest.err
15948 rm -f conftest.er1
15949 cat conftest.err >&5
15950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951 (exit $ac_status); } && {
15952 test -z "$ac_c_werror_flag" ||
15953 test ! -s conftest.err
15954 } && test -s conftest.$ac_objext; then
15955 ac_cv_have_decl_F_FULLFSYNC=yes
15956 else
15957 echo "$as_me: failed program was:" >&5
15958 sed 's/^/| /' conftest.$ac_ext >&5
15960 ac_cv_have_decl_F_FULLFSYNC=no
15963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15965 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
15966 echo "${ECHO_T}$ac_cv_have_decl_F_FULLFSYNC" >&6; }
15967 if test $ac_cv_have_decl_F_FULLFSYNC = yes; then
15969 cat >>confdefs.h <<_ACEOF
15970 #define HAVE_DECL_F_FULLFSYNC 1
15971 _ACEOF
15974 else
15975 cat >>confdefs.h <<_ACEOF
15976 #define HAVE_DECL_F_FULLFSYNC 0
15977 _ACEOF
15984 HAVE_IPV6=no
15985 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
15986 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
15987 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
15988 echo $ECHO_N "(cached) $ECHO_C" >&6
15989 else
15990 cat >conftest.$ac_ext <<_ACEOF
15991 /* confdefs.h. */
15992 _ACEOF
15993 cat confdefs.h >>conftest.$ac_ext
15994 cat >>conftest.$ac_ext <<_ACEOF
15995 /* end confdefs.h. */
15996 $ac_includes_default
15997 #include <netinet/in.h>
15999 typedef struct sockaddr_in6 ac__type_new_;
16001 main ()
16003 if ((ac__type_new_ *) 0)
16004 return 0;
16005 if (sizeof (ac__type_new_))
16006 return 0;
16008 return 0;
16010 _ACEOF
16011 rm -f conftest.$ac_objext
16012 if { (ac_try="$ac_compile"
16013 case "(($ac_try" in
16014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16015 *) ac_try_echo=$ac_try;;
16016 esac
16017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16018 (eval "$ac_compile") 2>conftest.er1
16019 ac_status=$?
16020 grep -v '^ *+' conftest.er1 >conftest.err
16021 rm -f conftest.er1
16022 cat conftest.err >&5
16023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024 (exit $ac_status); } && {
16025 test -z "$ac_c_werror_flag" ||
16026 test ! -s conftest.err
16027 } && test -s conftest.$ac_objext; then
16028 ac_cv_type_struct_sockaddr_in6=yes
16029 else
16030 echo "$as_me: failed program was:" >&5
16031 sed 's/^/| /' conftest.$ac_ext >&5
16033 ac_cv_type_struct_sockaddr_in6=no
16036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16038 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
16039 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
16040 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
16042 cat >>confdefs.h <<\_ACEOF
16043 #define HAVE_IPV6 1
16044 _ACEOF
16046 HAVE_IPV6=yes
16051 { echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
16052 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6; }
16053 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
16054 echo $ECHO_N "(cached) $ECHO_C" >&6
16055 else
16056 cat >conftest.$ac_ext <<_ACEOF
16057 /* confdefs.h. */
16058 _ACEOF
16059 cat confdefs.h >>conftest.$ac_ext
16060 cat >>conftest.$ac_ext <<_ACEOF
16061 /* end confdefs.h. */
16062 #include <machine/vmparam.h>
16063 #include <sys/exec.h>
16066 main ()
16068 PS_STRINGS->ps_nargvstr = 1;
16069 PS_STRINGS->ps_argvstr = "foo";
16071 return 0;
16073 _ACEOF
16074 rm -f conftest.$ac_objext conftest$ac_exeext
16075 if { (ac_try="$ac_link"
16076 case "(($ac_try" in
16077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16078 *) ac_try_echo=$ac_try;;
16079 esac
16080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16081 (eval "$ac_link") 2>conftest.er1
16082 ac_status=$?
16083 grep -v '^ *+' conftest.er1 >conftest.err
16084 rm -f conftest.er1
16085 cat conftest.err >&5
16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 (exit $ac_status); } && {
16088 test -z "$ac_c_werror_flag" ||
16089 test ! -s conftest.err
16090 } && test -s conftest$ac_exeext &&
16091 $as_test_x conftest$ac_exeext; then
16092 pgac_cv_var_PS_STRINGS=yes
16093 else
16094 echo "$as_me: failed program was:" >&5
16095 sed 's/^/| /' conftest.$ac_ext >&5
16097 pgac_cv_var_PS_STRINGS=no
16100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16101 conftest$ac_exeext conftest.$ac_ext
16103 { echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
16104 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6; }
16105 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
16107 cat >>confdefs.h <<\_ACEOF
16108 #define HAVE_PS_STRINGS
16109 _ACEOF
16114 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
16115 # is missing. Yes, there are machines that have only one. We may
16116 # also decide to use snprintf.c if snprintf() is present but does not
16117 # have all the features we need --- see below.
16119 if test "$PORTNAME" = "win32"; then
16120 # Win32 gets snprintf.c built unconditionally.
16122 # To properly translate all NLS languages strings, we must support the
16123 # *printf() %$ format, which allows *printf() arguments to be selected
16124 # by position in the translated string.
16126 # libintl versions < 0.13 use the native *printf() functions, and Win32
16127 # *printf() doesn't understand %$, so we must use our /port versions,
16128 # which do understand %$. libintl versions >= 0.13 include their own
16129 # *printf versions on Win32. The libintl 0.13 release note text is:
16131 # C format strings with positions, as they arise when a translator
16132 # needs to reorder a sentence, are now supported on all platforms.
16133 # On those few platforms (NetBSD and Woe32) for which the native
16134 # printf()/fprintf()/... functions don't support such format
16135 # strings, replacements are provided through <libintl.h>.
16137 # We could use libintl >= 0.13's *printf() if we were sure that we had
16138 # a litint >= 0.13 at runtime, but seeing that there is no clean way
16139 # to guarantee that, it is best to just use our own, so we are sure to
16140 # get %$ support. In include/port.h we disable the *printf() macros
16141 # that might have been defined by libintl.
16143 # We do this unconditionally whether NLS is used or not so we are sure
16144 # that all Win32 libraries and binaries behave the same.
16145 pgac_need_repl_snprintf=yes
16146 else
16147 pgac_need_repl_snprintf=no
16149 for ac_func in snprintf
16151 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16152 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16153 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16154 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16155 echo $ECHO_N "(cached) $ECHO_C" >&6
16156 else
16157 cat >conftest.$ac_ext <<_ACEOF
16158 /* confdefs.h. */
16159 _ACEOF
16160 cat confdefs.h >>conftest.$ac_ext
16161 cat >>conftest.$ac_ext <<_ACEOF
16162 /* end confdefs.h. */
16163 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16164 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16165 #define $ac_func innocuous_$ac_func
16167 /* System header to define __stub macros and hopefully few prototypes,
16168 which can conflict with char $ac_func (); below.
16169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16170 <limits.h> exists even on freestanding compilers. */
16172 #ifdef __STDC__
16173 # include <limits.h>
16174 #else
16175 # include <assert.h>
16176 #endif
16178 #undef $ac_func
16180 /* Override any GCC internal prototype to avoid an error.
16181 Use char because int might match the return type of a GCC
16182 builtin and then its argument prototype would still apply. */
16183 #ifdef __cplusplus
16184 extern "C"
16185 #endif
16186 char $ac_func ();
16187 /* The GNU C library defines this for functions which it implements
16188 to always fail with ENOSYS. Some functions are actually named
16189 something starting with __ and the normal name is an alias. */
16190 #if defined __stub_$ac_func || defined __stub___$ac_func
16191 choke me
16192 #endif
16195 main ()
16197 return $ac_func ();
16199 return 0;
16201 _ACEOF
16202 rm -f conftest.$ac_objext conftest$ac_exeext
16203 if { (ac_try="$ac_link"
16204 case "(($ac_try" in
16205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16206 *) ac_try_echo=$ac_try;;
16207 esac
16208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16209 (eval "$ac_link") 2>conftest.er1
16210 ac_status=$?
16211 grep -v '^ *+' conftest.er1 >conftest.err
16212 rm -f conftest.er1
16213 cat conftest.err >&5
16214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215 (exit $ac_status); } && {
16216 test -z "$ac_c_werror_flag" ||
16217 test ! -s conftest.err
16218 } && test -s conftest$ac_exeext &&
16219 $as_test_x conftest$ac_exeext; then
16220 eval "$as_ac_var=yes"
16221 else
16222 echo "$as_me: failed program was:" >&5
16223 sed 's/^/| /' conftest.$ac_ext >&5
16225 eval "$as_ac_var=no"
16228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16229 conftest$ac_exeext conftest.$ac_ext
16231 ac_res=`eval echo '${'$as_ac_var'}'`
16232 { echo "$as_me:$LINENO: result: $ac_res" >&5
16233 echo "${ECHO_T}$ac_res" >&6; }
16234 if test `eval echo '${'$as_ac_var'}'` = yes; then
16235 cat >>confdefs.h <<_ACEOF
16236 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16237 _ACEOF
16239 else
16240 pgac_need_repl_snprintf=yes
16242 done
16245 for ac_func in vsnprintf
16247 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16248 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16250 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16251 echo $ECHO_N "(cached) $ECHO_C" >&6
16252 else
16253 cat >conftest.$ac_ext <<_ACEOF
16254 /* confdefs.h. */
16255 _ACEOF
16256 cat confdefs.h >>conftest.$ac_ext
16257 cat >>conftest.$ac_ext <<_ACEOF
16258 /* end confdefs.h. */
16259 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16261 #define $ac_func innocuous_$ac_func
16263 /* System header to define __stub macros and hopefully few prototypes,
16264 which can conflict with char $ac_func (); below.
16265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16266 <limits.h> exists even on freestanding compilers. */
16268 #ifdef __STDC__
16269 # include <limits.h>
16270 #else
16271 # include <assert.h>
16272 #endif
16274 #undef $ac_func
16276 /* Override any GCC internal prototype to avoid an error.
16277 Use char because int might match the return type of a GCC
16278 builtin and then its argument prototype would still apply. */
16279 #ifdef __cplusplus
16280 extern "C"
16281 #endif
16282 char $ac_func ();
16283 /* The GNU C library defines this for functions which it implements
16284 to always fail with ENOSYS. Some functions are actually named
16285 something starting with __ and the normal name is an alias. */
16286 #if defined __stub_$ac_func || defined __stub___$ac_func
16287 choke me
16288 #endif
16291 main ()
16293 return $ac_func ();
16295 return 0;
16297 _ACEOF
16298 rm -f conftest.$ac_objext conftest$ac_exeext
16299 if { (ac_try="$ac_link"
16300 case "(($ac_try" in
16301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16302 *) ac_try_echo=$ac_try;;
16303 esac
16304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16305 (eval "$ac_link") 2>conftest.er1
16306 ac_status=$?
16307 grep -v '^ *+' conftest.er1 >conftest.err
16308 rm -f conftest.er1
16309 cat conftest.err >&5
16310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311 (exit $ac_status); } && {
16312 test -z "$ac_c_werror_flag" ||
16313 test ! -s conftest.err
16314 } && test -s conftest$ac_exeext &&
16315 $as_test_x conftest$ac_exeext; then
16316 eval "$as_ac_var=yes"
16317 else
16318 echo "$as_me: failed program was:" >&5
16319 sed 's/^/| /' conftest.$ac_ext >&5
16321 eval "$as_ac_var=no"
16324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16325 conftest$ac_exeext conftest.$ac_ext
16327 ac_res=`eval echo '${'$as_ac_var'}'`
16328 { echo "$as_me:$LINENO: result: $ac_res" >&5
16329 echo "${ECHO_T}$ac_res" >&6; }
16330 if test `eval echo '${'$as_ac_var'}'` = yes; then
16331 cat >>confdefs.h <<_ACEOF
16332 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16333 _ACEOF
16335 else
16336 pgac_need_repl_snprintf=yes
16338 done
16343 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
16344 # include/c.h will provide declarations. Note this is a separate test
16345 # from whether the functions exist in the C library --- there are
16346 # systems that have the functions but don't bother to declare them :-(
16348 { echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
16349 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
16350 if test "${ac_cv_have_decl_snprintf+set}" = set; then
16351 echo $ECHO_N "(cached) $ECHO_C" >&6
16352 else
16353 cat >conftest.$ac_ext <<_ACEOF
16354 /* confdefs.h. */
16355 _ACEOF
16356 cat confdefs.h >>conftest.$ac_ext
16357 cat >>conftest.$ac_ext <<_ACEOF
16358 /* end confdefs.h. */
16359 $ac_includes_default
16361 main ()
16363 #ifndef snprintf
16364 (void) snprintf;
16365 #endif
16368 return 0;
16370 _ACEOF
16371 rm -f conftest.$ac_objext
16372 if { (ac_try="$ac_compile"
16373 case "(($ac_try" in
16374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16375 *) ac_try_echo=$ac_try;;
16376 esac
16377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16378 (eval "$ac_compile") 2>conftest.er1
16379 ac_status=$?
16380 grep -v '^ *+' conftest.er1 >conftest.err
16381 rm -f conftest.er1
16382 cat conftest.err >&5
16383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384 (exit $ac_status); } && {
16385 test -z "$ac_c_werror_flag" ||
16386 test ! -s conftest.err
16387 } && test -s conftest.$ac_objext; then
16388 ac_cv_have_decl_snprintf=yes
16389 else
16390 echo "$as_me: failed program was:" >&5
16391 sed 's/^/| /' conftest.$ac_ext >&5
16393 ac_cv_have_decl_snprintf=no
16396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16398 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
16399 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
16400 if test $ac_cv_have_decl_snprintf = yes; then
16402 cat >>confdefs.h <<_ACEOF
16403 #define HAVE_DECL_SNPRINTF 1
16404 _ACEOF
16407 else
16408 cat >>confdefs.h <<_ACEOF
16409 #define HAVE_DECL_SNPRINTF 0
16410 _ACEOF
16414 { echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
16415 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
16416 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
16417 echo $ECHO_N "(cached) $ECHO_C" >&6
16418 else
16419 cat >conftest.$ac_ext <<_ACEOF
16420 /* confdefs.h. */
16421 _ACEOF
16422 cat confdefs.h >>conftest.$ac_ext
16423 cat >>conftest.$ac_ext <<_ACEOF
16424 /* end confdefs.h. */
16425 $ac_includes_default
16427 main ()
16429 #ifndef vsnprintf
16430 (void) vsnprintf;
16431 #endif
16434 return 0;
16436 _ACEOF
16437 rm -f conftest.$ac_objext
16438 if { (ac_try="$ac_compile"
16439 case "(($ac_try" in
16440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16441 *) ac_try_echo=$ac_try;;
16442 esac
16443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16444 (eval "$ac_compile") 2>conftest.er1
16445 ac_status=$?
16446 grep -v '^ *+' conftest.er1 >conftest.err
16447 rm -f conftest.er1
16448 cat conftest.err >&5
16449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16450 (exit $ac_status); } && {
16451 test -z "$ac_c_werror_flag" ||
16452 test ! -s conftest.err
16453 } && test -s conftest.$ac_objext; then
16454 ac_cv_have_decl_vsnprintf=yes
16455 else
16456 echo "$as_me: failed program was:" >&5
16457 sed 's/^/| /' conftest.$ac_ext >&5
16459 ac_cv_have_decl_vsnprintf=no
16462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16464 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
16465 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
16466 if test $ac_cv_have_decl_vsnprintf = yes; then
16468 cat >>confdefs.h <<_ACEOF
16469 #define HAVE_DECL_VSNPRINTF 1
16470 _ACEOF
16473 else
16474 cat >>confdefs.h <<_ACEOF
16475 #define HAVE_DECL_VSNPRINTF 0
16476 _ACEOF
16484 { echo "$as_me:$LINENO: checking for isinf" >&5
16485 echo $ECHO_N "checking for isinf... $ECHO_C" >&6; }
16486 if test "${ac_cv_func_isinf+set}" = set; then
16487 echo $ECHO_N "(cached) $ECHO_C" >&6
16488 else
16489 cat >conftest.$ac_ext <<_ACEOF
16490 /* confdefs.h. */
16491 _ACEOF
16492 cat confdefs.h >>conftest.$ac_ext
16493 cat >>conftest.$ac_ext <<_ACEOF
16494 /* end confdefs.h. */
16496 #include <math.h>
16497 double glob_double;
16500 main ()
16502 return isinf(glob_double) ? 0 : 1;
16504 return 0;
16506 _ACEOF
16507 rm -f conftest.$ac_objext conftest$ac_exeext
16508 if { (ac_try="$ac_link"
16509 case "(($ac_try" in
16510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16511 *) ac_try_echo=$ac_try;;
16512 esac
16513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16514 (eval "$ac_link") 2>conftest.er1
16515 ac_status=$?
16516 grep -v '^ *+' conftest.er1 >conftest.err
16517 rm -f conftest.er1
16518 cat conftest.err >&5
16519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520 (exit $ac_status); } && {
16521 test -z "$ac_c_werror_flag" ||
16522 test ! -s conftest.err
16523 } && test -s conftest$ac_exeext &&
16524 $as_test_x conftest$ac_exeext; then
16525 ac_cv_func_isinf=yes
16526 else
16527 echo "$as_me: failed program was:" >&5
16528 sed 's/^/| /' conftest.$ac_ext >&5
16530 ac_cv_func_isinf=no
16533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16534 conftest$ac_exeext conftest.$ac_ext
16536 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
16537 echo "${ECHO_T}$ac_cv_func_isinf" >&6; }
16539 if test $ac_cv_func_isinf = yes ; then
16541 cat >>confdefs.h <<\_ACEOF
16542 #define HAVE_ISINF 1
16543 _ACEOF
16545 else
16546 case " $LIBOBJS " in
16547 *" isinf.$ac_objext "* ) ;;
16548 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
16550 esac
16552 # Look for a way to implement a substitute for isinf()
16557 for ac_func in fpclass fp_class fp_class_d class
16559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16560 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16562 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16563 echo $ECHO_N "(cached) $ECHO_C" >&6
16564 else
16565 cat >conftest.$ac_ext <<_ACEOF
16566 /* confdefs.h. */
16567 _ACEOF
16568 cat confdefs.h >>conftest.$ac_ext
16569 cat >>conftest.$ac_ext <<_ACEOF
16570 /* end confdefs.h. */
16571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16573 #define $ac_func innocuous_$ac_func
16575 /* System header to define __stub macros and hopefully few prototypes,
16576 which can conflict with char $ac_func (); below.
16577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16578 <limits.h> exists even on freestanding compilers. */
16580 #ifdef __STDC__
16581 # include <limits.h>
16582 #else
16583 # include <assert.h>
16584 #endif
16586 #undef $ac_func
16588 /* Override any GCC internal prototype to avoid an error.
16589 Use char because int might match the return type of a GCC
16590 builtin and then its argument prototype would still apply. */
16591 #ifdef __cplusplus
16592 extern "C"
16593 #endif
16594 char $ac_func ();
16595 /* The GNU C library defines this for functions which it implements
16596 to always fail with ENOSYS. Some functions are actually named
16597 something starting with __ and the normal name is an alias. */
16598 #if defined __stub_$ac_func || defined __stub___$ac_func
16599 choke me
16600 #endif
16603 main ()
16605 return $ac_func ();
16607 return 0;
16609 _ACEOF
16610 rm -f conftest.$ac_objext conftest$ac_exeext
16611 if { (ac_try="$ac_link"
16612 case "(($ac_try" in
16613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16614 *) ac_try_echo=$ac_try;;
16615 esac
16616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16617 (eval "$ac_link") 2>conftest.er1
16618 ac_status=$?
16619 grep -v '^ *+' conftest.er1 >conftest.err
16620 rm -f conftest.er1
16621 cat conftest.err >&5
16622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623 (exit $ac_status); } && {
16624 test -z "$ac_c_werror_flag" ||
16625 test ! -s conftest.err
16626 } && test -s conftest$ac_exeext &&
16627 $as_test_x conftest$ac_exeext; then
16628 eval "$as_ac_var=yes"
16629 else
16630 echo "$as_me: failed program was:" >&5
16631 sed 's/^/| /' conftest.$ac_ext >&5
16633 eval "$as_ac_var=no"
16636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16637 conftest$ac_exeext conftest.$ac_ext
16639 ac_res=`eval echo '${'$as_ac_var'}'`
16640 { echo "$as_me:$LINENO: result: $ac_res" >&5
16641 echo "${ECHO_T}$ac_res" >&6; }
16642 if test `eval echo '${'$as_ac_var'}'` = yes; then
16643 cat >>confdefs.h <<_ACEOF
16644 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16645 _ACEOF
16646 break
16648 done
16652 # Some versions of libedit contain strlcpy(); so disregard that library while
16653 # checking for these standard libc functions.
16654 pgac_save_LIBS="$LIBS"
16655 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
16671 for ac_func in crypt getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul unsetenv
16673 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16674 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16676 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16677 echo $ECHO_N "(cached) $ECHO_C" >&6
16678 else
16679 cat >conftest.$ac_ext <<_ACEOF
16680 /* confdefs.h. */
16681 _ACEOF
16682 cat confdefs.h >>conftest.$ac_ext
16683 cat >>conftest.$ac_ext <<_ACEOF
16684 /* end confdefs.h. */
16685 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16687 #define $ac_func innocuous_$ac_func
16689 /* System header to define __stub macros and hopefully few prototypes,
16690 which can conflict with char $ac_func (); below.
16691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16692 <limits.h> exists even on freestanding compilers. */
16694 #ifdef __STDC__
16695 # include <limits.h>
16696 #else
16697 # include <assert.h>
16698 #endif
16700 #undef $ac_func
16702 /* Override any GCC internal prototype to avoid an error.
16703 Use char because int might match the return type of a GCC
16704 builtin and then its argument prototype would still apply. */
16705 #ifdef __cplusplus
16706 extern "C"
16707 #endif
16708 char $ac_func ();
16709 /* The GNU C library defines this for functions which it implements
16710 to always fail with ENOSYS. Some functions are actually named
16711 something starting with __ and the normal name is an alias. */
16712 #if defined __stub_$ac_func || defined __stub___$ac_func
16713 choke me
16714 #endif
16717 main ()
16719 return $ac_func ();
16721 return 0;
16723 _ACEOF
16724 rm -f conftest.$ac_objext conftest$ac_exeext
16725 if { (ac_try="$ac_link"
16726 case "(($ac_try" in
16727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16728 *) ac_try_echo=$ac_try;;
16729 esac
16730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16731 (eval "$ac_link") 2>conftest.er1
16732 ac_status=$?
16733 grep -v '^ *+' conftest.er1 >conftest.err
16734 rm -f conftest.er1
16735 cat conftest.err >&5
16736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737 (exit $ac_status); } && {
16738 test -z "$ac_c_werror_flag" ||
16739 test ! -s conftest.err
16740 } && test -s conftest$ac_exeext &&
16741 $as_test_x conftest$ac_exeext; then
16742 eval "$as_ac_var=yes"
16743 else
16744 echo "$as_me: failed program was:" >&5
16745 sed 's/^/| /' conftest.$ac_ext >&5
16747 eval "$as_ac_var=no"
16750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16751 conftest$ac_exeext conftest.$ac_ext
16753 ac_res=`eval echo '${'$as_ac_var'}'`
16754 { echo "$as_me:$LINENO: result: $ac_res" >&5
16755 echo "${ECHO_T}$ac_res" >&6; }
16756 if test `eval echo '${'$as_ac_var'}'` = yes; then
16757 cat >>confdefs.h <<_ACEOF
16758 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16759 _ACEOF
16761 else
16762 case " $LIBOBJS " in
16763 *" $ac_func.$ac_objext "* ) ;;
16764 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16766 esac
16769 done
16773 LIBS="$pgac_save_LIBS"
16775 # System's version of getaddrinfo(), if any, may be used only if we found
16776 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
16777 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
16778 # versions of getaddrinfo don't follow normal C call protocol. This is OK
16779 # because we want to use our own getaddrinfo.c on Windows anyway.)
16780 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
16782 for ac_func in getaddrinfo
16784 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16785 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16786 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16787 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16788 echo $ECHO_N "(cached) $ECHO_C" >&6
16789 else
16790 cat >conftest.$ac_ext <<_ACEOF
16791 /* confdefs.h. */
16792 _ACEOF
16793 cat confdefs.h >>conftest.$ac_ext
16794 cat >>conftest.$ac_ext <<_ACEOF
16795 /* end confdefs.h. */
16796 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16798 #define $ac_func innocuous_$ac_func
16800 /* System header to define __stub macros and hopefully few prototypes,
16801 which can conflict with char $ac_func (); below.
16802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16803 <limits.h> exists even on freestanding compilers. */
16805 #ifdef __STDC__
16806 # include <limits.h>
16807 #else
16808 # include <assert.h>
16809 #endif
16811 #undef $ac_func
16813 /* Override any GCC internal prototype to avoid an error.
16814 Use char because int might match the return type of a GCC
16815 builtin and then its argument prototype would still apply. */
16816 #ifdef __cplusplus
16817 extern "C"
16818 #endif
16819 char $ac_func ();
16820 /* The GNU C library defines this for functions which it implements
16821 to always fail with ENOSYS. Some functions are actually named
16822 something starting with __ and the normal name is an alias. */
16823 #if defined __stub_$ac_func || defined __stub___$ac_func
16824 choke me
16825 #endif
16828 main ()
16830 return $ac_func ();
16832 return 0;
16834 _ACEOF
16835 rm -f conftest.$ac_objext conftest$ac_exeext
16836 if { (ac_try="$ac_link"
16837 case "(($ac_try" in
16838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16839 *) ac_try_echo=$ac_try;;
16840 esac
16841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16842 (eval "$ac_link") 2>conftest.er1
16843 ac_status=$?
16844 grep -v '^ *+' conftest.er1 >conftest.err
16845 rm -f conftest.er1
16846 cat conftest.err >&5
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); } && {
16849 test -z "$ac_c_werror_flag" ||
16850 test ! -s conftest.err
16851 } && test -s conftest$ac_exeext &&
16852 $as_test_x conftest$ac_exeext; then
16853 eval "$as_ac_var=yes"
16854 else
16855 echo "$as_me: failed program was:" >&5
16856 sed 's/^/| /' conftest.$ac_ext >&5
16858 eval "$as_ac_var=no"
16861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16862 conftest$ac_exeext conftest.$ac_ext
16864 ac_res=`eval echo '${'$as_ac_var'}'`
16865 { echo "$as_me:$LINENO: result: $ac_res" >&5
16866 echo "${ECHO_T}$ac_res" >&6; }
16867 if test `eval echo '${'$as_ac_var'}'` = yes; then
16868 cat >>confdefs.h <<_ACEOF
16869 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16870 _ACEOF
16872 else
16873 case " $LIBOBJS " in
16874 *" $ac_func.$ac_objext "* ) ;;
16875 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16877 esac
16880 done
16883 else
16884 case " $LIBOBJS " in
16885 *" getaddrinfo.$ac_objext "* ) ;;
16886 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
16888 esac
16892 # Similarly, use system's getopt_long() only if system provides struct option.
16893 # Solaris' getopt() doesn't do what we want for long options, so always use
16894 # our versions on that platform.
16895 if test "$PORTNAME" = "solaris"; then
16896 case " $LIBOBJS " in
16897 *" getopt.$ac_objext "* ) ;;
16898 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
16900 esac
16902 case " $LIBOBJS " in
16903 *" getopt_long.$ac_objext "* ) ;;
16904 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
16906 esac
16908 elif test x"$ac_cv_type_struct_option" = xyes ; then
16910 for ac_func in getopt_long
16912 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16913 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16914 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16915 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16916 echo $ECHO_N "(cached) $ECHO_C" >&6
16917 else
16918 cat >conftest.$ac_ext <<_ACEOF
16919 /* confdefs.h. */
16920 _ACEOF
16921 cat confdefs.h >>conftest.$ac_ext
16922 cat >>conftest.$ac_ext <<_ACEOF
16923 /* end confdefs.h. */
16924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16926 #define $ac_func innocuous_$ac_func
16928 /* System header to define __stub macros and hopefully few prototypes,
16929 which can conflict with char $ac_func (); below.
16930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16931 <limits.h> exists even on freestanding compilers. */
16933 #ifdef __STDC__
16934 # include <limits.h>
16935 #else
16936 # include <assert.h>
16937 #endif
16939 #undef $ac_func
16941 /* Override any GCC internal prototype to avoid an error.
16942 Use char because int might match the return type of a GCC
16943 builtin and then its argument prototype would still apply. */
16944 #ifdef __cplusplus
16945 extern "C"
16946 #endif
16947 char $ac_func ();
16948 /* The GNU C library defines this for functions which it implements
16949 to always fail with ENOSYS. Some functions are actually named
16950 something starting with __ and the normal name is an alias. */
16951 #if defined __stub_$ac_func || defined __stub___$ac_func
16952 choke me
16953 #endif
16956 main ()
16958 return $ac_func ();
16960 return 0;
16962 _ACEOF
16963 rm -f conftest.$ac_objext conftest$ac_exeext
16964 if { (ac_try="$ac_link"
16965 case "(($ac_try" in
16966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16967 *) ac_try_echo=$ac_try;;
16968 esac
16969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16970 (eval "$ac_link") 2>conftest.er1
16971 ac_status=$?
16972 grep -v '^ *+' conftest.er1 >conftest.err
16973 rm -f conftest.er1
16974 cat conftest.err >&5
16975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976 (exit $ac_status); } && {
16977 test -z "$ac_c_werror_flag" ||
16978 test ! -s conftest.err
16979 } && test -s conftest$ac_exeext &&
16980 $as_test_x conftest$ac_exeext; then
16981 eval "$as_ac_var=yes"
16982 else
16983 echo "$as_me: failed program was:" >&5
16984 sed 's/^/| /' conftest.$ac_ext >&5
16986 eval "$as_ac_var=no"
16989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16990 conftest$ac_exeext conftest.$ac_ext
16992 ac_res=`eval echo '${'$as_ac_var'}'`
16993 { echo "$as_me:$LINENO: result: $ac_res" >&5
16994 echo "${ECHO_T}$ac_res" >&6; }
16995 if test `eval echo '${'$as_ac_var'}'` = yes; then
16996 cat >>confdefs.h <<_ACEOF
16997 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16998 _ACEOF
17000 else
17001 case " $LIBOBJS " in
17002 *" $ac_func.$ac_objext "* ) ;;
17003 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17005 esac
17008 done
17011 else
17012 case " $LIBOBJS " in
17013 *" getopt_long.$ac_objext "* ) ;;
17014 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
17016 esac
17020 # Win32 support
17021 if test "$PORTNAME" = "win32"; then
17023 for ac_func in gettimeofday
17025 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17026 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17027 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17028 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17029 echo $ECHO_N "(cached) $ECHO_C" >&6
17030 else
17031 cat >conftest.$ac_ext <<_ACEOF
17032 /* confdefs.h. */
17033 _ACEOF
17034 cat confdefs.h >>conftest.$ac_ext
17035 cat >>conftest.$ac_ext <<_ACEOF
17036 /* end confdefs.h. */
17037 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17039 #define $ac_func innocuous_$ac_func
17041 /* System header to define __stub macros and hopefully few prototypes,
17042 which can conflict with char $ac_func (); below.
17043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17044 <limits.h> exists even on freestanding compilers. */
17046 #ifdef __STDC__
17047 # include <limits.h>
17048 #else
17049 # include <assert.h>
17050 #endif
17052 #undef $ac_func
17054 /* Override any GCC internal prototype to avoid an error.
17055 Use char because int might match the return type of a GCC
17056 builtin and then its argument prototype would still apply. */
17057 #ifdef __cplusplus
17058 extern "C"
17059 #endif
17060 char $ac_func ();
17061 /* The GNU C library defines this for functions which it implements
17062 to always fail with ENOSYS. Some functions are actually named
17063 something starting with __ and the normal name is an alias. */
17064 #if defined __stub_$ac_func || defined __stub___$ac_func
17065 choke me
17066 #endif
17069 main ()
17071 return $ac_func ();
17073 return 0;
17075 _ACEOF
17076 rm -f conftest.$ac_objext conftest$ac_exeext
17077 if { (ac_try="$ac_link"
17078 case "(($ac_try" in
17079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17080 *) ac_try_echo=$ac_try;;
17081 esac
17082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17083 (eval "$ac_link") 2>conftest.er1
17084 ac_status=$?
17085 grep -v '^ *+' conftest.er1 >conftest.err
17086 rm -f conftest.er1
17087 cat conftest.err >&5
17088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 (exit $ac_status); } && {
17090 test -z "$ac_c_werror_flag" ||
17091 test ! -s conftest.err
17092 } && test -s conftest$ac_exeext &&
17093 $as_test_x conftest$ac_exeext; then
17094 eval "$as_ac_var=yes"
17095 else
17096 echo "$as_me: failed program was:" >&5
17097 sed 's/^/| /' conftest.$ac_ext >&5
17099 eval "$as_ac_var=no"
17102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17103 conftest$ac_exeext conftest.$ac_ext
17105 ac_res=`eval echo '${'$as_ac_var'}'`
17106 { echo "$as_me:$LINENO: result: $ac_res" >&5
17107 echo "${ECHO_T}$ac_res" >&6; }
17108 if test `eval echo '${'$as_ac_var'}'` = yes; then
17109 cat >>confdefs.h <<_ACEOF
17110 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17111 _ACEOF
17113 else
17114 case " $LIBOBJS " in
17115 *" $ac_func.$ac_objext "* ) ;;
17116 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17118 esac
17121 done
17124 case " $LIBOBJS " in
17125 *" kill.$ac_objext "* ) ;;
17126 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
17128 esac
17130 case " $LIBOBJS " in
17131 *" open.$ac_objext "* ) ;;
17132 *) LIBOBJS="$LIBOBJS open.$ac_objext"
17134 esac
17136 case " $LIBOBJS " in
17137 *" rand.$ac_objext "* ) ;;
17138 *) LIBOBJS="$LIBOBJS rand.$ac_objext"
17140 esac
17142 case " $LIBOBJS " in
17143 *" win32error.$ac_objext "* ) ;;
17144 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
17146 esac
17149 cat >>confdefs.h <<\_ACEOF
17150 #define HAVE_SYMLINK 1
17151 _ACEOF
17155 if test "$with_readline" = yes; then
17156 { echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
17157 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6; }
17158 cat >conftest.$ac_ext <<_ACEOF
17159 /* confdefs.h. */
17160 _ACEOF
17161 cat confdefs.h >>conftest.$ac_ext
17162 cat >>conftest.$ac_ext <<_ACEOF
17163 /* end confdefs.h. */
17164 #include <stdio.h>
17165 #ifdef HAVE_READLINE_READLINE_H
17166 # include <readline/readline.h>
17167 #elif defined(HAVE_READLINE_H)
17168 # include <readline.h>
17169 #endif
17172 main ()
17174 rl_completion_append_character = 'x';
17176 return 0;
17178 _ACEOF
17179 rm -f conftest.$ac_objext conftest$ac_exeext
17180 if { (ac_try="$ac_link"
17181 case "(($ac_try" in
17182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17183 *) ac_try_echo=$ac_try;;
17184 esac
17185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17186 (eval "$ac_link") 2>conftest.er1
17187 ac_status=$?
17188 grep -v '^ *+' conftest.er1 >conftest.err
17189 rm -f conftest.er1
17190 cat conftest.err >&5
17191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192 (exit $ac_status); } && {
17193 test -z "$ac_c_werror_flag" ||
17194 test ! -s conftest.err
17195 } && test -s conftest$ac_exeext &&
17196 $as_test_x conftest$ac_exeext; then
17197 { echo "$as_me:$LINENO: result: yes" >&5
17198 echo "${ECHO_T}yes" >&6; }
17200 cat >>confdefs.h <<\_ACEOF
17201 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
17202 _ACEOF
17204 else
17205 echo "$as_me: failed program was:" >&5
17206 sed 's/^/| /' conftest.$ac_ext >&5
17208 { echo "$as_me:$LINENO: result: no" >&5
17209 echo "${ECHO_T}no" >&6; }
17212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17213 conftest$ac_exeext conftest.$ac_ext
17216 for ac_func in rl_completion_matches rl_filename_completion_function
17218 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17219 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17220 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17221 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17222 echo $ECHO_N "(cached) $ECHO_C" >&6
17223 else
17224 cat >conftest.$ac_ext <<_ACEOF
17225 /* confdefs.h. */
17226 _ACEOF
17227 cat confdefs.h >>conftest.$ac_ext
17228 cat >>conftest.$ac_ext <<_ACEOF
17229 /* end confdefs.h. */
17230 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17232 #define $ac_func innocuous_$ac_func
17234 /* System header to define __stub macros and hopefully few prototypes,
17235 which can conflict with char $ac_func (); below.
17236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17237 <limits.h> exists even on freestanding compilers. */
17239 #ifdef __STDC__
17240 # include <limits.h>
17241 #else
17242 # include <assert.h>
17243 #endif
17245 #undef $ac_func
17247 /* Override any GCC internal prototype to avoid an error.
17248 Use char because int might match the return type of a GCC
17249 builtin and then its argument prototype would still apply. */
17250 #ifdef __cplusplus
17251 extern "C"
17252 #endif
17253 char $ac_func ();
17254 /* The GNU C library defines this for functions which it implements
17255 to always fail with ENOSYS. Some functions are actually named
17256 something starting with __ and the normal name is an alias. */
17257 #if defined __stub_$ac_func || defined __stub___$ac_func
17258 choke me
17259 #endif
17262 main ()
17264 return $ac_func ();
17266 return 0;
17268 _ACEOF
17269 rm -f conftest.$ac_objext conftest$ac_exeext
17270 if { (ac_try="$ac_link"
17271 case "(($ac_try" in
17272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17273 *) ac_try_echo=$ac_try;;
17274 esac
17275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17276 (eval "$ac_link") 2>conftest.er1
17277 ac_status=$?
17278 grep -v '^ *+' conftest.er1 >conftest.err
17279 rm -f conftest.er1
17280 cat conftest.err >&5
17281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282 (exit $ac_status); } && {
17283 test -z "$ac_c_werror_flag" ||
17284 test ! -s conftest.err
17285 } && test -s conftest$ac_exeext &&
17286 $as_test_x conftest$ac_exeext; then
17287 eval "$as_ac_var=yes"
17288 else
17289 echo "$as_me: failed program was:" >&5
17290 sed 's/^/| /' conftest.$ac_ext >&5
17292 eval "$as_ac_var=no"
17295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17296 conftest$ac_exeext conftest.$ac_ext
17298 ac_res=`eval echo '${'$as_ac_var'}'`
17299 { echo "$as_me:$LINENO: result: $ac_res" >&5
17300 echo "${ECHO_T}$ac_res" >&6; }
17301 if test `eval echo '${'$as_ac_var'}'` = yes; then
17302 cat >>confdefs.h <<_ACEOF
17303 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17304 _ACEOF
17307 done
17310 for ac_func in replace_history_entry
17312 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17313 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17314 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17315 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17316 echo $ECHO_N "(cached) $ECHO_C" >&6
17317 else
17318 cat >conftest.$ac_ext <<_ACEOF
17319 /* confdefs.h. */
17320 _ACEOF
17321 cat confdefs.h >>conftest.$ac_ext
17322 cat >>conftest.$ac_ext <<_ACEOF
17323 /* end confdefs.h. */
17324 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17326 #define $ac_func innocuous_$ac_func
17328 /* System header to define __stub macros and hopefully few prototypes,
17329 which can conflict with char $ac_func (); below.
17330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17331 <limits.h> exists even on freestanding compilers. */
17333 #ifdef __STDC__
17334 # include <limits.h>
17335 #else
17336 # include <assert.h>
17337 #endif
17339 #undef $ac_func
17341 /* Override any GCC internal prototype to avoid an error.
17342 Use char because int might match the return type of a GCC
17343 builtin and then its argument prototype would still apply. */
17344 #ifdef __cplusplus
17345 extern "C"
17346 #endif
17347 char $ac_func ();
17348 /* The GNU C library defines this for functions which it implements
17349 to always fail with ENOSYS. Some functions are actually named
17350 something starting with __ and the normal name is an alias. */
17351 #if defined __stub_$ac_func || defined __stub___$ac_func
17352 choke me
17353 #endif
17356 main ()
17358 return $ac_func ();
17360 return 0;
17362 _ACEOF
17363 rm -f conftest.$ac_objext conftest$ac_exeext
17364 if { (ac_try="$ac_link"
17365 case "(($ac_try" in
17366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17367 *) ac_try_echo=$ac_try;;
17368 esac
17369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17370 (eval "$ac_link") 2>conftest.er1
17371 ac_status=$?
17372 grep -v '^ *+' conftest.er1 >conftest.err
17373 rm -f conftest.er1
17374 cat conftest.err >&5
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); } && {
17377 test -z "$ac_c_werror_flag" ||
17378 test ! -s conftest.err
17379 } && test -s conftest$ac_exeext &&
17380 $as_test_x conftest$ac_exeext; then
17381 eval "$as_ac_var=yes"
17382 else
17383 echo "$as_me: failed program was:" >&5
17384 sed 's/^/| /' conftest.$ac_ext >&5
17386 eval "$as_ac_var=no"
17389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17390 conftest$ac_exeext conftest.$ac_ext
17392 ac_res=`eval echo '${'$as_ac_var'}'`
17393 { echo "$as_me:$LINENO: result: $ac_res" >&5
17394 echo "${ECHO_T}$ac_res" >&6; }
17395 if test `eval echo '${'$as_ac_var'}'` = yes; then
17396 cat >>confdefs.h <<_ACEOF
17397 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17398 _ACEOF
17401 done
17406 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
17407 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
17408 cat >conftest.$ac_ext <<_ACEOF
17409 /* confdefs.h. */
17410 _ACEOF
17411 cat confdefs.h >>conftest.$ac_ext
17412 cat >>conftest.$ac_ext <<_ACEOF
17413 /* end confdefs.h. */
17414 #include <setjmp.h>
17416 main ()
17418 sigjmp_buf x; sigsetjmp(x, 1);
17420 return 0;
17422 _ACEOF
17423 rm -f conftest.$ac_objext conftest$ac_exeext
17424 if { (ac_try="$ac_link"
17425 case "(($ac_try" in
17426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17427 *) ac_try_echo=$ac_try;;
17428 esac
17429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17430 (eval "$ac_link") 2>conftest.er1
17431 ac_status=$?
17432 grep -v '^ *+' conftest.er1 >conftest.err
17433 rm -f conftest.er1
17434 cat conftest.err >&5
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); } && {
17437 test -z "$ac_c_werror_flag" ||
17438 test ! -s conftest.err
17439 } && test -s conftest$ac_exeext &&
17440 $as_test_x conftest$ac_exeext; then
17442 cat >>confdefs.h <<\_ACEOF
17443 #define HAVE_SIGSETJMP 1
17444 _ACEOF
17446 { echo "$as_me:$LINENO: result: yes" >&5
17447 echo "${ECHO_T}yes" >&6; }
17448 else
17449 echo "$as_me: failed program was:" >&5
17450 sed 's/^/| /' conftest.$ac_ext >&5
17452 { echo "$as_me:$LINENO: result: no" >&5
17453 echo "${ECHO_T}no" >&6; }
17456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17457 conftest$ac_exeext conftest.$ac_ext
17459 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
17460 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
17461 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
17462 echo $ECHO_N "(cached) $ECHO_C" >&6
17463 else
17464 cat >conftest.$ac_ext <<_ACEOF
17465 /* confdefs.h. */
17466 _ACEOF
17467 cat confdefs.h >>conftest.$ac_ext
17468 cat >>conftest.$ac_ext <<_ACEOF
17469 /* end confdefs.h. */
17470 #include <signal.h>
17471 /* NetBSD declares sys_siglist in unistd.h. */
17472 #ifdef HAVE_UNISTD_H
17473 # include <unistd.h>
17474 #endif
17478 main ()
17480 #ifndef sys_siglist
17481 (void) sys_siglist;
17482 #endif
17485 return 0;
17487 _ACEOF
17488 rm -f conftest.$ac_objext
17489 if { (ac_try="$ac_compile"
17490 case "(($ac_try" in
17491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17492 *) ac_try_echo=$ac_try;;
17493 esac
17494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17495 (eval "$ac_compile") 2>conftest.er1
17496 ac_status=$?
17497 grep -v '^ *+' conftest.er1 >conftest.err
17498 rm -f conftest.er1
17499 cat conftest.err >&5
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); } && {
17502 test -z "$ac_c_werror_flag" ||
17503 test ! -s conftest.err
17504 } && test -s conftest.$ac_objext; then
17505 ac_cv_have_decl_sys_siglist=yes
17506 else
17507 echo "$as_me: failed program was:" >&5
17508 sed 's/^/| /' conftest.$ac_ext >&5
17510 ac_cv_have_decl_sys_siglist=no
17513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17515 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
17516 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
17517 if test $ac_cv_have_decl_sys_siglist = yes; then
17519 cat >>confdefs.h <<_ACEOF
17520 #define HAVE_DECL_SYS_SIGLIST 1
17521 _ACEOF
17524 else
17525 cat >>confdefs.h <<_ACEOF
17526 #define HAVE_DECL_SYS_SIGLIST 0
17527 _ACEOF
17535 { echo "$as_me:$LINENO: checking for syslog" >&5
17536 echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
17537 if test "${ac_cv_func_syslog+set}" = set; then
17538 echo $ECHO_N "(cached) $ECHO_C" >&6
17539 else
17540 cat >conftest.$ac_ext <<_ACEOF
17541 /* confdefs.h. */
17542 _ACEOF
17543 cat confdefs.h >>conftest.$ac_ext
17544 cat >>conftest.$ac_ext <<_ACEOF
17545 /* end confdefs.h. */
17546 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
17547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17548 #define syslog innocuous_syslog
17550 /* System header to define __stub macros and hopefully few prototypes,
17551 which can conflict with char syslog (); below.
17552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17553 <limits.h> exists even on freestanding compilers. */
17555 #ifdef __STDC__
17556 # include <limits.h>
17557 #else
17558 # include <assert.h>
17559 #endif
17561 #undef syslog
17563 /* Override any GCC internal prototype to avoid an error.
17564 Use char because int might match the return type of a GCC
17565 builtin and then its argument prototype would still apply. */
17566 #ifdef __cplusplus
17567 extern "C"
17568 #endif
17569 char syslog ();
17570 /* The GNU C library defines this for functions which it implements
17571 to always fail with ENOSYS. Some functions are actually named
17572 something starting with __ and the normal name is an alias. */
17573 #if defined __stub_syslog || defined __stub___syslog
17574 choke me
17575 #endif
17578 main ()
17580 return syslog ();
17582 return 0;
17584 _ACEOF
17585 rm -f conftest.$ac_objext conftest$ac_exeext
17586 if { (ac_try="$ac_link"
17587 case "(($ac_try" in
17588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17589 *) ac_try_echo=$ac_try;;
17590 esac
17591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17592 (eval "$ac_link") 2>conftest.er1
17593 ac_status=$?
17594 grep -v '^ *+' conftest.er1 >conftest.err
17595 rm -f conftest.er1
17596 cat conftest.err >&5
17597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598 (exit $ac_status); } && {
17599 test -z "$ac_c_werror_flag" ||
17600 test ! -s conftest.err
17601 } && test -s conftest$ac_exeext &&
17602 $as_test_x conftest$ac_exeext; then
17603 ac_cv_func_syslog=yes
17604 else
17605 echo "$as_me: failed program was:" >&5
17606 sed 's/^/| /' conftest.$ac_ext >&5
17608 ac_cv_func_syslog=no
17611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17612 conftest$ac_exeext conftest.$ac_ext
17614 { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
17615 echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
17616 if test $ac_cv_func_syslog = yes; then
17617 if test "${ac_cv_header_syslog_h+set}" = set; then
17618 { echo "$as_me:$LINENO: checking for syslog.h" >&5
17619 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
17620 if test "${ac_cv_header_syslog_h+set}" = set; then
17621 echo $ECHO_N "(cached) $ECHO_C" >&6
17623 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
17624 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
17625 else
17626 # Is the header compilable?
17627 { echo "$as_me:$LINENO: checking syslog.h usability" >&5
17628 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6; }
17629 cat >conftest.$ac_ext <<_ACEOF
17630 /* confdefs.h. */
17631 _ACEOF
17632 cat confdefs.h >>conftest.$ac_ext
17633 cat >>conftest.$ac_ext <<_ACEOF
17634 /* end confdefs.h. */
17635 $ac_includes_default
17636 #include <syslog.h>
17637 _ACEOF
17638 rm -f conftest.$ac_objext
17639 if { (ac_try="$ac_compile"
17640 case "(($ac_try" in
17641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17642 *) ac_try_echo=$ac_try;;
17643 esac
17644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17645 (eval "$ac_compile") 2>conftest.er1
17646 ac_status=$?
17647 grep -v '^ *+' conftest.er1 >conftest.err
17648 rm -f conftest.er1
17649 cat conftest.err >&5
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); } && {
17652 test -z "$ac_c_werror_flag" ||
17653 test ! -s conftest.err
17654 } && test -s conftest.$ac_objext; then
17655 ac_header_compiler=yes
17656 else
17657 echo "$as_me: failed program was:" >&5
17658 sed 's/^/| /' conftest.$ac_ext >&5
17660 ac_header_compiler=no
17663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17664 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17665 echo "${ECHO_T}$ac_header_compiler" >&6; }
17667 # Is the header present?
17668 { echo "$as_me:$LINENO: checking syslog.h presence" >&5
17669 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6; }
17670 cat >conftest.$ac_ext <<_ACEOF
17671 /* confdefs.h. */
17672 _ACEOF
17673 cat confdefs.h >>conftest.$ac_ext
17674 cat >>conftest.$ac_ext <<_ACEOF
17675 /* end confdefs.h. */
17676 #include <syslog.h>
17677 _ACEOF
17678 if { (ac_try="$ac_cpp conftest.$ac_ext"
17679 case "(($ac_try" in
17680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17681 *) ac_try_echo=$ac_try;;
17682 esac
17683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17684 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17685 ac_status=$?
17686 grep -v '^ *+' conftest.er1 >conftest.err
17687 rm -f conftest.er1
17688 cat conftest.err >&5
17689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690 (exit $ac_status); } >/dev/null && {
17691 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17692 test ! -s conftest.err
17693 }; then
17694 ac_header_preproc=yes
17695 else
17696 echo "$as_me: failed program was:" >&5
17697 sed 's/^/| /' conftest.$ac_ext >&5
17699 ac_header_preproc=no
17702 rm -f conftest.err conftest.$ac_ext
17703 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17704 echo "${ECHO_T}$ac_header_preproc" >&6; }
17706 # So? What about this header?
17707 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17708 yes:no: )
17709 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
17710 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17711 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
17712 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
17713 ac_header_preproc=yes
17715 no:yes:* )
17716 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
17717 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
17718 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
17719 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
17720 { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
17721 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
17722 { echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
17723 echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
17724 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
17725 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
17726 { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
17727 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
17728 ( cat <<\_ASBOX
17729 ## ---------------------------------------- ##
17730 ## Report this to pgsql-bugs@postgresql.org ##
17731 ## ---------------------------------------- ##
17732 _ASBOX
17733 ) | sed "s/^/$as_me: WARNING: /" >&2
17735 esac
17736 { echo "$as_me:$LINENO: checking for syslog.h" >&5
17737 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
17738 if test "${ac_cv_header_syslog_h+set}" = set; then
17739 echo $ECHO_N "(cached) $ECHO_C" >&6
17740 else
17741 ac_cv_header_syslog_h=$ac_header_preproc
17743 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
17744 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
17747 if test $ac_cv_header_syslog_h = yes; then
17749 cat >>confdefs.h <<\_ACEOF
17750 #define HAVE_SYSLOG 1
17751 _ACEOF
17759 { echo "$as_me:$LINENO: checking for optreset" >&5
17760 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
17761 if test "${pgac_cv_var_int_optreset+set}" = set; then
17762 echo $ECHO_N "(cached) $ECHO_C" >&6
17763 else
17764 cat >conftest.$ac_ext <<_ACEOF
17765 /* confdefs.h. */
17766 _ACEOF
17767 cat confdefs.h >>conftest.$ac_ext
17768 cat >>conftest.$ac_ext <<_ACEOF
17769 /* end confdefs.h. */
17770 #include <unistd.h>
17772 main ()
17774 extern int optreset; optreset = 1;
17776 return 0;
17778 _ACEOF
17779 rm -f conftest.$ac_objext conftest$ac_exeext
17780 if { (ac_try="$ac_link"
17781 case "(($ac_try" in
17782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17783 *) ac_try_echo=$ac_try;;
17784 esac
17785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17786 (eval "$ac_link") 2>conftest.er1
17787 ac_status=$?
17788 grep -v '^ *+' conftest.er1 >conftest.err
17789 rm -f conftest.er1
17790 cat conftest.err >&5
17791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); } && {
17793 test -z "$ac_c_werror_flag" ||
17794 test ! -s conftest.err
17795 } && test -s conftest$ac_exeext &&
17796 $as_test_x conftest$ac_exeext; then
17797 pgac_cv_var_int_optreset=yes
17798 else
17799 echo "$as_me: failed program was:" >&5
17800 sed 's/^/| /' conftest.$ac_ext >&5
17802 pgac_cv_var_int_optreset=no
17805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17806 conftest$ac_exeext conftest.$ac_ext
17808 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
17809 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6; }
17810 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
17812 cat >>confdefs.h <<\_ACEOF
17813 #define HAVE_INT_OPTRESET 1
17814 _ACEOF
17820 for ac_func in strtoll strtoq
17822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17823 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17825 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17826 echo $ECHO_N "(cached) $ECHO_C" >&6
17827 else
17828 cat >conftest.$ac_ext <<_ACEOF
17829 /* confdefs.h. */
17830 _ACEOF
17831 cat confdefs.h >>conftest.$ac_ext
17832 cat >>conftest.$ac_ext <<_ACEOF
17833 /* end confdefs.h. */
17834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17836 #define $ac_func innocuous_$ac_func
17838 /* System header to define __stub macros and hopefully few prototypes,
17839 which can conflict with char $ac_func (); below.
17840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17841 <limits.h> exists even on freestanding compilers. */
17843 #ifdef __STDC__
17844 # include <limits.h>
17845 #else
17846 # include <assert.h>
17847 #endif
17849 #undef $ac_func
17851 /* Override any GCC internal prototype to avoid an error.
17852 Use char because int might match the return type of a GCC
17853 builtin and then its argument prototype would still apply. */
17854 #ifdef __cplusplus
17855 extern "C"
17856 #endif
17857 char $ac_func ();
17858 /* The GNU C library defines this for functions which it implements
17859 to always fail with ENOSYS. Some functions are actually named
17860 something starting with __ and the normal name is an alias. */
17861 #if defined __stub_$ac_func || defined __stub___$ac_func
17862 choke me
17863 #endif
17866 main ()
17868 return $ac_func ();
17870 return 0;
17872 _ACEOF
17873 rm -f conftest.$ac_objext conftest$ac_exeext
17874 if { (ac_try="$ac_link"
17875 case "(($ac_try" in
17876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17877 *) ac_try_echo=$ac_try;;
17878 esac
17879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17880 (eval "$ac_link") 2>conftest.er1
17881 ac_status=$?
17882 grep -v '^ *+' conftest.er1 >conftest.err
17883 rm -f conftest.er1
17884 cat conftest.err >&5
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); } && {
17887 test -z "$ac_c_werror_flag" ||
17888 test ! -s conftest.err
17889 } && test -s conftest$ac_exeext &&
17890 $as_test_x conftest$ac_exeext; then
17891 eval "$as_ac_var=yes"
17892 else
17893 echo "$as_me: failed program was:" >&5
17894 sed 's/^/| /' conftest.$ac_ext >&5
17896 eval "$as_ac_var=no"
17899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17900 conftest$ac_exeext conftest.$ac_ext
17902 ac_res=`eval echo '${'$as_ac_var'}'`
17903 { echo "$as_me:$LINENO: result: $ac_res" >&5
17904 echo "${ECHO_T}$ac_res" >&6; }
17905 if test `eval echo '${'$as_ac_var'}'` = yes; then
17906 cat >>confdefs.h <<_ACEOF
17907 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17908 _ACEOF
17909 break
17911 done
17915 for ac_func in strtoull strtouq
17917 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17918 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17920 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17921 echo $ECHO_N "(cached) $ECHO_C" >&6
17922 else
17923 cat >conftest.$ac_ext <<_ACEOF
17924 /* confdefs.h. */
17925 _ACEOF
17926 cat confdefs.h >>conftest.$ac_ext
17927 cat >>conftest.$ac_ext <<_ACEOF
17928 /* end confdefs.h. */
17929 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17931 #define $ac_func innocuous_$ac_func
17933 /* System header to define __stub macros and hopefully few prototypes,
17934 which can conflict with char $ac_func (); below.
17935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17936 <limits.h> exists even on freestanding compilers. */
17938 #ifdef __STDC__
17939 # include <limits.h>
17940 #else
17941 # include <assert.h>
17942 #endif
17944 #undef $ac_func
17946 /* Override any GCC internal prototype to avoid an error.
17947 Use char because int might match the return type of a GCC
17948 builtin and then its argument prototype would still apply. */
17949 #ifdef __cplusplus
17950 extern "C"
17951 #endif
17952 char $ac_func ();
17953 /* The GNU C library defines this for functions which it implements
17954 to always fail with ENOSYS. Some functions are actually named
17955 something starting with __ and the normal name is an alias. */
17956 #if defined __stub_$ac_func || defined __stub___$ac_func
17957 choke me
17958 #endif
17961 main ()
17963 return $ac_func ();
17965 return 0;
17967 _ACEOF
17968 rm -f conftest.$ac_objext conftest$ac_exeext
17969 if { (ac_try="$ac_link"
17970 case "(($ac_try" in
17971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17972 *) ac_try_echo=$ac_try;;
17973 esac
17974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17975 (eval "$ac_link") 2>conftest.er1
17976 ac_status=$?
17977 grep -v '^ *+' conftest.er1 >conftest.err
17978 rm -f conftest.er1
17979 cat conftest.err >&5
17980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17981 (exit $ac_status); } && {
17982 test -z "$ac_c_werror_flag" ||
17983 test ! -s conftest.err
17984 } && test -s conftest$ac_exeext &&
17985 $as_test_x conftest$ac_exeext; then
17986 eval "$as_ac_var=yes"
17987 else
17988 echo "$as_me: failed program was:" >&5
17989 sed 's/^/| /' conftest.$ac_ext >&5
17991 eval "$as_ac_var=no"
17994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17995 conftest$ac_exeext conftest.$ac_ext
17997 ac_res=`eval echo '${'$as_ac_var'}'`
17998 { echo "$as_me:$LINENO: result: $ac_res" >&5
17999 echo "${ECHO_T}$ac_res" >&6; }
18000 if test `eval echo '${'$as_ac_var'}'` = yes; then
18001 cat >>confdefs.h <<_ACEOF
18002 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18003 _ACEOF
18004 break
18006 done
18009 # Check for one of atexit() or on_exit()
18011 for ac_func in atexit
18013 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18014 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18015 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18016 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18017 echo $ECHO_N "(cached) $ECHO_C" >&6
18018 else
18019 cat >conftest.$ac_ext <<_ACEOF
18020 /* confdefs.h. */
18021 _ACEOF
18022 cat confdefs.h >>conftest.$ac_ext
18023 cat >>conftest.$ac_ext <<_ACEOF
18024 /* end confdefs.h. */
18025 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18026 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18027 #define $ac_func innocuous_$ac_func
18029 /* System header to define __stub macros and hopefully few prototypes,
18030 which can conflict with char $ac_func (); below.
18031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18032 <limits.h> exists even on freestanding compilers. */
18034 #ifdef __STDC__
18035 # include <limits.h>
18036 #else
18037 # include <assert.h>
18038 #endif
18040 #undef $ac_func
18042 /* Override any GCC internal prototype to avoid an error.
18043 Use char because int might match the return type of a GCC
18044 builtin and then its argument prototype would still apply. */
18045 #ifdef __cplusplus
18046 extern "C"
18047 #endif
18048 char $ac_func ();
18049 /* The GNU C library defines this for functions which it implements
18050 to always fail with ENOSYS. Some functions are actually named
18051 something starting with __ and the normal name is an alias. */
18052 #if defined __stub_$ac_func || defined __stub___$ac_func
18053 choke me
18054 #endif
18057 main ()
18059 return $ac_func ();
18061 return 0;
18063 _ACEOF
18064 rm -f conftest.$ac_objext conftest$ac_exeext
18065 if { (ac_try="$ac_link"
18066 case "(($ac_try" in
18067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18068 *) ac_try_echo=$ac_try;;
18069 esac
18070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18071 (eval "$ac_link") 2>conftest.er1
18072 ac_status=$?
18073 grep -v '^ *+' conftest.er1 >conftest.err
18074 rm -f conftest.er1
18075 cat conftest.err >&5
18076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077 (exit $ac_status); } && {
18078 test -z "$ac_c_werror_flag" ||
18079 test ! -s conftest.err
18080 } && test -s conftest$ac_exeext &&
18081 $as_test_x conftest$ac_exeext; then
18082 eval "$as_ac_var=yes"
18083 else
18084 echo "$as_me: failed program was:" >&5
18085 sed 's/^/| /' conftest.$ac_ext >&5
18087 eval "$as_ac_var=no"
18090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18091 conftest$ac_exeext conftest.$ac_ext
18093 ac_res=`eval echo '${'$as_ac_var'}'`
18094 { echo "$as_me:$LINENO: result: $ac_res" >&5
18095 echo "${ECHO_T}$ac_res" >&6; }
18096 if test `eval echo '${'$as_ac_var'}'` = yes; then
18097 cat >>confdefs.h <<_ACEOF
18098 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18099 _ACEOF
18101 else
18103 for ac_func in on_exit
18105 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18106 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18107 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18108 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18109 echo $ECHO_N "(cached) $ECHO_C" >&6
18110 else
18111 cat >conftest.$ac_ext <<_ACEOF
18112 /* confdefs.h. */
18113 _ACEOF
18114 cat confdefs.h >>conftest.$ac_ext
18115 cat >>conftest.$ac_ext <<_ACEOF
18116 /* end confdefs.h. */
18117 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18119 #define $ac_func innocuous_$ac_func
18121 /* System header to define __stub macros and hopefully few prototypes,
18122 which can conflict with char $ac_func (); below.
18123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18124 <limits.h> exists even on freestanding compilers. */
18126 #ifdef __STDC__
18127 # include <limits.h>
18128 #else
18129 # include <assert.h>
18130 #endif
18132 #undef $ac_func
18134 /* Override any GCC internal prototype to avoid an error.
18135 Use char because int might match the return type of a GCC
18136 builtin and then its argument prototype would still apply. */
18137 #ifdef __cplusplus
18138 extern "C"
18139 #endif
18140 char $ac_func ();
18141 /* The GNU C library defines this for functions which it implements
18142 to always fail with ENOSYS. Some functions are actually named
18143 something starting with __ and the normal name is an alias. */
18144 #if defined __stub_$ac_func || defined __stub___$ac_func
18145 choke me
18146 #endif
18149 main ()
18151 return $ac_func ();
18153 return 0;
18155 _ACEOF
18156 rm -f conftest.$ac_objext conftest$ac_exeext
18157 if { (ac_try="$ac_link"
18158 case "(($ac_try" in
18159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18160 *) ac_try_echo=$ac_try;;
18161 esac
18162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18163 (eval "$ac_link") 2>conftest.er1
18164 ac_status=$?
18165 grep -v '^ *+' conftest.er1 >conftest.err
18166 rm -f conftest.er1
18167 cat conftest.err >&5
18168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169 (exit $ac_status); } && {
18170 test -z "$ac_c_werror_flag" ||
18171 test ! -s conftest.err
18172 } && test -s conftest$ac_exeext &&
18173 $as_test_x conftest$ac_exeext; then
18174 eval "$as_ac_var=yes"
18175 else
18176 echo "$as_me: failed program was:" >&5
18177 sed 's/^/| /' conftest.$ac_ext >&5
18179 eval "$as_ac_var=no"
18182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18183 conftest$ac_exeext conftest.$ac_ext
18185 ac_res=`eval echo '${'$as_ac_var'}'`
18186 { echo "$as_me:$LINENO: result: $ac_res" >&5
18187 echo "${ECHO_T}$ac_res" >&6; }
18188 if test `eval echo '${'$as_ac_var'}'` = yes; then
18189 cat >>confdefs.h <<_ACEOF
18190 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18191 _ACEOF
18193 else
18194 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
18195 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
18196 { (exit 1); exit 1; }; }
18198 done
18201 done
18205 for ac_func in fseeko
18207 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18208 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18209 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18210 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18211 echo $ECHO_N "(cached) $ECHO_C" >&6
18212 else
18213 cat >conftest.$ac_ext <<_ACEOF
18214 /* confdefs.h. */
18215 _ACEOF
18216 cat confdefs.h >>conftest.$ac_ext
18217 cat >>conftest.$ac_ext <<_ACEOF
18218 /* end confdefs.h. */
18219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18221 #define $ac_func innocuous_$ac_func
18223 /* System header to define __stub macros and hopefully few prototypes,
18224 which can conflict with char $ac_func (); below.
18225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18226 <limits.h> exists even on freestanding compilers. */
18228 #ifdef __STDC__
18229 # include <limits.h>
18230 #else
18231 # include <assert.h>
18232 #endif
18234 #undef $ac_func
18236 /* Override any GCC internal prototype to avoid an error.
18237 Use char because int might match the return type of a GCC
18238 builtin and then its argument prototype would still apply. */
18239 #ifdef __cplusplus
18240 extern "C"
18241 #endif
18242 char $ac_func ();
18243 /* The GNU C library defines this for functions which it implements
18244 to always fail with ENOSYS. Some functions are actually named
18245 something starting with __ and the normal name is an alias. */
18246 #if defined __stub_$ac_func || defined __stub___$ac_func
18247 choke me
18248 #endif
18251 main ()
18253 return $ac_func ();
18255 return 0;
18257 _ACEOF
18258 rm -f conftest.$ac_objext conftest$ac_exeext
18259 if { (ac_try="$ac_link"
18260 case "(($ac_try" in
18261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18262 *) ac_try_echo=$ac_try;;
18263 esac
18264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18265 (eval "$ac_link") 2>conftest.er1
18266 ac_status=$?
18267 grep -v '^ *+' conftest.er1 >conftest.err
18268 rm -f conftest.er1
18269 cat conftest.err >&5
18270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18271 (exit $ac_status); } && {
18272 test -z "$ac_c_werror_flag" ||
18273 test ! -s conftest.err
18274 } && test -s conftest$ac_exeext &&
18275 $as_test_x conftest$ac_exeext; then
18276 eval "$as_ac_var=yes"
18277 else
18278 echo "$as_me: failed program was:" >&5
18279 sed 's/^/| /' conftest.$ac_ext >&5
18281 eval "$as_ac_var=no"
18284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18285 conftest$ac_exeext conftest.$ac_ext
18287 ac_res=`eval echo '${'$as_ac_var'}'`
18288 { echo "$as_me:$LINENO: result: $ac_res" >&5
18289 echo "${ECHO_T}$ac_res" >&6; }
18290 if test `eval echo '${'$as_ac_var'}'` = yes; then
18291 cat >>confdefs.h <<_ACEOF
18292 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18293 _ACEOF
18295 else
18296 case " $LIBOBJS " in
18297 *" $ac_func.$ac_objext "* ) ;;
18298 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18300 esac
18303 done
18306 case $host_os in
18307 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
18308 bsdi*|netbsd*)
18310 cat >>confdefs.h <<\_ACEOF
18311 #define HAVE_FSEEKO 1
18312 _ACEOF
18314 ac_cv_func_fseeko=yes;;
18316 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18317 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18318 if test "${ac_cv_sys_largefile_source+set}" = set; then
18319 echo $ECHO_N "(cached) $ECHO_C" >&6
18320 else
18321 while :; do
18322 cat >conftest.$ac_ext <<_ACEOF
18323 /* confdefs.h. */
18324 _ACEOF
18325 cat confdefs.h >>conftest.$ac_ext
18326 cat >>conftest.$ac_ext <<_ACEOF
18327 /* end confdefs.h. */
18328 #include <sys/types.h> /* for off_t */
18329 #include <stdio.h>
18331 main ()
18333 int (*fp) (FILE *, off_t, int) = fseeko;
18334 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18336 return 0;
18338 _ACEOF
18339 rm -f conftest.$ac_objext conftest$ac_exeext
18340 if { (ac_try="$ac_link"
18341 case "(($ac_try" in
18342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18343 *) ac_try_echo=$ac_try;;
18344 esac
18345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18346 (eval "$ac_link") 2>conftest.er1
18347 ac_status=$?
18348 grep -v '^ *+' conftest.er1 >conftest.err
18349 rm -f conftest.er1
18350 cat conftest.err >&5
18351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352 (exit $ac_status); } && {
18353 test -z "$ac_c_werror_flag" ||
18354 test ! -s conftest.err
18355 } && test -s conftest$ac_exeext &&
18356 $as_test_x conftest$ac_exeext; then
18357 ac_cv_sys_largefile_source=no; break
18358 else
18359 echo "$as_me: failed program was:" >&5
18360 sed 's/^/| /' conftest.$ac_ext >&5
18365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18366 conftest$ac_exeext conftest.$ac_ext
18367 cat >conftest.$ac_ext <<_ACEOF
18368 /* confdefs.h. */
18369 _ACEOF
18370 cat confdefs.h >>conftest.$ac_ext
18371 cat >>conftest.$ac_ext <<_ACEOF
18372 /* end confdefs.h. */
18373 #define _LARGEFILE_SOURCE 1
18374 #include <sys/types.h> /* for off_t */
18375 #include <stdio.h>
18377 main ()
18379 int (*fp) (FILE *, off_t, int) = fseeko;
18380 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18382 return 0;
18384 _ACEOF
18385 rm -f conftest.$ac_objext conftest$ac_exeext
18386 if { (ac_try="$ac_link"
18387 case "(($ac_try" in
18388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18389 *) ac_try_echo=$ac_try;;
18390 esac
18391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18392 (eval "$ac_link") 2>conftest.er1
18393 ac_status=$?
18394 grep -v '^ *+' conftest.er1 >conftest.err
18395 rm -f conftest.er1
18396 cat conftest.err >&5
18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); } && {
18399 test -z "$ac_c_werror_flag" ||
18400 test ! -s conftest.err
18401 } && test -s conftest$ac_exeext &&
18402 $as_test_x conftest$ac_exeext; then
18403 ac_cv_sys_largefile_source=1; break
18404 else
18405 echo "$as_me: failed program was:" >&5
18406 sed 's/^/| /' conftest.$ac_ext >&5
18411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18412 conftest$ac_exeext conftest.$ac_ext
18413 ac_cv_sys_largefile_source=unknown
18414 break
18415 done
18417 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18418 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18419 case $ac_cv_sys_largefile_source in #(
18420 no | unknown) ;;
18422 cat >>confdefs.h <<_ACEOF
18423 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18424 _ACEOF
18426 esac
18427 rm -f conftest*
18429 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18430 # in glibc 2.1.3, but that breaks too many other things.
18431 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18432 if test $ac_cv_sys_largefile_source != unknown; then
18434 cat >>confdefs.h <<\_ACEOF
18435 #define HAVE_FSEEKO 1
18436 _ACEOF
18440 esac
18444 # Pthreads
18446 # For each platform, we need to know about any special compile and link
18447 # libraries, and whether the normal C function names are thread-safe.
18448 # See the comment at the top of src/port/thread.c for more information.
18449 # WIN32 doesn't need the pthread tests; it always uses threads
18450 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
18454 ac_ext=c
18455 ac_cpp='$CPP $CPPFLAGS'
18456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18460 acx_pthread_ok=no
18462 # We used to check for pthread.h first, but this fails if pthread.h
18463 # requires special compiler flags (e.g. on True64 or Sequent).
18464 # It gets checked for in the link test anyway.
18466 # First of all, check if the user has set any of the PTHREAD_LIBS,
18467 # etcetera environment variables, and if threads linking works using
18468 # them:
18469 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
18470 save_CFLAGS="$CFLAGS"
18471 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18472 save_LIBS="$LIBS"
18473 LIBS="$PTHREAD_LIBS $LIBS"
18474 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
18475 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
18476 cat >conftest.$ac_ext <<_ACEOF
18477 /* confdefs.h. */
18478 _ACEOF
18479 cat confdefs.h >>conftest.$ac_ext
18480 cat >>conftest.$ac_ext <<_ACEOF
18481 /* end confdefs.h. */
18483 /* Override any GCC internal prototype to avoid an error.
18484 Use char because int might match the return type of a GCC
18485 builtin and then its argument prototype would still apply. */
18486 #ifdef __cplusplus
18487 extern "C"
18488 #endif
18489 char pthread_join ();
18491 main ()
18493 return pthread_join ();
18495 return 0;
18497 _ACEOF
18498 rm -f conftest.$ac_objext conftest$ac_exeext
18499 if { (ac_try="$ac_link"
18500 case "(($ac_try" in
18501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18502 *) ac_try_echo=$ac_try;;
18503 esac
18504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18505 (eval "$ac_link") 2>conftest.er1
18506 ac_status=$?
18507 grep -v '^ *+' conftest.er1 >conftest.err
18508 rm -f conftest.er1
18509 cat conftest.err >&5
18510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511 (exit $ac_status); } && {
18512 test -z "$ac_c_werror_flag" ||
18513 test ! -s conftest.err
18514 } && test -s conftest$ac_exeext &&
18515 $as_test_x conftest$ac_exeext; then
18516 acx_pthread_ok=yes
18517 else
18518 echo "$as_me: failed program was:" >&5
18519 sed 's/^/| /' conftest.$ac_ext >&5
18524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18525 conftest$ac_exeext conftest.$ac_ext
18526 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
18527 echo "${ECHO_T}$acx_pthread_ok" >&6; }
18528 if test x"$acx_pthread_ok" = xno; then
18529 PTHREAD_LIBS=""
18530 PTHREAD_CFLAGS=""
18532 LIBS="$save_LIBS"
18533 CFLAGS="$save_CFLAGS"
18536 # We must check for the threads library under a number of different
18537 # names; the ordering is very important because some systems
18538 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
18539 # libraries is broken (non-POSIX).
18541 # Create a list of thread flags to try. Items starting with a "-" are
18542 # C compiler flags, and other items are library names, except for "none"
18543 # which indicates that we try without any flags at all, and "pthread-config"
18544 # which is a program returning the flags for the Pth emulation library.
18546 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
18548 # The ordering *is* (sometimes) important. Some notes on the
18549 # individual items follow:
18551 # pthreads: AIX (must check this before -lpthread)
18552 # none: in case threads are in libc; should be tried before -Kthread and
18553 # other compiler flags to prevent continual compiler warnings
18554 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
18555 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
18556 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
18557 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
18558 # -pthreads: Solaris/gcc
18559 # -mthreads: Mingw32/gcc, Lynx/gcc
18560 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
18561 # doesn't hurt to check since this sometimes defines pthreads too;
18562 # also defines -D_REENTRANT)
18563 # pthread: Linux, etcetera
18564 # --thread-safe: KAI C++
18565 # pthread-config: use pthread-config program (for GNU Pth library)
18567 case "${host_cpu}-${host_os}" in
18568 *solaris*)
18570 # On Solaris (at least, for some versions), libc contains stubbed
18571 # (non-functional) versions of the pthreads routines, so link-based
18572 # tests will erroneously succeed. (We need to link with -pthread or
18573 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
18574 # a function called by this macro, so we could check for that, but
18575 # who knows whether they'll stub that too in a future libc.) So,
18576 # we'll just look for -pthreads and -lpthread first:
18578 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
18580 esac
18582 if test x"$acx_pthread_ok" = xno; then
18583 for flag in $acx_pthread_flags; do
18585 tryPTHREAD_CFLAGS=""
18586 tryPTHREAD_LIBS=""
18587 case $flag in
18588 none)
18589 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
18590 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
18594 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
18595 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
18596 tryPTHREAD_CFLAGS="$flag"
18599 pthread-config)
18600 # skip this if we already have flags defined, for PostgreSQL
18601 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
18602 # Extract the first word of "pthread-config", so it can be a program name with args.
18603 set dummy pthread-config; ac_word=$2
18604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18606 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
18607 echo $ECHO_N "(cached) $ECHO_C" >&6
18608 else
18609 if test -n "$acx_pthread_config"; then
18610 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
18611 else
18612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18613 for as_dir in $PATH
18615 IFS=$as_save_IFS
18616 test -z "$as_dir" && as_dir=.
18617 for ac_exec_ext in '' $ac_executable_extensions; do
18618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18619 ac_cv_prog_acx_pthread_config="yes"
18620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18621 break 2
18623 done
18624 done
18625 IFS=$as_save_IFS
18627 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
18630 acx_pthread_config=$ac_cv_prog_acx_pthread_config
18631 if test -n "$acx_pthread_config"; then
18632 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
18633 echo "${ECHO_T}$acx_pthread_config" >&6; }
18634 else
18635 { echo "$as_me:$LINENO: result: no" >&5
18636 echo "${ECHO_T}no" >&6; }
18640 if test x"$acx_pthread_config" = xno; then continue; fi
18641 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
18642 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
18646 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
18647 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
18648 tryPTHREAD_LIBS="-l$flag"
18650 esac
18652 save_LIBS="$LIBS"
18653 save_CFLAGS="$CFLAGS"
18654 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
18655 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
18657 # Check for various functions. We must include pthread.h,
18658 # since some functions may be macros. (On the Sequent, we
18659 # need a special flag -Kthread to make this header compile.)
18660 # We check for pthread_join because it is in -lpthread on IRIX
18661 # while pthread_create is in libc. We check for pthread_attr_init
18662 # due to DEC craziness with -lpthreads. We check for
18663 # pthread_cleanup_push because it is one of the few pthread
18664 # functions on Solaris that doesn't have a non-functional libc stub.
18665 # We try pthread_create on general principles.
18666 cat >conftest.$ac_ext <<_ACEOF
18667 /* confdefs.h. */
18668 _ACEOF
18669 cat confdefs.h >>conftest.$ac_ext
18670 cat >>conftest.$ac_ext <<_ACEOF
18671 /* end confdefs.h. */
18672 #include <pthread.h>
18674 main ()
18676 pthread_t th; pthread_join(th, 0);
18677 pthread_attr_init(0); pthread_cleanup_push(0, 0);
18678 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
18680 return 0;
18682 _ACEOF
18683 rm -f conftest.$ac_objext conftest$ac_exeext
18684 if { (ac_try="$ac_link"
18685 case "(($ac_try" in
18686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18687 *) ac_try_echo=$ac_try;;
18688 esac
18689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18690 (eval "$ac_link") 2>conftest.er1
18691 ac_status=$?
18692 grep -v '^ *+' conftest.er1 >conftest.err
18693 rm -f conftest.er1
18694 cat conftest.err >&5
18695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696 (exit $ac_status); } && {
18697 test -z "$ac_c_werror_flag" ||
18698 test ! -s conftest.err
18699 } && test -s conftest$ac_exeext &&
18700 $as_test_x conftest$ac_exeext; then
18701 acx_pthread_ok=yes
18702 else
18703 echo "$as_me: failed program was:" >&5
18704 sed 's/^/| /' conftest.$ac_ext >&5
18706 acx_pthread_ok=no
18709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18710 conftest$ac_exeext conftest.$ac_ext
18712 if test "x$acx_pthread_ok" = xyes; then
18713 # Don't use options that are ignored by the compiler.
18714 # We find them by checking stderror.
18715 cat >conftest.$ac_ext <<_ACEOF
18717 main (int argc, char **argv)
18719 (void) argc;
18720 (void) argv;
18721 return 0;
18723 _ACEOF
18724 rm -f conftest.$ac_objext conftest$ac_exeext
18725 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
18726 # we continue with more flags because Linux needs -lpthread
18727 # for libpq builds on PostgreSQL. The test above only
18728 # tests for building binaries, not shared libraries.
18729 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
18730 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
18731 else acx_pthread_ok=no
18735 LIBS="$save_LIBS"
18736 CFLAGS="$save_CFLAGS"
18738 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
18739 echo "${ECHO_T}$acx_pthread_ok" >&6; }
18740 done
18743 # Various other checks:
18744 if test "x$acx_pthread_ok" = xyes; then
18745 save_LIBS="$LIBS"
18746 LIBS="$PTHREAD_LIBS $LIBS"
18747 save_CFLAGS="$CFLAGS"
18748 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18750 # Detect AIX lossage: threads are created detached by default
18751 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
18752 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
18753 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
18754 cat >conftest.$ac_ext <<_ACEOF
18755 /* confdefs.h. */
18756 _ACEOF
18757 cat confdefs.h >>conftest.$ac_ext
18758 cat >>conftest.$ac_ext <<_ACEOF
18759 /* end confdefs.h. */
18760 #include <pthread.h>
18762 main ()
18764 int attr=PTHREAD_CREATE_JOINABLE;
18766 return 0;
18768 _ACEOF
18769 rm -f conftest.$ac_objext conftest$ac_exeext
18770 if { (ac_try="$ac_link"
18771 case "(($ac_try" in
18772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18773 *) ac_try_echo=$ac_try;;
18774 esac
18775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18776 (eval "$ac_link") 2>conftest.er1
18777 ac_status=$?
18778 grep -v '^ *+' conftest.er1 >conftest.err
18779 rm -f conftest.er1
18780 cat conftest.err >&5
18781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782 (exit $ac_status); } && {
18783 test -z "$ac_c_werror_flag" ||
18784 test ! -s conftest.err
18785 } && test -s conftest$ac_exeext &&
18786 $as_test_x conftest$ac_exeext; then
18787 ok=PTHREAD_CREATE_JOINABLE
18788 else
18789 echo "$as_me: failed program was:" >&5
18790 sed 's/^/| /' conftest.$ac_ext >&5
18792 ok=unknown
18795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18796 conftest$ac_exeext conftest.$ac_ext
18797 if test x"$ok" = xunknown; then
18798 cat >conftest.$ac_ext <<_ACEOF
18799 /* confdefs.h. */
18800 _ACEOF
18801 cat confdefs.h >>conftest.$ac_ext
18802 cat >>conftest.$ac_ext <<_ACEOF
18803 /* end confdefs.h. */
18804 #include <pthread.h>
18806 main ()
18808 int attr=PTHREAD_CREATE_UNDETACHED;
18810 return 0;
18812 _ACEOF
18813 rm -f conftest.$ac_objext conftest$ac_exeext
18814 if { (ac_try="$ac_link"
18815 case "(($ac_try" in
18816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18817 *) ac_try_echo=$ac_try;;
18818 esac
18819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18820 (eval "$ac_link") 2>conftest.er1
18821 ac_status=$?
18822 grep -v '^ *+' conftest.er1 >conftest.err
18823 rm -f conftest.er1
18824 cat conftest.err >&5
18825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826 (exit $ac_status); } && {
18827 test -z "$ac_c_werror_flag" ||
18828 test ! -s conftest.err
18829 } && test -s conftest$ac_exeext &&
18830 $as_test_x conftest$ac_exeext; then
18831 ok=PTHREAD_CREATE_UNDETACHED
18832 else
18833 echo "$as_me: failed program was:" >&5
18834 sed 's/^/| /' conftest.$ac_ext >&5
18836 ok=unknown
18839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18840 conftest$ac_exeext conftest.$ac_ext
18842 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
18844 cat >>confdefs.h <<\_ACEOF
18845 #define PTHREAD_CREATE_JOINABLE $ok
18846 _ACEOF
18849 { echo "$as_me:$LINENO: result: ${ok}" >&5
18850 echo "${ECHO_T}${ok}" >&6; }
18851 if test x"$ok" = xunknown; then
18852 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
18853 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
18856 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
18857 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
18858 flag=no
18859 # We always add these in PostgreSQL
18860 # case "${host_cpu}-${host_os}" in
18861 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
18862 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
18863 # esac
18864 { echo "$as_me:$LINENO: result: ${flag}" >&5
18865 echo "${ECHO_T}${flag}" >&6; }
18866 if test "x$flag" != xno; then
18867 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
18870 LIBS="$save_LIBS"
18871 CFLAGS="$save_CFLAGS"
18873 # Supporting cc_r would require a special CC in all places that
18874 # use libpq, and that is ugly, so we don't do it. Users can still
18875 # define their compiler as cc_r to do thread builds of everything.
18876 # More AIX lossage: must compile with cc_r
18877 # Extract the first word of "cc_r", so it can be a program name with args.
18878 set dummy cc_r; ac_word=$2
18879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18881 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
18882 echo $ECHO_N "(cached) $ECHO_C" >&6
18883 else
18884 if test -n "$PTHREAD_CC"; then
18885 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
18886 else
18887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18888 for as_dir in $PATH
18890 IFS=$as_save_IFS
18891 test -z "$as_dir" && as_dir=.
18892 for ac_exec_ext in '' $ac_executable_extensions; do
18893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18894 ac_cv_prog_PTHREAD_CC="cc_r"
18895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18896 break 2
18898 done
18899 done
18900 IFS=$as_save_IFS
18902 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
18905 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
18906 if test -n "$PTHREAD_CC"; then
18907 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
18908 echo "${ECHO_T}$PTHREAD_CC" >&6; }
18909 else
18910 { echo "$as_me:$LINENO: result: no" >&5
18911 echo "${ECHO_T}no" >&6; }
18915 else
18916 PTHREAD_CC="$CC"
18923 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
18924 if test x"$acx_pthread_ok" = xyes; then
18926 cat >>confdefs.h <<\_ACEOF
18927 #define HAVE_PTHREAD 1
18928 _ACEOF
18931 else
18932 acx_pthread_ok=no
18935 ac_ext=c
18936 ac_cpp='$CPP $CPPFLAGS'
18937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18941 # set thread flags
18943 # Some platforms use these, so just defineed them. They can't hurt if they
18944 # are not supported.
18945 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
18948 # At this point, we don't want to muck with the compiler name for threading.
18949 # Let's see who fails, perhaps AIX. 2004-04-23
18950 if test "$PTHREAD_CC" != "$CC"; then
18951 { { echo "$as_me:$LINENO: error:
18952 PostgreSQL does not support platforms that require a special compiler
18953 for thread safety." >&5
18954 echo "$as_me: error:
18955 PostgreSQL does not support platforms that require a special compiler
18956 for thread safety." >&2;}
18957 { (exit 1); exit 1; }; }
18960 if test "$THREAD_SUPPORT" = no; then
18961 { { echo "$as_me:$LINENO: error: cannot enable threads on this platform
18962 This platform is known to not support thread-safe programs. For details,
18963 compile and run src/bin/pg_thread_test." >&5
18964 echo "$as_me: error: cannot enable threads on this platform
18965 This platform is known to not support thread-safe programs. For details,
18966 compile and run src/bin/pg_thread_test." >&2;}
18967 { (exit 1); exit 1; }; }
18970 # Check for *_r functions
18971 _CFLAGS="$CFLAGS"
18972 _LIBS="$LIBS"
18973 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18974 LIBS="$LIBS $PTHREAD_LIBS"
18976 if test "$PORTNAME" != "win32"; then
18977 if test "${ac_cv_header_pthread_h+set}" = set; then
18978 { echo "$as_me:$LINENO: checking for pthread.h" >&5
18979 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
18980 if test "${ac_cv_header_pthread_h+set}" = set; then
18981 echo $ECHO_N "(cached) $ECHO_C" >&6
18983 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
18984 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
18985 else
18986 # Is the header compilable?
18987 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
18988 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
18989 cat >conftest.$ac_ext <<_ACEOF
18990 /* confdefs.h. */
18991 _ACEOF
18992 cat confdefs.h >>conftest.$ac_ext
18993 cat >>conftest.$ac_ext <<_ACEOF
18994 /* end confdefs.h. */
18995 $ac_includes_default
18996 #include <pthread.h>
18997 _ACEOF
18998 rm -f conftest.$ac_objext
18999 if { (ac_try="$ac_compile"
19000 case "(($ac_try" in
19001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19002 *) ac_try_echo=$ac_try;;
19003 esac
19004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19005 (eval "$ac_compile") 2>conftest.er1
19006 ac_status=$?
19007 grep -v '^ *+' conftest.er1 >conftest.err
19008 rm -f conftest.er1
19009 cat conftest.err >&5
19010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011 (exit $ac_status); } && {
19012 test -z "$ac_c_werror_flag" ||
19013 test ! -s conftest.err
19014 } && test -s conftest.$ac_objext; then
19015 ac_header_compiler=yes
19016 else
19017 echo "$as_me: failed program was:" >&5
19018 sed 's/^/| /' conftest.$ac_ext >&5
19020 ac_header_compiler=no
19023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19024 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19025 echo "${ECHO_T}$ac_header_compiler" >&6; }
19027 # Is the header present?
19028 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
19029 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
19030 cat >conftest.$ac_ext <<_ACEOF
19031 /* confdefs.h. */
19032 _ACEOF
19033 cat confdefs.h >>conftest.$ac_ext
19034 cat >>conftest.$ac_ext <<_ACEOF
19035 /* end confdefs.h. */
19036 #include <pthread.h>
19037 _ACEOF
19038 if { (ac_try="$ac_cpp conftest.$ac_ext"
19039 case "(($ac_try" in
19040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19041 *) ac_try_echo=$ac_try;;
19042 esac
19043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19044 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19045 ac_status=$?
19046 grep -v '^ *+' conftest.er1 >conftest.err
19047 rm -f conftest.er1
19048 cat conftest.err >&5
19049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050 (exit $ac_status); } >/dev/null && {
19051 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19052 test ! -s conftest.err
19053 }; then
19054 ac_header_preproc=yes
19055 else
19056 echo "$as_me: failed program was:" >&5
19057 sed 's/^/| /' conftest.$ac_ext >&5
19059 ac_header_preproc=no
19062 rm -f conftest.err conftest.$ac_ext
19063 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19064 echo "${ECHO_T}$ac_header_preproc" >&6; }
19066 # So? What about this header?
19067 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19068 yes:no: )
19069 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
19070 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19071 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
19072 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
19073 ac_header_preproc=yes
19075 no:yes:* )
19076 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
19077 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
19078 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
19079 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
19080 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
19081 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
19082 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
19083 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
19084 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
19085 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
19086 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
19087 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
19088 ( cat <<\_ASBOX
19089 ## ---------------------------------------- ##
19090 ## Report this to pgsql-bugs@postgresql.org ##
19091 ## ---------------------------------------- ##
19092 _ASBOX
19093 ) | sed "s/^/$as_me: WARNING: /" >&2
19095 esac
19096 { echo "$as_me:$LINENO: checking for pthread.h" >&5
19097 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
19098 if test "${ac_cv_header_pthread_h+set}" = set; then
19099 echo $ECHO_N "(cached) $ECHO_C" >&6
19100 else
19101 ac_cv_header_pthread_h=$ac_header_preproc
19103 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
19104 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
19107 if test $ac_cv_header_pthread_h = yes; then
19109 else
19110 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
19111 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
19112 { (exit 1); exit 1; }; }
19121 for ac_func in strerror_r getpwuid_r gethostbyname_r
19123 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19124 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19125 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19126 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19127 echo $ECHO_N "(cached) $ECHO_C" >&6
19128 else
19129 cat >conftest.$ac_ext <<_ACEOF
19130 /* confdefs.h. */
19131 _ACEOF
19132 cat confdefs.h >>conftest.$ac_ext
19133 cat >>conftest.$ac_ext <<_ACEOF
19134 /* end confdefs.h. */
19135 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19137 #define $ac_func innocuous_$ac_func
19139 /* System header to define __stub macros and hopefully few prototypes,
19140 which can conflict with char $ac_func (); below.
19141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19142 <limits.h> exists even on freestanding compilers. */
19144 #ifdef __STDC__
19145 # include <limits.h>
19146 #else
19147 # include <assert.h>
19148 #endif
19150 #undef $ac_func
19152 /* Override any GCC internal prototype to avoid an error.
19153 Use char because int might match the return type of a GCC
19154 builtin and then its argument prototype would still apply. */
19155 #ifdef __cplusplus
19156 extern "C"
19157 #endif
19158 char $ac_func ();
19159 /* The GNU C library defines this for functions which it implements
19160 to always fail with ENOSYS. Some functions are actually named
19161 something starting with __ and the normal name is an alias. */
19162 #if defined __stub_$ac_func || defined __stub___$ac_func
19163 choke me
19164 #endif
19167 main ()
19169 return $ac_func ();
19171 return 0;
19173 _ACEOF
19174 rm -f conftest.$ac_objext conftest$ac_exeext
19175 if { (ac_try="$ac_link"
19176 case "(($ac_try" in
19177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19178 *) ac_try_echo=$ac_try;;
19179 esac
19180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19181 (eval "$ac_link") 2>conftest.er1
19182 ac_status=$?
19183 grep -v '^ *+' conftest.er1 >conftest.err
19184 rm -f conftest.er1
19185 cat conftest.err >&5
19186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187 (exit $ac_status); } && {
19188 test -z "$ac_c_werror_flag" ||
19189 test ! -s conftest.err
19190 } && test -s conftest$ac_exeext &&
19191 $as_test_x conftest$ac_exeext; then
19192 eval "$as_ac_var=yes"
19193 else
19194 echo "$as_me: failed program was:" >&5
19195 sed 's/^/| /' conftest.$ac_ext >&5
19197 eval "$as_ac_var=no"
19200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19201 conftest$ac_exeext conftest.$ac_ext
19203 ac_res=`eval echo '${'$as_ac_var'}'`
19204 { echo "$as_me:$LINENO: result: $ac_res" >&5
19205 echo "${ECHO_T}$ac_res" >&6; }
19206 if test `eval echo '${'$as_ac_var'}'` = yes; then
19207 cat >>confdefs.h <<_ACEOF
19208 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19209 _ACEOF
19212 done
19215 # Do test here with the proper thread flags
19216 { echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
19217 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6; }
19218 if test "${pgac_func_getpwuid_r_5arg+set}" = set; then
19219 echo $ECHO_N "(cached) $ECHO_C" >&6
19220 else
19221 cat >conftest.$ac_ext <<_ACEOF
19222 /* confdefs.h. */
19223 _ACEOF
19224 cat confdefs.h >>conftest.$ac_ext
19225 cat >>conftest.$ac_ext <<_ACEOF
19226 /* end confdefs.h. */
19227 #include <sys/types.h>
19228 #include <pwd.h>
19230 main ()
19232 uid_t uid;
19233 struct passwd *space;
19234 char *buf;
19235 size_t bufsize;
19236 struct passwd **result;
19237 getpwuid_r(uid, space, buf, bufsize, result);
19239 return 0;
19241 _ACEOF
19242 rm -f conftest.$ac_objext
19243 if { (ac_try="$ac_compile"
19244 case "(($ac_try" in
19245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19246 *) ac_try_echo=$ac_try;;
19247 esac
19248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19249 (eval "$ac_compile") 2>conftest.er1
19250 ac_status=$?
19251 grep -v '^ *+' conftest.er1 >conftest.err
19252 rm -f conftest.er1
19253 cat conftest.err >&5
19254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19255 (exit $ac_status); } && {
19256 test -z "$ac_c_werror_flag" ||
19257 test ! -s conftest.err
19258 } && test -s conftest.$ac_objext; then
19259 pgac_func_getpwuid_r_5arg=yes
19260 else
19261 echo "$as_me: failed program was:" >&5
19262 sed 's/^/| /' conftest.$ac_ext >&5
19264 pgac_func_getpwuid_r_5arg=no
19267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19269 { echo "$as_me:$LINENO: result: $pgac_func_getpwuid_r_5arg" >&5
19270 echo "${ECHO_T}$pgac_func_getpwuid_r_5arg" >&6; }
19271 if test x"$pgac_func_getpwuid_r_5arg" = xyes ; then
19273 cat >>confdefs.h <<\_ACEOF
19274 #define GETPWUID_R_5ARG
19275 _ACEOF
19279 { echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
19280 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6; }
19281 if test "${pgac_func_strerror_r_int+set}" = set; then
19282 echo $ECHO_N "(cached) $ECHO_C" >&6
19283 else
19284 cat >conftest.$ac_ext <<_ACEOF
19285 /* confdefs.h. */
19286 _ACEOF
19287 cat confdefs.h >>conftest.$ac_ext
19288 cat >>conftest.$ac_ext <<_ACEOF
19289 /* end confdefs.h. */
19290 #include <string.h>
19292 main ()
19294 #ifndef _AIX
19295 int strerror_r(int, char *, size_t);
19296 #else
19297 /* Older AIX has 'int' for the third argument so we don't test the args. */
19298 int strerror_r();
19299 #endif
19301 return 0;
19303 _ACEOF
19304 rm -f conftest.$ac_objext
19305 if { (ac_try="$ac_compile"
19306 case "(($ac_try" in
19307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19308 *) ac_try_echo=$ac_try;;
19309 esac
19310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19311 (eval "$ac_compile") 2>conftest.er1
19312 ac_status=$?
19313 grep -v '^ *+' conftest.er1 >conftest.err
19314 rm -f conftest.er1
19315 cat conftest.err >&5
19316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317 (exit $ac_status); } && {
19318 test -z "$ac_c_werror_flag" ||
19319 test ! -s conftest.err
19320 } && test -s conftest.$ac_objext; then
19321 pgac_func_strerror_r_int=yes
19322 else
19323 echo "$as_me: failed program was:" >&5
19324 sed 's/^/| /' conftest.$ac_ext >&5
19326 pgac_func_strerror_r_int=no
19329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19331 { echo "$as_me:$LINENO: result: $pgac_func_strerror_r_int" >&5
19332 echo "${ECHO_T}$pgac_func_strerror_r_int" >&6; }
19333 if test x"$pgac_func_strerror_r_int" = xyes ; then
19335 cat >>confdefs.h <<\_ACEOF
19336 #define STRERROR_R_INT
19337 _ACEOF
19342 CFLAGS="$_CFLAGS"
19343 LIBS="$_LIBS"
19345 else
19346 # do not use values from template file
19347 PTHREAD_CFLAGS=
19348 PTHREAD_LIBS=
19355 # We can test for libldap_r only after we know PTHREAD_LIBS
19356 if test "$with_ldap" = yes ; then
19357 _LIBS="$LIBS"
19358 if test "$PORTNAME" != "win32"; then
19360 { echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
19361 echo $ECHO_N "checking for ldap_bind in -lldap... $ECHO_C" >&6; }
19362 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
19363 echo $ECHO_N "(cached) $ECHO_C" >&6
19364 else
19365 ac_check_lib_save_LIBS=$LIBS
19366 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
19367 cat >conftest.$ac_ext <<_ACEOF
19368 /* confdefs.h. */
19369 _ACEOF
19370 cat confdefs.h >>conftest.$ac_ext
19371 cat >>conftest.$ac_ext <<_ACEOF
19372 /* end confdefs.h. */
19374 /* Override any GCC internal prototype to avoid an error.
19375 Use char because int might match the return type of a GCC
19376 builtin and then its argument prototype would still apply. */
19377 #ifdef __cplusplus
19378 extern "C"
19379 #endif
19380 char ldap_bind ();
19382 main ()
19384 return ldap_bind ();
19386 return 0;
19388 _ACEOF
19389 rm -f conftest.$ac_objext conftest$ac_exeext
19390 if { (ac_try="$ac_link"
19391 case "(($ac_try" in
19392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19393 *) ac_try_echo=$ac_try;;
19394 esac
19395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19396 (eval "$ac_link") 2>conftest.er1
19397 ac_status=$?
19398 grep -v '^ *+' conftest.er1 >conftest.err
19399 rm -f conftest.er1
19400 cat conftest.err >&5
19401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402 (exit $ac_status); } && {
19403 test -z "$ac_c_werror_flag" ||
19404 test ! -s conftest.err
19405 } && test -s conftest$ac_exeext &&
19406 $as_test_x conftest$ac_exeext; then
19407 ac_cv_lib_ldap_ldap_bind=yes
19408 else
19409 echo "$as_me: failed program was:" >&5
19410 sed 's/^/| /' conftest.$ac_ext >&5
19412 ac_cv_lib_ldap_ldap_bind=no
19415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19416 conftest$ac_exeext conftest.$ac_ext
19417 LIBS=$ac_check_lib_save_LIBS
19419 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
19420 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_bind" >&6; }
19421 if test $ac_cv_lib_ldap_ldap_bind = yes; then
19422 cat >>confdefs.h <<_ACEOF
19423 #define HAVE_LIBLDAP 1
19424 _ACEOF
19426 LIBS="-lldap $LIBS"
19428 else
19429 { { echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
19430 echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
19431 { (exit 1); exit 1; }; }
19434 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
19435 if test "$enable_thread_safety" = yes; then
19436 # on some platforms ldap_r fails to link without PTHREAD_LIBS
19438 { echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
19439 echo $ECHO_N "checking for ldap_simple_bind in -lldap_r... $ECHO_C" >&6; }
19440 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
19441 echo $ECHO_N "(cached) $ECHO_C" >&6
19442 else
19443 ac_check_lib_save_LIBS=$LIBS
19444 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
19445 cat >conftest.$ac_ext <<_ACEOF
19446 /* confdefs.h. */
19447 _ACEOF
19448 cat confdefs.h >>conftest.$ac_ext
19449 cat >>conftest.$ac_ext <<_ACEOF
19450 /* end confdefs.h. */
19452 /* Override any GCC internal prototype to avoid an error.
19453 Use char because int might match the return type of a GCC
19454 builtin and then its argument prototype would still apply. */
19455 #ifdef __cplusplus
19456 extern "C"
19457 #endif
19458 char ldap_simple_bind ();
19460 main ()
19462 return ldap_simple_bind ();
19464 return 0;
19466 _ACEOF
19467 rm -f conftest.$ac_objext conftest$ac_exeext
19468 if { (ac_try="$ac_link"
19469 case "(($ac_try" in
19470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19471 *) ac_try_echo=$ac_try;;
19472 esac
19473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19474 (eval "$ac_link") 2>conftest.er1
19475 ac_status=$?
19476 grep -v '^ *+' conftest.er1 >conftest.err
19477 rm -f conftest.er1
19478 cat conftest.err >&5
19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480 (exit $ac_status); } && {
19481 test -z "$ac_c_werror_flag" ||
19482 test ! -s conftest.err
19483 } && test -s conftest$ac_exeext &&
19484 $as_test_x conftest$ac_exeext; then
19485 ac_cv_lib_ldap_r_ldap_simple_bind=yes
19486 else
19487 echo "$as_me: failed program was:" >&5
19488 sed 's/^/| /' conftest.$ac_ext >&5
19490 ac_cv_lib_ldap_r_ldap_simple_bind=no
19493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19494 conftest$ac_exeext conftest.$ac_ext
19495 LIBS=$ac_check_lib_save_LIBS
19497 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
19498 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
19499 if test $ac_cv_lib_ldap_r_ldap_simple_bind = yes; then
19500 cat >>confdefs.h <<_ACEOF
19501 #define HAVE_LIBLDAP_R 1
19502 _ACEOF
19504 LIBS="-lldap_r $LIBS"
19506 else
19507 { { echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
19508 echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
19509 { (exit 1); exit 1; }; }
19512 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
19513 else
19514 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
19516 else
19518 { echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
19519 echo $ECHO_N "checking for ldap_bind in -lwldap32... $ECHO_C" >&6; }
19520 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
19521 echo $ECHO_N "(cached) $ECHO_C" >&6
19522 else
19523 ac_check_lib_save_LIBS=$LIBS
19524 LIBS="-lwldap32 $LIBS"
19525 cat >conftest.$ac_ext <<_ACEOF
19526 /* confdefs.h. */
19527 _ACEOF
19528 cat confdefs.h >>conftest.$ac_ext
19529 cat >>conftest.$ac_ext <<_ACEOF
19530 /* end confdefs.h. */
19532 /* Override any GCC internal prototype to avoid an error.
19533 Use char because int might match the return type of a GCC
19534 builtin and then its argument prototype would still apply. */
19535 #ifdef __cplusplus
19536 extern "C"
19537 #endif
19538 char ldap_bind ();
19540 main ()
19542 return ldap_bind ();
19544 return 0;
19546 _ACEOF
19547 rm -f conftest.$ac_objext conftest$ac_exeext
19548 if { (ac_try="$ac_link"
19549 case "(($ac_try" in
19550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19551 *) ac_try_echo=$ac_try;;
19552 esac
19553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19554 (eval "$ac_link") 2>conftest.er1
19555 ac_status=$?
19556 grep -v '^ *+' conftest.er1 >conftest.err
19557 rm -f conftest.er1
19558 cat conftest.err >&5
19559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560 (exit $ac_status); } && {
19561 test -z "$ac_c_werror_flag" ||
19562 test ! -s conftest.err
19563 } && test -s conftest$ac_exeext &&
19564 $as_test_x conftest$ac_exeext; then
19565 ac_cv_lib_wldap32_ldap_bind=yes
19566 else
19567 echo "$as_me: failed program was:" >&5
19568 sed 's/^/| /' conftest.$ac_ext >&5
19570 ac_cv_lib_wldap32_ldap_bind=no
19573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19574 conftest$ac_exeext conftest.$ac_ext
19575 LIBS=$ac_check_lib_save_LIBS
19577 { echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
19578 echo "${ECHO_T}$ac_cv_lib_wldap32_ldap_bind" >&6; }
19579 if test $ac_cv_lib_wldap32_ldap_bind = yes; then
19580 cat >>confdefs.h <<_ACEOF
19581 #define HAVE_LIBWLDAP32 1
19582 _ACEOF
19584 LIBS="-lwldap32 $LIBS"
19586 else
19587 { { echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
19588 echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
19589 { (exit 1); exit 1; }; }
19592 LDAP_LIBS_FE="-lwldap32"
19593 LDAP_LIBS_BE="-lwldap32"
19595 LIBS="$_LIBS"
19601 # This test makes sure that run tests work at all. Sometimes a shared
19602 # library is found by the linker, but the runtime linker can't find it.
19603 # This check should come after all modifications of compiler or linker
19604 # variables, and before any other run tests.
19605 { echo "$as_me:$LINENO: checking test program" >&5
19606 echo $ECHO_N "checking test program... $ECHO_C" >&6; }
19607 if test "$cross_compiling" = yes; then
19608 { echo "$as_me:$LINENO: result: cross-compiling" >&5
19609 echo "${ECHO_T}cross-compiling" >&6; }
19610 else
19611 cat >conftest.$ac_ext <<_ACEOF
19612 /* confdefs.h. */
19613 _ACEOF
19614 cat confdefs.h >>conftest.$ac_ext
19615 cat >>conftest.$ac_ext <<_ACEOF
19616 /* end confdefs.h. */
19617 int main() { return 0; }
19618 _ACEOF
19619 rm -f conftest$ac_exeext
19620 if { (ac_try="$ac_link"
19621 case "(($ac_try" in
19622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19623 *) ac_try_echo=$ac_try;;
19624 esac
19625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19626 (eval "$ac_link") 2>&5
19627 ac_status=$?
19628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19630 { (case "(($ac_try" in
19631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19632 *) ac_try_echo=$ac_try;;
19633 esac
19634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19635 (eval "$ac_try") 2>&5
19636 ac_status=$?
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); }; }; then
19639 { echo "$as_me:$LINENO: result: ok" >&5
19640 echo "${ECHO_T}ok" >&6; }
19641 else
19642 echo "$as_me: program exited with status $ac_status" >&5
19643 echo "$as_me: failed program was:" >&5
19644 sed 's/^/| /' conftest.$ac_ext >&5
19646 ( exit $ac_status )
19647 { echo "$as_me:$LINENO: result: failed" >&5
19648 echo "${ECHO_T}failed" >&6; }
19649 { { echo "$as_me:$LINENO: error:
19650 Could not execute a simple test program. This may be a problem
19651 related to locating shared libraries. Check the file 'config.log'
19652 for the exact reason." >&5
19653 echo "$as_me: error:
19654 Could not execute a simple test program. This may be a problem
19655 related to locating shared libraries. Check the file 'config.log'
19656 for the exact reason." >&2;}
19657 { (exit 1); exit 1; }; }
19659 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19664 # --------------------
19665 # Run tests below here
19666 # --------------------
19668 # Force use of our snprintf if system's doesn't do arg control
19669 # See comment above at snprintf test for details.
19670 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
19671 { echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
19672 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6; }
19673 if test "${pgac_cv_printf_arg_control+set}" = set; then
19674 echo $ECHO_N "(cached) $ECHO_C" >&6
19675 else
19676 if test "$cross_compiling" = yes; then
19677 pgac_cv_printf_arg_control=cross
19678 else
19679 cat >conftest.$ac_ext <<_ACEOF
19680 /* confdefs.h. */
19681 _ACEOF
19682 cat confdefs.h >>conftest.$ac_ext
19683 cat >>conftest.$ac_ext <<_ACEOF
19684 /* end confdefs.h. */
19685 #include <stdio.h>
19686 #include <string.h>
19688 int main()
19690 char buf[100];
19692 /* can it swap arguments? */
19693 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
19694 if (strcmp(buf, "4 3") != 0)
19695 return 1;
19696 return 0;
19698 _ACEOF
19699 rm -f conftest$ac_exeext
19700 if { (ac_try="$ac_link"
19701 case "(($ac_try" in
19702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19703 *) ac_try_echo=$ac_try;;
19704 esac
19705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19706 (eval "$ac_link") 2>&5
19707 ac_status=$?
19708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19710 { (case "(($ac_try" in
19711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19712 *) ac_try_echo=$ac_try;;
19713 esac
19714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19715 (eval "$ac_try") 2>&5
19716 ac_status=$?
19717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718 (exit $ac_status); }; }; then
19719 pgac_cv_printf_arg_control=yes
19720 else
19721 echo "$as_me: program exited with status $ac_status" >&5
19722 echo "$as_me: failed program was:" >&5
19723 sed 's/^/| /' conftest.$ac_ext >&5
19725 ( exit $ac_status )
19726 pgac_cv_printf_arg_control=no
19728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19734 { echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
19735 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6; }
19737 if test $pgac_cv_printf_arg_control != yes ; then
19738 pgac_need_repl_snprintf=yes
19744 { echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
19745 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6; }
19746 if test "${pgac_cv_type_long_int_64+set}" = set; then
19747 echo $ECHO_N "(cached) $ECHO_C" >&6
19748 else
19749 if test "$cross_compiling" = yes; then
19750 # If cross-compiling, check the size reported by the compiler and
19751 # trust that the arithmetic works.
19752 cat >conftest.$ac_ext <<_ACEOF
19753 /* confdefs.h. */
19754 _ACEOF
19755 cat confdefs.h >>conftest.$ac_ext
19756 cat >>conftest.$ac_ext <<_ACEOF
19757 /* end confdefs.h. */
19760 main ()
19762 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
19763 test_array [0] = 0
19766 return 0;
19768 _ACEOF
19769 rm -f conftest.$ac_objext
19770 if { (ac_try="$ac_compile"
19771 case "(($ac_try" in
19772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19773 *) ac_try_echo=$ac_try;;
19774 esac
19775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19776 (eval "$ac_compile") 2>conftest.er1
19777 ac_status=$?
19778 grep -v '^ *+' conftest.er1 >conftest.err
19779 rm -f conftest.er1
19780 cat conftest.err >&5
19781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782 (exit $ac_status); } && {
19783 test -z "$ac_c_werror_flag" ||
19784 test ! -s conftest.err
19785 } && test -s conftest.$ac_objext; then
19786 pgac_cv_type_long_int_64=yes
19787 else
19788 echo "$as_me: failed program was:" >&5
19789 sed 's/^/| /' conftest.$ac_ext >&5
19791 pgac_cv_type_long_int_64=no
19794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19795 else
19796 cat >conftest.$ac_ext <<_ACEOF
19797 /* confdefs.h. */
19798 _ACEOF
19799 cat confdefs.h >>conftest.$ac_ext
19800 cat >>conftest.$ac_ext <<_ACEOF
19801 /* end confdefs.h. */
19802 typedef long int ac_int64;
19805 * These are globals to discourage the compiler from folding all the
19806 * arithmetic tests down to compile-time constants.
19808 ac_int64 a = 20000001;
19809 ac_int64 b = 40000005;
19811 int does_int64_work()
19813 ac_int64 c,d;
19815 if (sizeof(ac_int64) != 8)
19816 return 0; /* definitely not the right size */
19818 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
19819 c = a * b;
19820 d = (c + b) / b;
19821 if (d != a+1)
19822 return 0;
19823 return 1;
19825 main() {
19826 exit(! does_int64_work());
19828 _ACEOF
19829 rm -f conftest$ac_exeext
19830 if { (ac_try="$ac_link"
19831 case "(($ac_try" in
19832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19833 *) ac_try_echo=$ac_try;;
19834 esac
19835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19836 (eval "$ac_link") 2>&5
19837 ac_status=$?
19838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19840 { (case "(($ac_try" in
19841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19842 *) ac_try_echo=$ac_try;;
19843 esac
19844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19845 (eval "$ac_try") 2>&5
19846 ac_status=$?
19847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848 (exit $ac_status); }; }; then
19849 pgac_cv_type_long_int_64=yes
19850 else
19851 echo "$as_me: program exited with status $ac_status" >&5
19852 echo "$as_me: failed program was:" >&5
19853 sed 's/^/| /' conftest.$ac_ext >&5
19855 ( exit $ac_status )
19856 pgac_cv_type_long_int_64=no
19858 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19863 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
19864 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6; }
19866 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
19867 if test x"$pgac_cv_type_long_int_64" = xyes ; then
19869 cat >>confdefs.h <<\_ACEOF
19870 #define HAVE_LONG_INT_64 1
19871 _ACEOF
19876 if test x"$HAVE_LONG_INT_64" = x"no" ; then
19877 { echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
19878 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6; }
19879 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
19880 echo $ECHO_N "(cached) $ECHO_C" >&6
19881 else
19882 if test "$cross_compiling" = yes; then
19883 # If cross-compiling, check the size reported by the compiler and
19884 # trust that the arithmetic works.
19885 cat >conftest.$ac_ext <<_ACEOF
19886 /* confdefs.h. */
19887 _ACEOF
19888 cat confdefs.h >>conftest.$ac_ext
19889 cat >>conftest.$ac_ext <<_ACEOF
19890 /* end confdefs.h. */
19893 main ()
19895 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
19896 test_array [0] = 0
19899 return 0;
19901 _ACEOF
19902 rm -f conftest.$ac_objext
19903 if { (ac_try="$ac_compile"
19904 case "(($ac_try" in
19905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19906 *) ac_try_echo=$ac_try;;
19907 esac
19908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19909 (eval "$ac_compile") 2>conftest.er1
19910 ac_status=$?
19911 grep -v '^ *+' conftest.er1 >conftest.err
19912 rm -f conftest.er1
19913 cat conftest.err >&5
19914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915 (exit $ac_status); } && {
19916 test -z "$ac_c_werror_flag" ||
19917 test ! -s conftest.err
19918 } && test -s conftest.$ac_objext; then
19919 pgac_cv_type_long_long_int_64=yes
19920 else
19921 echo "$as_me: failed program was:" >&5
19922 sed 's/^/| /' conftest.$ac_ext >&5
19924 pgac_cv_type_long_long_int_64=no
19927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19928 else
19929 cat >conftest.$ac_ext <<_ACEOF
19930 /* confdefs.h. */
19931 _ACEOF
19932 cat confdefs.h >>conftest.$ac_ext
19933 cat >>conftest.$ac_ext <<_ACEOF
19934 /* end confdefs.h. */
19935 typedef long long int ac_int64;
19938 * These are globals to discourage the compiler from folding all the
19939 * arithmetic tests down to compile-time constants.
19941 ac_int64 a = 20000001;
19942 ac_int64 b = 40000005;
19944 int does_int64_work()
19946 ac_int64 c,d;
19948 if (sizeof(ac_int64) != 8)
19949 return 0; /* definitely not the right size */
19951 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
19952 c = a * b;
19953 d = (c + b) / b;
19954 if (d != a+1)
19955 return 0;
19956 return 1;
19958 main() {
19959 exit(! does_int64_work());
19961 _ACEOF
19962 rm -f conftest$ac_exeext
19963 if { (ac_try="$ac_link"
19964 case "(($ac_try" in
19965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19966 *) ac_try_echo=$ac_try;;
19967 esac
19968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19969 (eval "$ac_link") 2>&5
19970 ac_status=$?
19971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19973 { (case "(($ac_try" in
19974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19975 *) ac_try_echo=$ac_try;;
19976 esac
19977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19978 (eval "$ac_try") 2>&5
19979 ac_status=$?
19980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981 (exit $ac_status); }; }; then
19982 pgac_cv_type_long_long_int_64=yes
19983 else
19984 echo "$as_me: program exited with status $ac_status" >&5
19985 echo "$as_me: failed program was:" >&5
19986 sed 's/^/| /' conftest.$ac_ext >&5
19988 ( exit $ac_status )
19989 pgac_cv_type_long_long_int_64=no
19991 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19996 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
19997 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6; }
19999 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
20000 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
20002 cat >>confdefs.h <<\_ACEOF
20003 #define HAVE_LONG_LONG_INT_64 1
20004 _ACEOF
20012 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
20013 cat >conftest.$ac_ext <<_ACEOF
20014 /* confdefs.h. */
20015 _ACEOF
20016 cat confdefs.h >>conftest.$ac_ext
20017 cat >>conftest.$ac_ext <<_ACEOF
20018 /* end confdefs.h. */
20020 #define INT64CONST(x) x##LL
20021 long long int foo = INT64CONST(0x1234567890123456);
20024 main ()
20028 return 0;
20030 _ACEOF
20031 rm -f conftest.$ac_objext
20032 if { (ac_try="$ac_compile"
20033 case "(($ac_try" in
20034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20035 *) ac_try_echo=$ac_try;;
20036 esac
20037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20038 (eval "$ac_compile") 2>conftest.er1
20039 ac_status=$?
20040 grep -v '^ *+' conftest.er1 >conftest.err
20041 rm -f conftest.er1
20042 cat conftest.err >&5
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); } && {
20045 test -z "$ac_c_werror_flag" ||
20046 test ! -s conftest.err
20047 } && test -s conftest.$ac_objext; then
20049 cat >>confdefs.h <<\_ACEOF
20050 #define HAVE_LL_CONSTANTS 1
20051 _ACEOF
20053 else
20054 echo "$as_me: failed program was:" >&5
20055 sed 's/^/| /' conftest.$ac_ext >&5
20060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20064 # If we found "long int" is 64 bits, assume snprintf handles it. If
20065 # we found we need to use "long long int", better check. We cope with
20066 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
20067 # work, fall back to our own snprintf emulation (which we know uses %lld).
20069 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
20070 if test $pgac_need_repl_snprintf = no; then
20071 { echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
20072 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6; }
20073 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
20074 echo $ECHO_N "(cached) $ECHO_C" >&6
20075 else
20076 for pgac_format in '%lld' '%qd' '%I64d'; do
20077 if test "$cross_compiling" = yes; then
20078 pgac_cv_snprintf_long_long_int_format=cross; break
20079 else
20080 cat >conftest.$ac_ext <<_ACEOF
20081 /* confdefs.h. */
20082 _ACEOF
20083 cat confdefs.h >>conftest.$ac_ext
20084 cat >>conftest.$ac_ext <<_ACEOF
20085 /* end confdefs.h. */
20086 #include <stdio.h>
20087 typedef long long int ac_int64;
20088 #define INT64_FORMAT "$pgac_format"
20090 ac_int64 a = 20000001;
20091 ac_int64 b = 40000005;
20093 int does_int64_snprintf_work()
20095 ac_int64 c;
20096 char buf[100];
20098 if (sizeof(ac_int64) != 8)
20099 return 0; /* doesn't look like the right size */
20101 c = a * b;
20102 snprintf(buf, 100, INT64_FORMAT, c);
20103 if (strcmp(buf, "800000140000005") != 0)
20104 return 0; /* either multiply or snprintf is busted */
20105 return 1;
20107 main() {
20108 exit(! does_int64_snprintf_work());
20110 _ACEOF
20111 rm -f conftest$ac_exeext
20112 if { (ac_try="$ac_link"
20113 case "(($ac_try" in
20114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20115 *) ac_try_echo=$ac_try;;
20116 esac
20117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20118 (eval "$ac_link") 2>&5
20119 ac_status=$?
20120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20122 { (case "(($ac_try" in
20123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20124 *) ac_try_echo=$ac_try;;
20125 esac
20126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20127 (eval "$ac_try") 2>&5
20128 ac_status=$?
20129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20130 (exit $ac_status); }; }; then
20131 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
20132 else
20133 echo "$as_me: program exited with status $ac_status" >&5
20134 echo "$as_me: failed program was:" >&5
20135 sed 's/^/| /' conftest.$ac_ext >&5
20138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20142 done
20145 LONG_LONG_INT_FORMAT=''
20147 case $pgac_cv_snprintf_long_long_int_format in
20148 cross) { echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
20149 echo "${ECHO_T}cannot test (not on host machine)" >&6; };;
20150 ?*) { echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
20151 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6; }
20152 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
20153 *) { echo "$as_me:$LINENO: result: none" >&5
20154 echo "${ECHO_T}none" >&6; };;
20155 esac
20156 if test "$LONG_LONG_INT_FORMAT" = ""; then
20157 # Force usage of our own snprintf, since system snprintf is broken
20158 pgac_need_repl_snprintf=yes
20159 LONG_LONG_INT_FORMAT='%lld'
20161 else
20162 # Here if we previously decided we needed to use our own snprintf
20163 LONG_LONG_INT_FORMAT='%lld'
20165 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
20166 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
20167 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
20168 else
20169 # Here if we are not using 'long long int' at all
20170 INT64_FORMAT='"%ld"'
20171 UINT64_FORMAT='"%lu"'
20175 cat >>confdefs.h <<_ACEOF
20176 #define INT64_FORMAT $INT64_FORMAT
20177 _ACEOF
20181 cat >>confdefs.h <<_ACEOF
20182 #define UINT64_FORMAT $UINT64_FORMAT
20183 _ACEOF
20186 # Now we have checked all the reasons to replace snprintf
20187 if test $pgac_need_repl_snprintf = yes; then
20189 cat >>confdefs.h <<\_ACEOF
20190 #define USE_REPL_SNPRINTF 1
20191 _ACEOF
20193 case " $LIBOBJS " in
20194 *" snprintf.$ac_objext "* ) ;;
20195 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20197 esac
20201 # Need a #define for the size of Datum (unsigned long)
20202 { echo "$as_me:$LINENO: checking for unsigned long" >&5
20203 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
20204 if test "${ac_cv_type_unsigned_long+set}" = set; then
20205 echo $ECHO_N "(cached) $ECHO_C" >&6
20206 else
20207 cat >conftest.$ac_ext <<_ACEOF
20208 /* confdefs.h. */
20209 _ACEOF
20210 cat confdefs.h >>conftest.$ac_ext
20211 cat >>conftest.$ac_ext <<_ACEOF
20212 /* end confdefs.h. */
20213 $ac_includes_default
20214 typedef unsigned long ac__type_new_;
20216 main ()
20218 if ((ac__type_new_ *) 0)
20219 return 0;
20220 if (sizeof (ac__type_new_))
20221 return 0;
20223 return 0;
20225 _ACEOF
20226 rm -f conftest.$ac_objext
20227 if { (ac_try="$ac_compile"
20228 case "(($ac_try" in
20229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20230 *) ac_try_echo=$ac_try;;
20231 esac
20232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20233 (eval "$ac_compile") 2>conftest.er1
20234 ac_status=$?
20235 grep -v '^ *+' conftest.er1 >conftest.err
20236 rm -f conftest.er1
20237 cat conftest.err >&5
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); } && {
20240 test -z "$ac_c_werror_flag" ||
20241 test ! -s conftest.err
20242 } && test -s conftest.$ac_objext; then
20243 ac_cv_type_unsigned_long=yes
20244 else
20245 echo "$as_me: failed program was:" >&5
20246 sed 's/^/| /' conftest.$ac_ext >&5
20248 ac_cv_type_unsigned_long=no
20251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20253 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
20254 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
20256 # The cast to long int works around a bug in the HP C Compiler
20257 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20258 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20259 # This bug is HP SR number 8606223364.
20260 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
20261 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
20262 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
20263 echo $ECHO_N "(cached) $ECHO_C" >&6
20264 else
20265 if test "$cross_compiling" = yes; then
20266 # Depending upon the size, compute the lo and hi bounds.
20267 cat >conftest.$ac_ext <<_ACEOF
20268 /* confdefs.h. */
20269 _ACEOF
20270 cat confdefs.h >>conftest.$ac_ext
20271 cat >>conftest.$ac_ext <<_ACEOF
20272 /* end confdefs.h. */
20273 $ac_includes_default
20274 typedef unsigned long ac__type_sizeof_;
20276 main ()
20278 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20279 test_array [0] = 0
20282 return 0;
20284 _ACEOF
20285 rm -f conftest.$ac_objext
20286 if { (ac_try="$ac_compile"
20287 case "(($ac_try" in
20288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20289 *) ac_try_echo=$ac_try;;
20290 esac
20291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20292 (eval "$ac_compile") 2>conftest.er1
20293 ac_status=$?
20294 grep -v '^ *+' conftest.er1 >conftest.err
20295 rm -f conftest.er1
20296 cat conftest.err >&5
20297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298 (exit $ac_status); } && {
20299 test -z "$ac_c_werror_flag" ||
20300 test ! -s conftest.err
20301 } && test -s conftest.$ac_objext; then
20302 ac_lo=0 ac_mid=0
20303 while :; do
20304 cat >conftest.$ac_ext <<_ACEOF
20305 /* confdefs.h. */
20306 _ACEOF
20307 cat confdefs.h >>conftest.$ac_ext
20308 cat >>conftest.$ac_ext <<_ACEOF
20309 /* end confdefs.h. */
20310 $ac_includes_default
20311 typedef unsigned long ac__type_sizeof_;
20313 main ()
20315 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20316 test_array [0] = 0
20319 return 0;
20321 _ACEOF
20322 rm -f conftest.$ac_objext
20323 if { (ac_try="$ac_compile"
20324 case "(($ac_try" in
20325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20326 *) ac_try_echo=$ac_try;;
20327 esac
20328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20329 (eval "$ac_compile") 2>conftest.er1
20330 ac_status=$?
20331 grep -v '^ *+' conftest.er1 >conftest.err
20332 rm -f conftest.er1
20333 cat conftest.err >&5
20334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335 (exit $ac_status); } && {
20336 test -z "$ac_c_werror_flag" ||
20337 test ! -s conftest.err
20338 } && test -s conftest.$ac_objext; then
20339 ac_hi=$ac_mid; break
20340 else
20341 echo "$as_me: failed program was:" >&5
20342 sed 's/^/| /' conftest.$ac_ext >&5
20344 ac_lo=`expr $ac_mid + 1`
20345 if test $ac_lo -le $ac_mid; then
20346 ac_lo= ac_hi=
20347 break
20349 ac_mid=`expr 2 '*' $ac_mid + 1`
20352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20353 done
20354 else
20355 echo "$as_me: failed program was:" >&5
20356 sed 's/^/| /' conftest.$ac_ext >&5
20358 cat >conftest.$ac_ext <<_ACEOF
20359 /* confdefs.h. */
20360 _ACEOF
20361 cat confdefs.h >>conftest.$ac_ext
20362 cat >>conftest.$ac_ext <<_ACEOF
20363 /* end confdefs.h. */
20364 $ac_includes_default
20365 typedef unsigned long ac__type_sizeof_;
20367 main ()
20369 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20370 test_array [0] = 0
20373 return 0;
20375 _ACEOF
20376 rm -f conftest.$ac_objext
20377 if { (ac_try="$ac_compile"
20378 case "(($ac_try" in
20379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20380 *) ac_try_echo=$ac_try;;
20381 esac
20382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20383 (eval "$ac_compile") 2>conftest.er1
20384 ac_status=$?
20385 grep -v '^ *+' conftest.er1 >conftest.err
20386 rm -f conftest.er1
20387 cat conftest.err >&5
20388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389 (exit $ac_status); } && {
20390 test -z "$ac_c_werror_flag" ||
20391 test ! -s conftest.err
20392 } && test -s conftest.$ac_objext; then
20393 ac_hi=-1 ac_mid=-1
20394 while :; do
20395 cat >conftest.$ac_ext <<_ACEOF
20396 /* confdefs.h. */
20397 _ACEOF
20398 cat confdefs.h >>conftest.$ac_ext
20399 cat >>conftest.$ac_ext <<_ACEOF
20400 /* end confdefs.h. */
20401 $ac_includes_default
20402 typedef unsigned long ac__type_sizeof_;
20404 main ()
20406 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20407 test_array [0] = 0
20410 return 0;
20412 _ACEOF
20413 rm -f conftest.$ac_objext
20414 if { (ac_try="$ac_compile"
20415 case "(($ac_try" in
20416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20417 *) ac_try_echo=$ac_try;;
20418 esac
20419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20420 (eval "$ac_compile") 2>conftest.er1
20421 ac_status=$?
20422 grep -v '^ *+' conftest.er1 >conftest.err
20423 rm -f conftest.er1
20424 cat conftest.err >&5
20425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); } && {
20427 test -z "$ac_c_werror_flag" ||
20428 test ! -s conftest.err
20429 } && test -s conftest.$ac_objext; then
20430 ac_lo=$ac_mid; break
20431 else
20432 echo "$as_me: failed program was:" >&5
20433 sed 's/^/| /' conftest.$ac_ext >&5
20435 ac_hi=`expr '(' $ac_mid ')' - 1`
20436 if test $ac_mid -le $ac_hi; then
20437 ac_lo= ac_hi=
20438 break
20440 ac_mid=`expr 2 '*' $ac_mid`
20443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20444 done
20445 else
20446 echo "$as_me: failed program was:" >&5
20447 sed 's/^/| /' conftest.$ac_ext >&5
20449 ac_lo= ac_hi=
20452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20456 # Binary search between lo and hi bounds.
20457 while test "x$ac_lo" != "x$ac_hi"; do
20458 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20459 cat >conftest.$ac_ext <<_ACEOF
20460 /* confdefs.h. */
20461 _ACEOF
20462 cat confdefs.h >>conftest.$ac_ext
20463 cat >>conftest.$ac_ext <<_ACEOF
20464 /* end confdefs.h. */
20465 $ac_includes_default
20466 typedef unsigned long ac__type_sizeof_;
20468 main ()
20470 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20471 test_array [0] = 0
20474 return 0;
20476 _ACEOF
20477 rm -f conftest.$ac_objext
20478 if { (ac_try="$ac_compile"
20479 case "(($ac_try" in
20480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20481 *) ac_try_echo=$ac_try;;
20482 esac
20483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20484 (eval "$ac_compile") 2>conftest.er1
20485 ac_status=$?
20486 grep -v '^ *+' conftest.er1 >conftest.err
20487 rm -f conftest.er1
20488 cat conftest.err >&5
20489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490 (exit $ac_status); } && {
20491 test -z "$ac_c_werror_flag" ||
20492 test ! -s conftest.err
20493 } && test -s conftest.$ac_objext; then
20494 ac_hi=$ac_mid
20495 else
20496 echo "$as_me: failed program was:" >&5
20497 sed 's/^/| /' conftest.$ac_ext >&5
20499 ac_lo=`expr '(' $ac_mid ')' + 1`
20502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20503 done
20504 case $ac_lo in
20505 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
20506 '') if test "$ac_cv_type_unsigned_long" = yes; then
20507 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
20508 See \`config.log' for more details." >&5
20509 echo "$as_me: error: cannot compute sizeof (unsigned long)
20510 See \`config.log' for more details." >&2;}
20511 { (exit 77); exit 77; }; }
20512 else
20513 ac_cv_sizeof_unsigned_long=0
20514 fi ;;
20515 esac
20516 else
20517 cat >conftest.$ac_ext <<_ACEOF
20518 /* confdefs.h. */
20519 _ACEOF
20520 cat confdefs.h >>conftest.$ac_ext
20521 cat >>conftest.$ac_ext <<_ACEOF
20522 /* end confdefs.h. */
20523 $ac_includes_default
20524 typedef unsigned long ac__type_sizeof_;
20525 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20526 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20527 #include <stdio.h>
20528 #include <stdlib.h>
20530 main ()
20533 FILE *f = fopen ("conftest.val", "w");
20534 if (! f)
20535 return 1;
20536 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20538 long int i = longval ();
20539 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20540 return 1;
20541 fprintf (f, "%ld\n", i);
20543 else
20545 unsigned long int i = ulongval ();
20546 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20547 return 1;
20548 fprintf (f, "%lu\n", i);
20550 return ferror (f) || fclose (f) != 0;
20553 return 0;
20555 _ACEOF
20556 rm -f conftest$ac_exeext
20557 if { (ac_try="$ac_link"
20558 case "(($ac_try" in
20559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20560 *) ac_try_echo=$ac_try;;
20561 esac
20562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20563 (eval "$ac_link") 2>&5
20564 ac_status=$?
20565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20567 { (case "(($ac_try" in
20568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20569 *) ac_try_echo=$ac_try;;
20570 esac
20571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20572 (eval "$ac_try") 2>&5
20573 ac_status=$?
20574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20575 (exit $ac_status); }; }; then
20576 ac_cv_sizeof_unsigned_long=`cat conftest.val`
20577 else
20578 echo "$as_me: program exited with status $ac_status" >&5
20579 echo "$as_me: failed program was:" >&5
20580 sed 's/^/| /' conftest.$ac_ext >&5
20582 ( exit $ac_status )
20583 if test "$ac_cv_type_unsigned_long" = yes; then
20584 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
20585 See \`config.log' for more details." >&5
20586 echo "$as_me: error: cannot compute sizeof (unsigned long)
20587 See \`config.log' for more details." >&2;}
20588 { (exit 77); exit 77; }; }
20589 else
20590 ac_cv_sizeof_unsigned_long=0
20593 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20595 rm -f conftest.val
20597 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
20598 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
20602 cat >>confdefs.h <<_ACEOF
20603 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20604 _ACEOF
20608 # And one for the size of size_t (enables tweaks for > 32bit address space)
20609 { echo "$as_me:$LINENO: checking for size_t" >&5
20610 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20611 if test "${ac_cv_type_size_t+set}" = set; then
20612 echo $ECHO_N "(cached) $ECHO_C" >&6
20613 else
20614 cat >conftest.$ac_ext <<_ACEOF
20615 /* confdefs.h. */
20616 _ACEOF
20617 cat confdefs.h >>conftest.$ac_ext
20618 cat >>conftest.$ac_ext <<_ACEOF
20619 /* end confdefs.h. */
20620 $ac_includes_default
20621 typedef size_t ac__type_new_;
20623 main ()
20625 if ((ac__type_new_ *) 0)
20626 return 0;
20627 if (sizeof (ac__type_new_))
20628 return 0;
20630 return 0;
20632 _ACEOF
20633 rm -f conftest.$ac_objext
20634 if { (ac_try="$ac_compile"
20635 case "(($ac_try" in
20636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20637 *) ac_try_echo=$ac_try;;
20638 esac
20639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20640 (eval "$ac_compile") 2>conftest.er1
20641 ac_status=$?
20642 grep -v '^ *+' conftest.er1 >conftest.err
20643 rm -f conftest.er1
20644 cat conftest.err >&5
20645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20646 (exit $ac_status); } && {
20647 test -z "$ac_c_werror_flag" ||
20648 test ! -s conftest.err
20649 } && test -s conftest.$ac_objext; then
20650 ac_cv_type_size_t=yes
20651 else
20652 echo "$as_me: failed program was:" >&5
20653 sed 's/^/| /' conftest.$ac_ext >&5
20655 ac_cv_type_size_t=no
20658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20660 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20661 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20663 # The cast to long int works around a bug in the HP C Compiler
20664 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20665 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20666 # This bug is HP SR number 8606223364.
20667 { echo "$as_me:$LINENO: checking size of size_t" >&5
20668 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
20669 if test "${ac_cv_sizeof_size_t+set}" = set; then
20670 echo $ECHO_N "(cached) $ECHO_C" >&6
20671 else
20672 if test "$cross_compiling" = yes; then
20673 # Depending upon the size, compute the lo and hi bounds.
20674 cat >conftest.$ac_ext <<_ACEOF
20675 /* confdefs.h. */
20676 _ACEOF
20677 cat confdefs.h >>conftest.$ac_ext
20678 cat >>conftest.$ac_ext <<_ACEOF
20679 /* end confdefs.h. */
20680 $ac_includes_default
20681 typedef size_t ac__type_sizeof_;
20683 main ()
20685 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20686 test_array [0] = 0
20689 return 0;
20691 _ACEOF
20692 rm -f conftest.$ac_objext
20693 if { (ac_try="$ac_compile"
20694 case "(($ac_try" in
20695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20696 *) ac_try_echo=$ac_try;;
20697 esac
20698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20699 (eval "$ac_compile") 2>conftest.er1
20700 ac_status=$?
20701 grep -v '^ *+' conftest.er1 >conftest.err
20702 rm -f conftest.er1
20703 cat conftest.err >&5
20704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705 (exit $ac_status); } && {
20706 test -z "$ac_c_werror_flag" ||
20707 test ! -s conftest.err
20708 } && test -s conftest.$ac_objext; then
20709 ac_lo=0 ac_mid=0
20710 while :; do
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 $ac_includes_default
20718 typedef size_t ac__type_sizeof_;
20720 main ()
20722 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20723 test_array [0] = 0
20726 return 0;
20728 _ACEOF
20729 rm -f conftest.$ac_objext
20730 if { (ac_try="$ac_compile"
20731 case "(($ac_try" in
20732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20733 *) ac_try_echo=$ac_try;;
20734 esac
20735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20736 (eval "$ac_compile") 2>conftest.er1
20737 ac_status=$?
20738 grep -v '^ *+' conftest.er1 >conftest.err
20739 rm -f conftest.er1
20740 cat conftest.err >&5
20741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20742 (exit $ac_status); } && {
20743 test -z "$ac_c_werror_flag" ||
20744 test ! -s conftest.err
20745 } && test -s conftest.$ac_objext; then
20746 ac_hi=$ac_mid; break
20747 else
20748 echo "$as_me: failed program was:" >&5
20749 sed 's/^/| /' conftest.$ac_ext >&5
20751 ac_lo=`expr $ac_mid + 1`
20752 if test $ac_lo -le $ac_mid; then
20753 ac_lo= ac_hi=
20754 break
20756 ac_mid=`expr 2 '*' $ac_mid + 1`
20759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20760 done
20761 else
20762 echo "$as_me: failed program was:" >&5
20763 sed 's/^/| /' conftest.$ac_ext >&5
20765 cat >conftest.$ac_ext <<_ACEOF
20766 /* confdefs.h. */
20767 _ACEOF
20768 cat confdefs.h >>conftest.$ac_ext
20769 cat >>conftest.$ac_ext <<_ACEOF
20770 /* end confdefs.h. */
20771 $ac_includes_default
20772 typedef size_t ac__type_sizeof_;
20774 main ()
20776 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20777 test_array [0] = 0
20780 return 0;
20782 _ACEOF
20783 rm -f conftest.$ac_objext
20784 if { (ac_try="$ac_compile"
20785 case "(($ac_try" in
20786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20787 *) ac_try_echo=$ac_try;;
20788 esac
20789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20790 (eval "$ac_compile") 2>conftest.er1
20791 ac_status=$?
20792 grep -v '^ *+' conftest.er1 >conftest.err
20793 rm -f conftest.er1
20794 cat conftest.err >&5
20795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20796 (exit $ac_status); } && {
20797 test -z "$ac_c_werror_flag" ||
20798 test ! -s conftest.err
20799 } && test -s conftest.$ac_objext; then
20800 ac_hi=-1 ac_mid=-1
20801 while :; do
20802 cat >conftest.$ac_ext <<_ACEOF
20803 /* confdefs.h. */
20804 _ACEOF
20805 cat confdefs.h >>conftest.$ac_ext
20806 cat >>conftest.$ac_ext <<_ACEOF
20807 /* end confdefs.h. */
20808 $ac_includes_default
20809 typedef size_t ac__type_sizeof_;
20811 main ()
20813 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20814 test_array [0] = 0
20817 return 0;
20819 _ACEOF
20820 rm -f conftest.$ac_objext
20821 if { (ac_try="$ac_compile"
20822 case "(($ac_try" in
20823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20824 *) ac_try_echo=$ac_try;;
20825 esac
20826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20827 (eval "$ac_compile") 2>conftest.er1
20828 ac_status=$?
20829 grep -v '^ *+' conftest.er1 >conftest.err
20830 rm -f conftest.er1
20831 cat conftest.err >&5
20832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20833 (exit $ac_status); } && {
20834 test -z "$ac_c_werror_flag" ||
20835 test ! -s conftest.err
20836 } && test -s conftest.$ac_objext; then
20837 ac_lo=$ac_mid; break
20838 else
20839 echo "$as_me: failed program was:" >&5
20840 sed 's/^/| /' conftest.$ac_ext >&5
20842 ac_hi=`expr '(' $ac_mid ')' - 1`
20843 if test $ac_mid -le $ac_hi; then
20844 ac_lo= ac_hi=
20845 break
20847 ac_mid=`expr 2 '*' $ac_mid`
20850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20851 done
20852 else
20853 echo "$as_me: failed program was:" >&5
20854 sed 's/^/| /' conftest.$ac_ext >&5
20856 ac_lo= ac_hi=
20859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20863 # Binary search between lo and hi bounds.
20864 while test "x$ac_lo" != "x$ac_hi"; do
20865 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20866 cat >conftest.$ac_ext <<_ACEOF
20867 /* confdefs.h. */
20868 _ACEOF
20869 cat confdefs.h >>conftest.$ac_ext
20870 cat >>conftest.$ac_ext <<_ACEOF
20871 /* end confdefs.h. */
20872 $ac_includes_default
20873 typedef size_t ac__type_sizeof_;
20875 main ()
20877 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20878 test_array [0] = 0
20881 return 0;
20883 _ACEOF
20884 rm -f conftest.$ac_objext
20885 if { (ac_try="$ac_compile"
20886 case "(($ac_try" in
20887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20888 *) ac_try_echo=$ac_try;;
20889 esac
20890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20891 (eval "$ac_compile") 2>conftest.er1
20892 ac_status=$?
20893 grep -v '^ *+' conftest.er1 >conftest.err
20894 rm -f conftest.er1
20895 cat conftest.err >&5
20896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20897 (exit $ac_status); } && {
20898 test -z "$ac_c_werror_flag" ||
20899 test ! -s conftest.err
20900 } && test -s conftest.$ac_objext; then
20901 ac_hi=$ac_mid
20902 else
20903 echo "$as_me: failed program was:" >&5
20904 sed 's/^/| /' conftest.$ac_ext >&5
20906 ac_lo=`expr '(' $ac_mid ')' + 1`
20909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20910 done
20911 case $ac_lo in
20912 ?*) ac_cv_sizeof_size_t=$ac_lo;;
20913 '') if test "$ac_cv_type_size_t" = yes; then
20914 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
20915 See \`config.log' for more details." >&5
20916 echo "$as_me: error: cannot compute sizeof (size_t)
20917 See \`config.log' for more details." >&2;}
20918 { (exit 77); exit 77; }; }
20919 else
20920 ac_cv_sizeof_size_t=0
20921 fi ;;
20922 esac
20923 else
20924 cat >conftest.$ac_ext <<_ACEOF
20925 /* confdefs.h. */
20926 _ACEOF
20927 cat confdefs.h >>conftest.$ac_ext
20928 cat >>conftest.$ac_ext <<_ACEOF
20929 /* end confdefs.h. */
20930 $ac_includes_default
20931 typedef size_t ac__type_sizeof_;
20932 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20933 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20934 #include <stdio.h>
20935 #include <stdlib.h>
20937 main ()
20940 FILE *f = fopen ("conftest.val", "w");
20941 if (! f)
20942 return 1;
20943 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20945 long int i = longval ();
20946 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20947 return 1;
20948 fprintf (f, "%ld\n", i);
20950 else
20952 unsigned long int i = ulongval ();
20953 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20954 return 1;
20955 fprintf (f, "%lu\n", i);
20957 return ferror (f) || fclose (f) != 0;
20960 return 0;
20962 _ACEOF
20963 rm -f conftest$ac_exeext
20964 if { (ac_try="$ac_link"
20965 case "(($ac_try" in
20966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20967 *) ac_try_echo=$ac_try;;
20968 esac
20969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20970 (eval "$ac_link") 2>&5
20971 ac_status=$?
20972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20974 { (case "(($ac_try" in
20975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20976 *) ac_try_echo=$ac_try;;
20977 esac
20978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20979 (eval "$ac_try") 2>&5
20980 ac_status=$?
20981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982 (exit $ac_status); }; }; then
20983 ac_cv_sizeof_size_t=`cat conftest.val`
20984 else
20985 echo "$as_me: program exited with status $ac_status" >&5
20986 echo "$as_me: failed program was:" >&5
20987 sed 's/^/| /' conftest.$ac_ext >&5
20989 ( exit $ac_status )
20990 if test "$ac_cv_type_size_t" = yes; then
20991 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
20992 See \`config.log' for more details." >&5
20993 echo "$as_me: error: cannot compute sizeof (size_t)
20994 See \`config.log' for more details." >&2;}
20995 { (exit 77); exit 77; }; }
20996 else
20997 ac_cv_sizeof_size_t=0
21000 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21002 rm -f conftest.val
21004 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
21005 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
21009 cat >>confdefs.h <<_ACEOF
21010 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21011 _ACEOF
21015 # Decide whether float4 is passed by value: user-selectable, enabled by default
21016 { echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
21017 echo $ECHO_N "checking whether to build with float4 passed by value... $ECHO_C" >&6; }
21019 pgac_args="$pgac_args enable_float4_byval"
21021 # Check whether --enable-float4-byval was given.
21022 if test "${enable_float4_byval+set}" = set; then
21023 enableval=$enable_float4_byval;
21024 case $enableval in
21025 yes)
21027 cat >>confdefs.h <<\_ACEOF
21028 #define USE_FLOAT4_BYVAL 1
21029 _ACEOF
21031 float4passbyval=true
21034 float4passbyval=false
21037 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
21038 echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
21039 { (exit 1); exit 1; }; }
21041 esac
21043 else
21044 enable_float4_byval=yes
21046 cat >>confdefs.h <<\_ACEOF
21047 #define USE_FLOAT4_BYVAL 1
21048 _ACEOF
21050 float4passbyval=true
21054 { echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
21055 echo "${ECHO_T}$enable_float4_byval" >&6; }
21057 cat >>confdefs.h <<_ACEOF
21058 #define FLOAT4PASSBYVAL $float4passbyval
21059 _ACEOF
21062 # Decide whether float8 is passed by value.
21063 # Note: this setting also controls int8 and related types such as timestamp.
21064 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
21065 # If not, trying to select it is an error.
21066 { echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
21067 echo $ECHO_N "checking whether to build with float8 passed by value... $ECHO_C" >&6; }
21068 if test $ac_cv_sizeof_unsigned_long -ge 8 ; then
21070 pgac_args="$pgac_args enable_float8_byval"
21072 # Check whether --enable-float8-byval was given.
21073 if test "${enable_float8_byval+set}" = set; then
21074 enableval=$enable_float8_byval;
21075 case $enableval in
21076 yes)
21083 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
21084 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
21085 { (exit 1); exit 1; }; }
21087 esac
21089 else
21090 enable_float8_byval=yes
21095 else
21097 pgac_args="$pgac_args enable_float8_byval"
21099 # Check whether --enable-float8-byval was given.
21100 if test "${enable_float8_byval+set}" = set; then
21101 enableval=$enable_float8_byval;
21102 case $enableval in
21103 yes)
21110 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
21111 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
21112 { (exit 1); exit 1; }; }
21114 esac
21116 else
21117 enable_float8_byval=no
21122 if test "$enable_float8_byval" = yes ; then
21123 { { echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
21124 echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
21125 { (exit 1); exit 1; }; }
21128 if test "$enable_float8_byval" = yes ; then
21130 cat >>confdefs.h <<\_ACEOF
21131 #define USE_FLOAT8_BYVAL 1
21132 _ACEOF
21134 float8passbyval=true
21135 else
21136 float8passbyval=false
21138 { echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
21139 echo "${ECHO_T}$enable_float8_byval" >&6; }
21141 cat >>confdefs.h <<_ACEOF
21142 #define FLOAT8PASSBYVAL $float8passbyval
21143 _ACEOF
21146 # Determine memory alignment requirements for the basic C data types.
21148 { echo "$as_me:$LINENO: checking for short" >&5
21149 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
21150 if test "${ac_cv_type_short+set}" = set; then
21151 echo $ECHO_N "(cached) $ECHO_C" >&6
21152 else
21153 cat >conftest.$ac_ext <<_ACEOF
21154 /* confdefs.h. */
21155 _ACEOF
21156 cat confdefs.h >>conftest.$ac_ext
21157 cat >>conftest.$ac_ext <<_ACEOF
21158 /* end confdefs.h. */
21159 $ac_includes_default
21160 typedef short ac__type_new_;
21162 main ()
21164 if ((ac__type_new_ *) 0)
21165 return 0;
21166 if (sizeof (ac__type_new_))
21167 return 0;
21169 return 0;
21171 _ACEOF
21172 rm -f conftest.$ac_objext
21173 if { (ac_try="$ac_compile"
21174 case "(($ac_try" in
21175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21176 *) ac_try_echo=$ac_try;;
21177 esac
21178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21179 (eval "$ac_compile") 2>conftest.er1
21180 ac_status=$?
21181 grep -v '^ *+' conftest.er1 >conftest.err
21182 rm -f conftest.er1
21183 cat conftest.err >&5
21184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185 (exit $ac_status); } && {
21186 test -z "$ac_c_werror_flag" ||
21187 test ! -s conftest.err
21188 } && test -s conftest.$ac_objext; then
21189 ac_cv_type_short=yes
21190 else
21191 echo "$as_me: failed program was:" >&5
21192 sed 's/^/| /' conftest.$ac_ext >&5
21194 ac_cv_type_short=no
21197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21199 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
21200 echo "${ECHO_T}$ac_cv_type_short" >&6; }
21202 # The cast to long int works around a bug in the HP C Compiler,
21203 # see AC_CHECK_SIZEOF for more information.
21204 { echo "$as_me:$LINENO: checking alignment of short" >&5
21205 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6; }
21206 if test "${ac_cv_alignof_short+set}" = set; then
21207 echo $ECHO_N "(cached) $ECHO_C" >&6
21208 else
21209 if test "$cross_compiling" = yes; then
21210 # Depending upon the size, compute the lo and hi bounds.
21211 cat >conftest.$ac_ext <<_ACEOF
21212 /* confdefs.h. */
21213 _ACEOF
21214 cat confdefs.h >>conftest.$ac_ext
21215 cat >>conftest.$ac_ext <<_ACEOF
21216 /* end confdefs.h. */
21217 $ac_includes_default
21218 #ifndef offsetof
21219 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21220 #endif
21221 typedef struct { char x; short y; } ac__type_alignof_;
21223 main ()
21225 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
21226 test_array [0] = 0
21229 return 0;
21231 _ACEOF
21232 rm -f conftest.$ac_objext
21233 if { (ac_try="$ac_compile"
21234 case "(($ac_try" in
21235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21236 *) ac_try_echo=$ac_try;;
21237 esac
21238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21239 (eval "$ac_compile") 2>conftest.er1
21240 ac_status=$?
21241 grep -v '^ *+' conftest.er1 >conftest.err
21242 rm -f conftest.er1
21243 cat conftest.err >&5
21244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245 (exit $ac_status); } && {
21246 test -z "$ac_c_werror_flag" ||
21247 test ! -s conftest.err
21248 } && test -s conftest.$ac_objext; then
21249 ac_lo=0 ac_mid=0
21250 while :; do
21251 cat >conftest.$ac_ext <<_ACEOF
21252 /* confdefs.h. */
21253 _ACEOF
21254 cat confdefs.h >>conftest.$ac_ext
21255 cat >>conftest.$ac_ext <<_ACEOF
21256 /* end confdefs.h. */
21257 $ac_includes_default
21258 #ifndef offsetof
21259 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21260 #endif
21261 typedef struct { char x; short y; } ac__type_alignof_;
21263 main ()
21265 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21266 test_array [0] = 0
21269 return 0;
21271 _ACEOF
21272 rm -f conftest.$ac_objext
21273 if { (ac_try="$ac_compile"
21274 case "(($ac_try" in
21275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21276 *) ac_try_echo=$ac_try;;
21277 esac
21278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21279 (eval "$ac_compile") 2>conftest.er1
21280 ac_status=$?
21281 grep -v '^ *+' conftest.er1 >conftest.err
21282 rm -f conftest.er1
21283 cat conftest.err >&5
21284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21285 (exit $ac_status); } && {
21286 test -z "$ac_c_werror_flag" ||
21287 test ! -s conftest.err
21288 } && test -s conftest.$ac_objext; then
21289 ac_hi=$ac_mid; break
21290 else
21291 echo "$as_me: failed program was:" >&5
21292 sed 's/^/| /' conftest.$ac_ext >&5
21294 ac_lo=`expr $ac_mid + 1`
21295 if test $ac_lo -le $ac_mid; then
21296 ac_lo= ac_hi=
21297 break
21299 ac_mid=`expr 2 '*' $ac_mid + 1`
21302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21303 done
21304 else
21305 echo "$as_me: failed program was:" >&5
21306 sed 's/^/| /' conftest.$ac_ext >&5
21308 cat >conftest.$ac_ext <<_ACEOF
21309 /* confdefs.h. */
21310 _ACEOF
21311 cat confdefs.h >>conftest.$ac_ext
21312 cat >>conftest.$ac_ext <<_ACEOF
21313 /* end confdefs.h. */
21314 $ac_includes_default
21315 #ifndef offsetof
21316 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21317 #endif
21318 typedef struct { char x; short y; } ac__type_alignof_;
21320 main ()
21322 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
21323 test_array [0] = 0
21326 return 0;
21328 _ACEOF
21329 rm -f conftest.$ac_objext
21330 if { (ac_try="$ac_compile"
21331 case "(($ac_try" in
21332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21333 *) ac_try_echo=$ac_try;;
21334 esac
21335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21336 (eval "$ac_compile") 2>conftest.er1
21337 ac_status=$?
21338 grep -v '^ *+' conftest.er1 >conftest.err
21339 rm -f conftest.er1
21340 cat conftest.err >&5
21341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342 (exit $ac_status); } && {
21343 test -z "$ac_c_werror_flag" ||
21344 test ! -s conftest.err
21345 } && test -s conftest.$ac_objext; then
21346 ac_hi=-1 ac_mid=-1
21347 while :; do
21348 cat >conftest.$ac_ext <<_ACEOF
21349 /* confdefs.h. */
21350 _ACEOF
21351 cat confdefs.h >>conftest.$ac_ext
21352 cat >>conftest.$ac_ext <<_ACEOF
21353 /* end confdefs.h. */
21354 $ac_includes_default
21355 #ifndef offsetof
21356 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21357 #endif
21358 typedef struct { char x; short y; } ac__type_alignof_;
21360 main ()
21362 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
21363 test_array [0] = 0
21366 return 0;
21368 _ACEOF
21369 rm -f conftest.$ac_objext
21370 if { (ac_try="$ac_compile"
21371 case "(($ac_try" in
21372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21373 *) ac_try_echo=$ac_try;;
21374 esac
21375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21376 (eval "$ac_compile") 2>conftest.er1
21377 ac_status=$?
21378 grep -v '^ *+' conftest.er1 >conftest.err
21379 rm -f conftest.er1
21380 cat conftest.err >&5
21381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21382 (exit $ac_status); } && {
21383 test -z "$ac_c_werror_flag" ||
21384 test ! -s conftest.err
21385 } && test -s conftest.$ac_objext; then
21386 ac_lo=$ac_mid; break
21387 else
21388 echo "$as_me: failed program was:" >&5
21389 sed 's/^/| /' conftest.$ac_ext >&5
21391 ac_hi=`expr '(' $ac_mid ')' - 1`
21392 if test $ac_mid -le $ac_hi; then
21393 ac_lo= ac_hi=
21394 break
21396 ac_mid=`expr 2 '*' $ac_mid`
21399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21400 done
21401 else
21402 echo "$as_me: failed program was:" >&5
21403 sed 's/^/| /' conftest.$ac_ext >&5
21405 ac_lo= ac_hi=
21408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21412 # Binary search between lo and hi bounds.
21413 while test "x$ac_lo" != "x$ac_hi"; do
21414 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21415 cat >conftest.$ac_ext <<_ACEOF
21416 /* confdefs.h. */
21417 _ACEOF
21418 cat confdefs.h >>conftest.$ac_ext
21419 cat >>conftest.$ac_ext <<_ACEOF
21420 /* end confdefs.h. */
21421 $ac_includes_default
21422 #ifndef offsetof
21423 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21424 #endif
21425 typedef struct { char x; short y; } ac__type_alignof_;
21427 main ()
21429 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21430 test_array [0] = 0
21433 return 0;
21435 _ACEOF
21436 rm -f conftest.$ac_objext
21437 if { (ac_try="$ac_compile"
21438 case "(($ac_try" in
21439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21440 *) ac_try_echo=$ac_try;;
21441 esac
21442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21443 (eval "$ac_compile") 2>conftest.er1
21444 ac_status=$?
21445 grep -v '^ *+' conftest.er1 >conftest.err
21446 rm -f conftest.er1
21447 cat conftest.err >&5
21448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449 (exit $ac_status); } && {
21450 test -z "$ac_c_werror_flag" ||
21451 test ! -s conftest.err
21452 } && test -s conftest.$ac_objext; then
21453 ac_hi=$ac_mid
21454 else
21455 echo "$as_me: failed program was:" >&5
21456 sed 's/^/| /' conftest.$ac_ext >&5
21458 ac_lo=`expr '(' $ac_mid ')' + 1`
21461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21462 done
21463 case $ac_lo in
21464 ?*) ac_cv_alignof_short=$ac_lo;;
21465 '') if test "$ac_cv_type_short" = yes; then
21466 { { echo "$as_me:$LINENO: error: cannot compute alignment of short
21467 See \`config.log' for more details." >&5
21468 echo "$as_me: error: cannot compute alignment of short
21469 See \`config.log' for more details." >&2;}
21470 { (exit 77); exit 77; }; }
21471 else
21472 ac_cv_alignof_short=0
21473 fi ;;
21474 esac
21475 else
21476 cat >conftest.$ac_ext <<_ACEOF
21477 /* confdefs.h. */
21478 _ACEOF
21479 cat confdefs.h >>conftest.$ac_ext
21480 cat >>conftest.$ac_ext <<_ACEOF
21481 /* end confdefs.h. */
21482 $ac_includes_default
21483 #ifndef offsetof
21484 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21485 #endif
21486 typedef struct { char x; short y; } ac__type_alignof_;
21487 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
21488 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
21489 #include <stdio.h>
21490 #include <stdlib.h>
21492 main ()
21495 FILE *f = fopen ("conftest.val", "w");
21496 if (! f)
21497 return 1;
21498 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
21500 long int i = longval ();
21501 if (i != ((long int) offsetof (ac__type_alignof_, y)))
21502 return 1;
21503 fprintf (f, "%ld\n", i);
21505 else
21507 unsigned long int i = ulongval ();
21508 if (i != ((long int) offsetof (ac__type_alignof_, y)))
21509 return 1;
21510 fprintf (f, "%lu\n", i);
21512 return ferror (f) || fclose (f) != 0;
21515 return 0;
21517 _ACEOF
21518 rm -f conftest$ac_exeext
21519 if { (ac_try="$ac_link"
21520 case "(($ac_try" in
21521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21522 *) ac_try_echo=$ac_try;;
21523 esac
21524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21525 (eval "$ac_link") 2>&5
21526 ac_status=$?
21527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21528 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21529 { (case "(($ac_try" in
21530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21531 *) ac_try_echo=$ac_try;;
21532 esac
21533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21534 (eval "$ac_try") 2>&5
21535 ac_status=$?
21536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537 (exit $ac_status); }; }; then
21538 ac_cv_alignof_short=`cat conftest.val`
21539 else
21540 echo "$as_me: program exited with status $ac_status" >&5
21541 echo "$as_me: failed program was:" >&5
21542 sed 's/^/| /' conftest.$ac_ext >&5
21544 ( exit $ac_status )
21545 if test "$ac_cv_type_short" = yes; then
21546 { { echo "$as_me:$LINENO: error: cannot compute alignment of short
21547 See \`config.log' for more details." >&5
21548 echo "$as_me: error: cannot compute alignment of short
21549 See \`config.log' for more details." >&2;}
21550 { (exit 77); exit 77; }; }
21551 else
21552 ac_cv_alignof_short=0
21555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21557 rm -f conftest.val
21559 { echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
21560 echo "${ECHO_T}$ac_cv_alignof_short" >&6; }
21564 cat >>confdefs.h <<_ACEOF
21565 #define ALIGNOF_SHORT $ac_cv_alignof_short
21566 _ACEOF
21569 { echo "$as_me:$LINENO: checking for int" >&5
21570 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
21571 if test "${ac_cv_type_int+set}" = set; then
21572 echo $ECHO_N "(cached) $ECHO_C" >&6
21573 else
21574 cat >conftest.$ac_ext <<_ACEOF
21575 /* confdefs.h. */
21576 _ACEOF
21577 cat confdefs.h >>conftest.$ac_ext
21578 cat >>conftest.$ac_ext <<_ACEOF
21579 /* end confdefs.h. */
21580 $ac_includes_default
21581 typedef int ac__type_new_;
21583 main ()
21585 if ((ac__type_new_ *) 0)
21586 return 0;
21587 if (sizeof (ac__type_new_))
21588 return 0;
21590 return 0;
21592 _ACEOF
21593 rm -f conftest.$ac_objext
21594 if { (ac_try="$ac_compile"
21595 case "(($ac_try" in
21596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21597 *) ac_try_echo=$ac_try;;
21598 esac
21599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21600 (eval "$ac_compile") 2>conftest.er1
21601 ac_status=$?
21602 grep -v '^ *+' conftest.er1 >conftest.err
21603 rm -f conftest.er1
21604 cat conftest.err >&5
21605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21606 (exit $ac_status); } && {
21607 test -z "$ac_c_werror_flag" ||
21608 test ! -s conftest.err
21609 } && test -s conftest.$ac_objext; then
21610 ac_cv_type_int=yes
21611 else
21612 echo "$as_me: failed program was:" >&5
21613 sed 's/^/| /' conftest.$ac_ext >&5
21615 ac_cv_type_int=no
21618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21620 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
21621 echo "${ECHO_T}$ac_cv_type_int" >&6; }
21623 # The cast to long int works around a bug in the HP C Compiler,
21624 # see AC_CHECK_SIZEOF for more information.
21625 { echo "$as_me:$LINENO: checking alignment of int" >&5
21626 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6; }
21627 if test "${ac_cv_alignof_int+set}" = set; then
21628 echo $ECHO_N "(cached) $ECHO_C" >&6
21629 else
21630 if test "$cross_compiling" = yes; then
21631 # Depending upon the size, compute the lo and hi bounds.
21632 cat >conftest.$ac_ext <<_ACEOF
21633 /* confdefs.h. */
21634 _ACEOF
21635 cat confdefs.h >>conftest.$ac_ext
21636 cat >>conftest.$ac_ext <<_ACEOF
21637 /* end confdefs.h. */
21638 $ac_includes_default
21639 #ifndef offsetof
21640 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21641 #endif
21642 typedef struct { char x; int y; } ac__type_alignof_;
21644 main ()
21646 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
21647 test_array [0] = 0
21650 return 0;
21652 _ACEOF
21653 rm -f conftest.$ac_objext
21654 if { (ac_try="$ac_compile"
21655 case "(($ac_try" in
21656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21657 *) ac_try_echo=$ac_try;;
21658 esac
21659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21660 (eval "$ac_compile") 2>conftest.er1
21661 ac_status=$?
21662 grep -v '^ *+' conftest.er1 >conftest.err
21663 rm -f conftest.er1
21664 cat conftest.err >&5
21665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666 (exit $ac_status); } && {
21667 test -z "$ac_c_werror_flag" ||
21668 test ! -s conftest.err
21669 } && test -s conftest.$ac_objext; then
21670 ac_lo=0 ac_mid=0
21671 while :; do
21672 cat >conftest.$ac_ext <<_ACEOF
21673 /* confdefs.h. */
21674 _ACEOF
21675 cat confdefs.h >>conftest.$ac_ext
21676 cat >>conftest.$ac_ext <<_ACEOF
21677 /* end confdefs.h. */
21678 $ac_includes_default
21679 #ifndef offsetof
21680 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21681 #endif
21682 typedef struct { char x; int y; } ac__type_alignof_;
21684 main ()
21686 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21687 test_array [0] = 0
21690 return 0;
21692 _ACEOF
21693 rm -f conftest.$ac_objext
21694 if { (ac_try="$ac_compile"
21695 case "(($ac_try" in
21696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21697 *) ac_try_echo=$ac_try;;
21698 esac
21699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21700 (eval "$ac_compile") 2>conftest.er1
21701 ac_status=$?
21702 grep -v '^ *+' conftest.er1 >conftest.err
21703 rm -f conftest.er1
21704 cat conftest.err >&5
21705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21706 (exit $ac_status); } && {
21707 test -z "$ac_c_werror_flag" ||
21708 test ! -s conftest.err
21709 } && test -s conftest.$ac_objext; then
21710 ac_hi=$ac_mid; break
21711 else
21712 echo "$as_me: failed program was:" >&5
21713 sed 's/^/| /' conftest.$ac_ext >&5
21715 ac_lo=`expr $ac_mid + 1`
21716 if test $ac_lo -le $ac_mid; then
21717 ac_lo= ac_hi=
21718 break
21720 ac_mid=`expr 2 '*' $ac_mid + 1`
21723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21724 done
21725 else
21726 echo "$as_me: failed program was:" >&5
21727 sed 's/^/| /' conftest.$ac_ext >&5
21729 cat >conftest.$ac_ext <<_ACEOF
21730 /* confdefs.h. */
21731 _ACEOF
21732 cat confdefs.h >>conftest.$ac_ext
21733 cat >>conftest.$ac_ext <<_ACEOF
21734 /* end confdefs.h. */
21735 $ac_includes_default
21736 #ifndef offsetof
21737 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21738 #endif
21739 typedef struct { char x; int y; } ac__type_alignof_;
21741 main ()
21743 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
21744 test_array [0] = 0
21747 return 0;
21749 _ACEOF
21750 rm -f conftest.$ac_objext
21751 if { (ac_try="$ac_compile"
21752 case "(($ac_try" in
21753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21754 *) ac_try_echo=$ac_try;;
21755 esac
21756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21757 (eval "$ac_compile") 2>conftest.er1
21758 ac_status=$?
21759 grep -v '^ *+' conftest.er1 >conftest.err
21760 rm -f conftest.er1
21761 cat conftest.err >&5
21762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763 (exit $ac_status); } && {
21764 test -z "$ac_c_werror_flag" ||
21765 test ! -s conftest.err
21766 } && test -s conftest.$ac_objext; then
21767 ac_hi=-1 ac_mid=-1
21768 while :; do
21769 cat >conftest.$ac_ext <<_ACEOF
21770 /* confdefs.h. */
21771 _ACEOF
21772 cat confdefs.h >>conftest.$ac_ext
21773 cat >>conftest.$ac_ext <<_ACEOF
21774 /* end confdefs.h. */
21775 $ac_includes_default
21776 #ifndef offsetof
21777 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21778 #endif
21779 typedef struct { char x; int y; } ac__type_alignof_;
21781 main ()
21783 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
21784 test_array [0] = 0
21787 return 0;
21789 _ACEOF
21790 rm -f conftest.$ac_objext
21791 if { (ac_try="$ac_compile"
21792 case "(($ac_try" in
21793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21794 *) ac_try_echo=$ac_try;;
21795 esac
21796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21797 (eval "$ac_compile") 2>conftest.er1
21798 ac_status=$?
21799 grep -v '^ *+' conftest.er1 >conftest.err
21800 rm -f conftest.er1
21801 cat conftest.err >&5
21802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21803 (exit $ac_status); } && {
21804 test -z "$ac_c_werror_flag" ||
21805 test ! -s conftest.err
21806 } && test -s conftest.$ac_objext; then
21807 ac_lo=$ac_mid; break
21808 else
21809 echo "$as_me: failed program was:" >&5
21810 sed 's/^/| /' conftest.$ac_ext >&5
21812 ac_hi=`expr '(' $ac_mid ')' - 1`
21813 if test $ac_mid -le $ac_hi; then
21814 ac_lo= ac_hi=
21815 break
21817 ac_mid=`expr 2 '*' $ac_mid`
21820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21821 done
21822 else
21823 echo "$as_me: failed program was:" >&5
21824 sed 's/^/| /' conftest.$ac_ext >&5
21826 ac_lo= ac_hi=
21829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21833 # Binary search between lo and hi bounds.
21834 while test "x$ac_lo" != "x$ac_hi"; do
21835 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21836 cat >conftest.$ac_ext <<_ACEOF
21837 /* confdefs.h. */
21838 _ACEOF
21839 cat confdefs.h >>conftest.$ac_ext
21840 cat >>conftest.$ac_ext <<_ACEOF
21841 /* end confdefs.h. */
21842 $ac_includes_default
21843 #ifndef offsetof
21844 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21845 #endif
21846 typedef struct { char x; int y; } ac__type_alignof_;
21848 main ()
21850 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21851 test_array [0] = 0
21854 return 0;
21856 _ACEOF
21857 rm -f conftest.$ac_objext
21858 if { (ac_try="$ac_compile"
21859 case "(($ac_try" in
21860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21861 *) ac_try_echo=$ac_try;;
21862 esac
21863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21864 (eval "$ac_compile") 2>conftest.er1
21865 ac_status=$?
21866 grep -v '^ *+' conftest.er1 >conftest.err
21867 rm -f conftest.er1
21868 cat conftest.err >&5
21869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870 (exit $ac_status); } && {
21871 test -z "$ac_c_werror_flag" ||
21872 test ! -s conftest.err
21873 } && test -s conftest.$ac_objext; then
21874 ac_hi=$ac_mid
21875 else
21876 echo "$as_me: failed program was:" >&5
21877 sed 's/^/| /' conftest.$ac_ext >&5
21879 ac_lo=`expr '(' $ac_mid ')' + 1`
21882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21883 done
21884 case $ac_lo in
21885 ?*) ac_cv_alignof_int=$ac_lo;;
21886 '') if test "$ac_cv_type_int" = yes; then
21887 { { echo "$as_me:$LINENO: error: cannot compute alignment of int
21888 See \`config.log' for more details." >&5
21889 echo "$as_me: error: cannot compute alignment of int
21890 See \`config.log' for more details." >&2;}
21891 { (exit 77); exit 77; }; }
21892 else
21893 ac_cv_alignof_int=0
21894 fi ;;
21895 esac
21896 else
21897 cat >conftest.$ac_ext <<_ACEOF
21898 /* confdefs.h. */
21899 _ACEOF
21900 cat confdefs.h >>conftest.$ac_ext
21901 cat >>conftest.$ac_ext <<_ACEOF
21902 /* end confdefs.h. */
21903 $ac_includes_default
21904 #ifndef offsetof
21905 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21906 #endif
21907 typedef struct { char x; int y; } ac__type_alignof_;
21908 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
21909 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
21910 #include <stdio.h>
21911 #include <stdlib.h>
21913 main ()
21916 FILE *f = fopen ("conftest.val", "w");
21917 if (! f)
21918 return 1;
21919 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
21921 long int i = longval ();
21922 if (i != ((long int) offsetof (ac__type_alignof_, y)))
21923 return 1;
21924 fprintf (f, "%ld\n", i);
21926 else
21928 unsigned long int i = ulongval ();
21929 if (i != ((long int) offsetof (ac__type_alignof_, y)))
21930 return 1;
21931 fprintf (f, "%lu\n", i);
21933 return ferror (f) || fclose (f) != 0;
21936 return 0;
21938 _ACEOF
21939 rm -f conftest$ac_exeext
21940 if { (ac_try="$ac_link"
21941 case "(($ac_try" in
21942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21943 *) ac_try_echo=$ac_try;;
21944 esac
21945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21946 (eval "$ac_link") 2>&5
21947 ac_status=$?
21948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21949 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21950 { (case "(($ac_try" in
21951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21952 *) ac_try_echo=$ac_try;;
21953 esac
21954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21955 (eval "$ac_try") 2>&5
21956 ac_status=$?
21957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21958 (exit $ac_status); }; }; then
21959 ac_cv_alignof_int=`cat conftest.val`
21960 else
21961 echo "$as_me: program exited with status $ac_status" >&5
21962 echo "$as_me: failed program was:" >&5
21963 sed 's/^/| /' conftest.$ac_ext >&5
21965 ( exit $ac_status )
21966 if test "$ac_cv_type_int" = yes; then
21967 { { echo "$as_me:$LINENO: error: cannot compute alignment of int
21968 See \`config.log' for more details." >&5
21969 echo "$as_me: error: cannot compute alignment of int
21970 See \`config.log' for more details." >&2;}
21971 { (exit 77); exit 77; }; }
21972 else
21973 ac_cv_alignof_int=0
21976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21978 rm -f conftest.val
21980 { echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
21981 echo "${ECHO_T}$ac_cv_alignof_int" >&6; }
21985 cat >>confdefs.h <<_ACEOF
21986 #define ALIGNOF_INT $ac_cv_alignof_int
21987 _ACEOF
21990 { echo "$as_me:$LINENO: checking for long" >&5
21991 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
21992 if test "${ac_cv_type_long+set}" = set; then
21993 echo $ECHO_N "(cached) $ECHO_C" >&6
21994 else
21995 cat >conftest.$ac_ext <<_ACEOF
21996 /* confdefs.h. */
21997 _ACEOF
21998 cat confdefs.h >>conftest.$ac_ext
21999 cat >>conftest.$ac_ext <<_ACEOF
22000 /* end confdefs.h. */
22001 $ac_includes_default
22002 typedef long ac__type_new_;
22004 main ()
22006 if ((ac__type_new_ *) 0)
22007 return 0;
22008 if (sizeof (ac__type_new_))
22009 return 0;
22011 return 0;
22013 _ACEOF
22014 rm -f conftest.$ac_objext
22015 if { (ac_try="$ac_compile"
22016 case "(($ac_try" in
22017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22018 *) ac_try_echo=$ac_try;;
22019 esac
22020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22021 (eval "$ac_compile") 2>conftest.er1
22022 ac_status=$?
22023 grep -v '^ *+' conftest.er1 >conftest.err
22024 rm -f conftest.er1
22025 cat conftest.err >&5
22026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22027 (exit $ac_status); } && {
22028 test -z "$ac_c_werror_flag" ||
22029 test ! -s conftest.err
22030 } && test -s conftest.$ac_objext; then
22031 ac_cv_type_long=yes
22032 else
22033 echo "$as_me: failed program was:" >&5
22034 sed 's/^/| /' conftest.$ac_ext >&5
22036 ac_cv_type_long=no
22039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22041 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
22042 echo "${ECHO_T}$ac_cv_type_long" >&6; }
22044 # The cast to long int works around a bug in the HP C Compiler,
22045 # see AC_CHECK_SIZEOF for more information.
22046 { echo "$as_me:$LINENO: checking alignment of long" >&5
22047 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6; }
22048 if test "${ac_cv_alignof_long+set}" = set; then
22049 echo $ECHO_N "(cached) $ECHO_C" >&6
22050 else
22051 if test "$cross_compiling" = yes; then
22052 # Depending upon the size, compute the lo and hi bounds.
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 #ifndef offsetof
22061 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22062 #endif
22063 typedef struct { char x; long y; } ac__type_alignof_;
22065 main ()
22067 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22068 test_array [0] = 0
22071 return 0;
22073 _ACEOF
22074 rm -f conftest.$ac_objext
22075 if { (ac_try="$ac_compile"
22076 case "(($ac_try" in
22077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22078 *) ac_try_echo=$ac_try;;
22079 esac
22080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22081 (eval "$ac_compile") 2>conftest.er1
22082 ac_status=$?
22083 grep -v '^ *+' conftest.er1 >conftest.err
22084 rm -f conftest.er1
22085 cat conftest.err >&5
22086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22087 (exit $ac_status); } && {
22088 test -z "$ac_c_werror_flag" ||
22089 test ! -s conftest.err
22090 } && test -s conftest.$ac_objext; then
22091 ac_lo=0 ac_mid=0
22092 while :; do
22093 cat >conftest.$ac_ext <<_ACEOF
22094 /* confdefs.h. */
22095 _ACEOF
22096 cat confdefs.h >>conftest.$ac_ext
22097 cat >>conftest.$ac_ext <<_ACEOF
22098 /* end confdefs.h. */
22099 $ac_includes_default
22100 #ifndef offsetof
22101 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22102 #endif
22103 typedef struct { char x; long y; } ac__type_alignof_;
22105 main ()
22107 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22108 test_array [0] = 0
22111 return 0;
22113 _ACEOF
22114 rm -f conftest.$ac_objext
22115 if { (ac_try="$ac_compile"
22116 case "(($ac_try" in
22117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22118 *) ac_try_echo=$ac_try;;
22119 esac
22120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22121 (eval "$ac_compile") 2>conftest.er1
22122 ac_status=$?
22123 grep -v '^ *+' conftest.er1 >conftest.err
22124 rm -f conftest.er1
22125 cat conftest.err >&5
22126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127 (exit $ac_status); } && {
22128 test -z "$ac_c_werror_flag" ||
22129 test ! -s conftest.err
22130 } && test -s conftest.$ac_objext; then
22131 ac_hi=$ac_mid; break
22132 else
22133 echo "$as_me: failed program was:" >&5
22134 sed 's/^/| /' conftest.$ac_ext >&5
22136 ac_lo=`expr $ac_mid + 1`
22137 if test $ac_lo -le $ac_mid; then
22138 ac_lo= ac_hi=
22139 break
22141 ac_mid=`expr 2 '*' $ac_mid + 1`
22144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22145 done
22146 else
22147 echo "$as_me: failed program was:" >&5
22148 sed 's/^/| /' conftest.$ac_ext >&5
22150 cat >conftest.$ac_ext <<_ACEOF
22151 /* confdefs.h. */
22152 _ACEOF
22153 cat confdefs.h >>conftest.$ac_ext
22154 cat >>conftest.$ac_ext <<_ACEOF
22155 /* end confdefs.h. */
22156 $ac_includes_default
22157 #ifndef offsetof
22158 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22159 #endif
22160 typedef struct { char x; long y; } ac__type_alignof_;
22162 main ()
22164 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22165 test_array [0] = 0
22168 return 0;
22170 _ACEOF
22171 rm -f conftest.$ac_objext
22172 if { (ac_try="$ac_compile"
22173 case "(($ac_try" in
22174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22175 *) ac_try_echo=$ac_try;;
22176 esac
22177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22178 (eval "$ac_compile") 2>conftest.er1
22179 ac_status=$?
22180 grep -v '^ *+' conftest.er1 >conftest.err
22181 rm -f conftest.er1
22182 cat conftest.err >&5
22183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184 (exit $ac_status); } && {
22185 test -z "$ac_c_werror_flag" ||
22186 test ! -s conftest.err
22187 } && test -s conftest.$ac_objext; then
22188 ac_hi=-1 ac_mid=-1
22189 while :; do
22190 cat >conftest.$ac_ext <<_ACEOF
22191 /* confdefs.h. */
22192 _ACEOF
22193 cat confdefs.h >>conftest.$ac_ext
22194 cat >>conftest.$ac_ext <<_ACEOF
22195 /* end confdefs.h. */
22196 $ac_includes_default
22197 #ifndef offsetof
22198 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22199 #endif
22200 typedef struct { char x; long y; } ac__type_alignof_;
22202 main ()
22204 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22205 test_array [0] = 0
22208 return 0;
22210 _ACEOF
22211 rm -f conftest.$ac_objext
22212 if { (ac_try="$ac_compile"
22213 case "(($ac_try" in
22214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22215 *) ac_try_echo=$ac_try;;
22216 esac
22217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22218 (eval "$ac_compile") 2>conftest.er1
22219 ac_status=$?
22220 grep -v '^ *+' conftest.er1 >conftest.err
22221 rm -f conftest.er1
22222 cat conftest.err >&5
22223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22224 (exit $ac_status); } && {
22225 test -z "$ac_c_werror_flag" ||
22226 test ! -s conftest.err
22227 } && test -s conftest.$ac_objext; then
22228 ac_lo=$ac_mid; break
22229 else
22230 echo "$as_me: failed program was:" >&5
22231 sed 's/^/| /' conftest.$ac_ext >&5
22233 ac_hi=`expr '(' $ac_mid ')' - 1`
22234 if test $ac_mid -le $ac_hi; then
22235 ac_lo= ac_hi=
22236 break
22238 ac_mid=`expr 2 '*' $ac_mid`
22241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22242 done
22243 else
22244 echo "$as_me: failed program was:" >&5
22245 sed 's/^/| /' conftest.$ac_ext >&5
22247 ac_lo= ac_hi=
22250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22254 # Binary search between lo and hi bounds.
22255 while test "x$ac_lo" != "x$ac_hi"; do
22256 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22257 cat >conftest.$ac_ext <<_ACEOF
22258 /* confdefs.h. */
22259 _ACEOF
22260 cat confdefs.h >>conftest.$ac_ext
22261 cat >>conftest.$ac_ext <<_ACEOF
22262 /* end confdefs.h. */
22263 $ac_includes_default
22264 #ifndef offsetof
22265 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22266 #endif
22267 typedef struct { char x; long y; } ac__type_alignof_;
22269 main ()
22271 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22272 test_array [0] = 0
22275 return 0;
22277 _ACEOF
22278 rm -f conftest.$ac_objext
22279 if { (ac_try="$ac_compile"
22280 case "(($ac_try" in
22281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22282 *) ac_try_echo=$ac_try;;
22283 esac
22284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22285 (eval "$ac_compile") 2>conftest.er1
22286 ac_status=$?
22287 grep -v '^ *+' conftest.er1 >conftest.err
22288 rm -f conftest.er1
22289 cat conftest.err >&5
22290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22291 (exit $ac_status); } && {
22292 test -z "$ac_c_werror_flag" ||
22293 test ! -s conftest.err
22294 } && test -s conftest.$ac_objext; then
22295 ac_hi=$ac_mid
22296 else
22297 echo "$as_me: failed program was:" >&5
22298 sed 's/^/| /' conftest.$ac_ext >&5
22300 ac_lo=`expr '(' $ac_mid ')' + 1`
22303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22304 done
22305 case $ac_lo in
22306 ?*) ac_cv_alignof_long=$ac_lo;;
22307 '') if test "$ac_cv_type_long" = yes; then
22308 { { echo "$as_me:$LINENO: error: cannot compute alignment of long
22309 See \`config.log' for more details." >&5
22310 echo "$as_me: error: cannot compute alignment of long
22311 See \`config.log' for more details." >&2;}
22312 { (exit 77); exit 77; }; }
22313 else
22314 ac_cv_alignof_long=0
22315 fi ;;
22316 esac
22317 else
22318 cat >conftest.$ac_ext <<_ACEOF
22319 /* confdefs.h. */
22320 _ACEOF
22321 cat confdefs.h >>conftest.$ac_ext
22322 cat >>conftest.$ac_ext <<_ACEOF
22323 /* end confdefs.h. */
22324 $ac_includes_default
22325 #ifndef offsetof
22326 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22327 #endif
22328 typedef struct { char x; long y; } ac__type_alignof_;
22329 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22330 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22331 #include <stdio.h>
22332 #include <stdlib.h>
22334 main ()
22337 FILE *f = fopen ("conftest.val", "w");
22338 if (! f)
22339 return 1;
22340 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22342 long int i = longval ();
22343 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22344 return 1;
22345 fprintf (f, "%ld\n", i);
22347 else
22349 unsigned long int i = ulongval ();
22350 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22351 return 1;
22352 fprintf (f, "%lu\n", i);
22354 return ferror (f) || fclose (f) != 0;
22357 return 0;
22359 _ACEOF
22360 rm -f conftest$ac_exeext
22361 if { (ac_try="$ac_link"
22362 case "(($ac_try" in
22363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22364 *) ac_try_echo=$ac_try;;
22365 esac
22366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22367 (eval "$ac_link") 2>&5
22368 ac_status=$?
22369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22370 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22371 { (case "(($ac_try" in
22372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22373 *) ac_try_echo=$ac_try;;
22374 esac
22375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22376 (eval "$ac_try") 2>&5
22377 ac_status=$?
22378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22379 (exit $ac_status); }; }; then
22380 ac_cv_alignof_long=`cat conftest.val`
22381 else
22382 echo "$as_me: program exited with status $ac_status" >&5
22383 echo "$as_me: failed program was:" >&5
22384 sed 's/^/| /' conftest.$ac_ext >&5
22386 ( exit $ac_status )
22387 if test "$ac_cv_type_long" = yes; then
22388 { { echo "$as_me:$LINENO: error: cannot compute alignment of long
22389 See \`config.log' for more details." >&5
22390 echo "$as_me: error: cannot compute alignment of long
22391 See \`config.log' for more details." >&2;}
22392 { (exit 77); exit 77; }; }
22393 else
22394 ac_cv_alignof_long=0
22397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22399 rm -f conftest.val
22401 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
22402 echo "${ECHO_T}$ac_cv_alignof_long" >&6; }
22406 cat >>confdefs.h <<_ACEOF
22407 #define ALIGNOF_LONG $ac_cv_alignof_long
22408 _ACEOF
22411 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
22412 { echo "$as_me:$LINENO: checking for long long int" >&5
22413 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
22414 if test "${ac_cv_type_long_long_int+set}" = set; then
22415 echo $ECHO_N "(cached) $ECHO_C" >&6
22416 else
22417 cat >conftest.$ac_ext <<_ACEOF
22418 /* confdefs.h. */
22419 _ACEOF
22420 cat confdefs.h >>conftest.$ac_ext
22421 cat >>conftest.$ac_ext <<_ACEOF
22422 /* end confdefs.h. */
22423 $ac_includes_default
22424 typedef long long int ac__type_new_;
22426 main ()
22428 if ((ac__type_new_ *) 0)
22429 return 0;
22430 if (sizeof (ac__type_new_))
22431 return 0;
22433 return 0;
22435 _ACEOF
22436 rm -f conftest.$ac_objext
22437 if { (ac_try="$ac_compile"
22438 case "(($ac_try" in
22439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22440 *) ac_try_echo=$ac_try;;
22441 esac
22442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22443 (eval "$ac_compile") 2>conftest.er1
22444 ac_status=$?
22445 grep -v '^ *+' conftest.er1 >conftest.err
22446 rm -f conftest.er1
22447 cat conftest.err >&5
22448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22449 (exit $ac_status); } && {
22450 test -z "$ac_c_werror_flag" ||
22451 test ! -s conftest.err
22452 } && test -s conftest.$ac_objext; then
22453 ac_cv_type_long_long_int=yes
22454 else
22455 echo "$as_me: failed program was:" >&5
22456 sed 's/^/| /' conftest.$ac_ext >&5
22458 ac_cv_type_long_long_int=no
22461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22463 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
22464 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
22466 # The cast to long int works around a bug in the HP C Compiler,
22467 # see AC_CHECK_SIZEOF for more information.
22468 { echo "$as_me:$LINENO: checking alignment of long long int" >&5
22469 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6; }
22470 if test "${ac_cv_alignof_long_long_int+set}" = set; then
22471 echo $ECHO_N "(cached) $ECHO_C" >&6
22472 else
22473 if test "$cross_compiling" = yes; then
22474 # Depending upon the size, compute the lo and hi bounds.
22475 cat >conftest.$ac_ext <<_ACEOF
22476 /* confdefs.h. */
22477 _ACEOF
22478 cat confdefs.h >>conftest.$ac_ext
22479 cat >>conftest.$ac_ext <<_ACEOF
22480 /* end confdefs.h. */
22481 $ac_includes_default
22482 #ifndef offsetof
22483 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22484 #endif
22485 typedef struct { char x; long long int y; } ac__type_alignof_;
22487 main ()
22489 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22490 test_array [0] = 0
22493 return 0;
22495 _ACEOF
22496 rm -f conftest.$ac_objext
22497 if { (ac_try="$ac_compile"
22498 case "(($ac_try" in
22499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22500 *) ac_try_echo=$ac_try;;
22501 esac
22502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22503 (eval "$ac_compile") 2>conftest.er1
22504 ac_status=$?
22505 grep -v '^ *+' conftest.er1 >conftest.err
22506 rm -f conftest.er1
22507 cat conftest.err >&5
22508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22509 (exit $ac_status); } && {
22510 test -z "$ac_c_werror_flag" ||
22511 test ! -s conftest.err
22512 } && test -s conftest.$ac_objext; then
22513 ac_lo=0 ac_mid=0
22514 while :; do
22515 cat >conftest.$ac_ext <<_ACEOF
22516 /* confdefs.h. */
22517 _ACEOF
22518 cat confdefs.h >>conftest.$ac_ext
22519 cat >>conftest.$ac_ext <<_ACEOF
22520 /* end confdefs.h. */
22521 $ac_includes_default
22522 #ifndef offsetof
22523 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22524 #endif
22525 typedef struct { char x; long long int y; } ac__type_alignof_;
22527 main ()
22529 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22530 test_array [0] = 0
22533 return 0;
22535 _ACEOF
22536 rm -f conftest.$ac_objext
22537 if { (ac_try="$ac_compile"
22538 case "(($ac_try" in
22539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22540 *) ac_try_echo=$ac_try;;
22541 esac
22542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22543 (eval "$ac_compile") 2>conftest.er1
22544 ac_status=$?
22545 grep -v '^ *+' conftest.er1 >conftest.err
22546 rm -f conftest.er1
22547 cat conftest.err >&5
22548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22549 (exit $ac_status); } && {
22550 test -z "$ac_c_werror_flag" ||
22551 test ! -s conftest.err
22552 } && test -s conftest.$ac_objext; then
22553 ac_hi=$ac_mid; break
22554 else
22555 echo "$as_me: failed program was:" >&5
22556 sed 's/^/| /' conftest.$ac_ext >&5
22558 ac_lo=`expr $ac_mid + 1`
22559 if test $ac_lo -le $ac_mid; then
22560 ac_lo= ac_hi=
22561 break
22563 ac_mid=`expr 2 '*' $ac_mid + 1`
22566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22567 done
22568 else
22569 echo "$as_me: failed program was:" >&5
22570 sed 's/^/| /' conftest.$ac_ext >&5
22572 cat >conftest.$ac_ext <<_ACEOF
22573 /* confdefs.h. */
22574 _ACEOF
22575 cat confdefs.h >>conftest.$ac_ext
22576 cat >>conftest.$ac_ext <<_ACEOF
22577 /* end confdefs.h. */
22578 $ac_includes_default
22579 #ifndef offsetof
22580 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22581 #endif
22582 typedef struct { char x; long long int y; } ac__type_alignof_;
22584 main ()
22586 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22587 test_array [0] = 0
22590 return 0;
22592 _ACEOF
22593 rm -f conftest.$ac_objext
22594 if { (ac_try="$ac_compile"
22595 case "(($ac_try" in
22596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22597 *) ac_try_echo=$ac_try;;
22598 esac
22599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22600 (eval "$ac_compile") 2>conftest.er1
22601 ac_status=$?
22602 grep -v '^ *+' conftest.er1 >conftest.err
22603 rm -f conftest.er1
22604 cat conftest.err >&5
22605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22606 (exit $ac_status); } && {
22607 test -z "$ac_c_werror_flag" ||
22608 test ! -s conftest.err
22609 } && test -s conftest.$ac_objext; then
22610 ac_hi=-1 ac_mid=-1
22611 while :; do
22612 cat >conftest.$ac_ext <<_ACEOF
22613 /* confdefs.h. */
22614 _ACEOF
22615 cat confdefs.h >>conftest.$ac_ext
22616 cat >>conftest.$ac_ext <<_ACEOF
22617 /* end confdefs.h. */
22618 $ac_includes_default
22619 #ifndef offsetof
22620 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22621 #endif
22622 typedef struct { char x; long long int y; } ac__type_alignof_;
22624 main ()
22626 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22627 test_array [0] = 0
22630 return 0;
22632 _ACEOF
22633 rm -f conftest.$ac_objext
22634 if { (ac_try="$ac_compile"
22635 case "(($ac_try" in
22636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22637 *) ac_try_echo=$ac_try;;
22638 esac
22639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22640 (eval "$ac_compile") 2>conftest.er1
22641 ac_status=$?
22642 grep -v '^ *+' conftest.er1 >conftest.err
22643 rm -f conftest.er1
22644 cat conftest.err >&5
22645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22646 (exit $ac_status); } && {
22647 test -z "$ac_c_werror_flag" ||
22648 test ! -s conftest.err
22649 } && test -s conftest.$ac_objext; then
22650 ac_lo=$ac_mid; break
22651 else
22652 echo "$as_me: failed program was:" >&5
22653 sed 's/^/| /' conftest.$ac_ext >&5
22655 ac_hi=`expr '(' $ac_mid ')' - 1`
22656 if test $ac_mid -le $ac_hi; then
22657 ac_lo= ac_hi=
22658 break
22660 ac_mid=`expr 2 '*' $ac_mid`
22663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22664 done
22665 else
22666 echo "$as_me: failed program was:" >&5
22667 sed 's/^/| /' conftest.$ac_ext >&5
22669 ac_lo= ac_hi=
22672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22676 # Binary search between lo and hi bounds.
22677 while test "x$ac_lo" != "x$ac_hi"; do
22678 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22679 cat >conftest.$ac_ext <<_ACEOF
22680 /* confdefs.h. */
22681 _ACEOF
22682 cat confdefs.h >>conftest.$ac_ext
22683 cat >>conftest.$ac_ext <<_ACEOF
22684 /* end confdefs.h. */
22685 $ac_includes_default
22686 #ifndef offsetof
22687 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22688 #endif
22689 typedef struct { char x; long long int y; } ac__type_alignof_;
22691 main ()
22693 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22694 test_array [0] = 0
22697 return 0;
22699 _ACEOF
22700 rm -f conftest.$ac_objext
22701 if { (ac_try="$ac_compile"
22702 case "(($ac_try" in
22703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22704 *) ac_try_echo=$ac_try;;
22705 esac
22706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22707 (eval "$ac_compile") 2>conftest.er1
22708 ac_status=$?
22709 grep -v '^ *+' conftest.er1 >conftest.err
22710 rm -f conftest.er1
22711 cat conftest.err >&5
22712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22713 (exit $ac_status); } && {
22714 test -z "$ac_c_werror_flag" ||
22715 test ! -s conftest.err
22716 } && test -s conftest.$ac_objext; then
22717 ac_hi=$ac_mid
22718 else
22719 echo "$as_me: failed program was:" >&5
22720 sed 's/^/| /' conftest.$ac_ext >&5
22722 ac_lo=`expr '(' $ac_mid ')' + 1`
22725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22726 done
22727 case $ac_lo in
22728 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
22729 '') if test "$ac_cv_type_long_long_int" = yes; then
22730 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
22731 See \`config.log' for more details." >&5
22732 echo "$as_me: error: cannot compute alignment of long long int
22733 See \`config.log' for more details." >&2;}
22734 { (exit 77); exit 77; }; }
22735 else
22736 ac_cv_alignof_long_long_int=0
22737 fi ;;
22738 esac
22739 else
22740 cat >conftest.$ac_ext <<_ACEOF
22741 /* confdefs.h. */
22742 _ACEOF
22743 cat confdefs.h >>conftest.$ac_ext
22744 cat >>conftest.$ac_ext <<_ACEOF
22745 /* end confdefs.h. */
22746 $ac_includes_default
22747 #ifndef offsetof
22748 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22749 #endif
22750 typedef struct { char x; long long int y; } ac__type_alignof_;
22751 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22752 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22753 #include <stdio.h>
22754 #include <stdlib.h>
22756 main ()
22759 FILE *f = fopen ("conftest.val", "w");
22760 if (! f)
22761 return 1;
22762 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22764 long int i = longval ();
22765 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22766 return 1;
22767 fprintf (f, "%ld\n", i);
22769 else
22771 unsigned long int i = ulongval ();
22772 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22773 return 1;
22774 fprintf (f, "%lu\n", i);
22776 return ferror (f) || fclose (f) != 0;
22779 return 0;
22781 _ACEOF
22782 rm -f conftest$ac_exeext
22783 if { (ac_try="$ac_link"
22784 case "(($ac_try" in
22785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22786 *) ac_try_echo=$ac_try;;
22787 esac
22788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22789 (eval "$ac_link") 2>&5
22790 ac_status=$?
22791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22792 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22793 { (case "(($ac_try" in
22794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22795 *) ac_try_echo=$ac_try;;
22796 esac
22797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22798 (eval "$ac_try") 2>&5
22799 ac_status=$?
22800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22801 (exit $ac_status); }; }; then
22802 ac_cv_alignof_long_long_int=`cat conftest.val`
22803 else
22804 echo "$as_me: program exited with status $ac_status" >&5
22805 echo "$as_me: failed program was:" >&5
22806 sed 's/^/| /' conftest.$ac_ext >&5
22808 ( exit $ac_status )
22809 if test "$ac_cv_type_long_long_int" = yes; then
22810 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
22811 See \`config.log' for more details." >&5
22812 echo "$as_me: error: cannot compute alignment of long long int
22813 See \`config.log' for more details." >&2;}
22814 { (exit 77); exit 77; }; }
22815 else
22816 ac_cv_alignof_long_long_int=0
22819 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22821 rm -f conftest.val
22823 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
22824 echo "${ECHO_T}$ac_cv_alignof_long_long_int" >&6; }
22828 cat >>confdefs.h <<_ACEOF
22829 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
22830 _ACEOF
22834 { echo "$as_me:$LINENO: checking for double" >&5
22835 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
22836 if test "${ac_cv_type_double+set}" = set; then
22837 echo $ECHO_N "(cached) $ECHO_C" >&6
22838 else
22839 cat >conftest.$ac_ext <<_ACEOF
22840 /* confdefs.h. */
22841 _ACEOF
22842 cat confdefs.h >>conftest.$ac_ext
22843 cat >>conftest.$ac_ext <<_ACEOF
22844 /* end confdefs.h. */
22845 $ac_includes_default
22846 typedef double ac__type_new_;
22848 main ()
22850 if ((ac__type_new_ *) 0)
22851 return 0;
22852 if (sizeof (ac__type_new_))
22853 return 0;
22855 return 0;
22857 _ACEOF
22858 rm -f conftest.$ac_objext
22859 if { (ac_try="$ac_compile"
22860 case "(($ac_try" in
22861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22862 *) ac_try_echo=$ac_try;;
22863 esac
22864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22865 (eval "$ac_compile") 2>conftest.er1
22866 ac_status=$?
22867 grep -v '^ *+' conftest.er1 >conftest.err
22868 rm -f conftest.er1
22869 cat conftest.err >&5
22870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22871 (exit $ac_status); } && {
22872 test -z "$ac_c_werror_flag" ||
22873 test ! -s conftest.err
22874 } && test -s conftest.$ac_objext; then
22875 ac_cv_type_double=yes
22876 else
22877 echo "$as_me: failed program was:" >&5
22878 sed 's/^/| /' conftest.$ac_ext >&5
22880 ac_cv_type_double=no
22883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22885 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
22886 echo "${ECHO_T}$ac_cv_type_double" >&6; }
22888 # The cast to long int works around a bug in the HP C Compiler,
22889 # see AC_CHECK_SIZEOF for more information.
22890 { echo "$as_me:$LINENO: checking alignment of double" >&5
22891 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6; }
22892 if test "${ac_cv_alignof_double+set}" = set; then
22893 echo $ECHO_N "(cached) $ECHO_C" >&6
22894 else
22895 if test "$cross_compiling" = yes; then
22896 # Depending upon the size, compute the lo and hi bounds.
22897 cat >conftest.$ac_ext <<_ACEOF
22898 /* confdefs.h. */
22899 _ACEOF
22900 cat confdefs.h >>conftest.$ac_ext
22901 cat >>conftest.$ac_ext <<_ACEOF
22902 /* end confdefs.h. */
22903 $ac_includes_default
22904 #ifndef offsetof
22905 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22906 #endif
22907 typedef struct { char x; double y; } ac__type_alignof_;
22909 main ()
22911 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22912 test_array [0] = 0
22915 return 0;
22917 _ACEOF
22918 rm -f conftest.$ac_objext
22919 if { (ac_try="$ac_compile"
22920 case "(($ac_try" in
22921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22922 *) ac_try_echo=$ac_try;;
22923 esac
22924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22925 (eval "$ac_compile") 2>conftest.er1
22926 ac_status=$?
22927 grep -v '^ *+' conftest.er1 >conftest.err
22928 rm -f conftest.er1
22929 cat conftest.err >&5
22930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22931 (exit $ac_status); } && {
22932 test -z "$ac_c_werror_flag" ||
22933 test ! -s conftest.err
22934 } && test -s conftest.$ac_objext; then
22935 ac_lo=0 ac_mid=0
22936 while :; do
22937 cat >conftest.$ac_ext <<_ACEOF
22938 /* confdefs.h. */
22939 _ACEOF
22940 cat confdefs.h >>conftest.$ac_ext
22941 cat >>conftest.$ac_ext <<_ACEOF
22942 /* end confdefs.h. */
22943 $ac_includes_default
22944 #ifndef offsetof
22945 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22946 #endif
22947 typedef struct { char x; double y; } ac__type_alignof_;
22949 main ()
22951 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22952 test_array [0] = 0
22955 return 0;
22957 _ACEOF
22958 rm -f conftest.$ac_objext
22959 if { (ac_try="$ac_compile"
22960 case "(($ac_try" in
22961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22962 *) ac_try_echo=$ac_try;;
22963 esac
22964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22965 (eval "$ac_compile") 2>conftest.er1
22966 ac_status=$?
22967 grep -v '^ *+' conftest.er1 >conftest.err
22968 rm -f conftest.er1
22969 cat conftest.err >&5
22970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22971 (exit $ac_status); } && {
22972 test -z "$ac_c_werror_flag" ||
22973 test ! -s conftest.err
22974 } && test -s conftest.$ac_objext; then
22975 ac_hi=$ac_mid; break
22976 else
22977 echo "$as_me: failed program was:" >&5
22978 sed 's/^/| /' conftest.$ac_ext >&5
22980 ac_lo=`expr $ac_mid + 1`
22981 if test $ac_lo -le $ac_mid; then
22982 ac_lo= ac_hi=
22983 break
22985 ac_mid=`expr 2 '*' $ac_mid + 1`
22988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22989 done
22990 else
22991 echo "$as_me: failed program was:" >&5
22992 sed 's/^/| /' conftest.$ac_ext >&5
22994 cat >conftest.$ac_ext <<_ACEOF
22995 /* confdefs.h. */
22996 _ACEOF
22997 cat confdefs.h >>conftest.$ac_ext
22998 cat >>conftest.$ac_ext <<_ACEOF
22999 /* end confdefs.h. */
23000 $ac_includes_default
23001 #ifndef offsetof
23002 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23003 #endif
23004 typedef struct { char x; double y; } ac__type_alignof_;
23006 main ()
23008 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
23009 test_array [0] = 0
23012 return 0;
23014 _ACEOF
23015 rm -f conftest.$ac_objext
23016 if { (ac_try="$ac_compile"
23017 case "(($ac_try" in
23018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23019 *) ac_try_echo=$ac_try;;
23020 esac
23021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23022 (eval "$ac_compile") 2>conftest.er1
23023 ac_status=$?
23024 grep -v '^ *+' conftest.er1 >conftest.err
23025 rm -f conftest.er1
23026 cat conftest.err >&5
23027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23028 (exit $ac_status); } && {
23029 test -z "$ac_c_werror_flag" ||
23030 test ! -s conftest.err
23031 } && test -s conftest.$ac_objext; then
23032 ac_hi=-1 ac_mid=-1
23033 while :; do
23034 cat >conftest.$ac_ext <<_ACEOF
23035 /* confdefs.h. */
23036 _ACEOF
23037 cat confdefs.h >>conftest.$ac_ext
23038 cat >>conftest.$ac_ext <<_ACEOF
23039 /* end confdefs.h. */
23040 $ac_includes_default
23041 #ifndef offsetof
23042 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23043 #endif
23044 typedef struct { char x; double y; } ac__type_alignof_;
23046 main ()
23048 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
23049 test_array [0] = 0
23052 return 0;
23054 _ACEOF
23055 rm -f conftest.$ac_objext
23056 if { (ac_try="$ac_compile"
23057 case "(($ac_try" in
23058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23059 *) ac_try_echo=$ac_try;;
23060 esac
23061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23062 (eval "$ac_compile") 2>conftest.er1
23063 ac_status=$?
23064 grep -v '^ *+' conftest.er1 >conftest.err
23065 rm -f conftest.er1
23066 cat conftest.err >&5
23067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23068 (exit $ac_status); } && {
23069 test -z "$ac_c_werror_flag" ||
23070 test ! -s conftest.err
23071 } && test -s conftest.$ac_objext; then
23072 ac_lo=$ac_mid; break
23073 else
23074 echo "$as_me: failed program was:" >&5
23075 sed 's/^/| /' conftest.$ac_ext >&5
23077 ac_hi=`expr '(' $ac_mid ')' - 1`
23078 if test $ac_mid -le $ac_hi; then
23079 ac_lo= ac_hi=
23080 break
23082 ac_mid=`expr 2 '*' $ac_mid`
23085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23086 done
23087 else
23088 echo "$as_me: failed program was:" >&5
23089 sed 's/^/| /' conftest.$ac_ext >&5
23091 ac_lo= ac_hi=
23094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23098 # Binary search between lo and hi bounds.
23099 while test "x$ac_lo" != "x$ac_hi"; do
23100 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23101 cat >conftest.$ac_ext <<_ACEOF
23102 /* confdefs.h. */
23103 _ACEOF
23104 cat confdefs.h >>conftest.$ac_ext
23105 cat >>conftest.$ac_ext <<_ACEOF
23106 /* end confdefs.h. */
23107 $ac_includes_default
23108 #ifndef offsetof
23109 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23110 #endif
23111 typedef struct { char x; double y; } ac__type_alignof_;
23113 main ()
23115 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23116 test_array [0] = 0
23119 return 0;
23121 _ACEOF
23122 rm -f conftest.$ac_objext
23123 if { (ac_try="$ac_compile"
23124 case "(($ac_try" in
23125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23126 *) ac_try_echo=$ac_try;;
23127 esac
23128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23129 (eval "$ac_compile") 2>conftest.er1
23130 ac_status=$?
23131 grep -v '^ *+' conftest.er1 >conftest.err
23132 rm -f conftest.er1
23133 cat conftest.err >&5
23134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135 (exit $ac_status); } && {
23136 test -z "$ac_c_werror_flag" ||
23137 test ! -s conftest.err
23138 } && test -s conftest.$ac_objext; then
23139 ac_hi=$ac_mid
23140 else
23141 echo "$as_me: failed program was:" >&5
23142 sed 's/^/| /' conftest.$ac_ext >&5
23144 ac_lo=`expr '(' $ac_mid ')' + 1`
23147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23148 done
23149 case $ac_lo in
23150 ?*) ac_cv_alignof_double=$ac_lo;;
23151 '') if test "$ac_cv_type_double" = yes; then
23152 { { echo "$as_me:$LINENO: error: cannot compute alignment of double
23153 See \`config.log' for more details." >&5
23154 echo "$as_me: error: cannot compute alignment of double
23155 See \`config.log' for more details." >&2;}
23156 { (exit 77); exit 77; }; }
23157 else
23158 ac_cv_alignof_double=0
23159 fi ;;
23160 esac
23161 else
23162 cat >conftest.$ac_ext <<_ACEOF
23163 /* confdefs.h. */
23164 _ACEOF
23165 cat confdefs.h >>conftest.$ac_ext
23166 cat >>conftest.$ac_ext <<_ACEOF
23167 /* end confdefs.h. */
23168 $ac_includes_default
23169 #ifndef offsetof
23170 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23171 #endif
23172 typedef struct { char x; double y; } ac__type_alignof_;
23173 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23174 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23175 #include <stdio.h>
23176 #include <stdlib.h>
23178 main ()
23181 FILE *f = fopen ("conftest.val", "w");
23182 if (! f)
23183 return 1;
23184 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23186 long int i = longval ();
23187 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23188 return 1;
23189 fprintf (f, "%ld\n", i);
23191 else
23193 unsigned long int i = ulongval ();
23194 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23195 return 1;
23196 fprintf (f, "%lu\n", i);
23198 return ferror (f) || fclose (f) != 0;
23201 return 0;
23203 _ACEOF
23204 rm -f conftest$ac_exeext
23205 if { (ac_try="$ac_link"
23206 case "(($ac_try" in
23207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23208 *) ac_try_echo=$ac_try;;
23209 esac
23210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23211 (eval "$ac_link") 2>&5
23212 ac_status=$?
23213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23214 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23215 { (case "(($ac_try" in
23216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23217 *) ac_try_echo=$ac_try;;
23218 esac
23219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23220 (eval "$ac_try") 2>&5
23221 ac_status=$?
23222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23223 (exit $ac_status); }; }; then
23224 ac_cv_alignof_double=`cat conftest.val`
23225 else
23226 echo "$as_me: program exited with status $ac_status" >&5
23227 echo "$as_me: failed program was:" >&5
23228 sed 's/^/| /' conftest.$ac_ext >&5
23230 ( exit $ac_status )
23231 if test "$ac_cv_type_double" = yes; then
23232 { { echo "$as_me:$LINENO: error: cannot compute alignment of double
23233 See \`config.log' for more details." >&5
23234 echo "$as_me: error: cannot compute alignment of double
23235 See \`config.log' for more details." >&2;}
23236 { (exit 77); exit 77; }; }
23237 else
23238 ac_cv_alignof_double=0
23241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23243 rm -f conftest.val
23245 { echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
23246 echo "${ECHO_T}$ac_cv_alignof_double" >&6; }
23250 cat >>confdefs.h <<_ACEOF
23251 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
23252 _ACEOF
23256 # Compute maximum alignment of any basic type.
23257 # We assume long's alignment is at least as strong as char, short, or int;
23258 # but we must check long long (if it exists) and double.
23260 MAX_ALIGNOF=$ac_cv_alignof_long
23261 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
23262 MAX_ALIGNOF=$ac_cv_alignof_double
23264 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
23265 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
23268 cat >>confdefs.h <<_ACEOF
23269 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
23270 _ACEOF
23274 # Some platforms predefine the types int8, int16, etc. Only check
23275 # a (hopefully) representative subset.
23276 { echo "$as_me:$LINENO: checking for int8" >&5
23277 echo $ECHO_N "checking for int8... $ECHO_C" >&6; }
23278 if test "${ac_cv_type_int8+set}" = set; then
23279 echo $ECHO_N "(cached) $ECHO_C" >&6
23280 else
23281 cat >conftest.$ac_ext <<_ACEOF
23282 /* confdefs.h. */
23283 _ACEOF
23284 cat confdefs.h >>conftest.$ac_ext
23285 cat >>conftest.$ac_ext <<_ACEOF
23286 /* end confdefs.h. */
23287 #include <stdio.h>
23288 #ifdef HAVE_SUPPORTDEFS_H
23289 #include <SupportDefs.h>
23290 #endif
23292 typedef int8 ac__type_new_;
23294 main ()
23296 if ((ac__type_new_ *) 0)
23297 return 0;
23298 if (sizeof (ac__type_new_))
23299 return 0;
23301 return 0;
23303 _ACEOF
23304 rm -f conftest.$ac_objext
23305 if { (ac_try="$ac_compile"
23306 case "(($ac_try" in
23307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23308 *) ac_try_echo=$ac_try;;
23309 esac
23310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23311 (eval "$ac_compile") 2>conftest.er1
23312 ac_status=$?
23313 grep -v '^ *+' conftest.er1 >conftest.err
23314 rm -f conftest.er1
23315 cat conftest.err >&5
23316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23317 (exit $ac_status); } && {
23318 test -z "$ac_c_werror_flag" ||
23319 test ! -s conftest.err
23320 } && test -s conftest.$ac_objext; then
23321 ac_cv_type_int8=yes
23322 else
23323 echo "$as_me: failed program was:" >&5
23324 sed 's/^/| /' conftest.$ac_ext >&5
23326 ac_cv_type_int8=no
23329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23331 { echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
23332 echo "${ECHO_T}$ac_cv_type_int8" >&6; }
23333 if test $ac_cv_type_int8 = yes; then
23335 cat >>confdefs.h <<_ACEOF
23336 #define HAVE_INT8 1
23337 _ACEOF
23341 { echo "$as_me:$LINENO: checking for uint8" >&5
23342 echo $ECHO_N "checking for uint8... $ECHO_C" >&6; }
23343 if test "${ac_cv_type_uint8+set}" = set; then
23344 echo $ECHO_N "(cached) $ECHO_C" >&6
23345 else
23346 cat >conftest.$ac_ext <<_ACEOF
23347 /* confdefs.h. */
23348 _ACEOF
23349 cat confdefs.h >>conftest.$ac_ext
23350 cat >>conftest.$ac_ext <<_ACEOF
23351 /* end confdefs.h. */
23352 #include <stdio.h>
23353 #ifdef HAVE_SUPPORTDEFS_H
23354 #include <SupportDefs.h>
23355 #endif
23357 typedef uint8 ac__type_new_;
23359 main ()
23361 if ((ac__type_new_ *) 0)
23362 return 0;
23363 if (sizeof (ac__type_new_))
23364 return 0;
23366 return 0;
23368 _ACEOF
23369 rm -f conftest.$ac_objext
23370 if { (ac_try="$ac_compile"
23371 case "(($ac_try" in
23372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23373 *) ac_try_echo=$ac_try;;
23374 esac
23375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23376 (eval "$ac_compile") 2>conftest.er1
23377 ac_status=$?
23378 grep -v '^ *+' conftest.er1 >conftest.err
23379 rm -f conftest.er1
23380 cat conftest.err >&5
23381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23382 (exit $ac_status); } && {
23383 test -z "$ac_c_werror_flag" ||
23384 test ! -s conftest.err
23385 } && test -s conftest.$ac_objext; then
23386 ac_cv_type_uint8=yes
23387 else
23388 echo "$as_me: failed program was:" >&5
23389 sed 's/^/| /' conftest.$ac_ext >&5
23391 ac_cv_type_uint8=no
23394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23396 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
23397 echo "${ECHO_T}$ac_cv_type_uint8" >&6; }
23398 if test $ac_cv_type_uint8 = yes; then
23400 cat >>confdefs.h <<_ACEOF
23401 #define HAVE_UINT8 1
23402 _ACEOF
23406 { echo "$as_me:$LINENO: checking for int64" >&5
23407 echo $ECHO_N "checking for int64... $ECHO_C" >&6; }
23408 if test "${ac_cv_type_int64+set}" = set; then
23409 echo $ECHO_N "(cached) $ECHO_C" >&6
23410 else
23411 cat >conftest.$ac_ext <<_ACEOF
23412 /* confdefs.h. */
23413 _ACEOF
23414 cat confdefs.h >>conftest.$ac_ext
23415 cat >>conftest.$ac_ext <<_ACEOF
23416 /* end confdefs.h. */
23417 #include <stdio.h>
23418 #ifdef HAVE_SUPPORTDEFS_H
23419 #include <SupportDefs.h>
23420 #endif
23422 typedef int64 ac__type_new_;
23424 main ()
23426 if ((ac__type_new_ *) 0)
23427 return 0;
23428 if (sizeof (ac__type_new_))
23429 return 0;
23431 return 0;
23433 _ACEOF
23434 rm -f conftest.$ac_objext
23435 if { (ac_try="$ac_compile"
23436 case "(($ac_try" in
23437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23438 *) ac_try_echo=$ac_try;;
23439 esac
23440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23441 (eval "$ac_compile") 2>conftest.er1
23442 ac_status=$?
23443 grep -v '^ *+' conftest.er1 >conftest.err
23444 rm -f conftest.er1
23445 cat conftest.err >&5
23446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23447 (exit $ac_status); } && {
23448 test -z "$ac_c_werror_flag" ||
23449 test ! -s conftest.err
23450 } && test -s conftest.$ac_objext; then
23451 ac_cv_type_int64=yes
23452 else
23453 echo "$as_me: failed program was:" >&5
23454 sed 's/^/| /' conftest.$ac_ext >&5
23456 ac_cv_type_int64=no
23459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23461 { echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
23462 echo "${ECHO_T}$ac_cv_type_int64" >&6; }
23463 if test $ac_cv_type_int64 = yes; then
23465 cat >>confdefs.h <<_ACEOF
23466 #define HAVE_INT64 1
23467 _ACEOF
23471 { echo "$as_me:$LINENO: checking for uint64" >&5
23472 echo $ECHO_N "checking for uint64... $ECHO_C" >&6; }
23473 if test "${ac_cv_type_uint64+set}" = set; then
23474 echo $ECHO_N "(cached) $ECHO_C" >&6
23475 else
23476 cat >conftest.$ac_ext <<_ACEOF
23477 /* confdefs.h. */
23478 _ACEOF
23479 cat confdefs.h >>conftest.$ac_ext
23480 cat >>conftest.$ac_ext <<_ACEOF
23481 /* end confdefs.h. */
23482 #include <stdio.h>
23483 #ifdef HAVE_SUPPORTDEFS_H
23484 #include <SupportDefs.h>
23485 #endif
23487 typedef uint64 ac__type_new_;
23489 main ()
23491 if ((ac__type_new_ *) 0)
23492 return 0;
23493 if (sizeof (ac__type_new_))
23494 return 0;
23496 return 0;
23498 _ACEOF
23499 rm -f conftest.$ac_objext
23500 if { (ac_try="$ac_compile"
23501 case "(($ac_try" in
23502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23503 *) ac_try_echo=$ac_try;;
23504 esac
23505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23506 (eval "$ac_compile") 2>conftest.er1
23507 ac_status=$?
23508 grep -v '^ *+' conftest.er1 >conftest.err
23509 rm -f conftest.er1
23510 cat conftest.err >&5
23511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23512 (exit $ac_status); } && {
23513 test -z "$ac_c_werror_flag" ||
23514 test ! -s conftest.err
23515 } && test -s conftest.$ac_objext; then
23516 ac_cv_type_uint64=yes
23517 else
23518 echo "$as_me: failed program was:" >&5
23519 sed 's/^/| /' conftest.$ac_ext >&5
23521 ac_cv_type_uint64=no
23524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23526 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
23527 echo "${ECHO_T}$ac_cv_type_uint64" >&6; }
23528 if test $ac_cv_type_uint64 = yes; then
23530 cat >>confdefs.h <<_ACEOF
23531 #define HAVE_UINT64 1
23532 _ACEOF
23538 # We also check for sig_atomic_t, which *should* be defined per ANSI
23539 # C, but is missing on some old platforms.
23540 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
23541 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
23542 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
23543 echo $ECHO_N "(cached) $ECHO_C" >&6
23544 else
23545 cat >conftest.$ac_ext <<_ACEOF
23546 /* confdefs.h. */
23547 _ACEOF
23548 cat confdefs.h >>conftest.$ac_ext
23549 cat >>conftest.$ac_ext <<_ACEOF
23550 /* end confdefs.h. */
23551 #include <signal.h>
23553 typedef sig_atomic_t ac__type_new_;
23555 main ()
23557 if ((ac__type_new_ *) 0)
23558 return 0;
23559 if (sizeof (ac__type_new_))
23560 return 0;
23562 return 0;
23564 _ACEOF
23565 rm -f conftest.$ac_objext
23566 if { (ac_try="$ac_compile"
23567 case "(($ac_try" in
23568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23569 *) ac_try_echo=$ac_try;;
23570 esac
23571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23572 (eval "$ac_compile") 2>conftest.er1
23573 ac_status=$?
23574 grep -v '^ *+' conftest.er1 >conftest.err
23575 rm -f conftest.er1
23576 cat conftest.err >&5
23577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23578 (exit $ac_status); } && {
23579 test -z "$ac_c_werror_flag" ||
23580 test ! -s conftest.err
23581 } && test -s conftest.$ac_objext; then
23582 ac_cv_type_sig_atomic_t=yes
23583 else
23584 echo "$as_me: failed program was:" >&5
23585 sed 's/^/| /' conftest.$ac_ext >&5
23587 ac_cv_type_sig_atomic_t=no
23590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23592 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
23593 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
23594 if test $ac_cv_type_sig_atomic_t = yes; then
23596 cat >>confdefs.h <<_ACEOF
23597 #define HAVE_SIG_ATOMIC_T 1
23598 _ACEOF
23605 # If the user did not disable integer datetimes, check that
23606 # there is a working 64-bit integral type to use.
23607 if test x"$USE_INTEGER_DATETIMES" = x"yes" &&
23608 test x"$HAVE_LONG_INT_64" = x"no" &&
23609 test x"$HAVE_LONG_LONG_INT_64" = x"no" &&
23610 test x"$HAVE_INT64" = x"no" ; then
23611 { { echo "$as_me:$LINENO: error:
23612 Integer-based datetime support requires a 64-bit integer type,
23613 but no such type could be found. The --disable-integer-datetimes
23614 configure option can be used to disable integer-based storage
23615 of datetime values." >&5
23616 echo "$as_me: error:
23617 Integer-based datetime support requires a 64-bit integer type,
23618 but no such type could be found. The --disable-integer-datetimes
23619 configure option can be used to disable integer-based storage
23620 of datetime values." >&2;}
23621 { (exit 1); exit 1; }; }
23625 if test "$PORTNAME" != "win32"
23626 then
23627 { echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
23628 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6; }
23629 if test "${pgac_cv_func_posix_signals+set}" = set; then
23630 echo $ECHO_N "(cached) $ECHO_C" >&6
23631 else
23632 cat >conftest.$ac_ext <<_ACEOF
23633 /* confdefs.h. */
23634 _ACEOF
23635 cat confdefs.h >>conftest.$ac_ext
23636 cat >>conftest.$ac_ext <<_ACEOF
23637 /* end confdefs.h. */
23638 #include <signal.h>
23641 main ()
23643 struct sigaction act, oact;
23644 sigemptyset(&act.sa_mask);
23645 act.sa_flags = SA_RESTART;
23646 sigaction(0, &act, &oact);
23648 return 0;
23650 _ACEOF
23651 rm -f conftest.$ac_objext conftest$ac_exeext
23652 if { (ac_try="$ac_link"
23653 case "(($ac_try" in
23654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23655 *) ac_try_echo=$ac_try;;
23656 esac
23657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23658 (eval "$ac_link") 2>conftest.er1
23659 ac_status=$?
23660 grep -v '^ *+' conftest.er1 >conftest.err
23661 rm -f conftest.er1
23662 cat conftest.err >&5
23663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23664 (exit $ac_status); } && {
23665 test -z "$ac_c_werror_flag" ||
23666 test ! -s conftest.err
23667 } && test -s conftest$ac_exeext &&
23668 $as_test_x conftest$ac_exeext; then
23669 pgac_cv_func_posix_signals=yes
23670 else
23671 echo "$as_me: failed program was:" >&5
23672 sed 's/^/| /' conftest.$ac_ext >&5
23674 pgac_cv_func_posix_signals=no
23677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23678 conftest$ac_exeext conftest.$ac_ext
23680 { echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
23681 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6; }
23682 if test x"$pgac_cv_func_posix_signals" = xyes ; then
23684 cat >>confdefs.h <<\_ACEOF
23685 #define HAVE_POSIX_SIGNALS
23686 _ACEOF
23689 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
23691 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
23692 { { echo "$as_me:$LINENO: error:
23693 Thread-safety requires POSIX signals, which are not supported by this
23694 operating system." >&5
23695 echo "$as_me: error:
23696 Thread-safety requires POSIX signals, which are not supported by this
23697 operating system." >&2;}
23698 { (exit 1); exit 1; }; }
23702 if test $ac_cv_func_fseeko = yes; then
23703 # Check whether --enable-largefile was given.
23704 if test "${enable_largefile+set}" = set; then
23705 enableval=$enable_largefile;
23708 if test "$enable_largefile" != no; then
23710 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
23711 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
23712 if test "${ac_cv_sys_largefile_CC+set}" = set; then
23713 echo $ECHO_N "(cached) $ECHO_C" >&6
23714 else
23715 ac_cv_sys_largefile_CC=no
23716 if test "$GCC" != yes; then
23717 ac_save_CC=$CC
23718 while :; do
23719 # IRIX 6.2 and later do not support large files by default,
23720 # so use the C compiler's -n32 option if that helps.
23721 cat >conftest.$ac_ext <<_ACEOF
23722 /* confdefs.h. */
23723 _ACEOF
23724 cat confdefs.h >>conftest.$ac_ext
23725 cat >>conftest.$ac_ext <<_ACEOF
23726 /* end confdefs.h. */
23727 #include <sys/types.h>
23728 /* Check that off_t can represent 2**63 - 1 correctly.
23729 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23730 since some C++ compilers masquerading as C compilers
23731 incorrectly reject 9223372036854775807. */
23732 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23733 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23734 && LARGE_OFF_T % 2147483647 == 1)
23735 ? 1 : -1];
23737 main ()
23741 return 0;
23743 _ACEOF
23744 rm -f conftest.$ac_objext
23745 if { (ac_try="$ac_compile"
23746 case "(($ac_try" in
23747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23748 *) ac_try_echo=$ac_try;;
23749 esac
23750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23751 (eval "$ac_compile") 2>conftest.er1
23752 ac_status=$?
23753 grep -v '^ *+' conftest.er1 >conftest.err
23754 rm -f conftest.er1
23755 cat conftest.err >&5
23756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23757 (exit $ac_status); } && {
23758 test -z "$ac_c_werror_flag" ||
23759 test ! -s conftest.err
23760 } && test -s conftest.$ac_objext; then
23761 break
23762 else
23763 echo "$as_me: failed program was:" >&5
23764 sed 's/^/| /' conftest.$ac_ext >&5
23769 rm -f core conftest.err conftest.$ac_objext
23770 CC="$CC -n32"
23771 rm -f conftest.$ac_objext
23772 if { (ac_try="$ac_compile"
23773 case "(($ac_try" in
23774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23775 *) ac_try_echo=$ac_try;;
23776 esac
23777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23778 (eval "$ac_compile") 2>conftest.er1
23779 ac_status=$?
23780 grep -v '^ *+' conftest.er1 >conftest.err
23781 rm -f conftest.er1
23782 cat conftest.err >&5
23783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23784 (exit $ac_status); } && {
23785 test -z "$ac_c_werror_flag" ||
23786 test ! -s conftest.err
23787 } && test -s conftest.$ac_objext; then
23788 ac_cv_sys_largefile_CC=' -n32'; break
23789 else
23790 echo "$as_me: failed program was:" >&5
23791 sed 's/^/| /' conftest.$ac_ext >&5
23796 rm -f core conftest.err conftest.$ac_objext
23797 break
23798 done
23799 CC=$ac_save_CC
23800 rm -f conftest.$ac_ext
23803 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
23804 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
23805 if test "$ac_cv_sys_largefile_CC" != no; then
23806 CC=$CC$ac_cv_sys_largefile_CC
23809 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
23810 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
23811 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
23812 echo $ECHO_N "(cached) $ECHO_C" >&6
23813 else
23814 while :; do
23815 cat >conftest.$ac_ext <<_ACEOF
23816 /* confdefs.h. */
23817 _ACEOF
23818 cat confdefs.h >>conftest.$ac_ext
23819 cat >>conftest.$ac_ext <<_ACEOF
23820 /* end confdefs.h. */
23821 #include <sys/types.h>
23822 /* Check that off_t can represent 2**63 - 1 correctly.
23823 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23824 since some C++ compilers masquerading as C compilers
23825 incorrectly reject 9223372036854775807. */
23826 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23827 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23828 && LARGE_OFF_T % 2147483647 == 1)
23829 ? 1 : -1];
23831 main ()
23835 return 0;
23837 _ACEOF
23838 rm -f conftest.$ac_objext
23839 if { (ac_try="$ac_compile"
23840 case "(($ac_try" in
23841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23842 *) ac_try_echo=$ac_try;;
23843 esac
23844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23845 (eval "$ac_compile") 2>conftest.er1
23846 ac_status=$?
23847 grep -v '^ *+' conftest.er1 >conftest.err
23848 rm -f conftest.er1
23849 cat conftest.err >&5
23850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23851 (exit $ac_status); } && {
23852 test -z "$ac_c_werror_flag" ||
23853 test ! -s conftest.err
23854 } && test -s conftest.$ac_objext; then
23855 ac_cv_sys_file_offset_bits=no; break
23856 else
23857 echo "$as_me: failed program was:" >&5
23858 sed 's/^/| /' conftest.$ac_ext >&5
23863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23864 cat >conftest.$ac_ext <<_ACEOF
23865 /* confdefs.h. */
23866 _ACEOF
23867 cat confdefs.h >>conftest.$ac_ext
23868 cat >>conftest.$ac_ext <<_ACEOF
23869 /* end confdefs.h. */
23870 #define _FILE_OFFSET_BITS 64
23871 #include <sys/types.h>
23872 /* Check that off_t can represent 2**63 - 1 correctly.
23873 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23874 since some C++ compilers masquerading as C compilers
23875 incorrectly reject 9223372036854775807. */
23876 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23877 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23878 && LARGE_OFF_T % 2147483647 == 1)
23879 ? 1 : -1];
23881 main ()
23885 return 0;
23887 _ACEOF
23888 rm -f conftest.$ac_objext
23889 if { (ac_try="$ac_compile"
23890 case "(($ac_try" in
23891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23892 *) ac_try_echo=$ac_try;;
23893 esac
23894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23895 (eval "$ac_compile") 2>conftest.er1
23896 ac_status=$?
23897 grep -v '^ *+' conftest.er1 >conftest.err
23898 rm -f conftest.er1
23899 cat conftest.err >&5
23900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23901 (exit $ac_status); } && {
23902 test -z "$ac_c_werror_flag" ||
23903 test ! -s conftest.err
23904 } && test -s conftest.$ac_objext; then
23905 ac_cv_sys_file_offset_bits=64; break
23906 else
23907 echo "$as_me: failed program was:" >&5
23908 sed 's/^/| /' conftest.$ac_ext >&5
23913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23914 ac_cv_sys_file_offset_bits=unknown
23915 break
23916 done
23918 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
23919 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
23920 case $ac_cv_sys_file_offset_bits in #(
23921 no | unknown) ;;
23923 cat >>confdefs.h <<_ACEOF
23924 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
23925 _ACEOF
23927 esac
23928 rm -f conftest*
23929 if test $ac_cv_sys_file_offset_bits = unknown; then
23930 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
23931 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
23932 if test "${ac_cv_sys_large_files+set}" = set; then
23933 echo $ECHO_N "(cached) $ECHO_C" >&6
23934 else
23935 while :; do
23936 cat >conftest.$ac_ext <<_ACEOF
23937 /* confdefs.h. */
23938 _ACEOF
23939 cat confdefs.h >>conftest.$ac_ext
23940 cat >>conftest.$ac_ext <<_ACEOF
23941 /* end confdefs.h. */
23942 #include <sys/types.h>
23943 /* Check that off_t can represent 2**63 - 1 correctly.
23944 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23945 since some C++ compilers masquerading as C compilers
23946 incorrectly reject 9223372036854775807. */
23947 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23948 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23949 && LARGE_OFF_T % 2147483647 == 1)
23950 ? 1 : -1];
23952 main ()
23956 return 0;
23958 _ACEOF
23959 rm -f conftest.$ac_objext
23960 if { (ac_try="$ac_compile"
23961 case "(($ac_try" in
23962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23963 *) ac_try_echo=$ac_try;;
23964 esac
23965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23966 (eval "$ac_compile") 2>conftest.er1
23967 ac_status=$?
23968 grep -v '^ *+' conftest.er1 >conftest.err
23969 rm -f conftest.er1
23970 cat conftest.err >&5
23971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23972 (exit $ac_status); } && {
23973 test -z "$ac_c_werror_flag" ||
23974 test ! -s conftest.err
23975 } && test -s conftest.$ac_objext; then
23976 ac_cv_sys_large_files=no; break
23977 else
23978 echo "$as_me: failed program was:" >&5
23979 sed 's/^/| /' conftest.$ac_ext >&5
23984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23985 cat >conftest.$ac_ext <<_ACEOF
23986 /* confdefs.h. */
23987 _ACEOF
23988 cat confdefs.h >>conftest.$ac_ext
23989 cat >>conftest.$ac_ext <<_ACEOF
23990 /* end confdefs.h. */
23991 #define _LARGE_FILES 1
23992 #include <sys/types.h>
23993 /* Check that off_t can represent 2**63 - 1 correctly.
23994 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23995 since some C++ compilers masquerading as C compilers
23996 incorrectly reject 9223372036854775807. */
23997 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23998 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23999 && LARGE_OFF_T % 2147483647 == 1)
24000 ? 1 : -1];
24002 main ()
24006 return 0;
24008 _ACEOF
24009 rm -f conftest.$ac_objext
24010 if { (ac_try="$ac_compile"
24011 case "(($ac_try" in
24012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24013 *) ac_try_echo=$ac_try;;
24014 esac
24015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24016 (eval "$ac_compile") 2>conftest.er1
24017 ac_status=$?
24018 grep -v '^ *+' conftest.er1 >conftest.err
24019 rm -f conftest.er1
24020 cat conftest.err >&5
24021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24022 (exit $ac_status); } && {
24023 test -z "$ac_c_werror_flag" ||
24024 test ! -s conftest.err
24025 } && test -s conftest.$ac_objext; then
24026 ac_cv_sys_large_files=1; break
24027 else
24028 echo "$as_me: failed program was:" >&5
24029 sed 's/^/| /' conftest.$ac_ext >&5
24034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24035 ac_cv_sys_large_files=unknown
24036 break
24037 done
24039 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
24040 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
24041 case $ac_cv_sys_large_files in #(
24042 no | unknown) ;;
24044 cat >>confdefs.h <<_ACEOF
24045 #define _LARGE_FILES $ac_cv_sys_large_files
24046 _ACEOF
24048 esac
24049 rm -f conftest*
24055 # Check for largefile support (must be after AC_SYS_LARGEFILE)
24056 { echo "$as_me:$LINENO: checking for off_t" >&5
24057 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24058 if test "${ac_cv_type_off_t+set}" = set; then
24059 echo $ECHO_N "(cached) $ECHO_C" >&6
24060 else
24061 cat >conftest.$ac_ext <<_ACEOF
24062 /* confdefs.h. */
24063 _ACEOF
24064 cat confdefs.h >>conftest.$ac_ext
24065 cat >>conftest.$ac_ext <<_ACEOF
24066 /* end confdefs.h. */
24067 $ac_includes_default
24068 typedef off_t ac__type_new_;
24070 main ()
24072 if ((ac__type_new_ *) 0)
24073 return 0;
24074 if (sizeof (ac__type_new_))
24075 return 0;
24077 return 0;
24079 _ACEOF
24080 rm -f conftest.$ac_objext
24081 if { (ac_try="$ac_compile"
24082 case "(($ac_try" in
24083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24084 *) ac_try_echo=$ac_try;;
24085 esac
24086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24087 (eval "$ac_compile") 2>conftest.er1
24088 ac_status=$?
24089 grep -v '^ *+' conftest.er1 >conftest.err
24090 rm -f conftest.er1
24091 cat conftest.err >&5
24092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24093 (exit $ac_status); } && {
24094 test -z "$ac_c_werror_flag" ||
24095 test ! -s conftest.err
24096 } && test -s conftest.$ac_objext; then
24097 ac_cv_type_off_t=yes
24098 else
24099 echo "$as_me: failed program was:" >&5
24100 sed 's/^/| /' conftest.$ac_ext >&5
24102 ac_cv_type_off_t=no
24105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24107 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24108 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24110 # The cast to long int works around a bug in the HP C Compiler
24111 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24112 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24113 # This bug is HP SR number 8606223364.
24114 { echo "$as_me:$LINENO: checking size of off_t" >&5
24115 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
24116 if test "${ac_cv_sizeof_off_t+set}" = set; then
24117 echo $ECHO_N "(cached) $ECHO_C" >&6
24118 else
24119 if test "$cross_compiling" = yes; then
24120 # Depending upon the size, compute the lo and hi bounds.
24121 cat >conftest.$ac_ext <<_ACEOF
24122 /* confdefs.h. */
24123 _ACEOF
24124 cat confdefs.h >>conftest.$ac_ext
24125 cat >>conftest.$ac_ext <<_ACEOF
24126 /* end confdefs.h. */
24127 $ac_includes_default
24128 typedef off_t ac__type_sizeof_;
24130 main ()
24132 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24133 test_array [0] = 0
24136 return 0;
24138 _ACEOF
24139 rm -f conftest.$ac_objext
24140 if { (ac_try="$ac_compile"
24141 case "(($ac_try" in
24142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24143 *) ac_try_echo=$ac_try;;
24144 esac
24145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24146 (eval "$ac_compile") 2>conftest.er1
24147 ac_status=$?
24148 grep -v '^ *+' conftest.er1 >conftest.err
24149 rm -f conftest.er1
24150 cat conftest.err >&5
24151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24152 (exit $ac_status); } && {
24153 test -z "$ac_c_werror_flag" ||
24154 test ! -s conftest.err
24155 } && test -s conftest.$ac_objext; then
24156 ac_lo=0 ac_mid=0
24157 while :; do
24158 cat >conftest.$ac_ext <<_ACEOF
24159 /* confdefs.h. */
24160 _ACEOF
24161 cat confdefs.h >>conftest.$ac_ext
24162 cat >>conftest.$ac_ext <<_ACEOF
24163 /* end confdefs.h. */
24164 $ac_includes_default
24165 typedef off_t ac__type_sizeof_;
24167 main ()
24169 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24170 test_array [0] = 0
24173 return 0;
24175 _ACEOF
24176 rm -f conftest.$ac_objext
24177 if { (ac_try="$ac_compile"
24178 case "(($ac_try" in
24179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24180 *) ac_try_echo=$ac_try;;
24181 esac
24182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24183 (eval "$ac_compile") 2>conftest.er1
24184 ac_status=$?
24185 grep -v '^ *+' conftest.er1 >conftest.err
24186 rm -f conftest.er1
24187 cat conftest.err >&5
24188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24189 (exit $ac_status); } && {
24190 test -z "$ac_c_werror_flag" ||
24191 test ! -s conftest.err
24192 } && test -s conftest.$ac_objext; then
24193 ac_hi=$ac_mid; break
24194 else
24195 echo "$as_me: failed program was:" >&5
24196 sed 's/^/| /' conftest.$ac_ext >&5
24198 ac_lo=`expr $ac_mid + 1`
24199 if test $ac_lo -le $ac_mid; then
24200 ac_lo= ac_hi=
24201 break
24203 ac_mid=`expr 2 '*' $ac_mid + 1`
24206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24207 done
24208 else
24209 echo "$as_me: failed program was:" >&5
24210 sed 's/^/| /' conftest.$ac_ext >&5
24212 cat >conftest.$ac_ext <<_ACEOF
24213 /* confdefs.h. */
24214 _ACEOF
24215 cat confdefs.h >>conftest.$ac_ext
24216 cat >>conftest.$ac_ext <<_ACEOF
24217 /* end confdefs.h. */
24218 $ac_includes_default
24219 typedef off_t ac__type_sizeof_;
24221 main ()
24223 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24224 test_array [0] = 0
24227 return 0;
24229 _ACEOF
24230 rm -f conftest.$ac_objext
24231 if { (ac_try="$ac_compile"
24232 case "(($ac_try" in
24233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24234 *) ac_try_echo=$ac_try;;
24235 esac
24236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24237 (eval "$ac_compile") 2>conftest.er1
24238 ac_status=$?
24239 grep -v '^ *+' conftest.er1 >conftest.err
24240 rm -f conftest.er1
24241 cat conftest.err >&5
24242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24243 (exit $ac_status); } && {
24244 test -z "$ac_c_werror_flag" ||
24245 test ! -s conftest.err
24246 } && test -s conftest.$ac_objext; then
24247 ac_hi=-1 ac_mid=-1
24248 while :; do
24249 cat >conftest.$ac_ext <<_ACEOF
24250 /* confdefs.h. */
24251 _ACEOF
24252 cat confdefs.h >>conftest.$ac_ext
24253 cat >>conftest.$ac_ext <<_ACEOF
24254 /* end confdefs.h. */
24255 $ac_includes_default
24256 typedef off_t ac__type_sizeof_;
24258 main ()
24260 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24261 test_array [0] = 0
24264 return 0;
24266 _ACEOF
24267 rm -f conftest.$ac_objext
24268 if { (ac_try="$ac_compile"
24269 case "(($ac_try" in
24270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24271 *) ac_try_echo=$ac_try;;
24272 esac
24273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24274 (eval "$ac_compile") 2>conftest.er1
24275 ac_status=$?
24276 grep -v '^ *+' conftest.er1 >conftest.err
24277 rm -f conftest.er1
24278 cat conftest.err >&5
24279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24280 (exit $ac_status); } && {
24281 test -z "$ac_c_werror_flag" ||
24282 test ! -s conftest.err
24283 } && test -s conftest.$ac_objext; then
24284 ac_lo=$ac_mid; break
24285 else
24286 echo "$as_me: failed program was:" >&5
24287 sed 's/^/| /' conftest.$ac_ext >&5
24289 ac_hi=`expr '(' $ac_mid ')' - 1`
24290 if test $ac_mid -le $ac_hi; then
24291 ac_lo= ac_hi=
24292 break
24294 ac_mid=`expr 2 '*' $ac_mid`
24297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24298 done
24299 else
24300 echo "$as_me: failed program was:" >&5
24301 sed 's/^/| /' conftest.$ac_ext >&5
24303 ac_lo= ac_hi=
24306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24310 # Binary search between lo and hi bounds.
24311 while test "x$ac_lo" != "x$ac_hi"; do
24312 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24313 cat >conftest.$ac_ext <<_ACEOF
24314 /* confdefs.h. */
24315 _ACEOF
24316 cat confdefs.h >>conftest.$ac_ext
24317 cat >>conftest.$ac_ext <<_ACEOF
24318 /* end confdefs.h. */
24319 $ac_includes_default
24320 typedef off_t ac__type_sizeof_;
24322 main ()
24324 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24325 test_array [0] = 0
24328 return 0;
24330 _ACEOF
24331 rm -f conftest.$ac_objext
24332 if { (ac_try="$ac_compile"
24333 case "(($ac_try" in
24334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24335 *) ac_try_echo=$ac_try;;
24336 esac
24337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24338 (eval "$ac_compile") 2>conftest.er1
24339 ac_status=$?
24340 grep -v '^ *+' conftest.er1 >conftest.err
24341 rm -f conftest.er1
24342 cat conftest.err >&5
24343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24344 (exit $ac_status); } && {
24345 test -z "$ac_c_werror_flag" ||
24346 test ! -s conftest.err
24347 } && test -s conftest.$ac_objext; then
24348 ac_hi=$ac_mid
24349 else
24350 echo "$as_me: failed program was:" >&5
24351 sed 's/^/| /' conftest.$ac_ext >&5
24353 ac_lo=`expr '(' $ac_mid ')' + 1`
24356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24357 done
24358 case $ac_lo in
24359 ?*) ac_cv_sizeof_off_t=$ac_lo;;
24360 '') if test "$ac_cv_type_off_t" = yes; then
24361 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
24362 See \`config.log' for more details." >&5
24363 echo "$as_me: error: cannot compute sizeof (off_t)
24364 See \`config.log' for more details." >&2;}
24365 { (exit 77); exit 77; }; }
24366 else
24367 ac_cv_sizeof_off_t=0
24368 fi ;;
24369 esac
24370 else
24371 cat >conftest.$ac_ext <<_ACEOF
24372 /* confdefs.h. */
24373 _ACEOF
24374 cat confdefs.h >>conftest.$ac_ext
24375 cat >>conftest.$ac_ext <<_ACEOF
24376 /* end confdefs.h. */
24377 $ac_includes_default
24378 typedef off_t ac__type_sizeof_;
24379 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24380 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24381 #include <stdio.h>
24382 #include <stdlib.h>
24384 main ()
24387 FILE *f = fopen ("conftest.val", "w");
24388 if (! f)
24389 return 1;
24390 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24392 long int i = longval ();
24393 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24394 return 1;
24395 fprintf (f, "%ld\n", i);
24397 else
24399 unsigned long int i = ulongval ();
24400 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24401 return 1;
24402 fprintf (f, "%lu\n", i);
24404 return ferror (f) || fclose (f) != 0;
24407 return 0;
24409 _ACEOF
24410 rm -f conftest$ac_exeext
24411 if { (ac_try="$ac_link"
24412 case "(($ac_try" in
24413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24414 *) ac_try_echo=$ac_try;;
24415 esac
24416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24417 (eval "$ac_link") 2>&5
24418 ac_status=$?
24419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24420 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24421 { (case "(($ac_try" in
24422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24423 *) ac_try_echo=$ac_try;;
24424 esac
24425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24426 (eval "$ac_try") 2>&5
24427 ac_status=$?
24428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24429 (exit $ac_status); }; }; then
24430 ac_cv_sizeof_off_t=`cat conftest.val`
24431 else
24432 echo "$as_me: program exited with status $ac_status" >&5
24433 echo "$as_me: failed program was:" >&5
24434 sed 's/^/| /' conftest.$ac_ext >&5
24436 ( exit $ac_status )
24437 if test "$ac_cv_type_off_t" = yes; then
24438 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
24439 See \`config.log' for more details." >&5
24440 echo "$as_me: error: cannot compute sizeof (off_t)
24441 See \`config.log' for more details." >&2;}
24442 { (exit 77); exit 77; }; }
24443 else
24444 ac_cv_sizeof_off_t=0
24447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24449 rm -f conftest.val
24451 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
24452 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
24456 cat >>confdefs.h <<_ACEOF
24457 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24458 _ACEOF
24462 # If we don't have largefile support, can't handle segsize >= 2GB.
24463 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
24464 { { echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
24465 echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
24466 { (exit 1); exit 1; }; }
24469 # SunOS doesn't handle negative byte comparisons properly with +/- return
24470 { echo "$as_me:$LINENO: checking for working memcmp" >&5
24471 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
24472 if test "${ac_cv_func_memcmp_working+set}" = set; then
24473 echo $ECHO_N "(cached) $ECHO_C" >&6
24474 else
24475 if test "$cross_compiling" = yes; then
24476 ac_cv_func_memcmp_working=no
24477 else
24478 cat >conftest.$ac_ext <<_ACEOF
24479 /* confdefs.h. */
24480 _ACEOF
24481 cat confdefs.h >>conftest.$ac_ext
24482 cat >>conftest.$ac_ext <<_ACEOF
24483 /* end confdefs.h. */
24484 $ac_includes_default
24486 main ()
24489 /* Some versions of memcmp are not 8-bit clean. */
24490 char c0 = '\100', c1 = '\200', c2 = '\201';
24491 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24492 return 1;
24494 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24495 or more and with at least one buffer not starting on a 4-byte boundary.
24496 William Lewis provided this test program. */
24498 char foo[21];
24499 char bar[21];
24500 int i;
24501 for (i = 0; i < 4; i++)
24503 char *a = foo + i;
24504 char *b = bar + i;
24505 strcpy (a, "--------01111111");
24506 strcpy (b, "--------10000000");
24507 if (memcmp (a, b, 16) >= 0)
24508 return 1;
24510 return 0;
24514 return 0;
24516 _ACEOF
24517 rm -f conftest$ac_exeext
24518 if { (ac_try="$ac_link"
24519 case "(($ac_try" in
24520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24521 *) ac_try_echo=$ac_try;;
24522 esac
24523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24524 (eval "$ac_link") 2>&5
24525 ac_status=$?
24526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24527 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24528 { (case "(($ac_try" in
24529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24530 *) ac_try_echo=$ac_try;;
24531 esac
24532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24533 (eval "$ac_try") 2>&5
24534 ac_status=$?
24535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24536 (exit $ac_status); }; }; then
24537 ac_cv_func_memcmp_working=yes
24538 else
24539 echo "$as_me: program exited with status $ac_status" >&5
24540 echo "$as_me: failed program was:" >&5
24541 sed 's/^/| /' conftest.$ac_ext >&5
24543 ( exit $ac_status )
24544 ac_cv_func_memcmp_working=no
24546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24551 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
24552 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
24553 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24554 *" memcmp.$ac_objext "* ) ;;
24555 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24557 esac
24562 # Select semaphore implementation type.
24563 if test "$PORTNAME" != "win32"; then
24564 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
24566 cat >>confdefs.h <<\_ACEOF
24567 #define USE_NAMED_POSIX_SEMAPHORES 1
24568 _ACEOF
24570 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
24571 else
24572 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
24574 cat >>confdefs.h <<\_ACEOF
24575 #define USE_UNNAMED_POSIX_SEMAPHORES 1
24576 _ACEOF
24578 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
24579 else
24581 cat >>confdefs.h <<\_ACEOF
24582 #define USE_SYSV_SEMAPHORES 1
24583 _ACEOF
24585 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
24588 else
24590 cat >>confdefs.h <<\_ACEOF
24591 #define USE_WIN32_SEMAPHORES 1
24592 _ACEOF
24594 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
24598 # Select shared-memory implementation type.
24599 if test "$PORTNAME" != "win32"; then
24601 cat >>confdefs.h <<\_ACEOF
24602 #define USE_SYSV_SHARED_MEMORY 1
24603 _ACEOF
24605 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
24606 else
24608 cat >>confdefs.h <<\_ACEOF
24609 #define USE_WIN32_SHARED_MEMORY 1
24610 _ACEOF
24612 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
24615 # If not set in template file, set bytes to use libc memset()
24616 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
24617 MEMSET_LOOP_LIMIT=1024
24620 cat >>confdefs.h <<_ACEOF
24621 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
24622 _ACEOF
24626 if test "$enable_nls" = yes ; then
24628 { echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
24629 echo $ECHO_N "checking for library containing bind_textdomain_codeset... $ECHO_C" >&6; }
24630 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
24631 echo $ECHO_N "(cached) $ECHO_C" >&6
24632 else
24633 ac_func_search_save_LIBS=$LIBS
24634 cat >conftest.$ac_ext <<_ACEOF
24635 /* confdefs.h. */
24636 _ACEOF
24637 cat confdefs.h >>conftest.$ac_ext
24638 cat >>conftest.$ac_ext <<_ACEOF
24639 /* end confdefs.h. */
24641 /* Override any GCC internal prototype to avoid an error.
24642 Use char because int might match the return type of a GCC
24643 builtin and then its argument prototype would still apply. */
24644 #ifdef __cplusplus
24645 extern "C"
24646 #endif
24647 char bind_textdomain_codeset ();
24649 main ()
24651 return bind_textdomain_codeset ();
24653 return 0;
24655 _ACEOF
24656 for ac_lib in '' intl; do
24657 if test -z "$ac_lib"; then
24658 ac_res="none required"
24659 else
24660 ac_res=-l$ac_lib
24661 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24663 rm -f conftest.$ac_objext conftest$ac_exeext
24664 if { (ac_try="$ac_link"
24665 case "(($ac_try" in
24666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24667 *) ac_try_echo=$ac_try;;
24668 esac
24669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24670 (eval "$ac_link") 2>conftest.er1
24671 ac_status=$?
24672 grep -v '^ *+' conftest.er1 >conftest.err
24673 rm -f conftest.er1
24674 cat conftest.err >&5
24675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24676 (exit $ac_status); } && {
24677 test -z "$ac_c_werror_flag" ||
24678 test ! -s conftest.err
24679 } && test -s conftest$ac_exeext &&
24680 $as_test_x conftest$ac_exeext; then
24681 ac_cv_search_bind_textdomain_codeset=$ac_res
24682 else
24683 echo "$as_me: failed program was:" >&5
24684 sed 's/^/| /' conftest.$ac_ext >&5
24689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24690 conftest$ac_exeext
24691 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
24692 break
24694 done
24695 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
24697 else
24698 ac_cv_search_bind_textdomain_codeset=no
24700 rm conftest.$ac_ext
24701 LIBS=$ac_func_search_save_LIBS
24703 { echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
24704 echo "${ECHO_T}$ac_cv_search_bind_textdomain_codeset" >&6; }
24705 ac_res=$ac_cv_search_bind_textdomain_codeset
24706 if test "$ac_res" != no; then
24707 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24709 else
24710 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
24711 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
24712 { (exit 1); exit 1; }; }
24715 if test "${ac_cv_header_libintl_h+set}" = set; then
24716 { echo "$as_me:$LINENO: checking for libintl.h" >&5
24717 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
24718 if test "${ac_cv_header_libintl_h+set}" = set; then
24719 echo $ECHO_N "(cached) $ECHO_C" >&6
24721 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
24722 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
24723 else
24724 # Is the header compilable?
24725 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
24726 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
24727 cat >conftest.$ac_ext <<_ACEOF
24728 /* confdefs.h. */
24729 _ACEOF
24730 cat confdefs.h >>conftest.$ac_ext
24731 cat >>conftest.$ac_ext <<_ACEOF
24732 /* end confdefs.h. */
24733 $ac_includes_default
24734 #include <libintl.h>
24735 _ACEOF
24736 rm -f conftest.$ac_objext
24737 if { (ac_try="$ac_compile"
24738 case "(($ac_try" in
24739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24740 *) ac_try_echo=$ac_try;;
24741 esac
24742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24743 (eval "$ac_compile") 2>conftest.er1
24744 ac_status=$?
24745 grep -v '^ *+' conftest.er1 >conftest.err
24746 rm -f conftest.er1
24747 cat conftest.err >&5
24748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24749 (exit $ac_status); } && {
24750 test -z "$ac_c_werror_flag" ||
24751 test ! -s conftest.err
24752 } && test -s conftest.$ac_objext; then
24753 ac_header_compiler=yes
24754 else
24755 echo "$as_me: failed program was:" >&5
24756 sed 's/^/| /' conftest.$ac_ext >&5
24758 ac_header_compiler=no
24761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24762 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24763 echo "${ECHO_T}$ac_header_compiler" >&6; }
24765 # Is the header present?
24766 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
24767 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
24768 cat >conftest.$ac_ext <<_ACEOF
24769 /* confdefs.h. */
24770 _ACEOF
24771 cat confdefs.h >>conftest.$ac_ext
24772 cat >>conftest.$ac_ext <<_ACEOF
24773 /* end confdefs.h. */
24774 #include <libintl.h>
24775 _ACEOF
24776 if { (ac_try="$ac_cpp conftest.$ac_ext"
24777 case "(($ac_try" in
24778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24779 *) ac_try_echo=$ac_try;;
24780 esac
24781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24782 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24783 ac_status=$?
24784 grep -v '^ *+' conftest.er1 >conftest.err
24785 rm -f conftest.er1
24786 cat conftest.err >&5
24787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24788 (exit $ac_status); } >/dev/null && {
24789 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24790 test ! -s conftest.err
24791 }; then
24792 ac_header_preproc=yes
24793 else
24794 echo "$as_me: failed program was:" >&5
24795 sed 's/^/| /' conftest.$ac_ext >&5
24797 ac_header_preproc=no
24800 rm -f conftest.err conftest.$ac_ext
24801 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24802 echo "${ECHO_T}$ac_header_preproc" >&6; }
24804 # So? What about this header?
24805 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24806 yes:no: )
24807 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
24808 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24809 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
24810 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
24811 ac_header_preproc=yes
24813 no:yes:* )
24814 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
24815 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
24816 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
24817 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
24818 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
24819 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
24820 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
24821 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
24822 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
24823 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
24824 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
24825 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
24826 ( cat <<\_ASBOX
24827 ## ---------------------------------------- ##
24828 ## Report this to pgsql-bugs@postgresql.org ##
24829 ## ---------------------------------------- ##
24830 _ASBOX
24831 ) | sed "s/^/$as_me: WARNING: /" >&2
24833 esac
24834 { echo "$as_me:$LINENO: checking for libintl.h" >&5
24835 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
24836 if test "${ac_cv_header_libintl_h+set}" = set; then
24837 echo $ECHO_N "(cached) $ECHO_C" >&6
24838 else
24839 ac_cv_header_libintl_h=$ac_header_preproc
24841 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
24842 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
24845 if test $ac_cv_header_libintl_h = yes; then
24847 else
24848 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
24849 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
24850 { (exit 1); exit 1; }; }
24854 for ac_prog in msgfmt
24856 # Extract the first word of "$ac_prog", so it can be a program name with args.
24857 set dummy $ac_prog; ac_word=$2
24858 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24860 if test "${ac_cv_prog_MSGFMT+set}" = set; then
24861 echo $ECHO_N "(cached) $ECHO_C" >&6
24862 else
24863 if test -n "$MSGFMT"; then
24864 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
24865 else
24866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24867 for as_dir in $PATH
24869 IFS=$as_save_IFS
24870 test -z "$as_dir" && as_dir=.
24871 for ac_exec_ext in '' $ac_executable_extensions; do
24872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24873 ac_cv_prog_MSGFMT="$ac_prog"
24874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24875 break 2
24877 done
24878 done
24879 IFS=$as_save_IFS
24883 MSGFMT=$ac_cv_prog_MSGFMT
24884 if test -n "$MSGFMT"; then
24885 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
24886 echo "${ECHO_T}$MSGFMT" >&6; }
24887 else
24888 { echo "$as_me:$LINENO: result: no" >&5
24889 echo "${ECHO_T}no" >&6; }
24893 test -n "$MSGFMT" && break
24894 done
24896 if test -z "$MSGFMT"; then
24897 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
24898 echo "$as_me: error: msgfmt is required for NLS" >&2;}
24899 { (exit 1); exit 1; }; }
24901 for ac_prog in msgmerge
24903 # Extract the first word of "$ac_prog", so it can be a program name with args.
24904 set dummy $ac_prog; ac_word=$2
24905 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24907 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
24908 echo $ECHO_N "(cached) $ECHO_C" >&6
24909 else
24910 if test -n "$MSGMERGE"; then
24911 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
24912 else
24913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24914 for as_dir in $PATH
24916 IFS=$as_save_IFS
24917 test -z "$as_dir" && as_dir=.
24918 for ac_exec_ext in '' $ac_executable_extensions; do
24919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24920 ac_cv_prog_MSGMERGE="$ac_prog"
24921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24922 break 2
24924 done
24925 done
24926 IFS=$as_save_IFS
24930 MSGMERGE=$ac_cv_prog_MSGMERGE
24931 if test -n "$MSGMERGE"; then
24932 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
24933 echo "${ECHO_T}$MSGMERGE" >&6; }
24934 else
24935 { echo "$as_me:$LINENO: result: no" >&5
24936 echo "${ECHO_T}no" >&6; }
24940 test -n "$MSGMERGE" && break
24941 done
24943 for ac_prog in xgettext
24945 # Extract the first word of "$ac_prog", so it can be a program name with args.
24946 set dummy $ac_prog; ac_word=$2
24947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24949 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
24950 echo $ECHO_N "(cached) $ECHO_C" >&6
24951 else
24952 if test -n "$XGETTEXT"; then
24953 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
24954 else
24955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24956 for as_dir in $PATH
24958 IFS=$as_save_IFS
24959 test -z "$as_dir" && as_dir=.
24960 for ac_exec_ext in '' $ac_executable_extensions; do
24961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24962 ac_cv_prog_XGETTEXT="$ac_prog"
24963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24964 break 2
24966 done
24967 done
24968 IFS=$as_save_IFS
24972 XGETTEXT=$ac_cv_prog_XGETTEXT
24973 if test -n "$XGETTEXT"; then
24974 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
24975 echo "${ECHO_T}$XGETTEXT" >&6; }
24976 else
24977 { echo "$as_me:$LINENO: result: no" >&5
24978 echo "${ECHO_T}no" >&6; }
24982 test -n "$XGETTEXT" && break
24983 done
24988 # Check for Tcl configuration script tclConfig.sh
24989 if test "$with_tcl" = yes; then
24990 for ac_prog in tclsh tcl tclsh8.5 tclsh8.4 tclsh8.3
24992 # Extract the first word of "$ac_prog", so it can be a program name with args.
24993 set dummy $ac_prog; ac_word=$2
24994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24996 if test "${ac_cv_path_TCLSH+set}" = set; then
24997 echo $ECHO_N "(cached) $ECHO_C" >&6
24998 else
24999 case $TCLSH in
25000 [\\/]* | ?:[\\/]*)
25001 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
25004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25005 for as_dir in $PATH
25007 IFS=$as_save_IFS
25008 test -z "$as_dir" && as_dir=.
25009 for ac_exec_ext in '' $ac_executable_extensions; do
25010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25011 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
25012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25013 break 2
25015 done
25016 done
25017 IFS=$as_save_IFS
25020 esac
25022 TCLSH=$ac_cv_path_TCLSH
25023 if test -n "$TCLSH"; then
25024 { echo "$as_me:$LINENO: result: $TCLSH" >&5
25025 echo "${ECHO_T}$TCLSH" >&6; }
25026 else
25027 { echo "$as_me:$LINENO: result: no" >&5
25028 echo "${ECHO_T}no" >&6; }
25032 test -n "$TCLSH" && break
25033 done
25035 if test x"$TCLSH" = x""; then
25036 { { echo "$as_me:$LINENO: error: Tcl shell not found" >&5
25037 echo "$as_me: error: Tcl shell not found" >&2;}
25038 { (exit 1); exit 1; }; }
25041 { echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
25042 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6; }
25043 # Let user override test
25044 if test -z "$TCL_CONFIG_SH"; then
25045 pgac_test_dirs="$with_tclconfig"
25047 set X $pgac_test_dirs; shift
25048 if test $# -eq 0; then
25049 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
25050 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
25051 { (exit 1); exit 1; }; }
25052 set X `echo 'puts $auto_path' | $TCLSH`; shift
25055 for pgac_dir do
25056 if test -r "$pgac_dir/tclConfig.sh"; then
25057 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
25058 break
25060 done
25063 if test -z "$TCL_CONFIG_SH"; then
25064 { echo "$as_me:$LINENO: result: no" >&5
25065 echo "${ECHO_T}no" >&6; }
25066 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
25067 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
25068 { (exit 1); exit 1; }; }
25069 else
25070 { echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
25071 echo "${ECHO_T}$TCL_CONFIG_SH" >&6; }
25076 . "$TCL_CONFIG_SH"
25077 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
25078 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
25079 eval TCL_LIBS=\"$TCL_LIBS\"
25080 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
25081 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
25083 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
25084 ac_save_CPPFLAGS=$CPPFLAGS
25085 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
25086 if test "${ac_cv_header_tcl_h+set}" = set; then
25087 { echo "$as_me:$LINENO: checking for tcl.h" >&5
25088 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
25089 if test "${ac_cv_header_tcl_h+set}" = set; then
25090 echo $ECHO_N "(cached) $ECHO_C" >&6
25092 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
25093 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
25094 else
25095 # Is the header compilable?
25096 { echo "$as_me:$LINENO: checking tcl.h usability" >&5
25097 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6; }
25098 cat >conftest.$ac_ext <<_ACEOF
25099 /* confdefs.h. */
25100 _ACEOF
25101 cat confdefs.h >>conftest.$ac_ext
25102 cat >>conftest.$ac_ext <<_ACEOF
25103 /* end confdefs.h. */
25104 $ac_includes_default
25105 #include <tcl.h>
25106 _ACEOF
25107 rm -f conftest.$ac_objext
25108 if { (ac_try="$ac_compile"
25109 case "(($ac_try" in
25110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25111 *) ac_try_echo=$ac_try;;
25112 esac
25113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25114 (eval "$ac_compile") 2>conftest.er1
25115 ac_status=$?
25116 grep -v '^ *+' conftest.er1 >conftest.err
25117 rm -f conftest.er1
25118 cat conftest.err >&5
25119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25120 (exit $ac_status); } && {
25121 test -z "$ac_c_werror_flag" ||
25122 test ! -s conftest.err
25123 } && test -s conftest.$ac_objext; then
25124 ac_header_compiler=yes
25125 else
25126 echo "$as_me: failed program was:" >&5
25127 sed 's/^/| /' conftest.$ac_ext >&5
25129 ac_header_compiler=no
25132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25133 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25134 echo "${ECHO_T}$ac_header_compiler" >&6; }
25136 # Is the header present?
25137 { echo "$as_me:$LINENO: checking tcl.h presence" >&5
25138 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6; }
25139 cat >conftest.$ac_ext <<_ACEOF
25140 /* confdefs.h. */
25141 _ACEOF
25142 cat confdefs.h >>conftest.$ac_ext
25143 cat >>conftest.$ac_ext <<_ACEOF
25144 /* end confdefs.h. */
25145 #include <tcl.h>
25146 _ACEOF
25147 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
25160 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25161 test ! -s conftest.err
25162 }; then
25163 ac_header_preproc=yes
25164 else
25165 echo "$as_me: failed program was:" >&5
25166 sed 's/^/| /' conftest.$ac_ext >&5
25168 ac_header_preproc=no
25171 rm -f conftest.err conftest.$ac_ext
25172 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25173 echo "${ECHO_T}$ac_header_preproc" >&6; }
25175 # So? What about this header?
25176 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25177 yes:no: )
25178 { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25179 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25180 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
25181 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
25182 ac_header_preproc=yes
25184 no:yes:* )
25185 { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
25186 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
25187 { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
25188 echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
25189 { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
25190 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
25191 { echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
25192 echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
25193 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
25194 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
25195 { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
25196 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
25197 ( cat <<\_ASBOX
25198 ## ---------------------------------------- ##
25199 ## Report this to pgsql-bugs@postgresql.org ##
25200 ## ---------------------------------------- ##
25201 _ASBOX
25202 ) | sed "s/^/$as_me: WARNING: /" >&2
25204 esac
25205 { echo "$as_me:$LINENO: checking for tcl.h" >&5
25206 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
25207 if test "${ac_cv_header_tcl_h+set}" = set; then
25208 echo $ECHO_N "(cached) $ECHO_C" >&6
25209 else
25210 ac_cv_header_tcl_h=$ac_header_preproc
25212 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
25213 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
25216 if test $ac_cv_header_tcl_h = yes; then
25218 else
25219 { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
25220 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
25221 { (exit 1); exit 1; }; }
25225 CPPFLAGS=$ac_save_CPPFLAGS
25229 # Check for DocBook and tools
25231 for ac_prog in onsgmls nsgmls
25233 # Extract the first word of "$ac_prog", so it can be a program name with args.
25234 set dummy $ac_prog; ac_word=$2
25235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25237 if test "${ac_cv_prog_NSGMLS+set}" = set; then
25238 echo $ECHO_N "(cached) $ECHO_C" >&6
25239 else
25240 if test -n "$NSGMLS"; then
25241 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
25242 else
25243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25244 for as_dir in $PATH
25246 IFS=$as_save_IFS
25247 test -z "$as_dir" && as_dir=.
25248 for ac_exec_ext in '' $ac_executable_extensions; do
25249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25250 ac_cv_prog_NSGMLS="$ac_prog"
25251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25252 break 2
25254 done
25255 done
25256 IFS=$as_save_IFS
25260 NSGMLS=$ac_cv_prog_NSGMLS
25261 if test -n "$NSGMLS"; then
25262 { echo "$as_me:$LINENO: result: $NSGMLS" >&5
25263 echo "${ECHO_T}$NSGMLS" >&6; }
25264 else
25265 { echo "$as_me:$LINENO: result: no" >&5
25266 echo "${ECHO_T}no" >&6; }
25270 test -n "$NSGMLS" && break
25271 done
25273 for ac_prog in openjade jade
25275 # Extract the first word of "$ac_prog", so it can be a program name with args.
25276 set dummy $ac_prog; ac_word=$2
25277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25279 if test "${ac_cv_prog_JADE+set}" = set; then
25280 echo $ECHO_N "(cached) $ECHO_C" >&6
25281 else
25282 if test -n "$JADE"; then
25283 ac_cv_prog_JADE="$JADE" # Let the user override the test.
25284 else
25285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25286 for as_dir in $PATH
25288 IFS=$as_save_IFS
25289 test -z "$as_dir" && as_dir=.
25290 for ac_exec_ext in '' $ac_executable_extensions; do
25291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25292 ac_cv_prog_JADE="$ac_prog"
25293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25294 break 2
25296 done
25297 done
25298 IFS=$as_save_IFS
25302 JADE=$ac_cv_prog_JADE
25303 if test -n "$JADE"; then
25304 { echo "$as_me:$LINENO: result: $JADE" >&5
25305 echo "${ECHO_T}$JADE" >&6; }
25306 else
25307 { echo "$as_me:$LINENO: result: no" >&5
25308 echo "${ECHO_T}no" >&6; }
25312 test -n "$JADE" && break
25313 done
25316 { echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
25317 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6; }
25318 if test "${pgac_cv_check_docbook+set}" = set; then
25319 echo $ECHO_N "(cached) $ECHO_C" >&6
25320 else
25321 cat >conftest.sgml <<EOF
25322 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
25323 <book>
25324 <title>test</title>
25325 <chapter>
25326 <title>random</title>
25327 <sect1>
25328 <title>testsect</title>
25329 <para>text</para>
25330 </sect1>
25331 </chapter>
25332 </book>
25335 pgac_cv_check_docbook=no
25337 if test -n "$NSGMLS"; then
25338 $NSGMLS -s conftest.sgml 1>&5 2>&1
25339 if test $? -eq 0; then
25340 pgac_cv_check_docbook=yes
25343 rm -f conftest.sgml
25345 { echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
25346 echo "${ECHO_T}$pgac_cv_check_docbook" >&6; }
25348 have_docbook=$pgac_cv_check_docbook
25351 { echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
25352 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6; }
25353 if test "${pgac_cv_path_stylesheets+set}" = set; then
25354 echo $ECHO_N "(cached) $ECHO_C" >&6
25355 else
25356 if test -n "$DOCBOOKSTYLE"; then
25357 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
25358 else
25359 for pgac_prefix in /usr /usr/local /opt; do
25360 for pgac_infix in share lib; do
25361 for pgac_postfix in \
25362 sgml/stylesheets/nwalsh-modular \
25363 sgml/stylesheets/docbook \
25364 sgml/stylesheets/dsssl/docbook \
25365 sgml/docbook-dsssl \
25366 sgml/docbook/dsssl/modular \
25367 sgml/docbook/stylesheet/dsssl/modular \
25368 sgml/docbook/dsssl-stylesheets
25370 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
25371 if test -r "$pgac_candidate/html/docbook.dsl" \
25372 && test -r "$pgac_candidate/print/docbook.dsl"
25373 then
25374 pgac_cv_path_stylesheets=$pgac_candidate
25375 break 3
25377 done
25378 done
25379 done
25383 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
25385 if test -n "$DOCBOOKSTYLE"; then
25386 { echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
25387 echo "${ECHO_T}$DOCBOOKSTYLE" >&6; }
25388 else
25389 { echo "$as_me:$LINENO: result: no" >&5
25390 echo "${ECHO_T}no" >&6; }
25392 if test -n "$DOCBOOKSTYLE"; then
25393 for ac_prog in collateindex.pl
25395 # Extract the first word of "$ac_prog", so it can be a program name with args.
25396 set dummy $ac_prog; ac_word=$2
25397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25399 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
25400 echo $ECHO_N "(cached) $ECHO_C" >&6
25401 else
25402 case $COLLATEINDEX in
25403 [\\/]* | ?:[\\/]*)
25404 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
25407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25408 for as_dir in $DOCBOOKSTYLE/bin $PATH
25410 IFS=$as_save_IFS
25411 test -z "$as_dir" && as_dir=.
25412 for ac_exec_ext in '' $ac_executable_extensions; do
25413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25414 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
25415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25416 break 2
25418 done
25419 done
25420 IFS=$as_save_IFS
25423 esac
25425 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
25426 if test -n "$COLLATEINDEX"; then
25427 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
25428 echo "${ECHO_T}$COLLATEINDEX" >&6; }
25429 else
25430 { echo "$as_me:$LINENO: result: no" >&5
25431 echo "${ECHO_T}no" >&6; }
25435 test -n "$COLLATEINDEX" && break
25436 done
25438 else
25439 for ac_prog in collateindex.pl
25441 # Extract the first word of "$ac_prog", so it can be a program name with args.
25442 set dummy $ac_prog; ac_word=$2
25443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25445 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
25446 echo $ECHO_N "(cached) $ECHO_C" >&6
25447 else
25448 case $COLLATEINDEX in
25449 [\\/]* | ?:[\\/]*)
25450 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
25453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25454 for as_dir in $PATH
25456 IFS=$as_save_IFS
25457 test -z "$as_dir" && as_dir=.
25458 for ac_exec_ext in '' $ac_executable_extensions; do
25459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25460 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
25461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25462 break 2
25464 done
25465 done
25466 IFS=$as_save_IFS
25469 esac
25471 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
25472 if test -n "$COLLATEINDEX"; then
25473 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
25474 echo "${ECHO_T}$COLLATEINDEX" >&6; }
25475 else
25476 { echo "$as_me:$LINENO: result: no" >&5
25477 echo "${ECHO_T}no" >&6; }
25481 test -n "$COLLATEINDEX" && break
25482 done
25485 for ac_prog in sgmlspl
25487 # Extract the first word of "$ac_prog", so it can be a program name with args.
25488 set dummy $ac_prog; ac_word=$2
25489 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25491 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
25492 echo $ECHO_N "(cached) $ECHO_C" >&6
25493 else
25494 if test -n "$SGMLSPL"; then
25495 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
25496 else
25497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25498 for as_dir in $PATH
25500 IFS=$as_save_IFS
25501 test -z "$as_dir" && as_dir=.
25502 for ac_exec_ext in '' $ac_executable_extensions; do
25503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25504 ac_cv_prog_SGMLSPL="$ac_prog"
25505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25506 break 2
25508 done
25509 done
25510 IFS=$as_save_IFS
25514 SGMLSPL=$ac_cv_prog_SGMLSPL
25515 if test -n "$SGMLSPL"; then
25516 { echo "$as_me:$LINENO: result: $SGMLSPL" >&5
25517 echo "${ECHO_T}$SGMLSPL" >&6; }
25518 else
25519 { echo "$as_me:$LINENO: result: no" >&5
25520 echo "${ECHO_T}no" >&6; }
25524 test -n "$SGMLSPL" && break
25525 done
25528 # Thread testing
25530 # We have to run the thread test near the end so we have all our symbols
25531 # defined. Cross compiling throws a warning.
25533 if test "$enable_thread_safety_force" = yes; then
25534 if test "$PORTNAME" != "win32"
25535 then
25536 { echo "$as_me:$LINENO: WARNING:
25537 *** Skipping thread test program. --enable-thread-safety-force was used.
25538 *** Run the program in src/test/thread on the your machine and add proper
25539 *** locking function calls to your applications to guarantee thread safety.
25540 " >&5
25541 echo "$as_me: WARNING:
25542 *** Skipping thread test program. --enable-thread-safety-force was used.
25543 *** Run the program in src/test/thread on the your machine and add proper
25544 *** locking function calls to your applications to guarantee thread safety.
25545 " >&2;}
25546 else
25547 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
25548 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
25550 elif test "$enable_thread_safety" = yes; then
25551 if test "$PORTNAME" != "win32"
25552 then
25553 { echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
25554 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6; }
25556 _CFLAGS="$CFLAGS"
25557 _LIBS="$LIBS"
25558 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
25559 LIBS="$LIBS $PTHREAD_LIBS"
25560 if test "$cross_compiling" = yes; then
25561 { echo "$as_me:$LINENO: result: maybe" >&5
25562 echo "${ECHO_T}maybe" >&6; }
25563 { echo "$as_me:$LINENO: WARNING:
25564 *** Skipping thread test program because of cross-compile build.
25565 *** Run the program in src/test/thread on the target machine.
25566 " >&5
25567 echo "$as_me: WARNING:
25568 *** Skipping thread test program because of cross-compile build.
25569 *** Run the program in src/test/thread on the target machine.
25570 " >&2;}
25571 else
25572 cat >conftest.$ac_ext <<_ACEOF
25573 /* confdefs.h. */
25574 _ACEOF
25575 cat confdefs.h >>conftest.$ac_ext
25576 cat >>conftest.$ac_ext <<_ACEOF
25577 /* end confdefs.h. */
25578 #include "$srcdir/src/test/thread/thread_test.c"
25579 _ACEOF
25580 rm -f conftest$ac_exeext
25581 if { (ac_try="$ac_link"
25582 case "(($ac_try" in
25583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25584 *) ac_try_echo=$ac_try;;
25585 esac
25586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25587 (eval "$ac_link") 2>&5
25588 ac_status=$?
25589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25591 { (case "(($ac_try" in
25592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25593 *) ac_try_echo=$ac_try;;
25594 esac
25595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25596 (eval "$ac_try") 2>&5
25597 ac_status=$?
25598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25599 (exit $ac_status); }; }; then
25600 { echo "$as_me:$LINENO: result: yes" >&5
25601 echo "${ECHO_T}yes" >&6; }
25602 else
25603 echo "$as_me: program exited with status $ac_status" >&5
25604 echo "$as_me: failed program was:" >&5
25605 sed 's/^/| /' conftest.$ac_ext >&5
25607 ( exit $ac_status )
25608 { echo "$as_me:$LINENO: result: no" >&5
25609 echo "${ECHO_T}no" >&6; }
25610 { { echo "$as_me:$LINENO: error: thread test program failed
25611 This platform is not thread-safe. Check the file 'config.log'for the
25612 exact reason.
25614 You can use the configure option --enable-thread-safety-force to force
25615 threads to be enabled. But you must then run the program in
25616 src/test/thread and add locking function calls to your applications to
25617 guarantee thread safety." >&5
25618 echo "$as_me: error: thread test program failed
25619 This platform is not thread-safe. Check the file 'config.log'for the
25620 exact reason.
25622 You can use the configure option --enable-thread-safety-force to force
25623 threads to be enabled. But you must then run the program in
25624 src/test/thread and add locking function calls to your applications to
25625 guarantee thread safety." >&2;}
25626 { (exit 1); exit 1; }; }
25628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25632 CFLAGS="$_CFLAGS"
25633 LIBS="$_LIBS"
25634 else
25635 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
25636 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
25640 # If compiler will take -Wl,--as-needed then add that to LDFLAGS.
25641 # This is much easier than trying to filter LIBS to the minimum for each
25642 # executable. (Note that shared library links won't use this switch, though.)
25643 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
25644 # libreadline; therefore we postpone testing it until we know what library
25645 # dependencies readline has. The test code will try to link with $LIBS.
25646 if test "$with_readline" = yes; then
25647 link_test_func=readline
25648 else
25649 link_test_func=exit
25651 if test "$PORTNAME" != "darwin"; then
25652 { echo "$as_me:$LINENO: checking if $CC supports -Wl,--as-needed" >&5
25653 echo $ECHO_N "checking if $CC supports -Wl,--as-needed... $ECHO_C" >&6; }
25654 pgac_save_LDFLAGS=$LDFLAGS
25655 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
25656 if test "$cross_compiling" = yes; then
25657 LDFLAGS="$pgac_save_LDFLAGS"
25658 { echo "$as_me:$LINENO: result: assuming no" >&5
25659 echo "${ECHO_T}assuming no" >&6; }
25660 else
25661 cat >conftest.$ac_ext <<_ACEOF
25662 /* confdefs.h. */
25663 _ACEOF
25664 cat confdefs.h >>conftest.$ac_ext
25665 cat >>conftest.$ac_ext <<_ACEOF
25666 /* end confdefs.h. */
25667 extern void $link_test_func (); void (*fptr) () = $link_test_func;
25669 main ()
25673 return 0;
25675 _ACEOF
25676 rm -f conftest$ac_exeext
25677 if { (ac_try="$ac_link"
25678 case "(($ac_try" in
25679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25680 *) ac_try_echo=$ac_try;;
25681 esac
25682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25683 (eval "$ac_link") 2>&5
25684 ac_status=$?
25685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25686 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25687 { (case "(($ac_try" in
25688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25689 *) ac_try_echo=$ac_try;;
25690 esac
25691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25692 (eval "$ac_try") 2>&5
25693 ac_status=$?
25694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25695 (exit $ac_status); }; }; then
25696 { echo "$as_me:$LINENO: result: yes" >&5
25697 echo "${ECHO_T}yes" >&6; }
25698 else
25699 echo "$as_me: program exited with status $ac_status" >&5
25700 echo "$as_me: failed program was:" >&5
25701 sed 's/^/| /' conftest.$ac_ext >&5
25703 ( exit $ac_status )
25704 LDFLAGS="$pgac_save_LDFLAGS"
25705 { echo "$as_me:$LINENO: result: no" >&5
25706 echo "${ECHO_T}no" >&6; }
25708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25713 else
25714 # On Darwin it's spelled -Wl,-dead_strip_dylibs, but don't try that elsewhere
25715 { echo "$as_me:$LINENO: checking if $CC supports -Wl,-dead_strip_dylibs" >&5
25716 echo $ECHO_N "checking if $CC supports -Wl,-dead_strip_dylibs... $ECHO_C" >&6; }
25717 pgac_save_LDFLAGS=$LDFLAGS
25718 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
25719 if test "$cross_compiling" = yes; then
25720 LDFLAGS="$pgac_save_LDFLAGS"
25721 { echo "$as_me:$LINENO: result: assuming no" >&5
25722 echo "${ECHO_T}assuming no" >&6; }
25723 else
25724 cat >conftest.$ac_ext <<_ACEOF
25725 /* confdefs.h. */
25726 _ACEOF
25727 cat confdefs.h >>conftest.$ac_ext
25728 cat >>conftest.$ac_ext <<_ACEOF
25729 /* end confdefs.h. */
25730 extern void $link_test_func (); void (*fptr) () = $link_test_func;
25732 main ()
25736 return 0;
25738 _ACEOF
25739 rm -f conftest$ac_exeext
25740 if { (ac_try="$ac_link"
25741 case "(($ac_try" in
25742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25743 *) ac_try_echo=$ac_try;;
25744 esac
25745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25746 (eval "$ac_link") 2>&5
25747 ac_status=$?
25748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25749 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25750 { (case "(($ac_try" in
25751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25752 *) ac_try_echo=$ac_try;;
25753 esac
25754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25755 (eval "$ac_try") 2>&5
25756 ac_status=$?
25757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25758 (exit $ac_status); }; }; then
25759 { echo "$as_me:$LINENO: result: yes" >&5
25760 echo "${ECHO_T}yes" >&6; }
25761 else
25762 echo "$as_me: program exited with status $ac_status" >&5
25763 echo "$as_me: failed program was:" >&5
25764 sed 's/^/| /' conftest.$ac_ext >&5
25766 ( exit $ac_status )
25767 LDFLAGS="$pgac_save_LDFLAGS"
25768 { echo "$as_me:$LINENO: result: no" >&5
25769 echo "${ECHO_T}no" >&6; }
25771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25779 # Begin output steps
25781 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
25782 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
25783 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
25784 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
25785 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
25786 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
25788 # prepare build tree if outside source tree
25789 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
25790 # Note 2: /bin/pwd might be better than shell's built-in at getting
25791 # a symlink-free name.
25792 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
25793 vpath_build=no
25794 else
25795 vpath_build=yes
25796 if test "$no_create" != yes; then
25797 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
25798 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
25799 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
25800 || { { echo "$as_me:$LINENO: error: failed" >&5
25801 echo "$as_me: error: failed" >&2;}
25802 { (exit 1); exit 1; }; }
25803 { echo "$as_me:$LINENO: result: done" >&5
25804 echo "${ECHO_T}done" >&6; }
25810 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
25813 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}"
25816 if test "$PORTNAME" = "win32"; then
25817 ac_config_commands="$ac_config_commands check_win32_symlinks"
25821 ac_config_headers="$ac_config_headers src/include/pg_config.h"
25824 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
25827 cat >confcache <<\_ACEOF
25828 # This file is a shell script that caches the results of configure
25829 # tests run on this system so they can be shared between configure
25830 # scripts and configure runs, see configure's option --config-cache.
25831 # It is not useful on other systems. If it contains results you don't
25832 # want to keep, you may remove or edit it.
25834 # config.status only pays attention to the cache file if you give it
25835 # the --recheck option to rerun configure.
25837 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25838 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25839 # following values.
25841 _ACEOF
25843 # The following way of writing the cache mishandles newlines in values,
25844 # but we know of no workaround that is simple, portable, and efficient.
25845 # So, we kill variables containing newlines.
25846 # Ultrix sh set writes to stderr and can't be redirected directly,
25847 # and sets the high bit in the cache file unless we assign to the vars.
25849 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25850 eval ac_val=\$$ac_var
25851 case $ac_val in #(
25852 *${as_nl}*)
25853 case $ac_var in #(
25854 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25855 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25856 esac
25857 case $ac_var in #(
25858 _ | IFS | as_nl) ;; #(
25859 *) $as_unset $ac_var ;;
25860 esac ;;
25861 esac
25862 done
25864 (set) 2>&1 |
25865 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25866 *${as_nl}ac_space=\ *)
25867 # `set' does not quote correctly, so add quotes (double-quote
25868 # substitution turns \\\\ into \\, and sed turns \\ into \).
25869 sed -n \
25870 "s/'/'\\\\''/g;
25871 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25872 ;; #(
25874 # `set' quotes correctly as required by POSIX, so do not add quotes.
25875 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25877 esac |
25878 sort
25880 sed '
25881 /^ac_cv_env_/b end
25882 t clear
25883 :clear
25884 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25885 t end
25886 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25887 :end' >>confcache
25888 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25889 if test -w "$cache_file"; then
25890 test "x$cache_file" != "x/dev/null" &&
25891 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25892 echo "$as_me: updating cache $cache_file" >&6;}
25893 cat confcache >$cache_file
25894 else
25895 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25896 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25899 rm -f confcache
25901 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25902 # Let make expand exec_prefix.
25903 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25905 DEFS=-DHAVE_CONFIG_H
25907 ac_libobjs=
25908 ac_ltlibobjs=
25909 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25910 # 1. Remove the extension, and $U if already installed.
25911 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25912 ac_i=`echo "$ac_i" | sed "$ac_script"`
25913 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25914 # will be set to the directory where LIBOBJS objects are built.
25915 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25916 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25917 done
25918 LIBOBJS=$ac_libobjs
25920 LTLIBOBJS=$ac_ltlibobjs
25924 : ${CONFIG_STATUS=./config.status}
25925 ac_clean_files_save=$ac_clean_files
25926 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25927 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25928 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25929 cat >$CONFIG_STATUS <<_ACEOF
25930 #! $SHELL
25931 # Generated by $as_me.
25932 # Run this file to recreate the current configuration.
25933 # Compiler output produced by configure, useful for debugging
25934 # configure, is in config.log if it exists.
25936 debug=false
25937 ac_cs_recheck=false
25938 ac_cs_silent=false
25939 SHELL=\${CONFIG_SHELL-$SHELL}
25940 _ACEOF
25942 cat >>$CONFIG_STATUS <<\_ACEOF
25943 ## --------------------- ##
25944 ## M4sh Initialization. ##
25945 ## --------------------- ##
25947 # Be more Bourne compatible
25948 DUALCASE=1; export DUALCASE # for MKS sh
25949 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25950 emulate sh
25951 NULLCMD=:
25952 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25953 # is contrary to our usage. Disable this feature.
25954 alias -g '${1+"$@"}'='"$@"'
25955 setopt NO_GLOB_SUBST
25956 else
25957 case `(set -o) 2>/dev/null` in
25958 *posix*) set -o posix ;;
25959 esac
25966 # PATH needs CR
25967 # Avoid depending upon Character Ranges.
25968 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25969 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25970 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25971 as_cr_digits='0123456789'
25972 as_cr_alnum=$as_cr_Letters$as_cr_digits
25974 # The user is always right.
25975 if test "${PATH_SEPARATOR+set}" != set; then
25976 echo "#! /bin/sh" >conf$$.sh
25977 echo "exit 0" >>conf$$.sh
25978 chmod +x conf$$.sh
25979 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25980 PATH_SEPARATOR=';'
25981 else
25982 PATH_SEPARATOR=:
25984 rm -f conf$$.sh
25987 # Support unset when possible.
25988 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25989 as_unset=unset
25990 else
25991 as_unset=false
25995 # IFS
25996 # We need space, tab and new line, in precisely that order. Quoting is
25997 # there to prevent editors from complaining about space-tab.
25998 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25999 # splitting by setting IFS to empty value.)
26000 as_nl='
26002 IFS=" "" $as_nl"
26004 # Find who we are. Look in the path if we contain no directory separator.
26005 case $0 in
26006 *[\\/]* ) as_myself=$0 ;;
26007 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26008 for as_dir in $PATH
26010 IFS=$as_save_IFS
26011 test -z "$as_dir" && as_dir=.
26012 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26013 done
26014 IFS=$as_save_IFS
26017 esac
26018 # We did not find ourselves, most probably we were run as `sh COMMAND'
26019 # in which case we are not to be found in the path.
26020 if test "x$as_myself" = x; then
26021 as_myself=$0
26023 if test ! -f "$as_myself"; then
26024 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26025 { (exit 1); exit 1; }
26028 # Work around bugs in pre-3.0 UWIN ksh.
26029 for as_var in ENV MAIL MAILPATH
26030 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26031 done
26032 PS1='$ '
26033 PS2='> '
26034 PS4='+ '
26036 # NLS nuisances.
26037 for as_var in \
26038 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26039 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26040 LC_TELEPHONE LC_TIME
26042 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26043 eval $as_var=C; export $as_var
26044 else
26045 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26047 done
26049 # Required to use basename.
26050 if expr a : '\(a\)' >/dev/null 2>&1 &&
26051 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26052 as_expr=expr
26053 else
26054 as_expr=false
26057 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26058 as_basename=basename
26059 else
26060 as_basename=false
26064 # Name of the executable.
26065 as_me=`$as_basename -- "$0" ||
26066 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26067 X"$0" : 'X\(//\)$' \| \
26068 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26069 echo X/"$0" |
26070 sed '/^.*\/\([^/][^/]*\)\/*$/{
26071 s//\1/
26074 /^X\/\(\/\/\)$/{
26075 s//\1/
26078 /^X\/\(\/\).*/{
26079 s//\1/
26082 s/.*/./; q'`
26084 # CDPATH.
26085 $as_unset CDPATH
26089 as_lineno_1=$LINENO
26090 as_lineno_2=$LINENO
26091 test "x$as_lineno_1" != "x$as_lineno_2" &&
26092 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26094 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26095 # uniformly replaced by the line number. The first 'sed' inserts a
26096 # line-number line after each line using $LINENO; the second 'sed'
26097 # does the real work. The second script uses 'N' to pair each
26098 # line-number line with the line containing $LINENO, and appends
26099 # trailing '-' during substitution so that $LINENO is not a special
26100 # case at line end.
26101 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26102 # scripts with optimization help from Paolo Bonzini. Blame Lee
26103 # E. McMahon (1931-1989) for sed's syntax. :-)
26104 sed -n '
26106 /[$]LINENO/=
26107 ' <$as_myself |
26108 sed '
26109 s/[$]LINENO.*/&-/
26110 t lineno
26112 :lineno
26114 :loop
26115 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26116 t loop
26117 s/-\n.*//
26118 ' >$as_me.lineno &&
26119 chmod +x "$as_me.lineno" ||
26120 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26121 { (exit 1); exit 1; }; }
26123 # Don't try to exec as it changes $[0], causing all sort of problems
26124 # (the dirname of $[0] is not the place where we might find the
26125 # original and so on. Autoconf is especially sensitive to this).
26126 . "./$as_me.lineno"
26127 # Exit status is that of the last command.
26128 exit
26132 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26133 as_dirname=dirname
26134 else
26135 as_dirname=false
26138 ECHO_C= ECHO_N= ECHO_T=
26139 case `echo -n x` in
26140 -n*)
26141 case `echo 'x\c'` in
26142 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26143 *) ECHO_C='\c';;
26144 esac;;
26146 ECHO_N='-n';;
26147 esac
26149 if expr a : '\(a\)' >/dev/null 2>&1 &&
26150 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26151 as_expr=expr
26152 else
26153 as_expr=false
26156 rm -f conf$$ conf$$.exe conf$$.file
26157 if test -d conf$$.dir; then
26158 rm -f conf$$.dir/conf$$.file
26159 else
26160 rm -f conf$$.dir
26161 mkdir conf$$.dir
26163 echo >conf$$.file
26164 if ln -s conf$$.file conf$$ 2>/dev/null; then
26165 as_ln_s='ln -s'
26166 # ... but there are two gotchas:
26167 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26168 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26169 # In both cases, we have to default to `cp -p'.
26170 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26171 as_ln_s='cp -p'
26172 elif ln conf$$.file conf$$ 2>/dev/null; then
26173 as_ln_s=ln
26174 else
26175 as_ln_s='cp -p'
26177 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26178 rmdir conf$$.dir 2>/dev/null
26180 if mkdir -p . 2>/dev/null; then
26181 as_mkdir_p=:
26182 else
26183 test -d ./-p && rmdir ./-p
26184 as_mkdir_p=false
26187 if test -x / >/dev/null 2>&1; then
26188 as_test_x='test -x'
26189 else
26190 if ls -dL / >/dev/null 2>&1; then
26191 as_ls_L_option=L
26192 else
26193 as_ls_L_option=
26195 as_test_x='
26196 eval sh -c '\''
26197 if test -d "$1"; then
26198 test -d "$1/.";
26199 else
26200 case $1 in
26201 -*)set "./$1";;
26202 esac;
26203 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26204 ???[sx]*):;;*)false;;esac;fi
26205 '\'' sh
26208 as_executable_p=$as_test_x
26210 # Sed expression to map a string onto a valid CPP name.
26211 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26213 # Sed expression to map a string onto a valid variable name.
26214 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26217 exec 6>&1
26219 # Save the log message, to keep $[0] and so on meaningful, and to
26220 # report actual input values of CONFIG_FILES etc. instead of their
26221 # values after options handling.
26222 ac_log="
26223 This file was extended by PostgreSQL $as_me 8.4devel, which was
26224 generated by GNU Autoconf 2.61. Invocation command line was
26226 CONFIG_FILES = $CONFIG_FILES
26227 CONFIG_HEADERS = $CONFIG_HEADERS
26228 CONFIG_LINKS = $CONFIG_LINKS
26229 CONFIG_COMMANDS = $CONFIG_COMMANDS
26230 $ $0 $@
26232 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26235 _ACEOF
26237 cat >>$CONFIG_STATUS <<_ACEOF
26238 # Files that config.status was made for.
26239 config_files="$ac_config_files"
26240 config_headers="$ac_config_headers"
26241 config_links="$ac_config_links"
26242 config_commands="$ac_config_commands"
26244 _ACEOF
26246 cat >>$CONFIG_STATUS <<\_ACEOF
26247 ac_cs_usage="\
26248 \`$as_me' instantiates files from templates according to the
26249 current configuration.
26251 Usage: $0 [OPTIONS] [FILE]...
26253 -h, --help print this help, then exit
26254 -V, --version print version number and configuration settings, then exit
26255 -q, --quiet do not print progress messages
26256 -d, --debug don't remove temporary files
26257 --recheck update $as_me by reconfiguring in the same conditions
26258 --file=FILE[:TEMPLATE]
26259 instantiate the configuration file FILE
26260 --header=FILE[:TEMPLATE]
26261 instantiate the configuration header FILE
26263 Configuration files:
26264 $config_files
26266 Configuration headers:
26267 $config_headers
26269 Configuration links:
26270 $config_links
26272 Configuration commands:
26273 $config_commands
26275 Report bugs to <bug-autoconf@gnu.org>."
26277 _ACEOF
26278 cat >>$CONFIG_STATUS <<_ACEOF
26279 ac_cs_version="\\
26280 PostgreSQL config.status 8.4devel
26281 configured by $0, generated by GNU Autoconf 2.61,
26282 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26284 Copyright (C) 2006 Free Software Foundation, Inc.
26285 This config.status script is free software; the Free Software Foundation
26286 gives unlimited permission to copy, distribute and modify it."
26288 ac_pwd='$ac_pwd'
26289 srcdir='$srcdir'
26290 _ACEOF
26292 cat >>$CONFIG_STATUS <<\_ACEOF
26293 # If no file are specified by the user, then we need to provide default
26294 # value. By we need to know if files were specified by the user.
26295 ac_need_defaults=:
26296 while test $# != 0
26298 case $1 in
26299 --*=*)
26300 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26301 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26302 ac_shift=:
26305 ac_option=$1
26306 ac_optarg=$2
26307 ac_shift=shift
26309 esac
26311 case $ac_option in
26312 # Handling of the options.
26313 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26314 ac_cs_recheck=: ;;
26315 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26316 echo "$ac_cs_version"; exit ;;
26317 --debug | --debu | --deb | --de | --d | -d )
26318 debug=: ;;
26319 --file | --fil | --fi | --f )
26320 $ac_shift
26321 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26322 ac_need_defaults=false;;
26323 --header | --heade | --head | --hea )
26324 $ac_shift
26325 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26326 ac_need_defaults=false;;
26327 --he | --h)
26328 # Conflict between --help and --header
26329 { echo "$as_me: error: ambiguous option: $1
26330 Try \`$0 --help' for more information." >&2
26331 { (exit 1); exit 1; }; };;
26332 --help | --hel | -h )
26333 echo "$ac_cs_usage"; exit ;;
26334 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26335 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26336 ac_cs_silent=: ;;
26338 # This is an error.
26339 -*) { echo "$as_me: error: unrecognized option: $1
26340 Try \`$0 --help' for more information." >&2
26341 { (exit 1); exit 1; }; } ;;
26343 *) ac_config_targets="$ac_config_targets $1"
26344 ac_need_defaults=false ;;
26346 esac
26347 shift
26348 done
26350 ac_configure_extra_args=
26352 if $ac_cs_silent; then
26353 exec 6>/dev/null
26354 ac_configure_extra_args="$ac_configure_extra_args --silent"
26357 _ACEOF
26358 cat >>$CONFIG_STATUS <<_ACEOF
26359 if \$ac_cs_recheck; then
26360 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26361 CONFIG_SHELL=$SHELL
26362 export CONFIG_SHELL
26363 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26366 _ACEOF
26367 cat >>$CONFIG_STATUS <<\_ACEOF
26368 exec 5>>config.log
26370 echo
26371 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26372 ## Running $as_me. ##
26373 _ASBOX
26374 echo "$ac_log"
26375 } >&5
26377 _ACEOF
26378 cat >>$CONFIG_STATUS <<_ACEOF
26379 _ACEOF
26381 cat >>$CONFIG_STATUS <<\_ACEOF
26383 # Handling of arguments.
26384 for ac_config_target in $ac_config_targets
26386 case $ac_config_target in
26387 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
26388 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
26389 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
26390 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
26391 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
26392 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
26393 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
26394 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
26395 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
26396 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
26397 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
26398 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
26400 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26401 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26402 { (exit 1); exit 1; }; };;
26403 esac
26404 done
26407 # If the user did not use the arguments to specify the items to instantiate,
26408 # then the envvar interface is used. Set only those that are not.
26409 # We use the long form for the default assignment because of an extremely
26410 # bizarre bug on SunOS 4.1.3.
26411 if $ac_need_defaults; then
26412 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26413 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26414 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
26415 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26418 # Have a temporary directory for convenience. Make it in the build tree
26419 # simply because there is no reason against having it here, and in addition,
26420 # creating and moving files from /tmp can sometimes cause problems.
26421 # Hook for its removal unless debugging.
26422 # Note that there is a small window in which the directory will not be cleaned:
26423 # after its creation but before its name has been assigned to `$tmp'.
26424 $debug ||
26426 tmp=
26427 trap 'exit_status=$?
26428 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26430 trap '{ (exit 1); exit 1; }' 1 2 13 15
26432 # Create a (secure) tmp directory for tmp files.
26435 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26436 test -n "$tmp" && test -d "$tmp"
26437 } ||
26439 tmp=./conf$$-$RANDOM
26440 (umask 077 && mkdir "$tmp")
26441 } ||
26443 echo "$me: cannot create a temporary directory in ." >&2
26444 { (exit 1); exit 1; }
26448 # Set up the sed scripts for CONFIG_FILES section.
26451 # No need to generate the scripts if there are no CONFIG_FILES.
26452 # This happens for instance when ./config.status config.h
26453 if test -n "$CONFIG_FILES"; then
26455 _ACEOF
26459 ac_delim='%!_!# '
26460 for ac_last_try in false false false false false :; do
26461 cat >conf$$subs.sed <<_ACEOF
26462 SHELL!$SHELL$ac_delim
26463 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26464 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26465 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26466 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26467 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26468 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26469 exec_prefix!$exec_prefix$ac_delim
26470 prefix!$prefix$ac_delim
26471 program_transform_name!$program_transform_name$ac_delim
26472 bindir!$bindir$ac_delim
26473 sbindir!$sbindir$ac_delim
26474 libexecdir!$libexecdir$ac_delim
26475 datarootdir!$datarootdir$ac_delim
26476 datadir!$datadir$ac_delim
26477 sysconfdir!$sysconfdir$ac_delim
26478 sharedstatedir!$sharedstatedir$ac_delim
26479 localstatedir!$localstatedir$ac_delim
26480 includedir!$includedir$ac_delim
26481 oldincludedir!$oldincludedir$ac_delim
26482 docdir!$docdir$ac_delim
26483 infodir!$infodir$ac_delim
26484 htmldir!$htmldir$ac_delim
26485 dvidir!$dvidir$ac_delim
26486 pdfdir!$pdfdir$ac_delim
26487 psdir!$psdir$ac_delim
26488 libdir!$libdir$ac_delim
26489 localedir!$localedir$ac_delim
26490 mandir!$mandir$ac_delim
26491 DEFS!$DEFS$ac_delim
26492 ECHO_C!$ECHO_C$ac_delim
26493 ECHO_N!$ECHO_N$ac_delim
26494 ECHO_T!$ECHO_T$ac_delim
26495 LIBS!$LIBS$ac_delim
26496 build_alias!$build_alias$ac_delim
26497 host_alias!$host_alias$ac_delim
26498 target_alias!$target_alias$ac_delim
26499 configure_args!$configure_args$ac_delim
26500 build!$build$ac_delim
26501 build_cpu!$build_cpu$ac_delim
26502 build_vendor!$build_vendor$ac_delim
26503 build_os!$build_os$ac_delim
26504 host!$host$ac_delim
26505 host_cpu!$host_cpu$ac_delim
26506 host_vendor!$host_vendor$ac_delim
26507 host_os!$host_os$ac_delim
26508 PORTNAME!$PORTNAME$ac_delim
26509 enable_nls!$enable_nls$ac_delim
26510 WANTED_LANGUAGES!$WANTED_LANGUAGES$ac_delim
26511 default_port!$default_port$ac_delim
26512 enable_shared!$enable_shared$ac_delim
26513 enable_rpath!$enable_rpath$ac_delim
26514 enable_debug!$enable_debug$ac_delim
26515 enable_profiling!$enable_profiling$ac_delim
26516 DTRACE!$DTRACE$ac_delim
26517 DTRACEFLAGS!$DTRACEFLAGS$ac_delim
26518 enable_dtrace!$enable_dtrace$ac_delim
26519 CC!$CC$ac_delim
26520 CFLAGS!$CFLAGS$ac_delim
26521 LDFLAGS!$LDFLAGS$ac_delim
26522 CPPFLAGS!$CPPFLAGS$ac_delim
26523 ac_ct_CC!$ac_ct_CC$ac_delim
26524 EXEEXT!$EXEEXT$ac_delim
26525 OBJEXT!$OBJEXT$ac_delim
26526 CPP!$CPP$ac_delim
26527 GCC!$GCC$ac_delim
26528 TAS!$TAS$ac_delim
26529 autodepend!$autodepend$ac_delim
26530 INCLUDES!$INCLUDES$ac_delim
26531 enable_thread_safety!$enable_thread_safety$ac_delim
26532 with_tcl!$with_tcl$ac_delim
26533 with_perl!$with_perl$ac_delim
26534 with_python!$with_python$ac_delim
26535 with_gssapi!$with_gssapi$ac_delim
26536 with_krb5!$with_krb5$ac_delim
26537 krb_srvtab!$krb_srvtab$ac_delim
26538 with_pam!$with_pam$ac_delim
26539 with_ldap!$with_ldap$ac_delim
26540 with_bonjour!$with_bonjour$ac_delim
26541 with_openssl!$with_openssl$ac_delim
26542 with_ossp_uuid!$with_ossp_uuid$ac_delim
26543 XML2_CONFIG!$XML2_CONFIG$ac_delim
26544 with_libxml!$with_libxml$ac_delim
26545 with_libxslt!$with_libxslt$ac_delim
26546 with_system_tzdata!$with_system_tzdata$ac_delim
26547 with_zlib!$with_zlib$ac_delim
26548 GREP!$GREP$ac_delim
26549 EGREP!$EGREP$ac_delim
26550 ELF_SYS!$ELF_SYS$ac_delim
26551 LDFLAGS_SL!$LDFLAGS_SL$ac_delim
26552 LD!$LD$ac_delim
26553 with_gnu_ld!$with_gnu_ld$ac_delim
26554 ld_R_works!$ld_R_works$ac_delim
26555 RANLIB!$RANLIB$ac_delim
26556 STRIP!$STRIP$ac_delim
26557 STRIP_STATIC_LIB!$STRIP_STATIC_LIB$ac_delim
26558 STRIP_SHARED_LIB!$STRIP_SHARED_LIB$ac_delim
26559 _ACEOF
26561 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26562 break
26563 elif $ac_last_try; then
26564 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26565 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26566 { (exit 1); exit 1; }; }
26567 else
26568 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26570 done
26572 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26573 if test -n "$ac_eof"; then
26574 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26575 ac_eof=`expr $ac_eof + 1`
26578 cat >>$CONFIG_STATUS <<_ACEOF
26579 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26580 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26581 _ACEOF
26582 sed '
26583 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26584 s/^/s,@/; s/!/@,|#_!!_#|/
26587 s/'"$ac_delim"'$/,g/; t
26588 s/$/\\/; p
26589 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26590 ' >>$CONFIG_STATUS <conf$$subs.sed
26591 rm -f conf$$subs.sed
26592 cat >>$CONFIG_STATUS <<_ACEOF
26593 CEOF$ac_eof
26594 _ACEOF
26597 ac_delim='%!_!# '
26598 for ac_last_try in false false false false false :; do
26599 cat >conf$$subs.sed <<_ACEOF
26600 TAR!$TAR$ac_delim
26601 LN_S!$LN_S$ac_delim
26602 AWK!$AWK$ac_delim
26603 YACC!$YACC$ac_delim
26604 YFLAGS!$YFLAGS$ac_delim
26605 FLEX!$FLEX$ac_delim
26606 FLEXFLAGS!$FLEXFLAGS$ac_delim
26607 PERL!$PERL$ac_delim
26608 perl_archlibexp!$perl_archlibexp$ac_delim
26609 perl_privlibexp!$perl_privlibexp$ac_delim
26610 perl_useshrplib!$perl_useshrplib$ac_delim
26611 perl_embed_ldflags!$perl_embed_ldflags$ac_delim
26612 PYTHON!$PYTHON$ac_delim
26613 python_version!$python_version$ac_delim
26614 python_configdir!$python_configdir$ac_delim
26615 python_includespec!$python_includespec$ac_delim
26616 python_libdir!$python_libdir$ac_delim
26617 python_libspec!$python_libspec$ac_delim
26618 python_additional_libs!$python_additional_libs$ac_delim
26619 OSSP_UUID_LIBS!$OSSP_UUID_LIBS$ac_delim
26620 HAVE_IPV6!$HAVE_IPV6$ac_delim
26621 LIBOBJS!$LIBOBJS$ac_delim
26622 acx_pthread_config!$acx_pthread_config$ac_delim
26623 PTHREAD_CC!$PTHREAD_CC$ac_delim
26624 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
26625 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
26626 LDAP_LIBS_FE!$LDAP_LIBS_FE$ac_delim
26627 LDAP_LIBS_BE!$LDAP_LIBS_BE$ac_delim
26628 HAVE_POSIX_SIGNALS!$HAVE_POSIX_SIGNALS$ac_delim
26629 MSGFMT!$MSGFMT$ac_delim
26630 MSGMERGE!$MSGMERGE$ac_delim
26631 XGETTEXT!$XGETTEXT$ac_delim
26632 TCLSH!$TCLSH$ac_delim
26633 TCL_CONFIG_SH!$TCL_CONFIG_SH$ac_delim
26634 TCL_INCLUDE_SPEC!$TCL_INCLUDE_SPEC$ac_delim
26635 TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim
26636 TCL_LIBS!$TCL_LIBS$ac_delim
26637 TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim
26638 TCL_SHARED_BUILD!$TCL_SHARED_BUILD$ac_delim
26639 TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim
26640 NSGMLS!$NSGMLS$ac_delim
26641 JADE!$JADE$ac_delim
26642 have_docbook!$have_docbook$ac_delim
26643 DOCBOOKSTYLE!$DOCBOOKSTYLE$ac_delim
26644 COLLATEINDEX!$COLLATEINDEX$ac_delim
26645 SGMLSPL!$SGMLSPL$ac_delim
26646 vpath_build!$vpath_build$ac_delim
26647 LTLIBOBJS!$LTLIBOBJS$ac_delim
26648 _ACEOF
26650 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 48; then
26651 break
26652 elif $ac_last_try; then
26653 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26654 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26655 { (exit 1); exit 1; }; }
26656 else
26657 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26659 done
26661 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26662 if test -n "$ac_eof"; then
26663 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26664 ac_eof=`expr $ac_eof + 1`
26667 cat >>$CONFIG_STATUS <<_ACEOF
26668 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26669 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26670 _ACEOF
26671 sed '
26672 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26673 s/^/s,@/; s/!/@,|#_!!_#|/
26676 s/'"$ac_delim"'$/,g/; t
26677 s/$/\\/; p
26678 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26679 ' >>$CONFIG_STATUS <conf$$subs.sed
26680 rm -f conf$$subs.sed
26681 cat >>$CONFIG_STATUS <<_ACEOF
26682 :end
26683 s/|#_!!_#|//g
26684 CEOF$ac_eof
26685 _ACEOF
26688 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26689 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26690 # trailing colons and then remove the whole line if VPATH becomes empty
26691 # (actually we leave an empty line to preserve line numbers).
26692 if test "x$srcdir" = x.; then
26693 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26694 s/:*\$(srcdir):*/:/
26695 s/:*\${srcdir}:*/:/
26696 s/:*@srcdir@:*/:/
26697 s/^\([^=]*=[ ]*\):*/\1/
26698 s/:*$//
26699 s/^[^=]*=[ ]*$//
26703 cat >>$CONFIG_STATUS <<\_ACEOF
26704 fi # test -n "$CONFIG_FILES"
26707 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS
26709 case $ac_tag in
26710 :[FHLC]) ac_mode=$ac_tag; continue;;
26711 esac
26712 case $ac_mode$ac_tag in
26713 :[FHL]*:*);;
26714 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26715 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26716 { (exit 1); exit 1; }; };;
26717 :[FH]-) ac_tag=-:-;;
26718 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26719 esac
26720 ac_save_IFS=$IFS
26721 IFS=:
26722 set x $ac_tag
26723 IFS=$ac_save_IFS
26724 shift
26725 ac_file=$1
26726 shift
26728 case $ac_mode in
26729 :L) ac_source=$1;;
26730 :[FH])
26731 ac_file_inputs=
26732 for ac_f
26734 case $ac_f in
26735 -) ac_f="$tmp/stdin";;
26736 *) # Look for the file first in the build tree, then in the source tree
26737 # (if the path is not absolute). The absolute path cannot be DOS-style,
26738 # because $ac_f cannot contain `:'.
26739 test -f "$ac_f" ||
26740 case $ac_f in
26741 [\\/$]*) false;;
26742 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26743 esac ||
26744 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26745 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26746 { (exit 1); exit 1; }; };;
26747 esac
26748 ac_file_inputs="$ac_file_inputs $ac_f"
26749 done
26751 # Let's still pretend it is `configure' which instantiates (i.e., don't
26752 # use $as_me), people would be surprised to read:
26753 # /* config.h. Generated by config.status. */
26754 configure_input="Generated from "`IFS=:
26755 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26756 if test x"$ac_file" != x-; then
26757 configure_input="$ac_file. $configure_input"
26758 { echo "$as_me:$LINENO: creating $ac_file" >&5
26759 echo "$as_me: creating $ac_file" >&6;}
26762 case $ac_tag in
26763 *:-:* | *:-) cat >"$tmp/stdin";;
26764 esac
26766 esac
26768 ac_dir=`$as_dirname -- "$ac_file" ||
26769 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26770 X"$ac_file" : 'X\(//\)[^/]' \| \
26771 X"$ac_file" : 'X\(//\)$' \| \
26772 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26773 echo X"$ac_file" |
26774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26775 s//\1/
26778 /^X\(\/\/\)[^/].*/{
26779 s//\1/
26782 /^X\(\/\/\)$/{
26783 s//\1/
26786 /^X\(\/\).*/{
26787 s//\1/
26790 s/.*/./; q'`
26791 { as_dir="$ac_dir"
26792 case $as_dir in #(
26793 -*) as_dir=./$as_dir;;
26794 esac
26795 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26796 as_dirs=
26797 while :; do
26798 case $as_dir in #(
26799 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26800 *) as_qdir=$as_dir;;
26801 esac
26802 as_dirs="'$as_qdir' $as_dirs"
26803 as_dir=`$as_dirname -- "$as_dir" ||
26804 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26805 X"$as_dir" : 'X\(//\)[^/]' \| \
26806 X"$as_dir" : 'X\(//\)$' \| \
26807 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26808 echo X"$as_dir" |
26809 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26810 s//\1/
26813 /^X\(\/\/\)[^/].*/{
26814 s//\1/
26817 /^X\(\/\/\)$/{
26818 s//\1/
26821 /^X\(\/\).*/{
26822 s//\1/
26825 s/.*/./; q'`
26826 test -d "$as_dir" && break
26827 done
26828 test -z "$as_dirs" || eval "mkdir $as_dirs"
26829 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26830 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26831 { (exit 1); exit 1; }; }; }
26832 ac_builddir=.
26834 case "$ac_dir" in
26835 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26837 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26838 # A ".." for each directory in $ac_dir_suffix.
26839 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26840 case $ac_top_builddir_sub in
26841 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26842 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26843 esac ;;
26844 esac
26845 ac_abs_top_builddir=$ac_pwd
26846 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26847 # for backward compatibility:
26848 ac_top_builddir=$ac_top_build_prefix
26850 case $srcdir in
26851 .) # We are building in place.
26852 ac_srcdir=.
26853 ac_top_srcdir=$ac_top_builddir_sub
26854 ac_abs_top_srcdir=$ac_pwd ;;
26855 [\\/]* | ?:[\\/]* ) # Absolute name.
26856 ac_srcdir=$srcdir$ac_dir_suffix;
26857 ac_top_srcdir=$srcdir
26858 ac_abs_top_srcdir=$srcdir ;;
26859 *) # Relative name.
26860 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26861 ac_top_srcdir=$ac_top_build_prefix$srcdir
26862 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26863 esac
26864 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26867 case $ac_mode in
26870 # CONFIG_FILE
26873 _ACEOF
26875 cat >>$CONFIG_STATUS <<\_ACEOF
26876 # If the template does not know about datarootdir, expand it.
26877 # FIXME: This hack should be removed a few years after 2.60.
26878 ac_datarootdir_hack=; ac_datarootdir_seen=
26880 case `sed -n '/datarootdir/ {
26884 /@datadir@/p
26885 /@docdir@/p
26886 /@infodir@/p
26887 /@localedir@/p
26888 /@mandir@/p
26889 ' $ac_file_inputs` in
26890 *datarootdir*) ac_datarootdir_seen=yes;;
26891 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26892 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26893 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26894 _ACEOF
26895 cat >>$CONFIG_STATUS <<_ACEOF
26896 ac_datarootdir_hack='
26897 s&@datadir@&$datadir&g
26898 s&@docdir@&$docdir&g
26899 s&@infodir@&$infodir&g
26900 s&@localedir@&$localedir&g
26901 s&@mandir@&$mandir&g
26902 s&\\\${datarootdir}&$datarootdir&g' ;;
26903 esac
26904 _ACEOF
26906 # Neutralize VPATH when `$srcdir' = `.'.
26907 # Shell code in configure.ac might set extrasub.
26908 # FIXME: do we really want to maintain this feature?
26909 cat >>$CONFIG_STATUS <<_ACEOF
26910 sed "$ac_vpsub
26911 $extrasub
26912 _ACEOF
26913 cat >>$CONFIG_STATUS <<\_ACEOF
26915 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26916 s&@configure_input@&$configure_input&;t t
26917 s&@top_builddir@&$ac_top_builddir_sub&;t t
26918 s&@srcdir@&$ac_srcdir&;t t
26919 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26920 s&@top_srcdir@&$ac_top_srcdir&;t t
26921 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26922 s&@builddir@&$ac_builddir&;t t
26923 s&@abs_builddir@&$ac_abs_builddir&;t t
26924 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26925 $ac_datarootdir_hack
26926 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26928 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26929 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26930 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26931 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26932 which seems to be undefined. Please make sure it is defined." >&5
26933 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26934 which seems to be undefined. Please make sure it is defined." >&2;}
26936 rm -f "$tmp/stdin"
26937 case $ac_file in
26938 -) cat "$tmp/out"; rm -f "$tmp/out";;
26939 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26940 esac
26944 # CONFIG_HEADER
26946 _ACEOF
26948 # Transform confdefs.h into a sed script `conftest.defines', that
26949 # substitutes the proper values into config.h.in to produce config.h.
26950 rm -f conftest.defines conftest.tail
26951 # First, append a space to every undef/define line, to ease matching.
26952 echo 's/$/ /' >conftest.defines
26953 # Then, protect against being on the right side of a sed subst, or in
26954 # an unquoted here document, in config.status. If some macros were
26955 # called several times there might be several #defines for the same
26956 # symbol, which is useless. But do not sort them, since the last
26957 # AC_DEFINE must be honored.
26958 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26959 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26960 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26961 # PARAMS is the parameter list in the macro definition--in most cases, it's
26962 # just an empty string.
26963 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
26964 ac_dB='\\)[ (].*,\\1define\\2'
26965 ac_dC=' '
26966 ac_dD=' ,'
26968 uniq confdefs.h |
26969 sed -n '
26970 t rset
26971 :rset
26972 s/^[ ]*#[ ]*define[ ][ ]*//
26973 t ok
26976 s/[\\&,]/\\&/g
26977 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26978 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26979 ' >>conftest.defines
26981 # Remove the space that was appended to ease matching.
26982 # Then replace #undef with comments. This is necessary, for
26983 # example, in the case of _POSIX_SOURCE, which is predefined and required
26984 # on some systems where configure will not decide to define it.
26985 # (The regexp can be short, since the line contains either #define or #undef.)
26986 echo 's/ $//
26987 s,^[ #]*u.*,/* & */,' >>conftest.defines
26989 # Break up conftest.defines:
26990 ac_max_sed_lines=50
26992 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26993 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26994 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26995 # et cetera.
26996 ac_in='$ac_file_inputs'
26997 ac_out='"$tmp/out1"'
26998 ac_nxt='"$tmp/out2"'
27000 while :
27002 # Write a here document:
27003 cat >>$CONFIG_STATUS <<_ACEOF
27004 # First, check the format of the line:
27005 cat >"\$tmp/defines.sed" <<\\CEOF
27006 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27007 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27009 :def
27010 _ACEOF
27011 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27012 echo 'CEOF
27013 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27014 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27015 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27016 grep . conftest.tail >/dev/null || break
27017 rm -f conftest.defines
27018 mv conftest.tail conftest.defines
27019 done
27020 rm -f conftest.defines conftest.tail
27022 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27023 cat >>$CONFIG_STATUS <<\_ACEOF
27024 if test x"$ac_file" != x-; then
27025 echo "/* $configure_input */" >"$tmp/config.h"
27026 cat "$ac_result" >>"$tmp/config.h"
27027 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27028 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27029 echo "$as_me: $ac_file is unchanged" >&6;}
27030 else
27031 rm -f $ac_file
27032 mv "$tmp/config.h" $ac_file
27034 else
27035 echo "/* $configure_input */"
27036 cat "$ac_result"
27038 rm -f "$tmp/out12"
27042 # CONFIG_LINK
27045 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
27046 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
27048 if test ! -r "$srcdir/$ac_source"; then
27049 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
27050 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
27051 { (exit 1); exit 1; }; }
27053 rm -f "$ac_file"
27055 # Try a relative symlink, then a hard link, then a copy.
27056 case $srcdir in
27057 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
27058 *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;;
27059 esac
27060 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
27061 ln "$srcdir/$ac_source" "$ac_file" 2>/dev/null ||
27062 cp -p "$srcdir/$ac_source" "$ac_file" ||
27063 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
27064 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
27065 { (exit 1); exit 1; }; }
27067 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27068 echo "$as_me: executing $ac_file commands" >&6;}
27070 esac
27073 case $ac_file$ac_mode in
27074 "check_win32_symlinks":C)
27075 # Links sometimes fail undetected on Mingw -
27076 # so here we detect it and warn the user
27077 for FILE in $CONFIG_LINKS
27079 # test -e works for symlinks in the MinGW console
27080 test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
27081 echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
27082 done
27084 "src/include/pg_config.h":H)
27085 # Update timestamp for pg_config.h (see Makefile.global)
27086 echo >src/include/stamp-h
27089 esac
27090 done # for ac_tag
27093 { (exit 0); exit 0; }
27094 _ACEOF
27095 chmod +x $CONFIG_STATUS
27096 ac_clean_files=$ac_clean_files_save
27099 # configure is writing to config.log, and then calls config.status.
27100 # config.status does its own redirection, appending to config.log.
27101 # Unfortunately, on DOS this fails, as config.log is still kept open
27102 # by configure, so config.status won't be able to write to it; its
27103 # output is simply discarded. So we exec the FD to /dev/null,
27104 # effectively closing config.log, so it can be properly (re)opened and
27105 # appended to by config.status. When coming back to configure, we
27106 # need to make the FD available again.
27107 if test "$no_create" != yes; then
27108 ac_cs_success=:
27109 ac_config_status_args=
27110 test "$silent" = yes &&
27111 ac_config_status_args="$ac_config_status_args --quiet"
27112 exec 5>/dev/null
27113 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27114 exec 5>>config.log
27115 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27116 # would make configure fail if this is the last instruction.
27117 $ac_cs_success || { (exit 1); exit 1; }
27121 # Warn about unknown options
27122 for pgac_var in `set | sed 's/=.*//' | $EGREP 'with_|enable_'`; do
27123 for pgac_arg in $pgac_args with_gnu_ld; do
27124 if test "$pgac_var" = "$pgac_arg"; then
27125 continue 2
27127 done
27128 pgac_txt=`echo $pgac_var | sed 's/_/-/g'`
27129 { echo "$as_me:$LINENO: WARNING: option ignored: --$pgac_txt" >&5
27130 echo "$as_me: WARNING: option ignored: --$pgac_txt" >&2;}
27131 done